:root{--bg:#f7f7f2;--surface:#fff;--ink:#20362f;--muted:#78817b;--line:#e5e8e0;--green:#244d40;--pale:#eaf0e5;--orange:#a87935;--radius:17px;font-family:Tahoma,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9dbf8e;outline-offset:3px}button{border:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.sidebar{position:fixed;inset:0 0 0 auto;width:236px;background:#fff;border-left:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column;z-index:2}.brand{display:flex;align-items:center;gap:11px;margin:0 8px 32px}.brand-icon{display:grid;place-items:center;width:44px;height:44px;background:var(--green);color:#f6eac7;border-radius:14px;font-family:Georgia,serif;font-size:38px}.brand b{font-size:22px;letter-spacing:-1px}.brand small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:42px;padding:10px 18px;border-radius:10px;font-weight:600;line-height:1.7}.primary{background:var(--green);color:white;box-shadow:0 3px 7px #213d3210}.primary:hover{background:#17392d}.secondary{background:white;color:var(--ink);border:1px solid #d9dfd4}.secondary:hover{background:#f2f5ee}.import-button{width:100%;min-height:45px}.import-button span{font-size:23px;font-weight:400}.nav-label{font-size:10px;color:#929990;margin:32px 12px 13px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:13px 15px;margin:3px 0;background:transparent;border-radius:10px;color:#68746d;font-size:12px;text-align:right}.nav-item:hover{background:#f6f7f2}.nav-item.active{background:var(--pale);color:#244d40;font-weight:600}.nav-icon{font-size:21px;width:21px;text-align:center;font-family:Georgia,serif}.nav-item small{margin-right:auto;background:#fff9;padding:2px 6px;border-radius:5px;font-size:10px}.sidebar-bottom{margin-top:auto;padding:22px 9px 0;border-top:1px solid var(--line);font-size:10px;line-height:1.9}.sidebar-bottom strong{font-size:11px;font-weight:500}.sidebar-bottom p{color:var(--muted);margin:9px 0 13px}.local-dot{display:inline-block;width:6px;height:6px;background:#5d8b4d;border-radius:50%;margin-left:6px}.text-button{background:transparent;color:var(--green);padding:8px 0;font-size:11px}.text-button:hover{text-decoration:underline}.danger{color:#a75b4e}main{margin-right:236px;padding:0 42px;max-width:1900px}.topbar{height:77px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:10px;color:#879086}.breadcrumb{display:flex;gap:13px;align-items:center}.breadcrumb b{font-weight:400;color:#49564e}.breadcrumb span{color:#c3c9c0}.version{display:flex;align-items:center;gap:8px}.version i{width:3px;height:3px;border-radius:50%;background:#b6bdae}.page-heading{padding:30px 0 26px;display:flex;align-items:center;justify-content:space-between;gap:15px}.eyebrow{color:#81916c;font-size:10px;margin:0 0 11px;letter-spacing:.3px}.page-heading h1{font-size:30px;font-weight:600;letter-spacing:-1.5px;margin:0 0 12px}.page-heading p:not(.eyebrow){font-size:11px;line-height:1.9;color:var(--muted);margin:0}.page-heading>.secondary{font-size:10px;min-height:37px;padding:8px 13px}.stats{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:23px}.stats>div{padding:20px 24px;position:relative}.stats>div+div:before{content:'';position:absolute;right:0;top:24px;bottom:24px;border-right:1px solid var(--line)}.stats span{color:#7a867d;font-size:10px;display:block}.stats strong{display:block;font-family:'Segoe UI',Tahoma,sans-serif;font-size:31px;font-weight:500;margin:5px 0;color:#304e3f}.stats small{color:#a0a79d;font-size:9px;line-height:1.8}.import-panel{display:flex;gap:19px;align-items:center;border:1px dashed #bccdb0;background:#eef2e9;border-radius:var(--radius);padding:24px 26px;transition:background .15s,border-color .15s;margin-bottom:23px}.import-panel.dragover{background:#dcebd2;border-color:#52784b}.import-mark{display:grid;place-items:center;width:50px;height:50px;flex-shrink:0;font-family:'Segoe UI',sans-serif;font-size:31px;color:#597b48;background:#fff9;border:1px solid #dce5d2;border-radius:14px}.import-copy h2{font-size:14px;font-weight:600;margin:0 0 10px}.import-copy p{font-size:10px;color:#7b8873;line-height:1.9;margin:0 0 5px}.import-copy small{color:#9ba68e;font-size:9px}.import-actions{margin-right:auto;display:flex;flex-direction:column;gap:3px;align-items:center;flex-shrink:0}.import-actions .secondary{font-size:11px;padding:7px 14px;min-height:36px}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:5px 0 22px;border-bottom:1px solid var(--line)}.toolbar select,.toolbar input{height:36px;border:1px solid #e1e6dd;border-radius:8px;background:#fff;padding:0 9px;color:#677362;font-size:10px}.toolbar select{max-width:160px;min-width:115px}.search{display:flex;align-items:center;border:1px solid #e1e6dd;border-radius:8px;background:#fff;min-width:180px;flex:1;gap:6px;padding:0 10px}.search span{font-size:23px;color:#87937f}.search input{border:0;padding:0;width:100%;background:none;outline:none;min-width:80px}.date-label{display:flex;align-items:center;gap:5px;color:#929a8d;font-size:10px}.date-label input{direction:ltr;width:124px}.icon-button{background:transparent;color:#7b8876;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;font-size:23px;flex-shrink:0}.icon-button:hover{background:#ecf0e6}.collection-heading{display:flex;align-items:center;justify-content:space-between;margin:26px 0 21px}.collection-heading h2{font-size:12px;font-weight:600;margin:0}.collection-heading>span{color:#8a9583;font-size:10px}.empty-state{text-align:center;padding:24px 12px 34px;max-width:630px;margin:0 auto}.empty-illustration{height:90px;position:relative;width:120px;margin:0 auto 15px}.empty-illustration span{position:absolute;inset:0;font-family:Georgia,serif;font-size:110px;line-height:90px;color:#b7c6a2}.empty-illustration i{position:absolute;left:9px;top:0;color:#9aaf7e;font-style:normal;font-size:24px}.empty-state h2{font-size:18px;font-weight:500;margin:15px 0 13px}.empty-state p{font-size:11px;color:#8b9584;line-height:2.1;margin:0 0 22px}.empty-state>.primary{font-size:11px;padding:9px 20px;min-height:39px}.steps{display:flex;justify-content:center;gap:24px;margin-top:38px;font-size:9px;color:#8c9587}.steps b{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid #dce3d2;border-radius:50%;margin-left:6px;color:#73875d;font-weight:400}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:19px}.photo-card{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden;text-align:right;display:flex;flex-direction:column;transition:box-shadow .15s,transform .15s;padding:0;color:var(--ink)}.photo-card:hover{box-shadow:0 7px 22px #203e3615;transform:translateY(-2px)}.photo-cover{width:100%;height:210px;object-fit:cover;display:block;background:#e5e9df}.card-body{padding:12px;width:100%}.card-title{font-size:10px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:ltr;text-align:right;display:block}.card-meta{font-size:9px;color:#97a08f;margin-top:8px;display:flex;gap:8px;justify-content:space-between;line-height:1.9}.card-people{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}.person-chip{font-size:9px;line-height:1.7;background:#edf2e7;border:1px solid #e1e9d8;color:#60764f;padding:2px 7px;border-radius:5px}.person-chip.suggested{border-style:dashed;background:#fff8e9;color:#a98540;border-color:#d6bd83}.person-chip.unknown{background:#f3f3ef;color:#8c9584;border-color:#e7e9e2}.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:20px}.people-grid>h3{grid-column:1/-1;font-size:12px;font-weight:500;margin:12px 0 0;color:#6a7960}.person-card{display:flex;flex-direction:column;align-items:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:25px 15px 20px;text-align:center;gap:9px;color:var(--ink)}.person-card:hover{border-color:#b6c8a4;box-shadow:0 4px 16px #203e360a}.person-card img{width:90px;height:90px;border-radius:50%;object-fit:cover;background:#ebeee5;margin-bottom:5px}.person-card b{font-size:12px;font-weight:500}.person-card small{font-size:10px;color:#939e8b;line-height:1.9}.person-card.unknown img{border:2px dashed #c2cfb5;padding:3px}.person-card.unknown b{color:#769159}.places-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:20px}.place-card{position:relative;padding:0;border-radius:14px;overflow:hidden;text-align:right;background:#e5eadd;min-height:220px;color:white}.place-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.place-card:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent,#162c25cd)}.place-card div{position:absolute;bottom:19px;right:20px;left:20px;z-index:1}.place-card b{font-size:17px;display:block;margin-bottom:9px}.place-card small{font-size:10px;color:#d8e2cf}.job-panel{background:#fff;border:1px solid #d7e4cd;border-radius:13px;padding:17px 23px;margin-bottom:20px;font-size:11px}.job-panel>div{display:flex;justify-content:space-between}.job-panel b{font-weight:500}.job-panel span,.job-panel p{color:#819175;font-size:10px}.job-panel p{margin-bottom:0}progress{display:block;width:100%;height:5px;border:0;border-radius:10px;margin-top:15px;overflow:hidden;background:#e8efdf;accent-color:#658b4e}progress::-webkit-progress-bar{background:#e8efdf}progress::-webkit-progress-value{background:#658b4e}.notice{background:#eef2e8;color:#728463;border:1px solid #dfe8d6;border-radius:10px;padding:14px 17px;line-height:2;font-size:11px}.notice.error{background:#fff5ee;border-color:#efdcd0;color:#a47553;margin:0 0 20px}.notice p{margin:4px 0}.person-actions{display:flex;align-items:center;gap:20px;justify-content:space-between;margin:0 0 20px;padding:12px 18px;background:#fff7e4;border-radius:10px;font-size:10px;color:#9f8144}.person-actions .secondary{font-size:10px}footer{margin-top:42px;padding:22px 0;display:flex;gap:18px;justify-content:space-between;border-top:1px solid var(--line);font-size:9px;color:#a3ab9b;line-height:1.8}footer small{font-size:8px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}dialog{border:1px solid #d9dfd2;padding:0;border-radius:20px;color:var(--ink);max-height:90vh}dialog::backdrop{background:#12231bd4;backdrop-filter:blur(5px)}.photo-dialog{width:min(1240px,95vw);background:#f7f8f2}.detail-top{height:58px;display:flex;justify-content:space-between;align-items:center;padding:0 20px;border-bottom:1px solid var(--line);font-size:11px}.detail-top>span{direction:ltr;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:85%}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;direction:ltr}.detail-stage{background:#e8ece2;min-height:450px;display:flex;align-items:center;justify-content:center;padding:22px}.image-wrapper{position:relative;display:inline-block;line-height:0;max-width:100%}.image-wrapper>img{display:block;max-width:100%;max-height:70vh;width:auto;height:auto;object-fit:contain;box-shadow:0 6px 30px #172c2215}.face-box{position:absolute;border:2px solid #e1eecd;background:#d6e8b010;border-radius:4px;padding:0}.face-box:hover{background:#d6e8b04d}.face-box.suggested{border-style:dashed;border-color:#f2cb73}.face-box.unknown{border-color:#fff8}.detail-sidebar{direction:rtl;padding:25px 20px;background:#fff;overflow:auto;max-height:76vh}.detail-sidebar h2{font-size:14px;margin:0 0 22px;font-weight:500}.detail-sidebar h3{font-size:12px;margin:25px 0 8px;font-weight:500}dl{margin:0}dt{color:#97a18e;font-size:10px;margin-top:17px}dd{margin:7px 0 0;font-size:11px;line-height:1.9;overflow-wrap:anywhere}.hint{font-size:10px;line-height:2;color:#9ba48f}.face-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #edf0e8}.face-row>button:first-child{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:0;background:transparent;text-align:right;color:var(--ink)}.face-row img{width:43px;height:43px;object-fit:cover;border-radius:10px;flex-shrink:0}.face-row b{display:block;font-size:10px;font-weight:500}.face-row small{display:block;color:#96a388;font-size:9px;margin-top:7px}.face-row.suggested small{color:#b58b3f}.face-row>.icon-button{font-size:18px;width:25px}.download-link{font-size:10px;width:100%;margin-top:25px}.small-dialog{width:min(420px,92vw);padding:32px;background:#fff;text-align:center}.dialog-close{position:absolute;top:10px;left:10px}.small-dialog>img{height:90px;width:90px;border-radius:50%;object-fit:cover;margin:5px 0 10px}.small-dialog h2{font-weight:500;font-size:19px;margin:10px 0 12px}.small-dialog>p{font-size:11px;color:#8a9780;line-height:2.1}.small-dialog form{margin-top:23px;text-align:right}.small-dialog label{font-size:10px;color:#7c8b70;display:block;margin-bottom:8px}.small-dialog input,.small-dialog select{width:100%;height:42px;border:1px solid #dce4d3;border-radius:9px;padding:0 11px;background:#fff;color:#4e6340;font-size:12px}.small-dialog .primary{width:100%;font-size:11px;margin-top:12px}.small-dialog>.danger{margin-top:13px;font-size:10px}.or{text-align:center;color:#a4ad9b;font-size:9px;margin:14px 0}.form-error{color:#ae6758;font-size:10px;line-height:1.8;margin:8px 0 0}.help-dialog{text-align:right}.help-dialog ol{padding-right:20px;font-size:11px;line-height:2.2;color:#68765b}.help-dialog li{margin-bottom:13px}.toast{position:fixed;bottom:25px;left:25px;padding:15px 23px;background:#203e36;color:white;box-shadow:0 5px 25px #0002;border-radius:12px;z-index:10;font-size:11px;max-width:85vw;line-height:1.9}
.photo-open{display:block;width:100%;border:0;background:none;padding:0;cursor:pointer}
.photo-media{position:relative;overflow:hidden;width:100%}
.gallery-face-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.gallery-face-overlay rect{fill:#203e3614;stroke:#e7f6a8;stroke-width:3;vector-effect:non-scaling-stroke}
.card-title{padding:0;border:0;background:transparent;width:100%;cursor:pointer;color:inherit}
.person-chip.face-tag{position:relative;display:inline-flex;align-items:center;gap:0;padding:0;font-size:10px;max-width:100%}
.face-tag-name{padding:3px 8px;min-height:26px;background:transparent;color:inherit;font-size:inherit;line-height:1.8;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border-radius:5px}
.face-tag-mark,.face-tag-reject{background:transparent;color:inherit;font-family:'Segoe UI',sans-serif;font-size:13px;padding:3px 5px;min-width:23px;min-height:26px;border-radius:5px}
.face-tag-reject{display:none;color:#ad5f4b;border-right:1px solid #e3d1ba}
.face-tag.is-pinned .face-tag-reject{display:inline-block}
.face-tag.is-preview{box-shadow:0 0 0 2px #9bb48380}
.face-tag-mark:hover{background:#bed7a870;color:#335a24}
.face-tag-reject:hover{background:#f6ddd3}
.person-chip.automatic{background:#eaf5ef;border-color:#9fc9b5;color:#397d61}
.face-review-popover{position:fixed;inset:auto;margin:0;width:240px;max-width:calc(100vw - 24px);padding:19px 17px 11px;border:1px solid #cdd9c3;border-radius:16px;background:#fff;box-shadow:0 12px 45px #17332035;text-align:center;color:var(--ink);overflow:visible;z-index:5}
.face-review-popover:popover-open{display:flex;flex-direction:column;align-items:center}
.face-review-popover:not([popover]){display:flex;flex-direction:column;align-items:center}
.face-review-close{position:absolute;left:4px;top:4px;font-size:21px;width:29px;height:29px}
.face-review-popover>img{width:116px;height:116px;object-fit:cover;border-radius:13px;background:#eff2e8;margin:3px 0 13px}
.face-review-popover>b{font-size:13px;font-weight:500}
.face-review-popover>small{font-size:9px;color:#98a18f;margin:8px 0 12px}
.face-review-actions{display:flex;gap:7px;width:100%}
.face-review-actions>button{flex:1;font-size:10px;min-height:35px;border-radius:8px;background:#eaf2e2;color:#52703f;line-height:1.6;padding:6px}
.face-review-actions>button+button{background:#fbf0e9;color:#a27257}
.face-review-popover>.text-button{font-size:9px;margin-top:5px}
.auto-match-button{margin-right:auto;margin-left:16px;background:#fff;border:1px solid #dde5d5;border-radius:20px;padding:7px 12px;font-size:9px;color:#8a9580}
.auto-match-button[aria-pressed=true]{background:#e9f1e2;color:#52763d;border-color:#b8cda6}
@media(min-width:1500px){main{padding:0 65px}.gallery{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.photo-cover{height:250px}.empty-state{padding-top:40px}}@media(max-width:1100px){.sidebar{width:205px;padding:30px 15px}main{margin-right:205px;padding:0 26px}.toolbar{gap:7px}.stats>div{padding:17px 15px}.stats small{font-size:8px}.import-panel{padding:20px;gap:13px}.import-copy p{max-width:290px}.detail-layout{grid-template-columns:minmax(0,1fr) 250px}}@media(max-width:760px){.sidebar{position:static;width:auto;flex-direction:row;padding:15px 18px;align-items:center;gap:15px;border:0;border-bottom:1px solid var(--line);flex-wrap:wrap}.brand{margin:0;gap:8px}.brand-icon{width:35px;height:35px;font-size:29px}.brand b{font-size:18px}.brand small{display:none}.import-button{width:auto;margin-right:auto;min-height:35px;font-size:10px}.sidebar nav{display:flex;width:100%;gap:2px}.nav-item{padding:9px 10px;font-size:10px;gap:6px;justify-content:center}.nav-icon{font-size:17px;width:17px}.nav-item small{display:none}.nav-label,.sidebar-bottom{display:none}main{margin:0;padding:0 18px}.topbar{height:48px}.page-heading{padding:24px 0}.page-heading h1{font-size:26px}.stats{grid-template-columns:1fr 1fr}.stats>div{padding:16px 19px}.stats>div:nth-child(3),.stats>div:nth-child(4){border-top:1px solid var(--line)}.stats>div:nth-child(3):before{display:none}.stats strong{font-size:27px}.import-panel{flex-wrap:wrap}.import-copy{flex:1}.import-copy h2{font-size:12px}.import-mark{width:40px;height:40px}.import-copy p{font-size:9px}.import-actions{flex-direction:row;width:100%;justify-content:center;gap:15px;margin-top:6px}.search{flex-basis:100%}.toolbar select{flex:1}.date-label{flex:1}.date-label input{width:100%;font-size:9px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.photo-cover{height:190px}.card-meta{flex-direction:column;gap:2px}.card-body{padding:9px}.steps{flex-direction:column;gap:12px;margin-top:28px}.people-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.person-card{padding:18px 12px}.person-card img{width:70px;height:70px}footer{flex-direction:column;gap:7px}.detail-layout{display:flex;flex-direction:column}.detail-stage{min-height:220px;padding:15px}.image-wrapper>img{max-height:50vh}.detail-sidebar{max-height:none;padding:23px}.photo-dialog{max-height:94vh;overflow:auto}.detail-top{position:sticky;top:0;z-index:2;background:#fff}.person-actions{align-items:flex-start;flex-direction:column;gap:8px}.places-grid{grid-template-columns:1fr 1fr;gap:12px}.place-card{min-height:190px}.place-card b{font-size:13px}.small-dialog{padding:28px}.empty-state h2{font-size:16px}.auto-match-button{margin-left:8px;font-size:8px;padding:6px 8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.photo-card{position:relative}
.photo-rescan:disabled{cursor:wait}
.check-icon{display:inline-block;width:22px;height:15px;vertical-align:middle;flex-shrink:0}
.check-icon path{fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.face-tag-mark{position:absolute;right:0;bottom:3px;display:inline-flex;align-items:center;justify-content:center;width:14px;height:10px;min-width:0;min-height:0;padding:0;border-radius:2px;font-size:9px;line-height:1}.face-tag-mark .check-icon{width:11px;height:7px;pointer-events:none}
.person-chip.confirmed{background:#d5eedb;border-color:#99c5a5;color:#17643b}
.person-chip.automatic{background:#f0f7ed;border-color:#d6e5ce;color:#5b7951}
.face-row.confirmed b{color:#17643b}.face-row.automatic b{color:#5b7951}
.face-row b .check-icon{margin-inline-start:5px}
.face-box.confirmed{border-color:#298452}.face-box.automatic{border-color:#b4d2a1}
.rescan-button{width:100%;margin-top:20px;font-size:10px}
.learning-panel{display:flex;align-items:center;gap:22px;justify-content:space-between;border:1px solid #dbe5d2;background:#f0f4e9;border-radius:13px;padding:16px 21px;margin:0 0 22px}
.learning-panel b{font-size:12px;font-weight:500;color:#416a3a}.learning-panel p{font-size:10px;color:#7d8e70;line-height:1.9;margin:6px 0 0}.learning-panel .secondary{white-space:nowrap;font-size:10px}
.learning-dialog{width:min(740px,94vw);padding:30px;background:#fff;overflow:auto}
.learning-dialog h2{font-size:21px;font-weight:500;margin:12px 0 20px}.learning-dialog .eyebrow{font-size:10px}
.learning-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:23px 0}
.learning-counts>div{padding:16px 13px;background:#f5f7f0;border-radius:11px;display:flex;flex-direction:column;gap:10px}.learning-counts b{font-size:10px;font-weight:500;color:#728163}.learning-counts strong{font-size:19px;font-weight:500;color:#416a3a}.learning-counts small{font-size:9px;color:#8c9881}
.learning-table{width:100%;border-collapse:collapse;font-size:11px;line-height:1.9}.learning-table th{font-weight:500;color:#879578;font-size:10px}.learning-table td,.learning-table th{padding:12px 8px;text-align:right;border-bottom:1px solid #e5ebdd}.learning-table td:last-child{font-size:10px}
.learning-actions{display:flex;align-items:center;gap:18px;margin-top:20px;font-size:10px}.learning-actions button,.learning-actions a{font-size:10px}

@media(max-width:760px){.learning-panel{padding:14px;gap:12px}.learning-dialog{padding:27px 17px}.learning-counts{gap:6px}.learning-counts>div{padding:12px 8px}.learning-counts strong{font-size:16px}.learning-counts small{line-height:1.8}.learning-table td,.learning-table th{padding:9px 4px;font-size:9px}.learning-actions{gap:10px}}

.label-only-submit{width:100%;margin-top:9px;font-size:10px}.face-review-popover>#face-review-label-only{font-size:9px;line-height:1.8;margin-top:9px;min-height:30px;color:#7d7156}.face-review-popover>button:disabled{cursor:default;opacity:.7}

.learning-panel .quality-summary{font-size:9px;color:#8b795c}.small-dialog>#name-quality{font-size:10px;line-height:1.9;text-align:start;margin:13px 0}.face-review-popover>small{line-height:1.8}.quality-summary:empty{display:none}

.photo-card{line-height:0;align-self:start}.photo-media{isolation:isolate}.photo-open{line-height:0}.photo-cover{display:block}
.photo-info,.photo-delete,.photo-restore{position:absolute;z-index:1;width:34px;height:34px;display:flex;align-items:center;justify-content:center;padding:4px;border:0;border-radius:50%;color:white}
.photo-info{right:9px;bottom:9px;background:transparent;filter:drop-shadow(0 1px 2px #0009)}
.photo-info svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.photo-info:hover{background:#ffffff18}.photo-delete,.photo-restore{right:9px;top:9px;background:#17251f59;font:25px/1 'Segoe UI',sans-serif}
.photo-delete{opacity:0;transition:opacity .12s}.photo-card:hover .photo-delete,.photo-card:focus-within .photo-delete{opacity:1}
.photo-delete:hover{background:#824538bd}.photo-info:focus-visible,.photo-delete:focus-visible,.photo-restore:focus-visible{outline:2px solid white;outline-offset:2px}
.detail-photo-action{width:100%;margin-top:15px;font-size:11px}.toast-undo{margin-inline-start:15px;padding:4px;background:none;color:#d3edbb;text-decoration:underline;font:inherit}
.face-row>button:disabled{cursor:default}.face-box:disabled{pointer-events:none}
.metadata-numeric{direction:ltr;unicode-bidi:isolate}html[dir=rtl] .metadata-numeric{text-align:right}
@media(hover:none){.photo-delete{opacity:1}}

.photo-card .photo-selection{left:9px;right:auto;top:9px;z-index:2}


/* Optional inline information; the image-only gallery remains the default. */
.gallery-information{display:none;line-height:1.7}
.gallery.show-information .gallery-information{display:block}
.gallery-information .card-title{text-align:start;direction:inherit;line-height:1.8}
.gallery-information .card-meta{align-items:flex-start}
.gallery-information .card-meta>span{min-width:0;overflow-wrap:anywhere}
.gallery-information .card-meta>span[dir=ltr]{unicode-bidi:isolate}
.gallery-information .card-people:empty{display:none}
.gallery-information-toggle{white-space:nowrap}
.selection-buttons .gallery-information-toggle{gap:6px}
.gallery-information-toggle[aria-checked=true]{background:#e6f0e3;border-color:#abc5a0;color:#315a3d}
.information-switch{position:relative;display:inline-block;width:27px;height:16px;border-radius:10px;background:#b2bab0;direction:ltr;flex-shrink:0;transition:background .15s}
.information-switch:after{content:'';position:absolute;left:3px;top:3px;width:10px;height:10px;border-radius:50%;background:white;transition:transform .15s}
[aria-checked=true]>.information-switch{background:#43835a}
[aria-checked=true]>.information-switch:after{transform:translateX(11px)}
.gallery-information-toggle>span:last-child{font-size:9px;opacity:.8}


/* One permanent action row below each photo, independent of metadata visibility. */
.photo-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:2px;padding:4px 6px;line-height:1;border-top:1px solid var(--line);background:#fff}
.photo-controls .photo-selection,.photo-controls button{position:static;inset:auto;display:flex;align-items:center;justify-content:center;width:auto;min-width:0;min-height:36px;height:36px;padding:5px;border:0;border-radius:7px;background:transparent;color:#64786c;box-shadow:none;filter:none;opacity:1;z-index:auto;line-height:1;transition:background .15s,color .15s}
.photo-controls .photo-select{width:19px;height:19px;margin:0}
.photo-controls .photo-info svg{width:20px;height:20px}
.photo-controls .photo-delete,.photo-controls .photo-tag-button,.photo-controls .photo-restore{font:24px/1 'Segoe UI',sans-serif}
.photo-controls .photo-selection:hover,.photo-controls button:hover{background:#edf3e9;color:#244d40}
.photo-controls .photo-delete:hover{background:#fbede8;color:#9b4d3c}
.photo-controls .photo-info:focus-visible,.photo-controls .photo-delete:focus-visible,.photo-controls .photo-restore:focus-visible,.photo-controls .photo-tag-button:focus-visible{outline:2px solid #719861;outline-offset:-2px}
.photo-controls button:disabled,.photo-controls .photo-select:disabled{opacity:.45;cursor:default}
.photo-controls:has(.photo-restore){grid-template-columns:repeat(2,minmax(0,1fr))}
.photo-controls+.gallery-information{border-top:1px solid var(--line)}
.photo-controls+.gallery-information .card-meta{margin-top:7px}
