/* Janjan practice view · photo-led community journal */
.app-shell[data-view="practice"]{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
.app-shell[data-view="practice"] .topbar{margin-bottom:15px}
.app-shell[data-view="practice"] .topbar h1{font-size:29px}

/* The fourth tab is the camera/practice view; preserve the bus icon's intended scale. */
.bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
.bottom-nav button:last-child svg{width:27px;height:25px}
.bottom-nav button:nth-child(3) svg{width:32px}

.practice-intro{margin:1px 0 17px;padding:18px 17px 16px;border:1px solid #dfebe5;border-radius:18px;background:#eef6f1}
.practice-intro h2{margin:0;color:var(--ink);font-size:22px;line-height:1.25;letter-spacing:-.055em;font-weight:800}
.practice-intro p{margin:6px 0 0;color:#58716f;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.practice-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 13px}
.practice-actions .primary{min-height:44px;padding:10px 15px;border-radius:12px;font-size:13px;white-space:nowrap}
.practice-actions .text-button{min-height:44px;padding:9px 5px}
.practice-filter{display:flex;gap:7px;margin:0 0 9px;padding-bottom:2px;overflow-x:auto;scrollbar-width:none}
.practice-filter::-webkit-scrollbar{display:none}
.practice-filter button{flex:0 0 auto;min-height:36px;border:1px solid #dfe8e2;border-radius:99px;background:#f4f7f4;color:#6b7d80;padding:7px 13px;font-size:12px;font-weight:700;white-space:nowrap}
.practice-filter button.active{border-color:var(--teal);background:var(--teal);color:#fff}
#practiceStatus{min-height:18px;margin:5px 1px 9px;color:var(--muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
#practiceStatus:empty{display:none}
#practiceFeed{min-width:0}
.practice-card{overflow:hidden;margin:0 0 14px;border:1px solid #e4eae5;border-radius:17px;background:#fffffc}
.practice-card-head{display:flex;align-items:center;gap:9px;padding:12px 13px 10px;min-width:0}
.practice-card-head>span{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#dceee8;color:var(--teal-dark);font-size:12px;font-weight:800}
.practice-card-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;letter-spacing:-.025em}
.practice-card-head small{margin-left:auto;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}
.practice-media{display:block;width:100%;max-height:500px;object-fit:contain;background:#edf3ef}
.practice-card-body{padding:12px 13px 13px}
.practice-caption{margin:0;white-space:pre-wrap;color:#284254;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.practice-date{display:inline-block;margin-top:8px;color:#87918c;font-size:10px;line-height:1.4}
.practice-delete{float:right;border:0;border-radius:7px;background:#f9eeeb;color:var(--danger);padding:5px 7px;font-size:10px;line-height:1.3}
.practice-card-body:after{content:"";display:block;clear:both}
.practice-empty{padding:43px 19px 41px;border:1px dashed #cdded6;border-radius:17px;background:#f7faf7;text-align:center;color:var(--muted)}
.practice-empty svg{width:37px;height:37px;margin:0 auto 10px;fill:none;stroke:var(--teal);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.practice-empty h3{margin:0;color:var(--ink);font-size:15px;letter-spacing:-.035em}
.practice-empty p{margin:5px 0 0;font-size:11px;line-height:1.65}
#practiceMore{width:100%;min-height:43px;margin:1px 0 15px;border:1px solid #dce7e0;border-radius:11px;background:#f4f7f4;color:var(--teal-dark);font-size:12px;font-weight:700}
#practiceMore[hidden]{display:none!important}
.practice-policy{margin:18px 0 3px;padding:14px 0 0;border-top:1px solid var(--line);color:var(--muted)}
.practice-policy summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;color:#657b7a;font-size:12px;font-weight:700;list-style:none}
.practice-policy summary::-webkit-details-marker{display:none}
.practice-policy summary:after{content:"+";font-size:19px;font-weight:400;color:#95a6a0}
.practice-policy[open] summary:after{content:"−"}
.practice-policy p,.practice-policy ul{margin:10px 0 0;font-size:11px;line-height:1.7}
.practice-policy ul{padding-left:18px}
.practice-policy li+li{margin-top:3px}

#practiceComposer,#practiceDeleteConfirm{width:min(430px,calc(100% - 24px));max-height:min(88dvh,720px);overflow:auto;border-radius:20px}
.practice-compose-body{padding:20px 18px calc(19px + env(safe-area-inset-bottom))}
.practice-compose-body>.section-head,#practiceDeleteConfirm>.section-head{margin:0 0 16px}
.practice-compose-body>.section-head h2,#practiceDeleteConfirm>.section-head h2{font-size:21px}
.practice-compose-body .icon-button,#practiceDeleteConfirm .icon-button{width:44px;height:44px;margin:-6px -7px -6px 0;background:transparent;border-radius:12px}
.practice-compose-body .icon-button svg,#practiceDeleteConfirm .icon-button svg{width:21px;height:21px}
#practiceForm{min-width:0}
.practice-picker{display:block;margin:0 0 13px;color:#58716f;font-size:11px;font-weight:700}
.practice-picker input[type="file"]{display:block;width:100%;min-height:104px;margin-top:6px;border:1.5px dashed #aecfc6;border-radius:13px;background:#f3f8f5;color:#597672;padding:12px;font-size:12px;cursor:pointer}
.practice-picker input[type="file"]::file-selector-button{margin-right:9px;border:0;border-radius:8px;background:#dcefe8;color:var(--teal-dark);padding:7px 9px;font:inherit;font-weight:700;cursor:pointer}
#practicePreview{display:block;width:100%;max-height:360px;margin:0 0 13px;border-radius:12px;object-fit:contain;background:#edf3ef}
#practicePreview[hidden]{display:none!important}
.practice-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 11px}
.practice-form-grid label{min-width:0;font-size:11px;color:#71817f}
.practice-form-grid input{min-height:43px;margin-top:5px;padding:10px 9px;font-size:16px}
#practiceForm>label:not(.practice-picker):not(.practice-consent){display:block;margin:0 0 11px;font-size:11px;color:#71817f}
#practiceForm textarea{display:block;min-height:95px;margin-top:5px;padding:10px 9px;font-size:16px;line-height:1.55}
.practice-consent{display:flex;align-items:flex-start;gap:8px;margin:12px 0 5px;color:#637779;font-size:11px;line-height:1.55;cursor:pointer}
.practice-consent input{width:18px;height:18px;min-height:18px;margin:0;flex:0 0 18px;accent-color:var(--teal)}
.practice-consent span{padding-top:1px}
.practice-note{margin:0 0 12px;color:#84908b;font-size:10px;line-height:1.6;overflow-wrap:anywhere}
#practiceProgress{display:block;width:100%;height:7px;margin:10px 0 5px;accent-color:var(--teal)}
#practiceProgress:not([value]){display:none}
#practiceUploadStatus{display:block;min-height:17px;margin:0 0 10px;color:var(--muted);font-size:10px;line-height:1.5}
#practiceUploadStatus:empty{display:none}
#practiceForm .primary.wide-button{min-height:47px;font-size:14px}
#practiceDeleteConfirm{padding:20px 18px calc(18px + env(safe-area-inset-bottom))}
#practiceDeleteConfirm>.section-head{padding-bottom:13px;border-bottom:1px solid var(--line)}
#practiceDeleteConfirm>p{margin:0 0 18px;color:#61737a;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.practice-dialog-actions{display:flex;justify-content:flex-end;gap:8px}
.practice-dialog-actions button{min-height:42px;border:0;border-radius:10px;padding:9px 13px;font-size:12px;font-weight:700}
.practice-dialog-actions button:not(.danger){background:#eef3f0;color:#55716d}
.practice-dialog-actions .danger{background:var(--danger);color:#fff}

.practice-filter button:focus-visible,.practice-delete:focus-visible,#practiceMore:focus-visible,.practice-dialog-actions button:focus-visible,.practice-picker input[type="file"]:focus-visible{outline:3px solid #58b9bc;outline-offset:3px}
@media(max-width:359px){.practice-intro{padding:15px 14px}.practice-intro h2{font-size:20px}.practice-actions .primary{padding-left:11px;padding-right:11px}.practice-form-grid{grid-template-columns:1fr}.practice-compose-body,#practiceDeleteConfirm{padding-left:14px;padding-right:14px}.practice-card-head{padding-left:11px;padding-right:11px}.practice-card-body{padding-left:11px;padding-right:11px}.bottom-nav button{font-size:10px;padding-left:3px;padding-right:3px}}
@media(prefers-reduced-motion:reduce){.practice-media,#practicePreview{scroll-behavior:auto}}

/* Integration refinements */
#practicePreview{overflow:hidden}#practicePreview:empty{display:none}#practicePreview img,#practicePreview video{display:block;width:100%;max-width:100%;height:auto;max-height:360px;object-fit:contain}#practiceDeleteConfirm{padding:0}#practiceDeleteConfirm h2{margin:0 0 12px;font-size:20px;letter-spacing:-.035em}#practiceDeleteSubmit{background:var(--danger);color:#fff}.practice-card-head>div{display:grid;min-width:0;gap:2px}.practice-card-head small{margin-left:0}.practice-card-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:7px}.practice-date{margin-top:0}.practice-original{font-size:11px}.practice-delete{float:none;margin-left:auto;min-height:38px;padding:8px 10px}.practice-empty p{white-space:pre-line}#practiceStatus.error,#practiceUploadStatus.error{color:var(--danger)}
