/* /forest/style.css */
@layer legacy{:root{--forest:var(--lmf-green);--green:var(--lmf-green);--ink:var(--v31-text);--muted:var(--v31-text-2);--line:var(--v31-line);--paper:var(--v31-bg);--amber:#8f5718;--white:#fff;--mint:var(--lmf-tint)}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.5 "Segoe UI",Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:9px 14px;background:#fff;color:var(--ink);font-weight:620}button:hover{background:#f5f4ef;border-color:#8d968f}button:disabled{opacity:.5;cursor:wait}button.quiet{background:none;border:0;padding:5px 0;color:inherit;text-align:left;font-weight:400}button.small{font-size:12px;padding:5px 9px}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1px;line-height:1.2;font-weight:620;margin-bottom:10px}h2{font-size:22px;letter-spacing:-.5px}h3{font-size:16px;font-weight:620;margin-bottom:12px}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:var(--ui-fs-micro);letter-spacing:1.8px;font-weight:700;color:var(--green);margin-bottom:12px}.login-shell{display:grid;grid-template-columns:1.12fr 1fr;min-height:100vh}.login-story{position:relative;overflow:hidden;padding:55px 65px;background:#2f4739;color:#f6f5f0}.login-story .eyebrow{color:#c9d6cc;margin-top:120px}.login-story h1{font-size:51px;letter-spacing:-2px}.login-story p{color:#d2ddd4}.login-story footer{position:absolute;bottom:35px;font-size:12px;opacity:.7}.login-card{align-self:center;justify-self:center;max-width:430px;padding:45px;width:100%}.login-card button{width:100%;margin-top:14px}label{display:block;font-size:12px;font-weight:620;color:#525b56;margin-bottom:14px}input,select,textarea{display:block;width:100%;margin-top:6px;padding:10px 11px;border:1px solid #c4c7bf;background:#fff;border-radius:8px;color:var(--ink);font-weight:400}input[type=checkbox]{width:auto;display:inline-block;margin:0 8px 0 0}textarea{min-height:85px;resize:vertical}.error{color:#a33832;font-size:13px}.sidebar{position:fixed;left:0;top:0;bottom:0;width:224px;padding:31px 22px;background:#2f4739;color:#f6f5f0;display:flex;flex-direction:column}.sidebar nav{display:grid;gap:7px}.sidebar nav a{display:flex;align-items:center;gap:12px;color:#dce4dd;padding:12px 10px;border-radius:8px;font-size:13px}.sidebar nav a span{font-size:18px;width:22px;text-align:center}.sidebar nav a.active{background:#3c5a49;color:#fff}.sidebar nav a:hover{background:#365242;text-decoration:none}main{margin-left:224px}.topbar{height:73px;border-bottom:1px solid var(--line);padding:0 38px;display:flex;justify-content:space-between;align-items:center;background:#fcfcf8;font-size:var(--ui-fs-micro);letter-spacing:1.3px;color:#656e69}.topbar>div{display:flex;align-items:center;gap:22px}.slash{margin:0 12px;opacity:.4}#content{padding:32px 38px 60px;max-width:1800px;margin:auto}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.page-heading p{margin-bottom:0;font-size:14px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:24px}.stat{padding:22px 24px;border:1px solid var(--line);background:#fff;border-radius:12px}.stat .number{font-size:36px;font-weight:400;letter-spacing:-1px;display:block}.stat .label{font-size:12px;color:var(--muted)}.stat .foot{font-size:var(--ui-fs-micro);margin-top:15px;color:#656e69}.grid-two{display:grid;grid-template-columns:1.15fr 1fr;gap:22px}.card-body{padding:24px}.card-header{padding:18px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ecebe4;gap:10px}.card-header h3{margin:0}.card-header a{font-size:12px}.empty{padding:35px 24px;text-align:center;color:#656e69;font-size:13px}.empty strong{display:block;color:var(--ink);margin-bottom:8px;font-size:14px}.callout{background:#f1f0ea;border:1px solid #e0dfd7;border-radius:8px;padding:14px 18px;font-size:12px;color:#525b56;margin-bottom:20px}.callout.amber{background:#fbf6ee;border-color:#e4d1b1;color:#6e410d}.callout b{font-weight:620}.quality-row,.list-row{display:flex;gap:16px;align-items:center;padding:15px 24px;border-bottom:1px solid #ecebe4}.quality-row:last-child,.list-row:last-child{border:0}.quality-row .num{background:#eeede6;border-radius:6px;min-width:39px;height:35px;display:grid;place-items:center;font-weight:620}.quality-row p{font-size:13px;margin:0}.quality-row small{color:#656e69;font-size:var(--ui-fs-micro)}.list-row .grow{flex:1;min-width:0}.list-row h4{font-size:13px;margin:0 0 3px}.list-row .muted{font-size:12px}.badge{font-size:var(--ui-fs-micro);letter-spacing:0;display:inline-block;background:#eeede6;color:#333e40;padding:3px 8px;border-radius:999px;white-space:nowrap}.badge.amber{background:#f5e7d0;color:#6e410d}.badge.gray{background:#eeede6;color:#525b56}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:17px;flex-wrap:wrap}.toolbar input{margin:0;max-width:340px;flex:1;min-width:170px}.toolbar select{margin:0;width:auto;max-width:240px}.toolbar .count{margin-left:auto;font-size:12px;color:var(--muted)}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:12px;font-weight:620;text-transform:none;letter-spacing:0;color:#525b56;background:#f1f0ea;padding:11px 14px;border-bottom:1px solid var(--line)}td{padding:11px 14px;border-bottom:1px solid #ecebe4;font-size:13px;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#faf9f6}td .name{font-size:13px;font-weight:620;display:block;color:var(--ink)}td small{color:var(--muted);display:block;margin-top:3px;font-size:var(--ui-fs-micro)}.tasks-tabs{display:flex;gap:10px;margin-bottom:18px}.tasks-tabs button.selected{background:#e2ede5;border-color:#cce0d2}.check-task{border:1px solid #c4c7bf;background:#fff;color:var(--green);border-radius:50%;padding:0;width:28px;height:28px;min-width:28px}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;width:min(740px,92vw);max-height:90vh;color:var(--ink);box-shadow:0 16px 36px -8px rgba(28,36,32,.20),0 4px 12px -2px rgba(28,36,32,.08)}dialog .close-dialog{position:absolute;top:13px;right:13px;border:0;background:transparent;border-radius:8px;padding:0;width:36px;height:36px;font-size:18px;z-index:1}dialog h2{padding-right:36px}dialog h3{margin-top:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-grid .full{grid-column:1/-1}.detail-links{display:grid;gap:10px;margin:15px 0}.linked-card{border:1px solid var(--line);padding:14px;border-radius:8px}.linked-card p{font-size:12px;margin-bottom:7px}.note{border-left:2px solid #d5d4cc;padding:8px 14px;margin:13px 0;font-size:13px;white-space:pre-wrap}.note small{display:block;color:#656e69;white-space:normal;margin-top:8px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#1c2420;color:#fff;padding:12px 23px;border-radius:12px;font-size:13px;box-shadow:0 12px 28px -6px rgba(28,36,32,.24);z-index:2000}#toast.error-toast{background:#5d2622}.stop{border:1px solid var(--line);border-radius:8px;padding:11px 12px;margin-top:10px;background:#faf9f6}.stop .number{width:24px;height:24px;min-width:24px;background:#e2ede5;color:#24543d;display:grid;place-items:center;border-radius:50%;font-size:var(--ui-fs-micro);font-weight:700}.stop label{font-size:var(--ui-fs-micro);margin:7px 0 0}.stop input{font-size:var(--ui-fs-micro);padding:6px;margin-top:4px}.stop .row{display:flex;gap:8px}.stop .row>label{flex:1;min-width:0}#map{height:680px;flex:1;min-height:540px;background:#eeede6}.search-results{background:white;box-shadow:0 8px 20px rgba(28,36,32,.14);border-radius:8px;max-height:280px;overflow:auto;margin-top:5px}.search-results button{display:block;width:100%;text-align:left;border:0;border-radius:0;font-size:12px}.leaflet-control-attribution{font-size:var(--ui-fs-micro)!important;background:#ffffffcf!important}.readiness{font-size:var(--ui-fs-micro);padding:9px 0;color:#7a4d00}details>summary{cursor:pointer;font-weight:620;padding:13px 18px;font-size:12px}.legend{position:absolute;bottom:50px;left:15px;z-index:500;background:#fffef5e8;padding:8px 11px;border-radius:6px;font-size:var(--ui-fs-micro);color:#525b56;pointer-events:none}.legend i{display:inline-block;width:12px;height:9px;background:#7ba05d44;border:1px solid #79996d;margin-right:5px}.page-loading{padding:80px 30px;text-align:center;color:var(--muted)}.code{font-family:Consolas,monospace;font-size:var(--ui-fs-micro)}.stack{display:grid;gap:20px}.spaced{margin-top:24px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--ui-fs-micro);background:#f1f0ea;padding:15px;border-radius:8px}@media(min-width:1500px){#map{height:740px}}@media(max-width:1100px){.sidebar{width:190px;padding:25px 14px}main{margin-left:190px}#content{padding:26px 24px}.stats{gap:10px}.stat{padding:18px}.grid-two{grid-template-columns:1fr}}@media(max-width:800px){.sidebar{position:static;width:100%;padding:14px}.sidebar nav{display:flex;overflow:auto;gap:5px}.sidebar nav a{white-space:nowrap;padding:8px}.sidebar nav a span{display:none}main{margin:0}.topbar{height:48px}.stats{grid-template-columns:repeat(2,1fr)}#content{padding:20px 14px}.page-heading{display:block}.page-heading .actions{margin-top:15px}#map{height:480px;min-height:480px}.login-shell{display:block}.login-story{padding:35px;min-height:270px}.login-story .eyebrow{margin-top:30px}.login-story h1{font-size:35px}.login-story footer{display:none}.login-card{margin:auto}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}}@media print{body{background:white;font-size:11px}.sidebar,.topbar,.page-heading .actions,.legend,.toolbar,.leaflet-control,dialog,#toast{display:none!important}main{margin:0}#map{height:340px!important;min-height:340px!important}th,td{padding:8px}.page-heading{margin-bottom:15px}.page-heading p{font-size:11px}.print-note{display:block!important}}[hidden]{display:none!important}
@media print{.page-heading{display:none!important}td small{font-size:9px}}
.language-control{display:flex;align-items:center;gap:9px;margin:0;font-size:var(--ui-fs-micro);letter-spacing:.5px;white-space:nowrap}.language-control select{font-size:13px;letter-spacing:0;min-width:115px;width:auto;margin:0;padding:6px 8px}.login-language{justify-content:flex-end;margin-bottom:32px}.topbar .header-language{margin:0}.language-control span{color:#656e69}@media(max-width:800px){.topbar{padding:0 14px}.topbar>span{font-size:var(--ui-fs-micro);letter-spacing:.3px}.topbar>div{gap:8px}.language-control select{min-width:102px;font-size:12px}.header-language span{display:none}}@media print{.language-control{display:none!important}}
body[data-language-updating="true"] #content,body[data-language-updating="true"] dialog{pointer-events:none}
}

/* /forest/workspace.css */
@layer legacy{:root{--forest:var(--lmf-green);--green:var(--lmf-green);--ink:var(--v31-text);--muted:var(--v31-text-2);--line:var(--v31-line);--paper:var(--v31-bg);--mint:var(--lmf-tint);--nav:216px;color-scheme:light}
body{font:14px/1.5 "Segoe UI",sans-serif;background:var(--paper);color:var(--ink)}*{scrollbar-width:thin;scrollbar-color:#aab9ab transparent}::selection{background:#cee3ce;color:#153522}input,textarea{caret-color:var(--forest)}button,a,input,select,textarea,summary{outline-offset:3px}:focus-visible{outline:2px solid var(--lmf-focus)}button,input,select,textarea{font-size:14px}button{min-height:42px;border-radius:8px;padding:9px 15px;transition:background .16s ease-out}button:disabled{cursor:not-allowed;opacity:.55}input,select{min-height:44px}label{font-size:14px;color:var(--ink);font-weight:400}textarea{min-height:100px}input[type=checkbox]{min-height:auto}h1{font-size:22px;font-weight:620;letter-spacing:-.025em}h2{font-size:22px;letter-spacing:-.02em}h3{font-size:16px}.small,small{font-size:13px}.eyebrow{display:none}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}.brand{display:block}.brand img{width:170px;height:95px;object-fit:contain}.login-shell{grid-template-columns:1fr 1fr;min-height:100dvh}.login-story{display:flex;align-items:center;justify-content:center;background:#e5ece1;padding:40px}.login-story .brand img{width:380px;height:auto;max-width:100%}.login-card{padding:36px;max-width:420px}.login-card h1{margin:20px 0 32px}.login-language{margin:0 0 48px}.sidebar{width:var(--nav);padding:20px;border-right:1px solid var(--line);background:#f0f3ee;color:var(--ink)}.sidebar .brand{margin:0 0 32px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px 14px;color:var(--muted);font-size:14px;font-weight:620;border-radius:8px}.sidebar nav a:hover{text-decoration:none;background:#e7ede4}.sidebar nav a.active{background:#dfeadd;color:#244e37}main{margin-left:var(--nav)}.topbar{height:76px;padding:0 36px;border-bottom:1px solid var(--line);background:var(--paper)}.topbar>span{font-size:14px;letter-spacing:0;font-weight:400}.topbar>div{display:flex;align-items:center;gap:20px}#today-date{font-size:14px;color:var(--muted)}.language-control select{font-size:14px;min-height:40px;min-width:110px;background:transparent}.page-heading{margin:0 0 28px;align-items:center;gap:16px}.page-heading h1{margin:0}.page-heading p{display:none}#content{padding:34px 36px;max-width:1800px;margin:0 auto}.actions{gap:8px;flex-wrap:wrap}.actions button{display:inline-flex;align-items:center;gap:7px}.panel{background:white;border:1px solid var(--line);border-radius:12px;box-shadow:none;overflow:hidden}.panel-heading,.card-header{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-heading h2,.panel-heading h3{margin:0}.panel-body{padding:24px}.badge{display:inline-flex;align-items:center;background:var(--mint);color:#244c34;border-radius:5px;font-size:12px;padding:5px 8px;white-space:nowrap}.badge.gray{background:#f0f2ee;color:#546056}.badge.amber{background:#fff1d6;color:#815000}.overdue{color:#a33832}.code{font-variant-numeric:tabular-nums;font-family:inherit;letter-spacing:.025em}.empty{padding:38px 24px;text-align:center;color:var(--muted)}.empty strong{display:block;font-size:16px;color:var(--ink);font-weight:620;margin-bottom:12px}.data-error{padding:16px;border:1px solid #ead1cb;background:#fff5f1;color:#842e28;border-radius:8px}
.today-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:24px}.day-heading{display:flex;align-items:baseline;gap:14px;margin-bottom:28px}.day-heading h1{margin:0}.day-heading span{color:var(--muted);font-size:14px}.task-item{display:flex;align-items:center;gap:16px;padding:18px 24px;border-bottom:1px solid #e7ece4}.task-item:last-child{border:0}.task-item .grow{min-width:0}.task-meta{display:flex;gap:8px;margin-top:5px;font-size:13px;color:var(--muted);flex-wrap:wrap}.check-task{width:26px;height:26px;min-height:26px;border:1.5px solid #a4b39f;border-radius:50%;padding:4px;flex:none}.check-task .icon{width:16px;height:16px}.task-due{font-size:13px;white-space:nowrap}.quiet-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-bottom:1px solid #e7ece4}.quiet-row:last-child{border:0}.count{font:var(--ui-t-meta);color:var(--muted)}.searchbox{position:relative;flex:1;min-width:200px}.searchbox .icon{position:absolute;left:14px;top:13px;color:var(--muted)}.searchbox input{padding-left:43px;margin:0}.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:20px;flex-wrap:wrap}.toolbar select,.toolbar input{margin:0;width:auto}.segmented{display:inline-flex;border:1px solid var(--line);border-radius:8px;background:white;overflow:hidden}.segmented button{border:0;border-radius:0;min-height:42px;font-weight:400}.segmented button.selected{background:var(--mint)}.filter-drawer{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:14px;background:white;border:1px solid var(--line);padding:20px;border-radius:10px;margin-bottom:20px}.filter-drawer label{margin:0}.map-workspace{display:grid;grid-template-columns:350px minmax(0,1fr);height:calc(100dvh - 255px);min-height:450px;max-height:850px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white}.land-results{overflow-y:auto;border-right:1px solid var(--line)}.land-row{width:100%;display:block;border:0;border-bottom:1px solid #e7ece4;border-radius:0;padding:18px 20px;text-align:left;font-weight:400}.land-row:hover{background:#f3f6ef}.land-row.selected{background:#e6eee2}.land-row strong{display:block;color:var(--ink);font-weight:620;font-size:16px;margin-bottom:4px}.land-line{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted)}.land-numbers{display:flex;gap:18px;font-size:14px;color:var(--ink);margin-top:12px;font-variant-numeric:tabular-nums}.map-area{position:relative;min-width:0}#catalogue-map{height:100%;background:#e7eddf}.map-toggle-mobile{display:none}.table-wrap{overflow:auto}.catalogue-table{width:100%;font-size:14px}.catalogue-table th{background:#f5f7f2;font-size:12px;text-transform:none;font-weight:620;white-space:nowrap}.catalogue-table td{padding:16px 18px;vertical-align:middle}.catalogue-table small{display:block;margin-top:3px;color:var(--muted)}.catalogue-table tr:hover{background:#f6f8f3}.catalogue-table td:first-child{min-width:180px}.number-cell{text-align:right;font-variant-numeric:tabular-nums}.pagination{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;gap:10px;border-top:1px solid var(--line)}
dialog{border:1px solid var(--line);border-radius:14px;max-height:92dvh;padding:30px;width:min(720px,calc(100% - 32px));color:var(--ink);box-shadow:0 20px 60px #11211630}dialog::backdrop{background:#1f352b65}dialog .close-dialog{position:absolute;right:14px;top:14px;border:0;background:white;z-index:2}#detail-dialog.parcel-overview{width:min(1180px,calc(100% - 40px));padding:0}.parcel-title{padding:30px 66px 20px 28px}.parcel-title h2{margin:0 0 8px}.parcel-subline{display:flex;align-items:center;gap:14px;color:var(--muted);flex-wrap:wrap;font-size:14px}.detail-tabs{display:flex;gap:24px;padding:0 28px;border-bottom:1px solid var(--line);overflow:auto}.detail-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:12px 0;white-space:nowrap;background:transparent;color:var(--muted);font-weight:400}.detail-tabs button.selected{color:var(--forest);border-bottom-color:var(--forest)}.parcel-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.7fr);min-height:420px}.parcel-main{padding:28px}.parcel-aside{border-left:1px solid var(--line);padding:24px;background:#f6f8f3}.parcel-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding-bottom:24px;border-bottom:1px solid var(--line)}.parcel-stats dt{font-size:13px;color:var(--muted);margin-bottom:7px}.parcel-stats dd{margin:0;font-size:22px;line-height:1.2;font-weight:620;font-variant-numeric:tabular-nums}.parcel-stats dd span{font-size:14px;font-weight:400}.detail-map{height:270px;border-radius:8px;margin-top:24px;background:#e7eddf}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.property-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.property-facts dt{font-size:13px;color:var(--muted)}.property-facts dd{margin:4px 0 0;font-weight:400}.note{padding:16px 0;border-bottom:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere}.note small{display:block;margin-top:8px;color:var(--muted)}.source-note{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f6ef;padding:16px;border-radius:8px}.detail-source{margin-top:24px;color:var(--muted);font-size:13px}.sale-state{padding:12px 14px;background:#fff1d6;color:#815000;border-radius:7px;margin-bottom:18px;font-size:14px}.form-grid{gap:16px}.form-grid label{margin-bottom:0}.full{grid-column:1/-1}.contact-summary{display:flex;gap:12px;margin:20px 0;flex-wrap:wrap}.contact-summary a{display:inline-flex;gap:8px;align-items:center;border:1px solid var(--line);padding:10px 14px;border-radius:8px}.list-link{display:block;padding:12px 0;border-bottom:1px solid var(--line)}.note-form textarea{margin:0}.note-form .actions{margin-top:10px;justify-content:space-between}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white}.week-day{padding:15px 10px;min-height:360px;border-right:1px solid var(--line)}.week-day:last-child{border:0}.week-day h3{font-size:13px;color:var(--muted);margin-bottom:20px}.week-day h3 b{font-size:22px;display:block;color:var(--ink);margin-top:4px}.week-day.current{background:#f0f5eb}.calendar-task{border:1px solid var(--line);padding:9px;border-radius:7px;margin-bottom:8px;width:100%;font-size:13px;text-align:left;background:white;font-weight:400}.calendar-task small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.sms-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.sms-preview{background:#edf1eb;padding:28px;border-radius:12px;min-height:250px}.sms-bubble{background:white;border:1px solid var(--line);border-radius:12px;padding:18px;white-space:pre-wrap;overflow-wrap:anywhere;margin:20px 0}.recipient-list{max-height:250px;overflow:auto}.recipient-list label{padding:10px 0;border-bottom:1px solid var(--line);font-weight:400;margin:0;display:flex;align-items:center;gap:10px}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:var(--ui-fs-micro)}.lmf-dot{width:10px;height:10px;background:#285c43;border:2px solid white;border-radius:50%}.inline-error{color:#a33832;margin:12px 0}
@media(max-width:1100px){:root{--nav:184px}.sidebar{padding:20px 12px}.brand img{width:150px}.sidebar nav a{padding:12px 10px;gap:9px}#content{padding:28px 24px}.topbar{padding:0 24px}.map-workspace{grid-template-columns:290px minmax(0,1fr)}.filter-drawer{grid-template-columns:repeat(3,1fr)}.today-layout{grid-template-columns:1fr}.week-grid{overflow:auto;grid-template-columns:repeat(7,minmax(125px,1fr))}}
@media(max-width:800px){:root{--nav:0px}.sidebar{position:fixed;top:auto;bottom:0;left:0;width:100%;height:auto;border-right:0;border-top:1px solid var(--line);padding:0 8px max(4px,env(safe-area-inset-bottom));z-index:1100;background:white}.sidebar .brand{display:none}.sidebar nav{flex-direction:row;justify-content:space-around;gap:0}.sidebar nav a{flex:1;min-width:0;flex-direction:column;gap:4px;padding:10px 3px 8px;font-size:var(--ui-fs-micro);border-radius:0;line-height:1.2;text-align:center;min-height:62px}.sidebar nav a.active{background:transparent;color:var(--forest)}.sidebar nav a.active .icon{stroke-width:2.4}main{margin-left:0;padding-bottom:80px}.topbar{height:64px;padding:0 20px}.topbar>span{font-size:14px;color:var(--forest)}.topbar>div{gap:10px}#today-date{display:none}.language-control select{font-size:13px;min-width:95px}.page-heading{margin-bottom:22px}.page-heading h1{font-size:22px}#content{padding:26px 20px}.map-workspace{grid-template-columns:280px 1fr}.sms-layout{grid-template-columns:1fr}.parcel-layout{grid-template-columns:1fr}.parcel-aside{border-left:0;border-top:1px solid var(--line)}.parcel-main{padding:24px}.login-card{padding:32px}.filter-drawer{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.login-shell{display:flex;flex-direction:column;min-height:100dvh}.login-story{min-height:190px;padding:20px}.login-story .brand img{width:230px}.login-card{margin:auto;align-self:stretch;padding:28px;max-width:none}.login-language{margin:0 0 24px}.login-card h1{font-size:20px;margin:0 0 24px}.topbar{padding:0 16px}#content{padding:24px 16px}.page-heading{align-items:flex-start}.page-heading h1{font-size:20px}.page-heading .actions button{padding:9px 12px}.toolbar{gap:8px}.searchbox{min-width:calc(100% - 60px)}.toolbar .sort-select{flex:1}.map-toggle-mobile{display:inline-flex}.map-workspace{display:block;height:calc(100dvh - 310px);min-height:390px}.land-results{height:100%;border:0}.map-workspace .map-area{height:100%;display:none}.map-workspace.mobile-map .land-results{display:none}.map-workspace.mobile-map .map-area{display:block}.filter-drawer{padding:16px;gap:12px}.today-layout{gap:18px}.panel-heading,.card-header,.panel-body{padding:18px}.task-item{padding:17px 18px;gap:12px}.task-due{font-size:12px}.quiet-row{padding:16px 18px}.day-heading{display:block}.day-heading h1{margin-bottom:8px}dialog{width:calc(100% - 20px);max-height:94dvh;padding:24px 18px;border-radius:12px}#detail-dialog.parcel-overview{width:100%;max-height:100dvh;height:100dvh;border-radius:0;border:0}.parcel-title{padding:24px 54px 18px 20px}.parcel-subline{gap:8px;font-size:13px}.detail-tabs{gap:24px;padding:0 20px}.parcel-main,.parcel-aside{padding:22px 20px}.parcel-stats{gap:18px 12px}.parcel-stats dd{font-size:20px}.parcel-stats dt{font-size:12px}.detail-map{height:260px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.contact-summary{gap:8px}.week-grid{grid-template-columns:repeat(7,150px)}.segmented button{font-size:13px;padding:9px 12px}.pagination{padding:12px}.detail-actions button{flex:1;justify-content:center}.sms-preview{padding:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}@media print{.sidebar,.topbar,.map-controls{display:none!important}main{margin:0;padding:0}#content{padding:0}}
/* Integrated workspace details */
.workspace-link{display:flex;align-items:center;gap:14px;padding:22px 24px;color:var(--ink);border-top:1px solid var(--line)}.workspace-link span{display:flex;flex:1;justify-content:space-between;gap:12px}.workspace-link strong{font-variant-numeric:tabular-nums}.result-count{color:var(--muted);font-size:14px;margin:0 0 12px}.searchbox input{width:100%}.filter-footer{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.filter-footer input,.filter-footer select{width:auto;margin:0}.filter-checks{display:flex;flex-direction:column;justify-content:center;gap:12px}.filter-checks label,.checkbox{display:flex;align-items:center;gap:8px}.filter-checks input,.checkbox input{width:18px;height:18px;margin:0;flex:none}.sale-dot{width:8px;height:8px;background:#956217;border-radius:50%;margin-left:auto}.land-line{display:flex;align-items:center;gap:8px;min-width:0}.land-line strong{overflow-wrap:anywhere}.land-row{width:100%;text-align:left;display:block;border-radius:0}.land-row .land-line{margin:0 0 5px}.land-row .land-line:last-child{margin:10px 0 0}.land-numbers{display:flex;gap:15px;font-variant-numeric:tabular-nums}.map-area{min-width:0}.land-results{min-width:0}.detail-tabs{display:flex;overflow-x:auto;flex:none}.detail-tabs button{border:0;border-radius:0;white-space:nowrap;background:transparent}.detail-tabs button.active{box-shadow:inset 0 -2px var(--forest);font-weight:620;color:var(--forest)}.parcel-main,.parcel-aside{min-width:0}.parcel-stats dd{margin:4px 0 0;overflow-wrap:anywhere}.source-comment,.note-text{white-space:pre-wrap;overflow-wrap:anywhere}.source-comment{padding:18px;background:#f3f5f0;border-radius:8px}.detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 26px}.detail-actions button{display:inline-flex;gap:7px;align-items:center}.parcel-aside .task-item{padding:10px 0 22px;flex-wrap:wrap}.parcel-aside form{margin-top:24px}.parcel-aside .sale-state{margin-top:24px}.sale-state strong{display:block;margin-top:6px}.property-facts>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(100px,1.5fr);gap:14px;padding:9px 0;border-bottom:1px solid #e7ece4}.property-facts dt{color:var(--muted)}.property-facts dd{margin:0;overflow-wrap:anywhere}.list-link{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}.list-link>div{min-width:0}.note-form{display:grid;gap:8px;margin:20px 0}.note-form>button{justify-self:start}.note-meta{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted);margin-bottom:10px}.note{padding:18px 0;border-bottom:1px solid var(--line)}.contact-next{margin:26px 0}.contact-next .task-item{padding:16px 0}.contact-source{margin-top:28px}.contact-source button{margin-right:12px}.detail-source{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.detail-source span{color:var(--muted);font-size:14px}.source-list{margin-bottom:24px}.contact-summary a{display:inline-flex;align-items:center;gap:7px;overflow-wrap:anywhere}.week-scroll{overflow-x:auto}.week-day{padding:0 12px 20px;min-height:280px;border-right:1px solid var(--line)}.week-day header{padding:18px 0;font-weight:620;white-space:nowrap}.week-day.current{background:#e9f1e6}.calendar-task{display:block;width:100%;margin:0 0 10px;text-align:left;background:white;padding:12px;border:1px solid var(--line)}.calendar-task strong,.calendar-task span{display:block;overflow-wrap:anywhere}.calendar-task span{font-size:13px;margin-top:6px;color:var(--muted)}.recipient-list{max-height:230px;overflow:auto;border:1px solid var(--line);border-radius:8px;margin-bottom:20px}.recipient-list>label{display:flex;align-items:center;gap:12px;padding:12px 16px;margin:0;border-bottom:1px solid var(--line)}.recipient-list input{width:18px;height:18px;flex:none}.recipient-list small{display:block;color:var(--muted)}.sms-bubble{white-space:pre-wrap;overflow-wrap:anywhere}.check-task.is-done{background:var(--mint);color:var(--forest)}.table-wrap table{min-width:550px}.catalogue-table td{max-width:280px;overflow-wrap:anywhere}.close-dialog{z-index:1001}.leaflet-control-layers label{font-size:13px}.leaflet-control-layers input{min-height:0;width:auto;margin:0 4px 0 0}.leaflet-control-layers label{margin:0 0 5px}.leaflet-container{background:#e7ede4}.leaflet-control-attribution{max-width:92%;font-size:var(--ui-fs-micro);line-height:1.3}.leaflet-control-attribution a{overflow-wrap:anywhere}.panel h2{font-size:18px;letter-spacing:-.01em;margin:0}.empty{font-size:var(--type-working)}.task-meta{overflow-wrap:anywhere}.filter-drawer[hidden]{display:none}.contact-summary button{display:inline-flex;align-items:center;gap:7px}.page-heading .actions{justify-content:flex-end}
@media(max-width:1100px){.page-heading{flex-wrap:wrap}.today-layout{grid-template-columns:1fr 1fr}.panel-heading{gap:12px;flex-wrap:wrap}.panel-heading a{font-size:13px}.map-workspace{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:800px){.today-layout{grid-template-columns:1fr}.task-due{white-space:normal;text-align:right}.parcel-aside .task-due{text-align:left}.sidebar nav a .icon{width:21px;height:21px}.filter-footer input,.filter-footer select{flex:1;min-width:140px}}
@media(max-width:560px){.page-heading .actions{width:100%;justify-content:flex-start}.page-heading{gap:14px}.desktop-view{display:none}.toolbar .sort-select{max-width:calc(100% - 85px)}.land-numbers{font-size:15px}.detail-tabs{gap:6px}.detail-tabs button{padding:12px 10px}.parcel-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.list-link{align-items:flex-start;flex-wrap:wrap}.quiet-row{flex-wrap:wrap;padding-left:0;padding-right:0}.topbar>span{max-width:150px;line-height:1.25}.page-properties .page-heading .actions button{font-size:15px}.result-count{margin-bottom:8px}.parcel-main h3{margin-top:25px}.table-wrap table{font-size:15px}.detail-source{align-items:flex-start}.filter-footer{align-items:stretch}.map-workspace{min-height:430px}.check-task{width:32px;height:32px;min-height:32px}.task-item{align-items:flex-start}.task-due{max-width:80px}.sidebar{box-sizing:border-box}.contact-summary{flex-wrap:wrap}}

.toolbar .searchbox input{width:100%}

#toast{display:flex;align-items:center;gap:12px}#toast[hidden]{display:none}#toast button{background:white;color:var(--ink);border:0}#toast .icon{width:16px}.last-contact{color:var(--muted);font-size:14px;margin:20px 0}@media(max-width:560px){#detail-dialog.parcel-overview{max-width:100vw;width:100vw;margin:0;inset:0;box-sizing:border-box}#toast{max-width:calc(100vw - 24px);flex-wrap:wrap;bottom:90px}}
@media(max-width:800px){.sidebar nav .nav-label-full{display:none}}
.sidebar nav .nav-label-full{font:inherit;line-height:inherit;width:auto;flex:none}
/* Compact property navigation reaches the existing work area without duplicating actions. */
#detail-dialog.parcel-overview .parcel-actions-jump{display:none}
@media(max-width:800px){#detail-dialog.parcel-overview .parcel-actions-jump{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-left:auto;padding:6px 0;white-space:nowrap;flex:none}}
}

/* /forest/workspace-catalogue.css */
@layer legacy{/* Search and map: full-width geography with a familiar comparison table. */
.page-properties .page-heading,.page-database .page-heading{margin-bottom:20px}
.search-work-views{flex-wrap:wrap;margin-bottom:22px}   /* B4 OF2 p3: the look is the family's .seg */
.search-filters label.is-filter-active,.search-filters .range-filter.is-filter-active legend{color:var(--forest);font-weight:620}
.search-filters :is(.search-source-checks,.catalogue-checks) label.is-filter-active{background:var(--mint);border-radius:4px;padding-inline:6px}
.catalogue-toolbar>button[aria-expanded=true]:not(#map-visibility),.catalogue-toolbar .catalogue-view-options[open]>summary{background-color:var(--mint);color:var(--forest);border-color:var(--forest);font-weight:620}
.catalogue-toolbar .catalogue-reset{white-space:nowrap}
.catalogue-toolbar{margin-bottom:14px;gap:8px}.catalogue-toolbar>button,.catalogue-toolbar .view-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px}.catalogue-toolbar .searchbox{min-width:260px;flex:1}.catalogue-toolbar .searchbox input{width:100%;max-width:none}
.search-filters{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin-bottom:22px}
.search-core-filters{display:grid;grid-template-columns:1fr 1.3fr 1.3fr 1fr .8fr;gap:14px}.search-core-filters label{margin:0;font-size:13px}.search-core-filters select,.search-core-filters input{margin:5px 0 0;width:100%;font-size:14px}
.search-source-checks{display:flex;flex-wrap:wrap;gap:8px 24px;padding-top:14px}.search-source-checks label,.catalogue-checks label{display:flex;align-items:center;gap:8px;margin:0;min-height:36px;font-size:13px;font-weight:400}.search-source-checks input{margin:0;accent-color:var(--forest);width:16px;height:16px}
.search-advanced{margin-top:14px;padding-top:18px;border-top:1px solid var(--line)}.search-advanced[hidden]{display:none}.numeric-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.location-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}.range-filter{border:0;margin:0;padding:0;min-width:0}.range-filter legend{font-size:13px;color:var(--ink);padding:0;margin-bottom:5px}.range-filter>div{display:flex;align-items:center;gap:6px}.range-filter input{width:100%;min-width:0;margin:0}.catalogue-checks{display:flex;flex-wrap:wrap;gap:20px;margin-top:12px}
.search-filters .filter-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.filter-footer select,.filter-footer input{width:auto;max-width:220px;font-size:13px;margin:0;min-height:38px}.filter-footer button{font-size:13px;min-height:38px}.filter-footer .quiet{margin-left:auto}
.column-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border:1px solid var(--line);background:white;border-radius:12px;padding:20px;margin:0 0 20px}.column-picker[hidden]{display:none}.column-picker legend{padding:0 8px;font-weight:620}.column-choice{display:flex;align-items:center;gap:4px;min-width:0}.column-choice label{flex:1;display:flex;align-items:center;gap:8px;margin:0;font-size:13px}.column-choice input{margin:0;accent-color:var(--forest)}.column-choice button{width:36px;height:36px;min-height:36px;padding:6px;border:0}.column-choice .icon{width:16px;height:16px;transform:rotate(-90deg)}
.search-map-section{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#e7eddf}.search-map-section[hidden]{display:none}.search-map-section .map-area{height:300px}.search-map-section #catalogue-map{height:100%;width:100%;min-height:0}.map-area-action{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);z-index:500;display:flex;gap:6px;white-space:nowrap}.map-area-action button{background:#fff;box-shadow:0 3px 12px #20362c20;display:flex;gap:8px;align-items:center;font-size:13px;min-height:42px}
.search-selection{background:#edf3e9;border:1px solid #cddcca;border-radius:10px;padding:16px 18px;margin-top:12px}.search-selection[hidden]{display:none}.selection-main{display:flex;align-items:center;justify-content:space-between;gap:16px}.selection-main strong{display:block;font-size:16px}.selection-main>div>span{display:block;font-size:13px;color:var(--muted);margin-top:4px}.selection-main .actions{display:flex;flex-wrap:wrap}.selection-main button{font-size:13px}.selection-location{font-size:13px;color:#815000;margin:10px 0 0}
.catalogue-results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0 12px}.catalogue-results-toolbar .result-count{margin:0;font-size:13px}.catalogue-sort{display:flex;align-items:center;gap:6px}.catalogue-sort select{margin:0;font-size:13px;min-height:38px;max-width:230px}.catalogue-sort button{min-height:38px;padding:8px}
.database-scroll{overflow:auto;max-height:630px;overscroll-behavior:contain;scrollbar-gutter:stable}
/* Continue vertical scrolling into the page at table boundaries. */
body:not(.table-expanded) .database-scroll{overscroll-behavior-y:auto}
.database-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}.database-table th,.database-table td{padding:13px 14px;border-bottom:1px solid #e3e9df;vertical-align:middle;white-space:nowrap;background:#fff}.database-table thead th{position:sticky;top:0;z-index:2;background:#edf1eb;color:var(--muted);font-weight:400;text-align:left}.database-table thead button{border:0;background:transparent;padding:0;min-height:32px;display:inline-flex;gap:6px;align-items:center;font-size:12px;white-space:nowrap;color:var(--muted)}.database-table thead .icon{width:14px;height:14px}.database-table .number-cell{text-align:right;font-variant-numeric:tabular-nums}.database-table tbody tr:hover td,.database-table tbody tr:hover th{background:#f4f7f1}.database-table tbody tr.is-selected td,.database-table tbody tr.is-selected th{background:#e3eee4}
.search-table .marker-cell{position:sticky;left:0;min-width:76px;width:76px;max-width:76px;padding:10px 4px;text-align:center;z-index:2}.search-table thead .marker-cell{z-index:4}.search-table .identity-cell,.search-table thead th:nth-child(2){position:sticky;left:76px;min-width:195px;max-width:240px;z-index:2;border-right:1px solid var(--line)}.search-table thead th:nth-child(2){z-index:4}.search-table tbody .identity-cell{font-weight:400;text-align:left}.record-name{font-variant-numeric:tabular-nums;font-size:14px;letter-spacing:.02em;font-weight:620;min-height:26px}.record-actions{display:flex;gap:14px;margin-top:5px}.record-actions button{padding:0;min-height:30px;border:0;font-size:12px;color:var(--muted);background:transparent;display:flex;gap:3px;align-items:center}.record-actions .icon{width:14px;height:14px}
.source-comment-preview{display:block;white-space:normal;font-size:13px;line-height:1.5;color:var(--ink);font-weight:400;background:transparent;border:0;text-align:left;padding:0;min-height:28px;max-height:90px;overflow:auto}.pagination{font-size:13px}.pagination .page-size{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}.page-size select{width:auto;margin:0;min-height:38px;font-size:13px}.pagination button{font-size:13px;min-height:38px}.property-location-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 20px}.property-location-actions button{display:flex;align-items:center;gap:7px;font-size:14px}.spatial-filter{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 16px;background:#fff1d6;border-radius:8px;margin-bottom:16px}.spatial-filter[hidden]{display:none}.spatial-filter label{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}.spatial-filter select{margin:0;width:auto;min-height:36px}.spatial-filter>span{font-size:13px}
@media(max-width:1100px){.search-core-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.numeric-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.selection-main{align-items:flex-start;flex-direction:column}.column-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.page-properties .page-heading,.page-database .page-heading{align-items:flex-start;gap:12px}.page-properties .page-heading h1{font-size:20px}.page-heading .actions button{font-size:12px;padding:8px}.search-work-views{flex-wrap:nowrap;overflow:auto;margin-bottom:16px;gap:0}.search-work-views button{white-space:nowrap;font-size:13px;padding:8px 11px}.catalogue-toolbar .searchbox{flex-basis:100%;min-width:0}.catalogue-toolbar>button{flex:1;font-size:13px}.search-filters{padding:14px;margin-bottom:16px}.search-core-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.search-core-filters label:last-child{grid-column:span 2}.search-source-checks{gap:2px 12px}.search-source-checks label{min-height:44px;font-size:12px}.numeric-filters,.location-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-footer input,.filter-footer select{max-width:none;flex:1;min-width:120px}.filter-footer .quiet{margin-left:0}.column-picker{grid-template-columns:1fr}.column-choice button{width:44px;height:44px}.search-map-section .map-area{height:270px}.catalogue-results-toolbar{flex-wrap:wrap;gap:8px}.catalogue-sort{margin-left:auto}.search-table .marker-cell{position:static;min-width:46px;width:46px}.search-table .identity-cell,.search-table thead th:nth-child(2){left:0;min-width:155px;max-width:170px}.database-table td,.database-table th{padding:11px 12px}.database-scroll{max-height:580px}.selection-main .actions{gap:6px}.selection-main .actions button{min-height:44px}.pagination{padding:12px;flex-wrap:wrap}.pagination .actions{margin-left:auto}.map-area-action{bottom:12px}.map-area-action button{font-size:12px}.record-actions button{min-height:44px}}

.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.identity-comment,.identity-activity{display:flex;align-items:center;gap:5px;max-width:210px;min-height:28px;padding:0;border:0;background:transparent;color:var(--forest);text-align:left;font-size:12px;font-weight:400;white-space:normal}.identity-comment .icon,.identity-activity .icon{flex-shrink:0;width:14px;height:14px}.identity-comment span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.identity-activity{margin-top:3px}.search-table ::selection{background:var(--mint);color:var(--forest)}.database-scroll{scrollbar-color:#9aad9c #eff3ed}.catalogue-toolbar input{caret-color:var(--forest)}
@media(max-width:1000px){.search-filters:not(.is-open){display:none}}
@media(max-width:760px){.identity-comment,.identity-activity{max-width:150px;min-height:44px}}

/* Secondary display/export controls share one disclosure; search and map stay direct. */
.catalogue-view-options{min-width:0}
.catalogue-view-options>summary{cursor:pointer;min-height:44px;box-sizing:border-box;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:14px;font-weight:400}
.catalogue-view-options>summary:hover{background:var(--mint)}
.catalogue-view-options[open]{flex-basis:100%;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:8px}
.catalogue-view-options[open]>summary{width:fit-content;padding:9px 12px;border:0;background-color:var(--mint);color:var(--forest)}
.catalogue-view-actions{display:flex;gap:8px;flex-wrap:wrap;padding:8px 0}
.catalogue-view-actions button{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px}
.catalogue-view-options .column-picker{border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 0 0;margin:12px 0 0}
.catalogue-view-options .column-picker legend{padding-left:0;font-size:14px}
.column-choice button{width:44px;height:44px;min-height:44px;flex:none}
.column-choice label{min-height:44px}
.map-area-action button{min-height:44px}
@media(max-width:760px){.catalogue-view-options{flex:1}.catalogue-view-options>summary{text-align:center;padding:10px;font-size:13px;white-space:normal}.catalogue-view-options[open]{padding:10px 14px}.catalogue-view-options[open]>summary{text-align:left}.catalogue-view-actions button{flex:1;justify-content:center}.catalogue-view-options .column-picker{gap:8px}.search-work-views{gap:2px 4px;margin-bottom:12px;padding-bottom:8px}}

/* Table-only preferences stay beside the layout choice and expand in the page flow. */
.catalogue-view-actions button[hidden]{display:none}
.table-columns{min-width:0;margin-left:auto;font-size:14px}
.table-columns>summary{display:flex;align-items:center;gap:8px;min-height:44px;box-sizing:border-box;padding:9px 13px;cursor:pointer;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--forest);font-weight:620;list-style:none}
.table-columns>summary::-webkit-details-marker{display:none}
.catalogue-view-options>summary,.table-column-order>summary,.table-column-widths>summary{display:flex;align-items:center;gap:8px;list-style:none}
.catalogue-view-options>summary::-webkit-details-marker,.table-column-order>summary::-webkit-details-marker,.table-column-widths>summary::-webkit-details-marker{display:none}
.catalogue-view-options>summary::after,.table-column-order>summary::after,.table-column-widths>summary::after{content:'';width:7px;height:7px;flex:none;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 2px 4px 8px}
.catalogue-view-options[open]>summary::after,.table-column-order[open]>summary::after,.table-column-widths[open]>summary::after{transform:rotate(225deg);margin-top:7px}
.table-column-order[open]>summary,.table-column-widths[open]>summary{color:var(--forest);background-color:var(--mint)}
.table-columns>summary::after{content:'';width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 2px 4px 8px}
.table-columns[open]>summary::after{transform:rotate(225deg);margin-top:7px}
.table-columns>summary:hover{background:var(--mint)}
.table-columns>summary:focus-visible,.table-columns input:focus-visible,.table-columns button:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.table-columns>summary .icon{width:17px;height:17px;flex:none}
.table-columns-count{font-size:12px;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}
.table-columns[open]{flex-basis:100%;margin-left:0}
.table-columns[open]>summary{width:fit-content;margin-left:auto;background-color:var(--mint)}
.table-columns-panel{margin-top:10px;padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:10px}
.table-columns-help{margin:0 0 16px;max-width:70ch;font-size:14px;line-height:1.5;color:var(--muted)}
.table-columns-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.table-columns-groups fieldset{border:0;padding:0;margin:0;min-width:0}
.table-columns-groups legend{padding:0;margin-bottom:7px;font-size:14px;font-weight:620;color:var(--ink)}
.table-columns-groups label{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;padding:5px 0;font-size:14px;font-weight:400;line-height:1.4;cursor:pointer}
.table-columns-groups input{flex:none;margin:0;width:17px;height:17px;accent-color:var(--forest)}
.table-columns-groups label:has(input:disabled){cursor:default}
.table-columns-groups small{display:block;font-size:12px;color:var(--muted)}
.table-columns-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.table-columns-footer p{max-width:70ch;margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.table-columns-footer p span{display:block;margin-top:4px}
.table-columns-footer button{flex:none;min-height:44px;font-size:14px}
.search-table .table-comment-column{min-width:210px;max-width:310px;white-space:normal}
.search-table .record-actions{flex-wrap:wrap;gap:4px 12px}
.search-table .record-actions button{max-width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere;text-align:left}
.search-table .record-actions .icon{flex-shrink:0}
.table-inventory{display:inline-flex;align-items:center;gap:8px;text-align:left;line-height:1.4;font-variant-numeric:tabular-nums}
.table-inventory small{display:block;font-size:var(--ui-fs-micro);color:var(--muted)}
@media(max-width:760px){.table-columns-panel{padding:16px}.table-columns-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}.table-columns-footer{align-items:flex-start;flex-direction:column;gap:12px}.table-columns-footer button{width:100%}.table-columns[open]>summary{margin-left:0}.table-columns-groups label{font-size:13px}.table-columns-help{font-size:13px}}
@media(max-width:420px){.table-columns-groups{grid-template-columns:1fr}.table-columns{margin-left:0}.table-columns[open]{width:100%}.table-columns-panel{padding:14px}}


/* Approved compact Columns chooser; scroll belongs to the checklist, not its tools. */
#content #table-columns .table-columns-panel{width:min(740px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:none;padding:0;overflow:visible;border:1px solid var(--lmf-control-line,var(--line));border-radius:8px;background:var(--white,#fff);color:var(--ink);box-shadow:var(--menu-shadow,0 8px 24px #20362c26)}
#content #table-columns .table-columns-heading{position:relative;top:0;z-index:3;min-height:48px;margin:0;padding:8px 12px 8px 16px;box-sizing:border-box;background:var(--white,#fff);border-bottom:1px solid var(--line);border-radius:8px 8px 0 0;font-size:14px;line-height:1.4}
#content #table-columns .table-columns-heading-actions{display:flex;align-items:center;gap:4px}
#content #table-columns .table-columns-close,#content #table-columns .table-column-settings>summary{display:flex;align-items:center;justify-content:center;width:32px;min-width:32px;height:32px;min-height:32px;padding:7px;border:0;border-radius:6px;background:transparent;color:var(--forest);cursor:pointer;box-sizing:border-box;list-style:none}
#content #table-columns .table-column-settings>summary::-webkit-details-marker{display:none}
#content #table-columns .table-column-settings>summary .icon{width:18px;height:18px;stroke:currentColor;stroke-width:1.6;fill:none}
#content #table-columns .table-column-settings>summary:hover,#content #table-columns .table-columns-close:hover{background:var(--lmf-control-hover,var(--mint))}
#content #table-columns .table-column-settings[open]>summary{background:var(--lmf-control-selected,var(--mint));color:var(--forest)}
#content #table-columns .table-column-settings{position:static;margin:0}
#content #table-columns .table-columns-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:14px 16px 16px;max-height:min(56dvh,420px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--muted) var(--paper);box-sizing:border-box}
#content #table-columns .table-columns-groups fieldset{margin:0;padding:0;border:0;min-width:0}
#content #table-columns .table-columns-groups legend{margin:0 0 6px;padding:0;font-size:13px;line-height:1.4;font-weight:620;color:var(--ink)}
#content #table-columns .table-columns-groups label{display:flex;align-items:center;gap:8px;min-height:32px;height:auto;margin:0;padding:3px 0;box-sizing:border-box;font-size:13px;line-height:1.35;color:var(--ink);overflow-wrap:anywhere}
#content #table-columns .table-columns-groups input[type=checkbox]{width:16px;min-width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:0}
#content #table-columns .table-columns-groups small{display:block;font-size:var(--ui-fs-micro);line-height:1.3;color:var(--muted)}
#content #table-columns .table-column-settings-panel{position:absolute;right:12px;top:calc(100% + 5px);z-index:5;width:min(390px,calc(100vw - 56px));padding:12px;box-sizing:border-box;max-height:min(460px,calc(100dvh - 230px));overflow:auto;overscroll-behavior:contain;background:var(--white,#fff);border:1px solid var(--lmf-control-line,var(--line));border-radius:8px;box-shadow:var(--menu-shadow,0 8px 24px #20362c26);font-weight:400}
#content #table-columns .table-column-setting-modes,.mobile-column-settings-panel .table-column-setting-modes{display:flex;gap:4px;padding:3px;background:var(--paper);border-radius:6px;margin:0 0 10px}
#content #table-columns .table-column-setting-modes button,.mobile-column-settings-panel .table-column-setting-modes button{flex:1;min-height:32px;height:auto;padding:6px 8px;border:0;border-radius:4px;background:transparent;color:var(--muted);font:inherit;font-size:13px;line-height:1.35;cursor:pointer}
#content #table-columns .table-column-setting-modes button[aria-pressed=true],.mobile-column-settings-panel .table-column-setting-modes button[aria-pressed=true]{background:var(--white,#fff);color:var(--forest);font-weight:620}
#content #table-columns :is(.table-column-order,.table-column-widths){border:0;padding:0;margin:0}
#content #table-columns :is(.table-column-order-list,.table-column-width-list){display:grid;grid-template-columns:minmax(0,1fr);gap:0;max-height:240px;margin:0;padding:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--muted) var(--paper)}
#content #table-columns .table-column-order-list li{padding:4px 0;gap:8px;border-bottom:1px solid var(--line)}
#content #table-columns .table-column-order-name{font-size:13px;line-height:1.35}
#content #table-columns .table-column-order-actions button{width:32px;min-width:32px;height:32px;min-height:32px;padding:6px;border:0;border-radius:6px;background:transparent;color:var(--forest)}
#content #table-columns .table-column-order-actions button:hover:not(:disabled){background:var(--mint)}
#content #table-columns .table-column-width-list label{display:grid;grid-template-columns:minmax(0,1fr) 70px auto;align-items:center;gap:8px;min-height:40px;font-size:13px;line-height:1.35;border-bottom:1px solid var(--line);padding:4px 0}
#content #table-columns .table-column-width-list input{box-sizing:border-box;width:70px;min-width:70px;height:32px;min-height:32px;margin:0;padding:5px 7px;border:1px solid var(--lmf-control-line,var(--line));border-radius:6px;background:var(--lmf-control-surface,#fbfdf9);color:var(--ink);font-family:inherit;font-size:14px;line-height:1.25;text-align:right}
#content #table-columns .table-columns-footer{display:grid;gap:2px;margin:10px 0 0;padding:8px 0 0;border-top:1px solid var(--line)}
#content #table-columns .table-columns-footer button{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:32px;height:auto;padding:6px 8px;border:0;border-radius:6px;background:transparent;color:var(--forest);font:inherit;font-size:13px;line-height:1.35;text-align:left}
#content #table-columns .table-columns-footer button:hover{background:var(--mint)}
#content #table-columns button:disabled{opacity:.45;cursor:default}
#content #table-columns :is(button,input,summary):focus-visible{outline:2px solid var(--forest);outline-offset:2px}
#content #table-columns [hidden],#mobile-columns-dialog [hidden]{display:none!important}
#content #table-columns ::selection{background:var(--mint);color:var(--ink)}

/* Phone uses the existing draft/apply editor, with the same concise checklist and cog. */
#mobile-columns-dialog.mobile-columns-dialog{width:min(580px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:16px;border-radius:8px;background:var(--white,#fff)}
#mobile-columns-dialog .mobile-columns-heading{position:relative;min-height:44px;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--line)}
#mobile-columns-dialog .mobile-columns-heading h2{font-size:16px;line-height:1.35;font-weight:620}
#mobile-columns-dialog .mobile-columns-heading-actions{display:flex;align-items:center;gap:4px}
#mobile-columns-dialog .mobile-column-settings{position:static;margin:0}
#mobile-columns-dialog .mobile-column-settings>summary,#mobile-columns-dialog .mobile-columns-close{display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:6px;background:transparent;color:var(--forest);list-style:none;box-sizing:border-box;cursor:pointer}
#mobile-columns-dialog .mobile-column-settings>summary::-webkit-details-marker{display:none}
#mobile-columns-dialog .mobile-column-settings>summary .icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.6;fill:none}
#mobile-columns-dialog .mobile-column-settings[open]>summary,#mobile-columns-dialog .mobile-column-settings>summary:hover{background:var(--mint)}
#mobile-columns-dialog [data-mobile-selected-count]{font-size:12px;color:var(--muted)}
#mobile-columns-dialog .mobile-column-choices fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;padding:10px 0;border-color:var(--line)}
#mobile-columns-dialog .mobile-column-choices legend{font-size:13px;font-weight:620;line-height:1.4}
#mobile-columns-dialog .mobile-column-choices label{min-width:0;gap:7px;min-height:44px;padding:4px 0;font-size:12px;line-height:1.35}
#mobile-columns-dialog .mobile-column-choices input{width:16px;height:16px;flex:0 0 16px;margin:0}
#mobile-columns-dialog .mobile-column-choices small{font-size:var(--ui-fs-micro);line-height:1.3}
#mobile-columns-dialog .mobile-column-settings-panel{position:absolute;right:0;top:calc(100% + 4px);z-index:4;width:min(390px,calc(100vw - 56px));max-height:calc(100dvh - 210px);padding:12px;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;background:var(--white,#fff);border:1px solid var(--line);border-radius:8px;box-shadow:var(--menu-shadow,0 8px 24px #20362c26)}
#mobile-columns-dialog .mobile-column-order{margin:0;border:0}
#mobile-columns-dialog .mobile-column-order ol{max-height:240px;overflow:auto;overscroll-behavior:contain}
#mobile-columns-dialog .mobile-column-order li{padding:3px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.35}
#mobile-columns-dialog .mobile-column-order button{width:44px;min-width:44px;min-height:44px;padding:8px;border:0;border-radius:6px;background:transparent;color:var(--forest)}
#mobile-columns-dialog .mobile-column-settings-panel .table-column-setting-modes button{min-height:44px}
#mobile-columns-dialog .mobile-column-settings-footer{display:grid;gap:3px;padding-top:8px;border-top:1px solid var(--line);margin-top:10px}
#mobile-columns-dialog .mobile-column-settings-footer button{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px;border:0;border-radius:6px;background:transparent;color:var(--forest);font-size:13px;text-align:left}
#mobile-columns-dialog .mobile-columns-footer{justify-content:flex-end;gap:8px;padding-top:10px;border-top:1px solid var(--line)}
#mobile-columns-dialog .mobile-columns-footer button{min-height:44px;padding:8px 12px;border-radius:6px;font-size:14px}

/* Sorting stays native and precise, with the same compact operating controls. */
#multi-sort-dialog.multi-sort-dialog{width:min(640px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:20px;border-radius:8px;background:var(--white,#fff);color:var(--ink)}
#multi-sort-dialog::backdrop{background:rgba(20,35,27,.1)}
#multi-sort-dialog .multi-sort-heading h2{font-size:18px;line-height:1.35;font-weight:620}
#multi-sort-dialog .multi-sort-heading>button,#multi-sort-dialog .multi-sort-rule-actions button{min-width:32px;width:32px;height:32px;min-height:32px;padding:6px;border:0;border-radius:6px;background:transparent;color:var(--forest)}
#multi-sort-dialog .multi-sort-heading>button:hover,#multi-sort-dialog .multi-sort-rule-actions button:hover:not(:disabled){background:var(--mint)}
#multi-sort-dialog .multi-sort-rules{gap:4px;margin:12px 0}
#multi-sort-dialog .multi-sort-rules>li{gap:8px;padding:6px 0}
#multi-sort-dialog .multi-sort-fields{grid-template-columns:minmax(0,1.5fr) minmax(128px,1fr);gap:8px}
#multi-sort-dialog .multi-sort-fields select{min-height:32px;height:32px;padding:5px 26px 5px 8px;border:1px solid var(--lmf-control-line,var(--line));border-radius:6px;background-color:var(--lmf-control-surface,#fbfdf9);color:var(--ink);font-family:inherit;font-size:14px;line-height:1.3}
#multi-sort-dialog p{margin:10px 0;font-size:13px;line-height:1.45}
#multi-sort-dialog :is([data-sort-add],.multi-sort-footer button){min-height:32px;padding:6px 10px;border-radius:6px;font-size:14px;line-height:1.35}
#multi-sort-dialog .multi-sort-footer{gap:8px;padding-top:12px}
#multi-sort-dialog .multi-sort-footnote{font-size:12px;color:var(--muted)}

/* Expanded filters: one label track and compact fields, without changing values or rules. */
#content #land-filters .search-advanced{margin-top:10px;padding-top:12px}
#content #land-filters .search-advanced :is(select,input:not([type=checkbox]),button){box-sizing:border-box;min-height:32px;height:32px;padding:5px 8px;border-radius:6px;font-family:inherit;font-size:14px;line-height:1.3}
#content #land-filters :is(.numeric-filters,.location-filters){gap:12px}
#content #land-filters .search-advanced label{font-size:13px;line-height:1.4}
#content #land-filters .multi-location-filter>summary,#content #land-filters .multi-location-choices label{min-height:32px;font-size:13px}
#content #land-filters .lmf-current-extra-filters{gap:16px;align-items:start}
#content #land-filters .lmf-current-extra-filters>fieldset{margin:0;padding:0;border:0;border-radius:0}
#content #land-filters .lmf-current-extra-filters>fieldset>legend{display:flex;align-items:center;box-sizing:border-box;min-height:32px;width:100%;padding:0;margin:0;font-size:13px;font-weight:620;line-height:1.4}
#content #land-filters .almost-ready-filter legend label{display:flex;align-items:center;flex-direction:row;min-height:32px;margin:0;gap:7px;font-size:13px;font-weight:620}
#content #land-filters .almost-ready-filter legend input[type=checkbox]{width:16px;min-width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:0}
#content #land-filters .near-margin-fields{gap:8px}
#content #land-filters .near-margin-fields label{display:flex;flex-direction:column-reverse;gap:4px;margin:0;color:var(--muted);font-size:12px;font-weight:400}
#content #land-filters .current-value-filter>div,#content #land-filters .near-margin-fields{margin:0}
#content #land-filters .filter-evidence-help{margin-top:7px;font-size:12px;line-height:1.4}

/* Native account view conflict; neutral close keeps the draft, actions stay explicit. */
#view-preferences-conflict-dialog.view-preferences-conflict-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:20px;overflow:auto;border:0;border-radius:8px;background:var(--white,#fff);color:var(--ink);box-shadow:var(--menu-shadow,0 8px 24px #20362c26)}
#view-preferences-conflict-dialog::backdrop{background:rgba(20,35,27,.1)}
#view-preferences-conflict-dialog .view-conflict-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#view-preferences-conflict-dialog .view-conflict-heading h2{margin:0;font-size:18px;line-height:1.35;font-weight:620}
#view-preferences-conflict-dialog .view-conflict-heading button{display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:6px;border:0;border-radius:6px;background:transparent;color:var(--forest)}
#view-preferences-conflict-dialog .view-conflict-copy{margin:14px 0 18px;font-size:14px;line-height:1.5;max-width:65ch}
#view-preferences-conflict-dialog .view-conflict-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
#view-preferences-conflict-dialog button{box-sizing:border-box;min-height:32px;padding:6px 10px;border-radius:6px;font-family:inherit;font-size:14px;line-height:1.35}
#view-preferences-conflict-dialog :is(button,select,input):focus-visible{outline:2px solid var(--forest);outline-offset:3px}
#view-preferences-conflict-dialog button:disabled{opacity:.55;cursor:default}
#view-preferences-conflict-dialog [data-view-preferences-conflict-error]{font-size:13px;line-height:1.4;color:var(--danger,#a33832)}
@media(max-width:700px){#content #table-columns .table-columns-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#multi-sort-dialog .multi-sort-fields{grid-template-columns:minmax(0,1fr)}#multi-sort-dialog .multi-sort-rule-actions{flex-direction:column}#content #land-filters .lmf-current-extra-filters{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px),(pointer:coarse){
 #content #table-columns .table-columns-groups label,#content #table-columns .table-columns-close,#content #table-columns .table-column-settings>summary,#content #table-columns .table-column-setting-modes button,#content #table-columns .table-column-order-actions button,#content #table-columns .table-columns-footer button{min-height:44px;height:auto}
 #content #table-columns .table-columns-close,#content #table-columns .table-column-settings>summary,#content #table-columns .table-column-order-actions button{width:44px;min-width:44px}
 #content #table-columns .table-column-width-list input{min-height:44px;height:44px;font-size:16px}
 #multi-sort-dialog .multi-sort-fields select{min-height:44px;height:44px;font-size:16px}
 #multi-sort-dialog .multi-sort-heading>button,#multi-sort-dialog .multi-sort-rule-actions button,#multi-sort-dialog :is([data-sort-add],.multi-sort-footer button){min-height:44px;height:auto}
 #multi-sort-dialog .multi-sort-rule-actions button{width:44px;min-width:44px}
 #content #land-filters .search-advanced :is(select,input:not([type=checkbox]),button){min-height:44px;height:44px;font-size:16px}
 #content #land-filters .multi-location-filter>summary,#content #land-filters .multi-location-choices label,#content #land-filters .almost-ready-filter legend label{min-height:44px}
 #view-preferences-conflict-dialog button{min-height:44px}
}
@media(max-width:420px){#multi-sort-dialog.multi-sort-dialog{padding:16px}#multi-sort-dialog .multi-sort-rules>li{gap:6px}#multi-sort-dialog .multi-sort-footer>div{width:100%;justify-content:flex-end}#view-preferences-conflict-dialog.view-preferences-conflict-dialog{padding:18px}#view-preferences-conflict-dialog .view-conflict-actions button{flex:1 1 auto}}
@media(forced-colors:active){#content #table-columns .table-columns-panel,#content #table-columns .table-column-settings-panel,#mobile-columns-dialog .mobile-column-settings-panel,#view-preferences-conflict-dialog{outline:1px solid CanvasText}}

/* Explicit local variant wins over the historical28px picker-close rule. */
#content #table-columns.table-columns .table-columns-close{width:32px;min-width:32px;height:32px;min-height:32px}
@media(max-width:700px),(pointer:coarse){#content #table-columns.table-columns .table-columns-close{width:44px;min-width:44px;height:44px;min-height:44px}}

/* The same compact count joins the guarded review control on every layout. */
#content.catalogue-dense #catalogue-record-summary{column-gap:0}
#catalogue-record-summary [data-mobile-review-separator]{white-space:pre}

/* The existing catalogue disclosures share the muted forestry control surface. */
#content #table-columns .table-columns-panel,
#content #table-columns .table-column-settings-panel,
#multi-sort-dialog.multi-sort-dialog{background:#eef2e8;border-color:#b7c6af;color:var(--ink,#20382d)}
#content #table-columns .table-columns-heading{background:#e3eadb;border-bottom-color:#c7d3c0}
#content #table-columns .table-column-setting-modes{background:#e3eadb}
#content #table-columns .table-column-setting-modes button[aria-pressed=true]{background:#d5e2cc;color:var(--forest,#285c43)}
#content #table-columns .table-column-width-list input,
#multi-sort-dialog .multi-sort-fields select{background-color:#f7f9f3}
#multi-sort-dialog :is([data-sort-add],[data-sort-default],[data-sort-cancel]){background-color:#e3eadb}
#multi-sort-dialog :is([data-sort-add],[data-sort-default],[data-sort-cancel]):hover:not(:disabled){background-color:#d5e2cc}
#content #table-columns .table-columns-groups input[type=checkbox],
#multi-sort-dialog.multi-sort-dialog input[type=checkbox]{appearance:none;box-sizing:border-box;display:inline-grid;place-content:center;flex:0 0 14px;width:14px;min-width:14px;max-width:14px;height:14px;min-height:14px;max-height:14px;margin:0;padding:0;border:1px solid #7a8e76;border-radius:3px;background:#f8faf4;vertical-align:middle;cursor:pointer;box-shadow:none}
#content #table-columns .table-columns-groups input[type=checkbox]:hover:not(:disabled),
#multi-sort-dialog.multi-sort-dialog input[type=checkbox]:hover:not(:disabled){border-color:#456b49;background:#e3eadb}
#content #table-columns .table-columns-groups input[type=checkbox]:checked,
#multi-sort-dialog.multi-sort-dialog input[type=checkbox]:checked{background:#456b49;border-color:#456b49}
#content #table-columns .table-columns-groups input[type=checkbox]:checked:hover:not(:disabled),
#multi-sort-dialog.multi-sort-dialog input[type=checkbox]:checked:hover:not(:disabled){background:#385c3e;border-color:#385c3e}
#content #table-columns .table-columns-groups input[type=checkbox]:checked::before,
#multi-sort-dialog.multi-sort-dialog input[type=checkbox]:checked::before{content:'';box-sizing:content-box;width:6px;height:3px;border:0;border-left:1.6px solid #fff;border-bottom:1.6px solid #fff;transform:translateY(-.5px) rotate(-45deg)}
#content #table-columns .table-columns-groups input[type=checkbox]:disabled,
#multi-sort-dialog.multi-sort-dialog input[type=checkbox]:disabled{cursor:default;opacity:.55}
#content #table-columns .table-columns-groups input[type=checkbox]:focus-visible,
#multi-sort-dialog.multi-sort-dialog input[type=checkbox]:focus-visible{outline:2px solid var(--forest,#285c43);outline-offset:3px}
@media(forced-colors:active){
 #content #table-columns .table-columns-groups input[type=checkbox],#multi-sort-dialog.multi-sort-dialog input[type=checkbox]{appearance:auto;accent-color:auto;background:Canvas;color:CanvasText;border-color:ButtonText;forced-color-adjust:auto}
 #content #table-columns .table-columns-groups input[type=checkbox]:checked::before,#multi-sort-dialog.multi-sort-dialog input[type=checkbox]:checked::before{content:none}
 #content #table-columns .table-columns-groups input[type=checkbox]:focus-visible,#multi-sort-dialog.multi-sort-dialog input[type=checkbox]:focus-visible{outline-color:Highlight}
}

/* Compact the existing content rhythm while retaining every option and action. */
#content #table-columns .table-columns-heading{min-height:42px;padding:5px 10px 5px 14px}
#content #table-columns .table-columns-groups{gap:16px;padding:10px 14px 12px}
#content #table-columns .table-columns-groups legend{margin-bottom:4px}
#content #table-columns .table-columns-groups label{min-height:28px;padding:2px 0;gap:7px}
#content #table-columns .table-column-settings-panel{padding:10px}
#multi-sort-dialog.multi-sort-dialog{padding:16px}
#multi-sort-dialog .multi-sort-rules{gap:3px;margin:8px 0}
#multi-sort-dialog .multi-sort-rules>li{padding:4px 0}
#multi-sort-dialog p{margin:7px 0}
#multi-sort-dialog .multi-sort-footer{padding-top:8px}
@media(max-width:700px),(pointer:coarse){
 #content #table-columns .table-columns-heading{min-height:44px}
 #content #table-columns .table-columns-groups label{min-height:34px}
 #multi-sort-dialog.multi-sort-dialog{padding:14px}
 #multi-sort-dialog .multi-sort-rules>li{padding:3px 0}
}
@media(max-width:700px){
 #multi-sort-dialog.multi-sort-dialog{padding:12px}
 #multi-sort-dialog .multi-sort-heading h2{font-size:16px}
 #multi-sort-dialog .multi-sort-fields{gap:6px}
 #multi-sort-dialog .multi-sort-fields select{height:34px;min-height:34px;padding:4px 26px 4px 8px;font-size:13px}
 #multi-sort-dialog .multi-sort-heading>button,#multi-sort-dialog .multi-sort-rule-actions button{width:32px;min-width:32px;height:32px;min-height:32px;padding:5px}
 #multi-sort-dialog :is([data-sort-add],.multi-sort-footer button){height:auto;min-height:34px;padding:5px 8px;font-size:13px}
 #multi-sort-dialog .multi-sort-footer{gap:6px;padding-top:6px}
}
}

/* /forest/workspace-property-list.css */
@layer legacy{/* The catalogue is a flowing work list. Details expand in place at every width. */
.search-work-views{flex-wrap:wrap;overflow:visible}.search-work-views button{white-space:normal}
.property-results{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:clip}
.property-result{padding:22px 24px;min-width:0;border-bottom:1px solid var(--line)}
.property-result:last-child{border-bottom:0}.property-result.is-selected{background:#f0f5ec}
.property-row-main{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.65fr);gap:28px}
.property-row-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.property-row-title{min-width:0}.property-row-title h2{font-size:18px;line-height:1.3;margin:5px 0 0;letter-spacing:-.02em;overflow-wrap:anywhere}
.property-row-title .record-name{font-size:14px;font-weight:620;min-height:30px;font-variant-numeric:tabular-nums}
.property-row-markers{display:flex;gap:3px}
.property-row-location{font-size:13px;color:var(--muted);margin:8px 0;overflow-wrap:anywhere}
.property-result .identity-cell{width:auto;min-width:0;position:static;background:none}
.property-result .identity-comment{max-width:none;margin-top:10px;white-space:normal;align-items:flex-start;font-size:14px;line-height:1.5}
.property-result .identity-comment span{white-space:normal;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.property-result .identity-activity{display:inline-flex;margin-top:8px}
.property-contact-indicator{display:flex;align-items:center;gap:7px;color:var(--forest);font-size:13px;margin-top:9px}.property-contact-indicator .icon{width:15px;height:15px}
.property-row-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 24px;margin:2px 0 0;align-content:start}
.property-row-facts>div{min-width:0}.property-row-facts dt{font-size:12px;color:var(--muted);line-height:1.4;margin-bottom:6px}
.property-row-facts dd{margin:0;font-size:16px;font-weight:620;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.property-row-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px}
.property-result .record-actions{display:flex;flex-wrap:wrap;gap:5px;margin:0}.property-result .record-actions button{display:inline-flex;align-items:center;gap:6px;font-size:13px;min-height:38px;padding:7px 10px;background:transparent;border-color:var(--line)}
.property-next-action{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);overflow-wrap:anywhere;max-width:40%}
.property-row-details{margin-top:14px}.property-row-details summary{cursor:pointer;font-size:13px;color:var(--forest);padding:7px 0;min-height:32px;width:fit-content}.property-row-details summary:focus-visible{outline:2px solid var(--forest);outline-offset:4px;border-radius:2px}
.property-row-expanded{border-top:1px solid var(--line);margin-top:8px;padding-top:24px;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(220px,1fr);gap:32px}
.property-row-expanded .property-row-facts dd{font-size:14px}.property-row-context{min-width:0;font-size:14px;overflow-wrap:anywhere}.property-row-context h3{font-size:14px;margin:0 0 10px}.property-row-context h3:not(:first-child){margin-top:24px}.property-row-context p{white-space:pre-wrap;line-height:1.5;margin:7px 0}
.property-row-contact{padding-bottom:14px}.property-row-contact>span{display:flex;align-items:center;gap:6px;margin:6px 0;overflow-wrap:anywhere}.property-row-contact .icon{width:15px;height:15px}
.property-pagination{flex-wrap:wrap;gap:12px;padding:18px 0}.property-pagination .page-size{margin-left:auto}.property-pagination select{width:auto}.property-pagination .actions{gap:6px}
@media(min-width:1500px){.property-row-main{grid-template-columns:minmax(270px,1fr) minmax(0,2fr)}.property-row-facts{grid-template-columns:repeat(6,minmax(0,1fr))}.property-row-expanded .property-row-facts{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){.property-row-main{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:22px}.property-row-facts{gap:16px}.property-row-expanded{grid-template-columns:1fr}.property-row-footer{align-items:flex-start;flex-wrap:wrap}.property-next-action{max-width:100%}}
@media(max-width:620px){.property-result{padding:18px 16px}.property-row-main{grid-template-columns:1fr;gap:22px}.property-row-facts{gap:18px 12px}.property-row-facts dd{font-size:16px}.property-row-title h2{font-size:18px}.property-row-expanded .property-row-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.property-row-footer{gap:12px}.property-result .record-actions button{min-height:42px}.property-pagination .actions{width:100%;justify-content:space-between}.property-pagination .actions button{min-height:44px}}

/* Keep inspection direct; group CRM actions without losing their row context. */
.property-row-footer{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 20px;align-items:start}
.property-primary-actions{display:flex;gap:8px;flex-wrap:wrap}
.property-primary-actions button,.property-result .record-actions button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 12px;font-size:14px}
.property-primary-actions button{background:transparent;border-color:var(--line)}
.property-primary-actions button:first-child{color:var(--forest);font-weight:620}
.property-row-actions{min-width:0;justify-self:start}
.property-row-actions summary{display:list-item;cursor:pointer;min-height:44px;box-sizing:border-box;padding:11px 6px;font-size:14px;font-weight:400;color:var(--forest)}
.property-row-actions[open]{grid-column:1/-1;justify-self:stretch}
.property-row-actions .record-actions{gap:8px;padding:4px 0 8px}
.property-row-actions summary:hover{color:var(--ink)}
.property-row-actions summary:focus-visible{outline:2px solid var(--forest);outline-offset:3px;border-radius:4px}
.property-next-action{grid-column:1/-1;max-width:100%;margin-top:4px}
.property-row-title .record-name{min-height:44px;display:inline-flex;align-items:center}
.property-row-details summary{min-height:44px;box-sizing:border-box;padding:12px 0;font-size:14px}
@media(max-width:1000px){.property-row-main{grid-template-columns:1fr;gap:18px}.property-row-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 20px}.property-row-heading{align-items:center}.property-row-title h2{margin-top:0}}
@media(max-width:620px){.property-row-footer{grid-template-columns:1fr;gap:4px}.property-row-actions{justify-self:stretch}.property-row-actions summary{padding-left:0}.property-row-facts{gap:16px 12px}.property-row-facts dt{font-size:13px}.property-row-location{font-size:15px}.property-row-details{margin-top:8px}.property-result .identity-comment{margin-top:8px}}
}

/* /forest/workspace-planner.css */
@layer legacy{.task-planner{min-width:0}
.planner-topline{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:22px}
.planner-modes{display:flex;gap:4px;flex-wrap:wrap;min-width:0}
.planner-modes button{display:flex;gap:9px;align-items:center;background:transparent;border-color:transparent;color:var(--muted);padding:9px 12px;min-height:44px}
.planner-modes button:hover{background:#edf1eb;color:var(--ink)}
.planner-modes button.selected{background:var(--mint);color:var(--forest);font-weight:620}
.planner-modes button span{font-size:13px;font-variant-numeric:tabular-nums}
.planner-topline>.segmented{flex:none}
.planner-filterbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:24px}
.planner-filterbar .searchbox{flex:1;min-width:240px}
.planner-filterbar .searchbox input{width:100%;margin:0;max-width:none}
.planner-filterbar>label{margin:0;min-width:160px}
.planner-filterbar>label select{margin-bottom:0}
.planner-filterbar>button{display:inline-flex;align-items:center;gap:7px;min-height:44px}
.planner-filter-detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;width:100%;padding:18px 0 0;border-top:1px solid var(--line);margin-top:5px}
.planner-filter-detail[hidden]{display:none}
.planner-filter-detail label{margin:0}
.planner-filter-detail input,.planner-filter-detail select{margin-bottom:0}
.planner-workspace{display:grid;gap:24px;align-items:start;min-width:0}
.planner-workspace.agenda{grid-template-columns:minmax(0,1fr) 320px}
.planner-workspace.agenda .planner-calendar-disclosure{grid-column:2;grid-row:1;min-width:0}
.planner-calendar-disclosure>summary{display:none;min-height:48px;padding:14px 18px;font-size:14px;color:var(--forest)}
.planner-workspace.agenda .planner-agenda{grid-column:1;grid-row:1}
.planner-workspace.calendar{grid-template-columns:minmax(0,1.5fr) minmax(330px,1fr)}
.planner-calendar,.planner-agenda{background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0}
.planner-calendar{padding:18px}
.planner-calendar-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.planner-calendar-heading h2{font-size:16px;line-height:1.3;margin:0;text-transform:capitalize;font-weight:620}
.planner-calendar-actions{display:flex;gap:3px;align-items:center}
.planner-calendar-actions button{padding:7px 10px;min-height:44px;border-color:transparent;background:transparent;font-size:14px}
.planner-calendar-actions button:hover{background:#edf1eb}
.planner-calendar-actions .icon{width:18px;height:18px}
#planner-previous-month .icon{transform:rotate(180deg)}
.planner-month{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:3px;margin:0}
.planner-month th{background:none;padding:7px 0;font-size:12px;color:var(--muted);text-align:center;font-weight:400;text-transform:none;letter-spacing:0;border:0;white-space:nowrap}
.planner-month td{padding:0;border:0;vertical-align:top}
.planner-month button{position:relative;display:block;min-width:0;width:100%;padding:8px 3px;border:1px solid transparent;background:transparent;min-height:44px;border-radius:8px;text-align:center;font-size:14px;line-height:1.2;font-weight:400;font-variant-numeric:tabular-nums}
.planner-month button:hover{background:#edf1eb}
.planner-month button:focus-visible{outline-offset:1px;outline:2px solid var(--forest)}
.planner-month .outside-month button{color:var(--muted)}
.planner-month .outside-month .planner-date-number{font-weight:400}
.planner-month .today-day .planner-date-number{font-weight:700;text-decoration:underline;text-underline-offset:4px}
.planner-month .selected-day button{background:var(--forest);color:white}
.planner-day-count{position:absolute;right:0;top:1px;min-width:14px;text-align:center;font-size:var(--ui-fs-micro);font-weight:700;color:var(--forest);line-height:15px}
.planner-month .selected-day .planner-day-count{color:white}
.planner-day-preview{display:none}
.planner-workspace.calendar .planner-month button{min-height:96px;padding:10px 7px;text-align:left;border-color:#edf1eb}
.planner-workspace.calendar .planner-day-count{top:9px;right:7px;font-size:var(--ui-fs-micro)}
.planner-workspace.calendar .planner-day-preview{display:flex;flex-direction:column;gap:5px;min-width:0;margin-top:12px;font-size:var(--ui-fs-micro);font-weight:400;line-height:1.3}
.planner-day-preview>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.planner-day-preview>.finished{text-decoration:line-through}
.planner-day-preview>.planner-more{font-weight:620}
.planner-agenda-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 24px;border-bottom:1px solid var(--line)}
.planner-agenda-heading h2{font-size:18px;font-weight:620;line-height:1.3;margin:0 0 5px;text-transform:capitalize}
.planner-agenda-heading .actions{justify-content:flex-end}
.planner-agenda-heading .actions button{font-size:13px;min-height:44px;padding:8px 10px}
.planner-date-group{padding:0 24px}
.planner-date-group h3{font-size:14px;font-weight:620;display:flex;gap:10px;align-items:center;margin:24px 0 8px;text-transform:capitalize}
.planner-date-group h3 span{font-size:12px;color:var(--muted);font-weight:400}
.planner-task{display:flex;gap:12px;align-items:flex-start;padding:16px 0;border-bottom:1px solid #e7ece4;min-width:0}
.planner-date-group:last-child .planner-task:last-child{border-bottom:0}
.planner-complete,.planner-finished-mark{width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;display:flex;align-items:center;justify-content:center;padding:10px;background:white;color:var(--muted);margin-top:1px}
.planner-complete .icon{opacity:0}
.planner-complete:hover{background:var(--mint);color:var(--forest)}
.planner-complete:hover .icon,.planner-complete:focus-visible .icon{opacity:1}
.planner-finished-mark{background:var(--mint);border-color:transparent;color:var(--forest)}
.planner-task-main{flex:1;min-width:0}
.planner-task-heading{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:8px;min-width:0}
.planner-task-heading:has(>.lmf-sample-badge){margin-bottom:8px}
.planner-task-heading>.lmf-sample-badge{max-width:100%;white-space:normal;overflow-wrap:anywhere;border-radius:0;margin:0}
.planner-task-title{width:100%;min-width:0;color:var(--ink);font-size:14px;text-align:left;overflow-wrap:anywhere;line-height:1.45;padding:4px 0;font-weight:620}
.planner-task.finished .planner-task-title{color:var(--muted)}
.planner-task-context{display:flex;flex-wrap:wrap;gap:1px 12px;min-width:0}
.planner-task-context button{display:inline-flex;gap:5px;align-items:center;flex-wrap:wrap;font-size:13px;font-weight:400;min-height:28px;text-align:left;max-width:100%;overflow-wrap:anywhere}
.planner-task-context .icon{width:14px;height:14px;flex:none}
.planner-cadastre{color:var(--muted);font-variant-numeric:tabular-nums}
.planner-task-place{font-size:12px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.planner-task-state{display:flex;flex-direction:column;align-items:flex-end;gap:5px;max-width:150px;padding-top:7px;font-size:12px;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}
.planner-task-state strong{color:var(--ink);font-weight:620}
.planner-empty{padding:48px 24px;text-align:center;color:var(--muted)}
.planner-empty>.icon{width:30px;height:30px;margin-bottom:12px}
.planner-empty h3{margin:0 0 22px;color:var(--ink);font-size:16px;font-weight:400}
@media(max-width:1250px){.planner-topline{flex-wrap:wrap}.planner-workspace.agenda{grid-template-columns:minmax(0,1fr) 290px}.planner-workspace.calendar{grid-template-columns:1fr}.planner-workspace.calendar .planner-calendar{order:0}.planner-workspace.calendar .planner-agenda{order:1}.planner-task{flex-wrap:wrap}.planner-task-state{margin-left:56px;flex-direction:row;flex-wrap:wrap;align-items:center;max-width:none;padding:0;text-align:left;width:calc(100% - 56px)}.planner-agenda-heading{flex-wrap:wrap}}
@media(max-width:1000px){.planner-workspace.agenda{grid-template-columns:1fr}.planner-workspace.agenda .planner-calendar-disclosure{grid-column:1;grid-row:2;border:1px solid var(--line);border-radius:12px;background:#fff}.planner-calendar-disclosure>summary{display:list-item;list-style-position:inside}.planner-calendar-disclosure .planner-calendar{border:0}.planner-workspace.agenda .planner-agenda{grid-column:1;grid-row:1}.planner-workspace.agenda .planner-month button{min-height:48px}.planner-workspace.agenda .planner-calendar-heading{flex-wrap:nowrap}.planner-workspace.agenda .planner-day-count{right:7px;top:5px}}
@media(max-width:600px){.planner-topline{gap:16px}.planner-topline>.segmented{width:100%}.planner-topline>.segmented button{flex:1;min-height:44px}.planner-modes{gap:0}.planner-modes button{font-size:13px;padding:9px 10px;gap:6px}.planner-filterbar{gap:10px}.planner-filterbar .searchbox{min-width:100%}.planner-filterbar>label{flex:1;min-width:0}.planner-filterbar>button{padding:9px 11px}.planner-filter-detail{grid-template-columns:1fr 1fr;gap:14px}.planner-filter-detail select{max-width:100%}.planner-workspace{gap:18px}.planner-calendar{padding:14px 10px}.planner-calendar-heading{padding:0 4px;gap:8px}.planner-calendar-heading h2{font-size:16px}.planner-calendar-actions{gap:0}.planner-calendar-actions button{padding:7px 9px}.planner-month{border-spacing:1px}.planner-month th{font-size:12px}.planner-month button,.planner-workspace.calendar .planner-month button{min-height:48px;padding:10px 2px;text-align:center;border-color:transparent}.planner-workspace.calendar .planner-day-preview{display:none}.planner-day-count,.planner-workspace.calendar .planner-day-count{right:1px;top:1px;font-size:12px}.planner-agenda-heading{padding:18px}.planner-agenda-heading h2{font-size:18px}.planner-date-group{padding:0 16px}.planner-task{gap:10px}.planner-task-state{margin-left:54px;width:calc(100% - 54px)}.planner-task-context{display:block}.planner-task-context button{display:flex;min-height:32px}.planner-empty{padding:36px 20px}}
@media print{.planner-filterbar,.planner-topline,.planner-complete,.planner-calendar-actions{display:none}.planner-workspace.agenda,.planner-workspace.calendar{display:block}.planner-calendar{margin-bottom:24px}.planner-task{break-inside:avoid}}

/* 17 October workspace refinement. Calendar/task contents and native disclosure retained. */
@media screen{
 #content:has(>.task-planner)>.page-heading{align-items:center;gap:12px;margin-bottom:16px}
 #content:has(>.task-planner)>.page-heading h1{font-size:var(--type-page,1.375rem);margin:0;line-height:1.25}
 #content .planner-topline{align-items:center;gap:12px;margin-bottom:14px}
 #content .planner-modes{gap:4px}
 #content .planner-modes button{padding:6px 10px;font-size:14px;line-height:1.4;gap:7px;border-radius:var(--control-radius,6px)}
 #content .planner-modes button span{font-size:12px;line-height:1.4}
 #content .planner-topline>.segmented{border-radius:var(--control-radius,6px)}
 #content .planner-topline>.segmented button{font-size:14px;line-height:1.4;padding:6px 10px}
 #content .planner-filterbar{gap:8px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--line)}
 #content .planner-filterbar .searchbox{min-width:220px;flex:1;max-width:440px}
 #content .planner-filterbar .searchbox>.icon{left:10px;top:50%;transform:translateY(-50%);width:16px;height:16px}
 #content .planner-filterbar .searchbox input{padding-left:34px}
 #content .planner-filterbar>label{min-width:160px;font-size:12px;line-height:1.4}
 #content .planner-filterbar>button{gap:6px;font-size:14px}
 #content .planner-filter-detail{gap:12px 16px;padding-top:14px;margin-top:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
 #content .planner-filter-detail label{font-size:12px;line-height:1.4;min-width:0}
 #content .planner-filter-detail :is(input,select){max-width:100%;min-width:0}
 #content .planner-workspace{gap:20px}
 #content .planner-workspace.agenda{grid-template-columns:minmax(0,1fr) 316px}
 #content :is(.planner-calendar,.planner-agenda,.planner-calendar-disclosure){border-radius:8px;box-shadow:none}
 #content .planner-calendar{padding:16px}
 #content .planner-calendar-heading{gap:8px;margin-bottom:12px}
 #content .planner-calendar-heading h2{font-size:14px;line-height:1.4}
 #content .planner-calendar-actions button{padding:5px 7px;font-size:13px;border-radius:var(--control-radius,6px)}
 #content .planner-agenda-heading{padding:14px 18px;gap:10px;align-items:center}
 #content .planner-agenda-heading h2{font-size:16px;line-height:1.4;font-weight:620;margin-bottom:4px}
 #content .planner-agenda-heading .actions button{padding:5px 9px;font-size:13px;line-height:1.4}
 #content .planner-date-group{padding:0 18px}
 #content .planner-date-group h3{font-size:13px;line-height:1.4;margin:18px 0 6px}
 #content .planner-task{padding:12px 0;gap:10px}
 #content .planner-task-heading{gap:4px}
 #content .planner-task-title{font-size:14px;line-height:1.45;font-weight:620;padding:3px 0}
 #content .planner-task-context{gap:2px 10px}
 #content .planner-task-context button{font-size:12px;line-height:1.45;min-height:28px}
 #content .planner-task-state{font-size:12px;line-height:1.45;gap:4px;padding-top:5px}
 #content .planner-empty{padding:28px 18px}
 #content .planner-empty>.icon{width:24px;height:24px;margin-bottom:10px}
 #content .planner-empty h3{font-size:14px;line-height:1.45;margin-bottom:16px}
 #content .task-planner :is(button,input,select,summary):focus-visible{outline:2px solid var(--focus,var(--forest));outline-offset:2px}
}
@media screen and (min-width:701px) and (pointer:fine){
 #content:has(>.task-planner)>.page-heading button,
 #content .task-planner :is(.planner-modes button,.segmented button,.planner-filterbar>button,.planner-calendar-actions button,.planner-agenda-heading button,.planner-empty button){min-height:32px;padding:5px 10px;font-size:14px;line-height:1.4}
 #app #content .task-planner .planner-filterbar :is(input,select){min-height:32px;padding-block:5px;font-size:14px;line-height:1.4}
 #content .planner-calendar-actions :is(#planner-previous-month,#planner-next-month){width:32px;min-width:32px;padding:6px}
}
@media screen and (max-width:1000px){
 #content .planner-workspace.agenda{grid-template-columns:minmax(0,1fr)}
 #content .planner-workspace.agenda .planner-calendar-disclosure{grid-column:1;grid-row:2}
 #content .planner-workspace.agenda .planner-agenda{grid-column:1;grid-row:1}
 #content .planner-filterbar .searchbox{max-width:none}
}
@media screen and (max-width:700px),screen and (pointer:coarse){
 #content:has(>.task-planner)>.page-heading button,
 #app #content .task-planner :is(.planner-modes button,.segmented button,.planner-filterbar>button,.planner-calendar-actions button,.planner-agenda-heading button,.planner-empty button){min-height:44px;padding:9px 11px;font-size:15px;line-height:1.4}
 #app #content .task-planner .planner-filterbar :is(input,select){min-height:44px;font-size:16px;line-height:1.4}
 #content .task-planner :is(.planner-task-title,.planner-task-context button){min-height:44px}
 #content .planner-calendar-actions :is(#planner-previous-month,#planner-next-month){width:44px;min-width:44px;padding:10px}
}
@media screen and (max-width:600px){
 #content:has(>.task-planner)>.page-heading{align-items:center;flex-wrap:wrap;gap:10px}
 #content:has(>.task-planner)>.page-heading h1{font-size:20px}
 #content .planner-topline{gap:12px}
 #content .planner-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:4px}
 #content .planner-modes button{justify-content:space-between;white-space:normal;text-align:left}
 #content .planner-topline>.segmented{width:100%}
 #content .planner-filterbar{gap:8px;align-items:flex-end}
 #content .planner-filterbar .searchbox{min-width:100%;flex-basis:100%}
 #content .planner-filterbar>label{min-width:0;flex:1 1 100%}
 #content .planner-filterbar>button{flex:1}
 #content .planner-filter-detail{grid-template-columns:minmax(0,1fr);gap:12px}
 #content .planner-workspace{gap:16px}
 #content .planner-calendar{padding:14px 10px}
 #content .planner-calendar-heading{padding:0 2px;align-items:center;flex-wrap:wrap}
 #content .planner-calendar-heading h2{font-size:15px;min-width:0;overflow-wrap:anywhere}
 #content .planner-calendar-actions{gap:0}
 #content .planner-agenda-heading{padding:14px;align-items:flex-start}
 #content .planner-date-group{padding:0 14px}
 #content .planner-task{gap:8px;padding:10px 0}
 #content .planner-task-state{margin-left:52px;width:calc(100% - 52px)}
 #content .planner-task-context button{font-size:13px}
 #content .planner-empty{padding:24px 14px}
}
}

/* /forest/workspace-forest-analysis.css */
@layer legacy{.forest-analysis{margin-top:32px;padding-top:8px;border-top:1px solid var(--line);min-width:0}
.forest-analysis h3{font-size:18px;margin:24px 0 12px}
.forest-analysis .source-note{font-size:14px;line-height:1.55;color:var(--muted);max-width:75ch;margin:10px 0 18px}
.forest-summary{display:flex;flex-wrap:wrap;gap:20px 32px;margin:20px 0 12px}
.forest-summary>div{flex:1;min-width:135px}
.forest-summary dt,.forest-scenario-results dt{color:var(--muted);font-size:14px;line-height:1.45}
.forest-summary dd{font-size:18px;font-weight:620;margin:5px 0 0;font-variant-numeric:tabular-nums}
.forest-distributions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}
.forest-distribution{min-width:0;margin:0}
.forest-distribution figcaption{font-weight:620;margin-bottom:12px;line-height:1.5}
.forest-chart{position:relative;min-width:0;margin-bottom:12px}
.forest-chart[hidden]{display:none}
.forest-analysis table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.forest-analysis th,.forest-analysis td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere}
.forest-analysis thead th{color:var(--muted);font-weight:400}
.forest-analysis tbody th{font-weight:400}
.forest-distribution td,.forest-score-table td,.forest-coefficients td{text-align:right;white-space:nowrap}
.forest-analysis caption{text-align:left;font-weight:620;padding:12px 8px;line-height:1.5}
.forest-analysis .forest-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.forest-disclosure{margin:16px 0;border-top:1px solid var(--line)}
.forest-disclosure>summary{padding:14px 0;min-height:44px;box-sizing:border-box;font-weight:620;cursor:pointer;color:var(--forest)}
.forest-disclosure>summary:hover{color:#1c4833}
.forest-disclosure>summary:focus-visible,.forest-table-scroll:focus-visible{outline:2px solid #285c43;outline-offset:3px;border-radius:4px}
.forest-table-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;margin-bottom:20px}
.forest-stand-table{min-width:1350px}
.forest-stand-table th:first-child,.forest-stand-table td:first-child{position:sticky;left:0;background:#fff;min-width:65px;z-index:1}
.forest-source-index{margin-top:32px}
.forest-score-table th:first-child{width:50%}
.forest-scenario-control{max-width:480px;margin:20px 0}
.forest-scenario-control label{display:flex;justify-content:space-between;gap:16px;font-weight:620;margin-bottom:6px}
.forest-scenario-control output{font-variant-numeric:tabular-nums}
/* B4 BT1 (decision 222): the slider is the family's (.rg in lmf-controls.css: warm track, the area's fill, satin thumb, its own off look) */
.forest-range-limits{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.forest-range-limits button{min-height:44px;font-size:14px}
.forest-scenario-results dl{display:flex;flex-wrap:wrap;gap:20px 28px;margin:20px 0 24px}
.forest-scenario-results dd{font-weight:620;font-size:18px;margin:5px 0 0;font-variant-numeric:tabular-nums}
.forest-coefficients{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px 24px;padding-bottom:20px}
.forest-method p{max-width:75ch;font-size:14px;line-height:1.6;margin:10px 0 16px}
@media(max-width:1000px){.forest-distributions,.forest-coefficients{grid-template-columns:1fr}.forest-distribution{max-width:100%}}
@media(max-width:560px){.forest-analysis{margin-top:28px}.forest-summary{gap:18px 20px}.forest-summary>div{min-width:110px}.forest-score-table th:first-child{width:44%}.forest-analysis th,.forest-analysis td{padding:10px 6px}.forest-scenario-results dl{gap:18px 24px}.forest-scenario-results dl>div{flex:1;min-width:110px}}
}

/* /forest/workspace-contacts.css */
@layer legacy{.contacts-views{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:20px}.contacts-views button{display:flex;align-items:center;gap:10px;border:0;border-radius:0;background:transparent;color:var(--muted);padding:12px 14px;border-bottom:2px solid transparent}.contacts-views button[aria-pressed=true]{border-bottom-color:var(--forest);color:var(--forest);font-weight:620}.contacts-views button:hover{background:var(--mint)}.contacts-views .count{font-size:13px;font-variant-numeric:tabular-nums}.contacts-filter-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:16px;padding:20px;background:#edf1eb;border:1px solid var(--line);border-radius:8px}.contacts-filter-fields[hidden]{display:none}.contacts-filter-fields label{margin:0}.contacts-filter-fields select{margin:6px 0 0;width:100%}.contacts-register{background:white;border:1px solid var(--line);border-radius:12px;overflow:clip}.contacts-table{table-layout:fixed;width:100%;border-collapse:collapse;min-width:0}.contacts-table th{font-weight:620;color:var(--muted);background:#edf1eb;padding:14px 18px;text-align:left;font-size:13px;border-bottom:1px solid var(--line)}.contacts-table th:nth-child(1){width:20%}.contacts-table th:nth-child(2){width:20%}.contacts-table th:nth-child(3){width:25%}.contacts-table th:nth-child(4){width:17%}.contacts-table th:nth-child(5){width:18%}.contacts-table td{padding:20px 18px;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.contacts-table tbody tr:last-child td{border-bottom:0}.contacts-table tbody tr:hover{background:#f8faf6}.contacts-table .name{font-size:16px;font-weight:620}.contacts-secondary{display:block;font-size:13px;color:var(--muted);line-height:1.5;margin-top:5px}.contacts-channels a,.contacts-detail-channels a{display:flex;align-items:flex-start;gap:7px;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}.contacts-channels a:hover,.contacts-detail-channels a:hover{text-decoration:underline;text-underline-offset:3px}.contacts-channels a+a{margin-top:9px}.contacts-channels .icon{width:16px;height:18px;margin-top:2px}.contacts-land>div+div{margin-top:12px}.contacts-more{margin-top:8px}.contacts-missing{font-size:14px;color:var(--muted)}.contacts-set-next{color:var(--forest)}.contacts-set-next .icon{width:16px;height:16px}.contacts-register .pagination{border-top:1px solid var(--line)}.contacts-register .empty{padding:42px 24px}#detail-dialog.contacts-workspace{width:min(1100px,calc(100% - 40px));padding:0;max-height:94dvh}.contacts-detail-header{padding:30px 64px 24px 28px;border-bottom:1px solid var(--line)}.contacts-detail-title h2{margin:0 0 10px;overflow-wrap:anywhere}.contacts-detail-channels{display:flex;gap:12px 22px;flex-wrap:wrap;margin-top:20px}.contacts-detail-channels a{min-height:36px;max-width:100%;align-items:center}.contacts-detail-channels a span{min-width:0;overflow-wrap:anywhere}.contacts-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.contacts-detail-actions button{display:inline-flex;align-items:center;gap:8px}.contacts-detail-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr)}.contacts-next{padding-bottom:24px;margin:0 0 24px;border-bottom:1px solid var(--line)}.contacts-next .task-item{padding:0;flex-wrap:wrap}.contacts-next .task-due{max-width:none;text-align:left}.contacts-property-context .list-link{padding:14px 0;align-items:flex-start}.contacts-property-context .list-link:first-of-type{padding-top:0}.contacts-working-note{margin:0 0 28px}.contacts-working-note h3{margin:0 0 12px}.contacts-working-note p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.65;max-width:70ch}.contacts-disclosure{border-top:1px solid var(--line);margin-top:24px}.contacts-disclosure summary{font-size:14px;font-weight:620;padding:14px 0;min-height:44px;cursor:pointer;color:var(--forest)}.contacts-disclosure summary:hover{color:#1c4833}.contacts-disclosure form{margin:6px 0 20px}.contacts-disclosure[open]>summary{margin-bottom:4px}.contacts-property-context .note-form label{width:100%}
@media(max-width:1180px){.contacts-filter-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.contacts-table th,.contacts-table td{padding-left:12px;padding-right:12px}}
@media(max-width:1050px){.contacts-table,.contacts-table tbody{display:block}.contacts-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.contacts-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 28px;padding:22px;border-bottom:1px solid var(--line)}.contacts-table tbody tr:last-child{border-bottom:0}.contacts-table td{display:block;padding:0;border:0;min-width:0}.contacts-table .contacts-identity{grid-column:1/-1}.contacts-table td:not(.contacts-identity)::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;font-weight:620;margin-bottom:8px}.contacts-table .contacts-land{grid-row:2/4;grid-column:2}.contacts-table .contacts-next-cell{grid-column:1/-1;border-top:1px solid #e7ece4;padding-top:14px;display:flex;align-items:baseline;gap:8px 16px;flex-wrap:wrap}.contacts-table .contacts-next-cell::before{margin:0}.contacts-table .contacts-next-cell .contacts-secondary{margin:0}.contacts-detail-layout{grid-template-columns:minmax(0,1fr) minmax(260px,.9fr)}}
@media(max-width:740px){.contacts-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px}.contacts-detail-layout{display:flex;flex-direction:column}.contacts-detail-header{padding:24px 54px 22px 22px}.contacts-views{gap:0}.contacts-views button{padding:10px;font-size:15px}}
@media(max-width:480px){.contacts-views{display:grid;grid-template-columns:1fr 1fr}.contacts-views button{justify-content:space-between;text-align:left}.contacts-table tr{padding:20px 16px;gap:18px 16px;grid-template-columns:minmax(0,1fr)}.contacts-table .contacts-land{grid-row:auto;grid-column:auto}.contacts-filter-fields{grid-template-columns:1fr}.contacts-channels a{min-height:32px;align-items:center}.contacts-channels a+a{margin-top:2px}.contacts-register .pagination{flex-wrap:wrap;gap:10px}#detail-dialog.contacts-workspace{width:100%;max-width:100vw;max-height:100dvh;height:100dvh;inset:0;margin:0;border:0;border-radius:0}.contacts-detail-header{padding-left:20px}}

/* Keep frequent contact actions easy to scan and reach. */
.contacts-channels a,.contacts-recorded-phone{display:flex;align-items:center;gap:8px;min-height:44px;overflow-wrap:anywhere}
.contacts-channels a+a{margin-top:0}
.contacts-recorded-phone{color:var(--muted)}
.contacts-recorded-phone .icon{flex:none;width:16px;height:18px}
.contacts-recorded-phone>span{min-width:0}
.contacts-detail-header{padding-top:24px;padding-bottom:20px}
.contacts-detail-channels{margin-top:12px;gap:4px 20px}
.contacts-detail-actions{margin-top:8px}
.contacts-next #contact-task{margin-top:12px;display:inline-flex;align-items:center;gap:8px;min-height:44px}
.contacts-next .contacts-secondary{margin-bottom:0}
.contacts-property-context .list-link{gap:12px}
.contacts-views button:focus-visible,.contacts-disclosure summary:focus-visible,.contacts-channels a:focus-visible,.contacts-detail-channels a:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
@media(max-width:740px){.contacts-detail-header{padding-top:20px;padding-bottom:16px}.contacts-next{padding-bottom:20px;margin-bottom:20px}}
@media(max-width:480px){.contacts-table tr{grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:12px 16px;padding:16px}.contacts-table .contacts-identity{grid-column:1;grid-row:1}.contacts-table .contacts-channels,.contacts-table .contacts-land,.contacts-table .contacts-next-cell{grid-column:1/-1}.contacts-table .name{padding:0}.contacts-table td:not(.contacts-identity)::before{margin-bottom:4px}.contacts-land>div+div{margin-top:8px}.contacts-channels a{min-height:44px}.contacts-table .contacts-next-cell{padding-top:10px}.contacts-detail-actions button{flex:1;justify-content:center}}


/* Comments keep the existing history form and its contextual save path. */
.contacts-comments{padding:24px 28px;border-bottom:1px solid var(--line);background:var(--surface,#fff)}
.contacts-comments>h3{display:flex;align-items:baseline;gap:10px;margin:0 0 12px;font-size:16px}
.contacts-comments .empty{padding:0;margin:0;max-width:68ch;line-height:1.55;color:var(--muted);text-align:left}
.contacts-comment-composer[hidden]{display:none}
#contact-comment-composer:not([hidden])+#contact-comment-items>.empty{display:none}
.contacts-comment-composer .note-form{margin:16px 0 24px;gap:12px;max-width:760px}
.contacts-comment-composer textarea{min-height:108px;resize:vertical}
.contacts-comment-composer .note-form>button{min-height:44px}
.contacts-comment-options.contacts-disclosure{margin:0;border:0}
.contacts-comment-options.contacts-disclosure summary{padding:10px 0;font-weight:400;min-height:44px;display:list-item}
.contacts-comment-options .form-grid{margin:0 0 8px}
.contacts-comment{padding:16px 0;border-top:1px solid var(--line);max-width:82ch}
.contacts-comment:first-child{border-top:0;padding-top:4px}
.contacts-comment:last-child{padding-bottom:0}
.contacts-comment-meta{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.contacts-comment-meta strong{font-weight:620;color:var(--ink)}
.contacts-comment-meta time{font-variant-numeric:tabular-nums}
.contacts-comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0;line-height:1.6;max-width:70ch}
.contacts-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.contacts-history-heading h3{font-size:16px;margin:0}
.contacts-history-heading button{min-height:44px}
@media(max-width:740px){.contacts-comments{padding:22px}}
@media(max-width:480px){.contacts-comments{padding:22px 20px}.contacts-comment-options .form-grid{grid-template-columns:1fr}}

/* Contact-first detail; original forms and actions remain in their guarded flow. */
#detail-dialog.contacts-workspace .contacts-detail-header{padding:28px 64px 24px 28px}
#detail-dialog.contacts-workspace .contacts-return{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;margin:0 0 16px;color:var(--muted);font-size:13px}
#detail-dialog.contacts-workspace .contacts-return>span{min-width:0;overflow-wrap:anywhere}
#detail-dialog.contacts-workspace .contacts-return .icon{width:17px;height:17px;transform:rotate(180deg)}
#detail-dialog.contacts-workspace .contacts-detail-title h2{font-size:32px;line-height:1.18;font-weight:620;letter-spacing:-.025em;margin:0 0 8px;overflow-wrap:anywhere}
#detail-dialog.contacts-workspace .contacts-profile-role{font-size:16px;line-height:1.5;color:var(--ink);margin:0 0 12px}
#detail-dialog.contacts-workspace .contacts-profile-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:24px 0 16px;padding:20px 0 0;border-top:1px solid var(--line)}
#detail-dialog.contacts-workspace .contacts-profile-facts>div{min-width:0}
#detail-dialog.contacts-workspace .contacts-profile-facts dt{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:13px;line-height:1.5;margin:0 0 6px;font-weight:400}
#detail-dialog.contacts-workspace .contacts-profile-facts dt .icon{width:16px;height:16px}
#detail-dialog.contacts-workspace .contacts-profile-facts dd{margin:0;text-align:left;overflow-wrap:anywhere;font-size:16px;line-height:1.5;font-weight:620;color:var(--ink)}
#detail-dialog.contacts-workspace .contacts-profile-facts dd>a,#detail-dialog.contacts-workspace .contacts-profile-facts dd>span{display:block;min-height:0}
#detail-dialog.contacts-workspace .contacts-profile-facts dd>.lmf-addr-line{padding:4px 0}   /* B4 DFD: the address with its copy icon on its last line */
#detail-dialog.contacts-workspace .contacts-profile-facts dd>a{padding:7px 0;min-height:44px;box-sizing:border-box}
#detail-dialog.contacts-workspace .contacts-profile-missing{color:var(--muted);font-weight:400;font-size:14px}
#detail-dialog.contacts-workspace .contacts-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:20px}
#detail-dialog.contacts-workspace .contacts-detail-actions button[hidden],#detail-dialog.contacts-workspace #contact-back[hidden]{display:none!important}
#detail-dialog.contacts-workspace .contacts-detail-actions #contact-compose{margin-left:auto}
#detail-dialog.contacts-workspace .contacts-detail-layout{grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr)}
#detail-dialog.contacts-workspace .contacts-comments{padding:0 0 24px;margin-bottom:24px;border-bottom:1px solid var(--line)}
#detail-dialog.contacts-workspace .contact-source[hidden]{display:none!important}
#detail-dialog.contacts-workspace .contacts-crm-links{margin-top:20px;display:flex;gap:12px;flex-wrap:wrap}
#detail-dialog.contacts-workspace #contact-edit-open:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.contacts-person-row{gap:16px;align-items:flex-start}
.contacts-person-row>div:first-child{min-width:0}
.contacts-people-channels{display:flex;gap:8px 24px;flex-wrap:wrap;margin-top:10px;font-size:14px;line-height:1.5}
.contacts-people-channels>div{min-width:0;display:flex;flex-direction:column;align-items:flex-start;overflow-wrap:anywhere}
.contacts-people-label{font-size:12px;color:var(--muted)}
.contacts-people-channels a{color:var(--forest);display:inline-flex;align-items:center;min-height:44px;max-width:100%;overflow-wrap:anywhere}
.contacts-people-channels .contacts-profile-missing{color:var(--muted)}
@media(max-width:740px){
 #detail-dialog.contacts-workspace .contacts-detail-header{padding:24px 54px 22px 22px}
 #detail-dialog.contacts-workspace .contacts-detail-title h2{font-size:28px}
 #detail-dialog.contacts-workspace .contacts-profile-facts{grid-template-columns:minmax(0,1fr);gap:18px;margin-top:20px}
 #detail-dialog.contacts-workspace .contacts-detail-actions #contact-compose{margin-left:0}
}
@media(max-width:480px){
 #detail-dialog.contacts-workspace .contacts-detail-header{padding:24px 52px 22px 20px}
 #detail-dialog.contacts-workspace .contacts-detail-actions{margin-right:-32px}
 #detail-dialog.contacts-workspace .contacts-detail-actions button{flex:1 1 auto;justify-content:center}
 .contacts-person-row{flex-wrap:wrap}
 .contacts-people-channels{flex-direction:column;gap:8px}
}


/* Compact contact hierarchy; controls, content and guarded handlers are unchanged. */
#detail-dialog.contacts-workspace .contacts-detail-header{padding:20px 60px 18px 24px}
#detail-dialog.contacts-workspace .contacts-return{margin-bottom:8px}
#detail-dialog.contacts-workspace .contacts-property-tabs{margin-bottom:14px;padding-bottom:8px}
#detail-dialog.contacts-workspace .contacts-detail-title h2{font-size:22px;margin-bottom:6px}
#detail-dialog.contacts-workspace .contacts-profile-role{font-size:14px;margin-bottom:8px}
#detail-dialog.contacts-workspace .contacts-profile-facts{gap:20px;margin:16px 0 10px;padding-top:14px}
#detail-dialog.contacts-workspace .contacts-profile-facts dt{font-size:12px;margin-bottom:4px}
#detail-dialog.contacts-workspace .contacts-profile-facts dt .icon{width:14px;height:14px}
#detail-dialog.contacts-workspace .contacts-profile-facts dd{font-size:16px;line-height:1.4}
#detail-dialog.contacts-workspace .contacts-profile-facts dd>a{min-height:32px;padding:4px 0}
#detail-dialog.contacts-workspace .contacts-profile-missing{font-size:14px}
#detail-dialog.contacts-workspace .contacts-detail-actions{margin-top:12px}
@media(pointer:coarse){
 #detail-dialog.contacts-workspace .contacts-profile-facts dd>a{min-height:44px;padding:7px 0}
}
@media(max-width:740px){
 #detail-dialog.contacts-workspace .contacts-detail-header{padding:16px 20px 18px}
 #detail-dialog.contacts-workspace .contacts-return{padding-right:44px;margin-bottom:8px;gap:4px 12px}
 #detail-dialog.contacts-workspace .contacts-property-tabs{max-width:100%;min-width:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;white-space:nowrap;margin-bottom:12px;padding-bottom:6px;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--forest) var(--line)}
 #detail-dialog.contacts-workspace .contacts-property-tabs::-webkit-scrollbar{height:4px}
 #detail-dialog.contacts-workspace .contacts-property-tabs::-webkit-scrollbar-track{background:var(--line)}
 #detail-dialog.contacts-workspace .contacts-property-tabs::-webkit-scrollbar-thumb{background:var(--forest);border-radius:2px}
 #detail-dialog.contacts-workspace .contacts-profile-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:14px 0 10px;padding-top:12px}
 #detail-dialog.contacts-workspace .contacts-profile-facts [data-contact-fact=address]{grid-column:1/-1}
 #detail-dialog.contacts-workspace .contacts-profile-facts dd{font-size:15px}
 #detail-dialog.contacts-workspace .contacts-profile-facts dd>a{min-height:44px;padding:7px 0}
 #detail-dialog.contacts-workspace .contacts-detail-actions{margin-right:0}
}

/* Property People: one discreet action, one progressive form, existing contact semantics. */
.property-people-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.property-people-heading h3{margin:0;font-size:16px;line-height:1.4}
.property-people-heading [data-person-add]{display:inline-flex;align-items:center;gap:5px;flex:none;min-height:32px;padding:5px 0;font-size:14px;font-weight:400;color:var(--forest);background:transparent;border:0}
.property-people-heading [data-person-add] .icon{width:15px;height:15px}
.property-person-panel{padding:16px 0;margin:0 0 20px;border-block:1px solid var(--line)}
.property-person-panel[hidden],.property-people-heading [hidden],.property-person-panel [hidden]{display:none!important}
.property-person-choices{display:flex;gap:8px;flex-wrap:wrap}
.property-person-choices button{min-height:32px;padding:7px 10px;font-size:14px;color:var(--forest);background:transparent;border:1px solid var(--line);border-radius:6px}
.property-person-choices button[aria-pressed=true]{border-color:var(--forest);background:var(--mint);font-weight:620}
.property-person-panel>.source-note{margin:10px 0 16px}
.property-person-form{display:grid;gap:12px;max-width:760px;margin:0}
.property-person-form label{min-width:0;font-size:14px}
.property-person-form .form-grid{gap:12px 20px;margin:0}
.property-person-form :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;max-width:100%;font:inherit;font-size:14px}
.property-person-form>button{justify-self:start;min-height:32px;padding:8px 12px}
.property-person-form .source-note{margin:0;font-size:12px}
.property-person-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;font-size:14px}
.property-person-footer p{margin:0;max-width:65ch;overflow-wrap:anywhere}
.property-person-footer button{min-height:32px;flex:none}
.property-person-panel :is(input,select,textarea,button):focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.property-person-panel button:disabled{opacity:.6;cursor:default}
@media(max-width:740px),(pointer:coarse){.property-people-heading [data-person-add],.property-person-panel button{min-height:44px}.property-person-form :is(input,select,textarea){font-size:16px;min-height:44px}}
@media(max-width:480px){.property-people-heading{gap:8px;align-items:baseline}.property-people-heading h3{font-size:15px}.property-people-heading [data-person-add]{font-size:12px;gap:4px}.property-person-choices{display:grid;grid-template-columns:1fr}.property-person-choices button{text-align:left}.property-person-form .form-grid{grid-template-columns:minmax(0,1fr)}.property-person-form .form-grid>.full{grid-column:1}.property-person-footer{align-items:flex-start}.property-person-form>button{width:100%;justify-self:stretch}}


/* Contacts main page: compact register within the current FOREST workspace. */
@media screen{
 #content:has(>.contacts-views)>.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
 #content:has(>.contacts-views)>.page-heading h1{font-size:var(--type-page,1.375rem);line-height:1.25;margin:0}
 #content:has(>.contacts-views)>.page-heading .actions{display:flex;align-items:center;gap:8px;margin:0}
 #content:has(>.contacts-views)>.page-heading button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 10px;font-size:14px;line-height:1.4;border-radius:6px}
 #content:has(>.contacts-views)>.page-heading button .icon{width:16px;height:16px}
 #content #contacts-call-lists{background:transparent;border-color:transparent;color:var(--forest)}
 #content #contacts-call-lists:hover{background:var(--mint);border-color:var(--mint)}
 #content>.contacts-views{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin:0 0 14px;border-bottom:1px solid var(--line)}
 #content>.contacts-views button{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:5px 0 6px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);font-size:13px;line-height:1.4;font-weight:400;text-align:left}
 #content>.contacts-views button[aria-pressed=true]{color:var(--forest);font-weight:620;border-bottom-color:var(--forest)}
 #content>.contacts-views button:hover{color:var(--forest);background:transparent}
 #content>.contacts-views .count{font-size:12px;font-weight:400;font-variant-numeric:tabular-nums;color:inherit}
 #content #contacts-filters{margin:0}
 #content .contacts-filter-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px;margin:14px 0 0;padding:14px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
 #content .contacts-filter-fields[hidden]{display:none}
 #content .contacts-filter-fields label{min-width:0;margin:0;font-size:12px;line-height:1.4;font-weight:400;color:var(--muted)}
 #app #content #contacts-filters .contacts-filter-fields select{margin-top:5px}
 
 
 
 
 
 
 
 #content .contacts-register{border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);box-shadow:none;overflow:clip}
 #content .contacts-table{display:table;width:100%;table-layout:fixed;min-width:0;font-size:13px;line-height:1.45}
 #content .contacts-table thead{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}
 #content .contacts-table tbody{display:table-row-group}
 #content .contacts-table tr{display:table-row;padding:0;border:0}
 #content .contacts-table th{padding:10px 14px;font-size:12px;line-height:1.4;font-weight:400;color:var(--muted);background:#f3f5f0;border-bottom:1px solid var(--line)}
 #content .contacts-table th:nth-child(1){width:22%}
 #content .contacts-table th:nth-child(2){width:20%}
 #content .contacts-table th:nth-child(3){width:24%}
 #content .contacts-table th:nth-child(4){width:16%}
 #content .contacts-table th:nth-child(5){width:18%}
 #content .contacts-table td{display:table-cell;padding:8px 14px;vertical-align:top;min-width:0;overflow-wrap:anywhere;border-bottom:1px solid var(--line);text-align:left}
 #content .contacts-table td::before{display:none}
 #content .contacts-table tbody tr:last-child td{border-bottom:0}
 #content .contacts-table tbody tr:hover{background:#f5f8f2}
 #content .contacts-table tbody tr:focus-within{background:#f1f6ee}
 #content .contacts-table .name{font-size:var(--ui-fs-row);line-height:1.4;font-weight:620;color:var(--ink)}
 #content .contacts-table .contacts-secondary{display:block;font-size:12px;line-height:1.45;color:var(--muted);margin:2px 0 0}
 #content .contacts-table .contacts-identity>.contacts-secondary{margin-top:1px}
 #content .contacts-table .contacts-channels :is(a,.contacts-recorded-phone){display:flex;align-items:center;gap:6px;min-height:32px;max-width:100%;margin:0;font-size:13px;line-height:1.4}
 #content .contacts-table .contacts-channels .icon{flex:none;width:14px;height:16px;margin:0}
 #content .contacts-table .contacts-channels :is(a,.contacts-recorded-phone)>span{min-width:0;overflow-wrap:anywhere}
 #content .contacts-table .contacts-missing{font-size:12px;line-height:1.45;color:var(--muted)}
 #content .contacts-table .contacts-land>div+div{margin-top:6px}
 #content .contacts-table .contacts-land .contacts-secondary{font-variant-numeric:tabular-nums}
 
 #content .contacts-table .contacts-next-cell{border-top:0;padding-top:8px}
 #content .contacts-table .contacts-set-next{font-weight:400}
 #content .contacts-table .contacts-set-next .icon{width:14px;height:14px}
 #content .contacts-register .pagination{padding:10px 14px;font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums}
 #content .contacts-register .empty{padding:32px 18px;font-size:14px;line-height:1.55}
 #content .contacts-register .empty>.icon{width:24px;height:24px}
 #content :is(.contacts-views,.contacts-register,.contacts-toolbar,.contacts-result-actions) :is(button,a,summary):focus-visible,#content #contacts-filters :is(input,select):focus-visible,#content #contact-count:focus-visible,#content:has(>.contacts-views)>.page-heading button:focus-visible{outline:2px solid var(--focus,var(--forest));outline-offset:2px}
 #content :is(.contacts-views,.contacts-register,.contacts-toolbar,.contacts-result-actions) button:disabled{opacity:.52;cursor:not-allowed}
 #content .contacts-register[aria-busy=true]{cursor:progress}
 #content .contacts-register[aria-busy=true] :is(button,a){cursor:progress}
}
@media screen and (max-width:1100px){
 #content .contacts-table :is(th,td){padding-left:10px;padding-right:10px}
}
@media screen and (max-width:1000px){
 #content .contacts-filter-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media screen and (min-width:701px) and (max-width:1000px){
 #content .contacts-register{min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden}
 #content .contacts-table{min-width:720px}
}
@media screen and (max-width:700px){
 #content .contacts-table,#content .contacts-table tbody{display:block}
 #content .contacts-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #content .contacts-table tr{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:10px 24px;padding:16px;border-bottom:1px solid var(--line)}
 #content .contacts-table tbody tr:last-child{border-bottom:0}
 #content .contacts-table td{display:block;padding:0;border:0;min-width:0}
 #content .contacts-table .contacts-identity{grid-column:1;grid-row:1}
 
 #content .contacts-table .contacts-channels{grid-column:1;grid-row:2}
 #content .contacts-table .contacts-land{grid-column:2;grid-row:2}
 #content .contacts-table td:is(.contacts-channels,.contacts-land)::before{content:attr(data-label);display:block;margin:0 0 3px;color:var(--muted);font-size:12px;line-height:1.4;font-weight:400}
 #content .contacts-table .contacts-next-cell{grid-column:1/-1;display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 12px;padding-top:8px;border-top:1px solid var(--line)}
 #content .contacts-table .contacts-next-cell::before{content:attr(data-label);display:inline;color:var(--muted);font-size:12px;line-height:1.4;font-weight:400}
 #content .contacts-table .contacts-next-cell .contacts-secondary{margin:0}
}
@media screen and (max-width:700px),screen and (pointer:coarse){
 #content:has(>.contacts-views)>.page-heading button,#content>.contacts-views button,#content .contacts-toolbar button,#content .contacts-result-actions button,#content #contacts-options>summary{min-height:44px}
 #content:has(>.contacts-views)>.page-heading button{padding:9px 11px}
 
 #content .contacts-table .contacts-channels :is(a,.contacts-recorded-phone){min-height:44px}
 
}
@media screen and (max-width:600px){
 #content:has(>.contacts-views)>.page-heading{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px}
 #content:has(>.contacts-views)>.page-heading h1{font-size:20px}
 #content:has(>.contacts-views)>.page-heading .actions{gap:4px}
 #content:has(>.contacts-views)>.page-heading button{padding-inline:8px;font-size:13px}
 #content>.contacts-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin-bottom:12px}
 #content>.contacts-views button{justify-content:space-between;gap:8px;padding:9px 0;font-size:13px;white-space:normal;min-width:0}
 #content>.contacts-views button>span:first-child{min-width:0;overflow-wrap:anywhere}
 #content>.contacts-views .count{flex:none}
 #content .contacts-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 
 
 
 #content .contacts-table tr{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:8px 12px;padding:14px}
 
 #content .contacts-table .contacts-channels{grid-column:1/-1;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:0 16px}
 #content .contacts-table .contacts-channels::before{flex-basis:100%;margin-bottom:0}
 #content .contacts-table .contacts-channels :is(a,.contacts-recorded-phone){min-width:0;max-width:100%}
 #content .contacts-table .contacts-land{grid-column:1/-1;grid-row:3}
 #content .contacts-table .contacts-land>div+div{margin-top:4px}
 #content .contacts-table .contacts-next-cell{grid-row:4;gap:0 10px;padding-top:6px}
 #content .contacts-register .pagination{flex-wrap:wrap;gap:8px;padding:10px 14px}
 #content .contacts-register .pagination .actions{gap:6px}
}
@media screen and (max-width:360px){
 #content:has(>.contacts-views)>.page-heading>div:first-child{flex-basis:100%}
 #content:has(>.contacts-views)>.page-heading .actions{width:100%;justify-content:space-between}
 #content .contacts-filter-fields{grid-template-columns:minmax(0,1fr)}
 #content .contacts-table tr{grid-template-columns:minmax(0,1fr)}
 
 #content .contacts-table .contacts-channels{grid-row:3}
 #content .contacts-table .contacts-land{grid-row:4}
 #content .contacts-table .contacts-next-cell{grid-row:5}
}


/* Contacts-owned creation and call-list forms; existing profile and People styles stay intact. */
@media screen{
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form){width:min(720px,calc(100% - 32px));max-height:92dvh;padding:24px;border-radius:12px}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>#detail-body>h2{margin:0 0 18px;padding-right:40px;font-size:18px;line-height:1.3;font-weight:620;letter-spacing:-.02em}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>.close-dialog{top:16px;right:16px}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form{margin:0}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form label{min-width:0;margin:0;font-size:13px;line-height:1.4;font-weight:400}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form :is(input,select,textarea,.ui-sel){box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin:6px 0 0}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form>.actions{gap:8px;margin-top:16px}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form) :is(button,input,select,textarea):focus-visible{outline:2px solid var(--focus,var(--forest));outline-offset:2px}
 #content:has(>.call-workspace)>.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
 #content:has(>.call-workspace)>.page-heading h1{margin:0;font-size:var(--type-page,1.375rem);line-height:1.25}
 #content:has(>.call-workspace)>.page-heading .actions{gap:8px;margin:0}
 #content .call-workspace{gap:14px}
 #content .call-workspace label{min-width:0;margin:0;font-size:13px;line-height:1.4;font-weight:400}
 #app #content .call-workspace :is(input,select,textarea){box-sizing:border-box;min-width:0;max-width:100%;width:100%;margin:6px 0 0}
 #content .call-list-toolbar{gap:12px}
 #content .call-list-toolbar>label:first-child{max-width:480px}
 #content :is(.call-name-form,.call-log){padding:18px;border-radius:8px;border-color:var(--line);box-shadow:none}
 #content .call-name-form{gap:12px;align-items:flex-end}
 #content .call-name-form .actions{gap:8px;padding-bottom:0}
 #content .call-log h2{margin:0 0 14px;font-size:16px;line-height:1.4;font-weight:620}
 #content .call-log .form-grid{gap:12px 20px;margin-bottom:12px}
 #content .call-log .muted{margin:10px 0 14px;font-size:12px;line-height:1.5}
 #content .call-management-body{gap:12px;padding:4px 0 16px}
 #content .call-view-toolbar{gap:8px 12px}
 #content .call-view-toolbar>label:first-child{max-width:480px}
 #content .call-view-toolbar #call-list-count{font-size:12px}
 #content .call-workspace :is(.call-phone a){min-height:32px}
 #content .call-workspace button:disabled{opacity:.52;cursor:not-allowed}
 #content .call-workspace :is(button,a,input,select,textarea,summary):focus-visible,#content:has(>.call-workspace)>.page-heading :is(button,a):focus-visible{outline:2px solid var(--focus,var(--forest));outline-offset:2px}
}
@media screen and (max-width:700px),screen and (pointer:coarse){
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>#detail-body>h2{padding-right:48px}
 #content .call-workspace :is(.call-phone a){min-height:44px}
}
@media screen and (max-width:600px){
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form){width:calc(100% - 24px);max-height:94dvh;padding:20px}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>#detail-body>h2{font-size:18px;margin-bottom:16px}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>.close-dialog{top:10px;right:10px}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form .form-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form .form-grid>.full{grid-column:1}
 #content:has(>.call-workspace)>.page-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}
 #content:has(>.call-workspace)>.page-heading h1{font-size:20px}
 #content:has(>.call-workspace)>.page-heading .actions{flex-wrap:wrap;gap:8px 14px}
 #content :is(.call-name-form,.call-log){padding:16px}
 #content .call-name-form{display:grid;gap:12px}
 #content .call-list-toolbar>label:first-child,#content .call-view-toolbar>label:first-child{max-width:none}
}
}

/* /forest/workspace-board.css */
@layer legacy{.board-audience{color:var(--muted);margin:-.25rem 0 1.5rem;font-size:14px}.board-audience span{color:var(--muted)}.board-toolbar{display:flex;gap:.75rem;align-items:center;margin-bottom:1.4rem}.board-search{flex:1}.board-toolbar input,.board-toolbar select{margin:0;width:100%}.board-toolbar>label:last-child{min-width:11rem}.board-group{margin-bottom:1.7rem}.board-group>h2{font-size:16px;font-weight:620;margin:0 0 .8rem}.board-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}.board-note{min-width:0;padding:1.2rem 1.3rem;background:var(--panel,#fff);border:1px solid var(--line,#dfe5df);border-radius:10px}.board-note.is-pinned{background:var(--mint,#e3eee4);border-color:var(--line,#dfe5df)}.board-note.is-highlighted{outline:2px solid var(--forest,#315b43);outline-offset:3px}.board-note-heading{display:flex;gap:.75rem;align-items:baseline;justify-content:space-between}.board-note h3{font-size:16px;line-height:1.45;margin:0;overflow-wrap:anywhere}.board-pin-label{display:inline-flex;gap:.3rem;align-items:center;white-space:nowrap;color:var(--forest,#315b43);font-size:12px;font-weight:620}.board-pin-label .icon{width:14px;height:14px}.board-note-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65;margin:.9rem 0 1.1rem}.board-note-meta{display:flex;flex-wrap:wrap;gap:.35rem .7rem;font-size:12px;color:var(--muted,#59655b)}.board-note-actions{display:flex;gap:.45rem;flex-wrap:wrap;margin-top:1rem;padding-top:.85rem;border-top:1px solid var(--line,#dfe5df)}.board-note-actions button{font-size:13px;min-height:36px;padding:.4rem .65rem;display:inline-flex;align-items:center;gap:.3rem}.board-note-actions button:first-child{margin-right:auto}.board-note-actions .icon{width:15px;height:15px}.board-empty{padding:3rem 1.5rem;text-align:center;color:var(--muted,#59655b);background:var(--panel,#fff);border:1px dashed var(--line,#dfe5df);border-radius:10px}.board-empty h2{font-size:18px;color:var(--ink,#23342a)}.board-empty p{max-width:32rem;margin:.75rem auto 0;line-height:1.6}.board-compose{max-width:52rem;padding:1.5rem;background:var(--panel,#fff);border:1px solid var(--line,#dfe5df);border-radius:10px}.board-compose h2{margin:0 0 1.2rem;font-size:18px}.board-compose form{display:grid;gap:1.1rem}.board-compose label{display:grid;gap:.4rem}.board-compose .board-check{display:flex;align-items:center;gap:.6rem}.board-check input{width:auto;margin:0}.board-form-hint{font-size:14px;color:var(--muted,#59655b);margin:0}.board-error{padding:1rem;border:1px solid #bf6f5c;background:#fff5f0;border-radius:8px;margin-bottom:1rem}.board-loading{padding:2rem;color:var(--muted,#59655b)}
@media(max-width:800px){.board-grid{grid-template-columns:1fr}.board-note{padding:1.1rem}.board-audience span{display:block;margin-top:.25rem}.board-compose{padding:1.1rem}.board-note-actions button{min-height:42px}}
@media(max-width:480px){.board-toolbar{align-items:stretch;flex-direction:column}.board-toolbar>label:last-child{min-width:0}.board-note-heading{flex-wrap:wrap}.board-note-actions{gap:.4rem}.board-note-actions button:first-child{margin-right:0}.board-audience{margin-bottom:1.1rem}}
.board-audience{max-width:65ch;line-height:1.5;font-size:13px}
#board-refresh{border-color:transparent;background:transparent;color:var(--muted)}
#board-refresh:hover{background:var(--mint);color:var(--forest)}
@media(max-width:1000px){.board-grid{grid-template-columns:1fr}}
@media(max-width:600px){.board-note-actions button{min-height:44px}.board-note-body{font-size:15px}.board-note-meta{font-size:13px}}

/* 17 October workspace refinement. Author/admin controls and reversible archive stay exact. */
@media screen{
 #content:has(>#board-main)>.page-heading{align-items:center;gap:12px;margin-bottom:12px}
 #content:has(>#board-main)>.page-heading h1{font-size:var(--type-page,1.375rem);line-height:1.25;margin:0}
 #content:has(>#board-main)>.page-heading .actions{gap:8px}
 #content .board-audience{font-size:13px;line-height:1.5;margin:0 0 18px;max-width:65ch}
 #content .board-toolbar{display:grid;grid-template-columns:minmax(220px,440px) minmax(150px,190px);align-items:center;gap:8px;margin-bottom:20px}
 #content .board-toolbar>label{min-width:0;margin:0}
 #content .board-toolbar :is(input,select){min-width:0;width:100%;margin:0}
 #content .board-group{margin-bottom:22px}
 #content .board-group>h2{font-size:14px;line-height:1.4;font-weight:620;margin:0 0 10px}
 #content .board-grid{gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
 #content .board-note{padding:16px 18px;border-radius:8px;background:var(--white,#fff);box-shadow:none}
 #content .board-note.is-pinned{background:var(--mint);border-color:var(--line)}
 #content .board-note-heading{gap:10px;align-items:baseline;min-width:0;flex-wrap:wrap}
 #content .board-note h3{font-size:14px;line-height:1.45;font-weight:620;min-width:0;flex:1 1 160px}
 #content .board-pin-label{font-size:12px;line-height:1.4;gap:5px;color:var(--forest)}
 #content .board-note-body{font-size:14px;line-height:1.6;margin:10px 0 14px;max-width:70ch}
 #content .board-note-meta{font-size:12px;line-height:1.5;gap:4px 10px;color:var(--muted)}
 #content .board-note.is-pinned .board-note-meta{color:var(--forest)}
 #content .board-note-actions{gap:6px;margin-top:14px;padding-top:12px;border-color:var(--line)}
 #content .board-note-actions button{font-size:13px;line-height:1.4;padding:6px 9px;gap:5px;border-radius:var(--control-radius,6px)}
 #content .board-note-actions button:first-child{margin-right:auto}
 #content .board-empty{padding:28px 20px;text-align:left;border:1px solid var(--line);border-radius:8px;background:var(--white,#fff);box-shadow:none}
 #content .board-empty h2{font-size:16px;line-height:1.4;font-weight:620;margin:0 0 8px}
 #content .board-empty p{font-size:14px;line-height:1.55;max-width:55ch;margin:0}
 #content .board-compose{padding:20px;border-radius:8px;max-width:760px;box-shadow:none}
 #content .board-compose h2{font-size:16px;line-height:1.4;font-weight:620;margin-bottom:18px}
 #content .board-compose form{gap:14px}
 #content .board-compose label{font-size:13px;line-height:1.45;gap:6px;margin:0}
 #content .board-compose :is(input,textarea){margin-top:0;min-width:0}
 #content .board-compose .board-check{min-height:44px;cursor:pointer;font-size:14px}
 #content .board-form-hint{font-size:13px;line-height:1.5;margin:0;max-width:65ch}
 #content .board-compose .actions{gap:8px}
 #content .board-error{font-size:14px;line-height:1.55;padding:12px 14px;margin-bottom:16px}
 #content #board-main>.pagination{font-size:13px;line-height:1.4;padding:12px 0;gap:8px;flex-wrap:wrap}
 #content #board-main>.pagination .actions{gap:6px}
 #content :is(.board-note-actions,.board-compose,#board-main>.pagination) button:focus-visible{outline:2px solid var(--focus,var(--forest));outline-offset:2px}
}
@media screen and (min-width:701px) and (pointer:fine){
 #content:has(>#board-main)>.page-heading button,
 #content :is(.board-note-actions,.board-compose .actions,#board-main>.pagination) button{min-height:32px;padding:5px 10px;font-size:14px;line-height:1.4}
 #app #content .board-toolbar :is(input,select){min-height:32px;padding-block:5px;font-size:14px;line-height:1.4}
 #app #content .board-compose input:not([type=checkbox]){min-height:36px;font-size:14px;line-height:1.4;padding-block:6px}
}
@media screen and (max-width:1000px){
 #content .board-grid{grid-template-columns:minmax(0,1fr)}
}
@media screen and (max-width:700px),screen and (pointer:coarse){
 #content:has(>#board-main)>.page-heading button,
 #content :is(.board-note-actions,.board-compose .actions,#board-main>.pagination) button{min-height:44px;padding:9px 11px;font-size:15px;line-height:1.4}
 #app #content .board-toolbar :is(input,select),
 #app #content .board-compose :is(input:not([type=checkbox]),textarea){min-height:44px;font-size:16px;line-height:1.4}
}
@media screen and (max-width:600px){
 #content:has(>#board-main)>.page-heading{flex-wrap:wrap;align-items:flex-start;gap:10px}
 #content:has(>#board-main)>.page-heading h1{font-size:20px}
 #content:has(>#board-main)>.page-heading .actions{width:100%;justify-content:flex-start;gap:8px}
 #content .board-audience{font-size:13px;margin-bottom:16px}
 #content .board-toolbar{grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:18px}
 #content .board-note{padding:16px}
 #content .board-note-heading{gap:6px}
 #content .board-note h3{flex-basis:100%;font-size:15px}
 #content .board-note-body{font-size:15px;line-height:1.6}
 #content .board-note-actions{gap:8px}
 #content .board-note-actions button:first-child{margin-right:0;flex-basis:100%;justify-content:center}
 #content .board-note-actions button{flex:1;justify-content:center}
 #content .board-compose{padding:16px}
 #content .board-empty{padding:24px 16px}
}
}

/* /forest/workspace-dashboard.css */
@layer legacy{/* Operate: one readable agenda, a weekly workbench, and an explained review queue. */
.dashboard-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.dashboard-header h1{margin:0}.dashboard-header .actions{display:flex;align-items:center}.dashboard-header button{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.dashboard-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:28px}.dashboard-controls-label{font-size:14px;font-weight:400;color:var(--muted);margin-bottom:9px}.dashboard-switch{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#fff}.dashboard-switch button{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--muted);min-height:44px}.dashboard-switch button[aria-pressed=true]{background:var(--forest);color:#fff}
.lmf-sample-badge{display:inline-flex;align-items:center;vertical-align:middle;white-space:nowrap;font-size:var(--ui-fs-micro);line-height:1.4;font-weight:600;letter-spacing:.025em;padding:3px 7px;color:#6a4c1b;background:#f8edd5;border:1px solid #e8d8b7;border-radius:4px}.dashboard-sample-basis{color:#6a4c1b;font-size:13px}.dashboard-day{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:32px;align-items:start}.dashboard-agenda{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}.dashboard-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:23px 24px;border-bottom:1px solid var(--line)}.dashboard-section-head h2{font-size:22px;margin:0;font-weight:620}.dashboard-section-head a{font-size:14px;white-space:nowrap}.dashboard-section-head .count{margin-left:8px}.dashboard-group-title{display:flex;align-items:center;gap:8px;padding:17px 24px 5px}.dashboard-group-title h3{font-size:14px;margin:0;font-weight:620;color:var(--muted)}.dashboard-group-title.is-late h3{color:#923930}.dashboard-group-title .count{font-size:13px}
.dashboard-task{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:17px 24px;border-bottom:1px solid #e9ede6}.dashboard-task:last-child{border-bottom:0}.dashboard-task>.check-task[hidden]+div{grid-column:2}.dashboard-task .check-task{width:44px;height:44px;min-height:44px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;border-radius:8px}.dashboard-task .check-task::before{content:"";width:22px;height:22px;border:1.5px solid #97ac98;border-radius:50%}.dashboard-task .check-task:hover{background:var(--mint)}.dashboard-task .check-task:disabled::before{display:none}.dashboard-task-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:6px;font-size:13px;color:var(--muted)}.dashboard-task-time{text-align:right;color:var(--muted);font-size:13px;max-width:150px}.dashboard-task-time.overdue{color:#923930}.dashboard-task-time time{display:block;font-variant-numeric:tabular-nums}.dashboard-empty{padding:26px 24px;color:var(--muted);font-size:14px;margin:0}.dashboard-more{display:flex;justify-content:flex-end;padding:12px 24px}.dashboard-more button{min-height:44px}.dashboard-aside{display:grid;gap:26px;min-width:0}
.dashboard-trip{background:#e7eee2;border-radius:12px;padding:24px;color:#244832}.dashboard-trip h2{font-size:16px;font-weight:620;color:#38533f;margin:0 0 18px}.dashboard-trip h3{font-size:22px;letter-spacing:-.02em;line-height:1.25;margin:10px 0 14px;overflow-wrap:anywhere}.dashboard-trip-date{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#38533f;font-size:14px}.dashboard-trip-stops{margin:22px 0;padding:0;list-style:none;border-top:1px solid #c8d5c2}.dashboard-trip-stops li{display:flex;align-items:baseline;gap:10px;padding:11px 0;border-bottom:1px solid #c8d5c2;line-height:1.4}.dashboard-trip-stops .stop-index{font-size:13px;font-variant-numeric:tabular-nums;color:#435e48;width:18px;flex:none}.dashboard-trip-stops button{font-weight:400;text-align:left;overflow-wrap:anywhere;color:#254631;min-height:32px}.dashboard-trip-flags{display:flex;gap:8px;flex-wrap:wrap;font-size:13px;margin:12px 0 18px;color:#455e41}.dashboard-links{display:grid;gap:0}.dashboard-link{display:flex;align-items:center;gap:12px;padding:16px 0;min-height:52px;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none!important;font-weight:620}.dashboard-link:hover{color:var(--forest)}.dashboard-link span{flex:1}.dashboard-link>.icon:last-child{width:17px}.dashboard-link button{padding:0;border:0}
.dashboard-workbench{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr);gap:26px;align-items:start}.dashboard-week-wrap{margin-bottom:28px}.dashboard-week-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.dashboard-week-heading h2{font-size:22px;margin:0}.dashboard-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.dashboard-week-day{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:0;border-radius:0;background:white;min-height:165px;padding:17px 14px;gap:10px;border-right:1px solid var(--line)}.dashboard-week-day:last-child{border-right:0}.dashboard-week-day[aria-pressed=true]{background:#e7eee2;box-shadow:inset 0 -3px var(--forest)}.dashboard-week-date{font-size:13px;color:var(--muted);text-transform:capitalize}.dashboard-week-date strong{display:block;font-size:22px;font-weight:620;color:var(--ink);line-height:1.4}.dashboard-week-event{font-size:13px;font-weight:400;line-height:1.45;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.dashboard-week-total{font-size:12px;color:var(--muted);margin-top:auto;font-weight:400}.dashboard-week-day .lmf-sample-badge{font-size:var(--ui-fs-micro);padding:2px 5px}.dashboard-queue-controls{display:flex;gap:6px;flex-wrap:wrap;padding:16px 24px;border-bottom:1px solid var(--line)}.dashboard-queue-controls button{border:1px solid var(--line);padding:8px 12px;font-size:13px;font-weight:400;min-height:42px;display:inline-flex;align-items:center;gap:7px}.dashboard-queue-controls button[aria-pressed=true]{background:var(--mint);border-color:#a4b8a0}.dashboard-queue-controls .count{font-size:12px}.dashboard-section{min-width:0}.dashboard-section+.dashboard-section,.dashboard-workbench>div>.dashboard-section{margin-top:26px}.dashboard-section>button.dashboard-link{width:100%;text-align:left}.dashboard-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line)}.dashboard-section h2{font-size:18px;margin:0}.dashboard-section>header a{font-size:13px}
.dashboard-record{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--line);align-items:flex-start;min-width:0}.dashboard-record>.icon{width:18px;color:var(--muted);margin-top:3px}.dashboard-record-body{flex:1;min-width:0}.dashboard-record p{margin:6px 0 0;font-size:13px;color:var(--muted);overflow-wrap:anywhere}.dashboard-record-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;font-size:12px;color:var(--muted)}.dashboard-record .lmf-sample-badge{margin-bottom:5px}.dashboard-board-copy{white-space:pre-line;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.dashboard-error{padding:18px 0;color:#923930}
.dashboard-recommendations{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);gap:30px;align-items:start}.dashboard-recommendation-list{display:grid;gap:0;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.dashboard-recommendation{padding:23px 24px;border-bottom:1px solid var(--line);min-width:0}.dashboard-recommendation:last-child{border-bottom:0}.dashboard-recommendation header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.dashboard-recommendation-kind{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:13px;font-weight:620}.dashboard-recommendation h3{font-size:18px;margin:0 0 8px;overflow-wrap:anywhere}.dashboard-recommendation-fact{color:var(--muted);font-size:14px;margin:8px 0 16px;overflow-wrap:anywhere}.dashboard-recommendation-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.dashboard-recommendation-footer button{min-height:44px;display:flex;gap:9px;align-items:center}.dashboard-recommendation-caption{color:var(--muted);font-size:13px;margin:0 0 16px}.dashboard-rule-controls{padding:0;border:0;margin-bottom:20px}.dashboard-context-count{font-variant-numeric:tabular-nums;color:var(--muted);font-size:14px}.dashboard-loading{opacity:.7}
@media(max-width:1150px){.dashboard-day,.dashboard-workbench,.dashboard-recommendations{grid-template-columns:minmax(0,1.25fr) minmax(250px,1fr);gap:22px}.dashboard-task{padding:15px 18px;gap:8px}.dashboard-task-time{max-width:100px}.dashboard-week{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-week-day{min-height:155px;border-bottom:1px solid var(--line)}.dashboard-week-day:nth-child(4){border-right:0}.dashboard-week-day:nth-child(n+5){border-bottom:0}.dashboard-section-head{padding:20px 18px}.dashboard-group-title{padding-left:18px}.dashboard-trip{padding:22px}.dashboard-trip h3{font-size:22px}}
@media(max-width:960px){.dashboard-day,.dashboard-workbench,.dashboard-recommendations{grid-template-columns:1fr}.dashboard-aside{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.dashboard-aside>.dashboard-section+.dashboard-section{margin-top:0}.dashboard-task-time{max-width:none}.dashboard-controls{align-items:flex-end}.dashboard-controls-label{font-size:13px}.dashboard-switch button{padding:10px 12px}.dashboard-recommendations>.dashboard-aside{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.dashboard-header{gap:12px;margin-bottom:22px}.dashboard-header h1{font-size:27px}.dashboard-header .actions{gap:5px}.dashboard-new-label{display:none}.dashboard-controls{display:block;margin-bottom:23px}.dashboard-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-switch button{justify-content:center;padding:10px 6px;font-size:13px;line-height:1.35;min-height:58px}.dashboard-switch .icon{display:none}.dashboard-day,.dashboard-workbench,.dashboard-recommendations{gap:23px}.dashboard-aside,.dashboard-recommendations>.dashboard-aside{grid-template-columns:1fr}.dashboard-section-head{padding:19px 16px;gap:8px}.dashboard-section-head h2{font-size:18px}.dashboard-section-head a{font-size:12px;white-space:normal;text-align:right}.dashboard-group-title{padding-left:16px}.dashboard-task{padding:15px 12px;grid-template-columns:40px minmax(0,1fr);gap:6px 9px}.dashboard-task .check-task{width:40px;grid-row:1/3;align-self:start}.dashboard-task-time{grid-column:2;text-align:left;display:flex;gap:8px;font-size:12px}.dashboard-task-meta{font-size:12px;gap:5px 8px}.dashboard-trip{padding:22px}.dashboard-trip h3{font-size:20px}.dashboard-week{grid-template-columns:1fr}.dashboard-week-day{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:12px;min-height:85px;align-items:center;padding:12px 16px;border-right:0;border-bottom:1px solid var(--line)!important}.dashboard-week-day:last-child{border-bottom:0!important}.dashboard-week-date strong{font-size:20px}.dashboard-week-event{-webkit-line-clamp:2;font-size:15px}.dashboard-week-total{margin:0;text-align:right;max-width:60px;font-size:12px}.dashboard-week-day>.lmf-sample-badge{display:inline-flex;grid-column:2;justify-self:start;margin-top:-8px}.dashboard-week-day[aria-pressed=true]{box-shadow:none}.dashboard-week-heading h2{font-size:18px}.dashboard-week-heading a{font-size:13px}.dashboard-queue-controls{padding:13px 16px}.dashboard-rule-controls{padding:0}.dashboard-recommendation{padding:21px 18px}.dashboard-recommendation header{flex-wrap:wrap;gap:6px}.dashboard-recommendation h3{font-size:20px}.dashboard-recommendation-fact{font-size:13px}.dashboard-recommendation-footer{align-items:flex-start}.dashboard-recommendation-footer button{width:100%;justify-content:center}.dashboard-empty{padding:23px 18px}}
@media(prefers-reduced-motion:no-preference){.dashboard-switch button{transition:background .16s ease-out,color .16s ease-out}}
/* Keep the task action prominent; view and sample settings remain secondary. */
.dashboard-controls{padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:26px}
.dashboard-controls-label{font-size:13px;font-weight:400;margin-bottom:7px}
.dashboard-switch{padding:0;gap:4px;border:0;border-radius:0;background:transparent}
.dashboard-switch button{border-radius:7px}
.dashboard-switch button[aria-pressed=true]{background:var(--mint);color:var(--forest);font-weight:620}
#dashboard-refresh{border-color:transparent;background:transparent;color:var(--muted)}
#dashboard-refresh:hover{background:var(--mint);color:var(--forest)}
@media(max-width:600px){.dashboard-new-label{display:inline}.dashboard-header #dashboard-new{font-size:15px;padding:10px 12px}.dashboard-switch button{min-height:48px}.dashboard-controls{padding-bottom:16px;margin-bottom:22px}}

/* 17 October workspace refinement. Presentation only; original render lifecycle retained. */
@media screen{
 #content .dashboard-header{align-items:center;gap:12px;margin-bottom:16px}
 #content .dashboard-header h1{font-size:var(--type-page,1.375rem);line-height:1.25;margin:0}
 #content .dashboard-header .actions{gap:8px}
 #content .dashboard-controls{padding-bottom:16px;margin-bottom:20px;align-items:center}
 #content .dashboard-controls-label{margin-bottom:6px;font-size:12px;line-height:1.4}
 #content .dashboard-switch{gap:4px;flex-wrap:wrap}
 #content .dashboard-switch button{padding:6px 10px;font-size:14px;line-height:1.4;border-radius:var(--control-radius,6px)}
 #content .dashboard-switch button[aria-pressed=true]{background:var(--mint);color:var(--forest);font-weight:620}
 #content :is(.dashboard-day,.dashboard-workbench,.dashboard-recommendations){gap:20px}
 #content .dashboard-day{grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr)}
 #content :is(.dashboard-agenda,.dashboard-recommendation-list){border-radius:8px;box-shadow:none}
 #content .dashboard-section-head{padding:14px 18px;gap:10px}
 #content :is(.dashboard-section-head h2,.dashboard-week-heading h2,.dashboard-section h2,.dashboard-suggestions-heading){font-size:16px;line-height:1.4;font-weight:620;letter-spacing:-.015em}
 #content .dashboard-section-head a{font-size:13px;line-height:1.4}
 #content .dashboard-group-title{padding:14px 18px 4px}
 #content .dashboard-group-title h3{font-size:13px;line-height:1.45}
 #content .dashboard-task{padding:10px 18px;gap:10px;grid-template-columns:44px minmax(0,1fr) auto}
 #content .dashboard-task-meta{font-size:12px;line-height:1.45;gap:4px 8px;margin-top:3px}
 #content .dashboard-task-time{font-size:12px;line-height:1.45;max-width:130px}
 #content .dashboard-more{padding:10px 18px}
 #content .dashboard-empty{padding:22px 18px;font-size:14px;line-height:1.55}
 #content .dashboard-aside{gap:20px}
 #content .dashboard-trip{background:var(--mint);color:var(--ink);padding:18px;border:1px solid var(--line);border-radius:8px;box-shadow:none}
 #content .dashboard-trip h2{font-size:14px;line-height:1.4;margin-bottom:10px;color:var(--forest)}
 #content .dashboard-trip h3{font-size:18px;line-height:1.35;font-weight:620;margin:8px 0 10px;color:var(--ink)}
 #content :is(.dashboard-trip-date,.dashboard-trip-flags){font-size:13px;line-height:1.45;color:var(--forest)}
 #content .dashboard-trip-stops{margin:14px 0;border-color:var(--line)}
 #content .dashboard-trip-stops li{padding:8px 0;gap:8px;border-color:var(--line)}
 #content .dashboard-trip-stops :is(button,.stop-index){color:var(--forest);font-size:13px}
 #content .dashboard-link{padding:12px 0;gap:10px;font-size:14px;min-height:44px}
 #content .dashboard-week-wrap{margin-bottom:20px}
 #content .dashboard-week-heading{margin-bottom:12px;gap:12px}
 #content .dashboard-week{border-radius:8px}
 #content .dashboard-week-day{padding:12px;gap:8px;min-height:132px;box-shadow:none}
 #content .dashboard-week-day[aria-pressed=true]{background:var(--mint);box-shadow:inset 0 -2px var(--forest)}
 #content .dashboard-week-date{font-size:12px}
 #content .dashboard-week-date strong{font-size:18px;line-height:1.35;font-weight:620}
 #content .dashboard-week-event{font-size:13px;line-height:1.45}
 #content .dashboard-week-total{font-size:12px;line-height:1.4}
 #content .dashboard-queue-controls{padding:12px 18px;gap:6px}
 #content .dashboard-queue-controls button{font-size:13px;padding:5px 9px;border-radius:var(--control-radius,6px)}
 #content .dashboard-rule-controls{padding:0;margin-bottom:16px}
 #content .dashboard-section>header{padding-bottom:12px;align-items:baseline}
 #content :is(.dashboard-section+.dashboard-section,.dashboard-workbench>div>.dashboard-section){margin-top:20px}
 #content .dashboard-record{padding:12px 0;gap:10px}
 #content .dashboard-record p{font-size:13px;line-height:1.5;margin-top:4px}
 #content .dashboard-record-meta{font-size:12px;line-height:1.45;margin-top:6px}
 #content .dashboard-recommendation{padding:16px 18px}
 #content .dashboard-recommendation h3{font-size:16px;line-height:1.4;font-weight:620}
 #content .dashboard-recommendation-fact{font-size:13px;line-height:1.55;margin:6px 0 12px}
 #content .dashboard-recommendation-footer{gap:8px}
 #content .dashboard-recommendation-caption{font-size:13px;line-height:1.5;margin-bottom:14px}
 #content :is(.dashboard-header,.dashboard-controls,.dashboard-queue-controls,.dashboard-more,.dashboard-trip,.dashboard-recommendation-footer) button{border-radius:var(--control-radius,6px)}
 #content :is(.dashboard-header,.dashboard-controls,.dashboard-queue-controls,.dashboard-more,.dashboard-trip,.dashboard-recommendation-footer) button:focus-visible{outline:2px solid var(--focus,var(--forest));outline-offset:2px}
}
@media screen and (min-width:701px) and (pointer:fine){
 #content :is(.dashboard-header,.dashboard-controls,.dashboard-queue-controls,.dashboard-more,.dashboard-recommendation-footer) button{min-height:32px;padding:5px 10px;font-size:14px;line-height:1.4}
}
@media screen and (max-width:960px){
 #content :is(.dashboard-day,.dashboard-workbench,.dashboard-recommendations){grid-template-columns:minmax(0,1fr)}
 #content .dashboard-aside{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:700px),screen and (pointer:coarse){
 #content :is(.dashboard-header,.dashboard-controls,.dashboard-queue-controls,.dashboard-more,.dashboard-recommendation-footer) button{min-height:44px;padding:9px 12px;font-size:15px;line-height:1.4}
 #content :is(.dashboard-trip-stops button){min-height:44px}
 #content .dashboard-task .check-task{width:44px;min-width:44px;min-height:44px}
}
@media screen and (max-width:600px){
 #content .dashboard-header{align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:16px}
 #content .dashboard-header h1{font-size:20px;flex:1}
 #content .dashboard-header .actions{width:auto;gap:6px;flex:none}
 #content .dashboard-header #dashboard-new{padding:9px 10px;font-size:15px}
 #content .dashboard-controls{padding-bottom:14px;margin-bottom:16px}
 #content .dashboard-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 #content .dashboard-switch button{padding:8px 5px;font-size:13px;line-height:1.4;white-space:normal}
 #content .dashboard-switch button>span{min-width:0;overflow-wrap:anywhere}
 #content :is(.dashboard-day,.dashboard-workbench,.dashboard-recommendations){gap:18px}
 #content .dashboard-aside,#content .dashboard-recommendations>.dashboard-aside{grid-template-columns:minmax(0,1fr)}
 #content .dashboard-section-head{padding:14px;align-items:flex-start;flex-wrap:wrap}
 #content .dashboard-section-head a{white-space:normal;text-align:left;min-height:44px;display:inline-flex;align-items:center}
 #content .dashboard-group-title{padding:14px 14px 4px}
 #content .dashboard-task{padding:10px 12px;grid-template-columns:44px minmax(0,1fr);gap:4px 8px}
 #content .dashboard-task .check-task{grid-row:1/3;align-self:start}
 #content .dashboard-task-time{grid-column:2;display:flex;flex-wrap:wrap;gap:4px 8px;text-align:left;max-width:none}
 #content .dashboard-trip{padding:16px}
 #content .dashboard-trip h3{font-size:18px}
 #content .dashboard-week{grid-template-columns:minmax(0,1fr)}
 #content .dashboard-week-day{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:8px;min-height:80px;padding:10px 14px}
 #content .dashboard-week-day[aria-pressed=true]{box-shadow:none}
 #content .dashboard-week-total{max-width:62px;text-align:right;font-size:12px}
 #content .dashboard-week-day>.lmf-sample-badge{grid-column:2;justify-self:start;white-space:normal}
 #content .dashboard-queue-controls{padding:12px 14px}
 #content .dashboard-rule-controls{padding:0}
 #content .dashboard-recommendation{padding:16px 14px}
 #content .dashboard-empty{padding:20px 14px}
}
/* Batch C: on a phone the Work overview week is one compact row, so the work queues and
   overdue work stay on the first screen; a non-empty Overdue queue reads as late. */
.dashboard-week-narrow,.dashboard-week-count{display:none}
#content .dashboard-queue-controls button.is-late{color:#923930;border-color:#dcb9b3}
#content .dashboard-queue-controls button.is-late .count{font-weight:700}
@media screen and (max-width:600px){
 #content .dashboard-week-wrap{margin-bottom:16px}
 #content .dashboard-week-heading{margin-bottom:8px}
 #content .dashboard-week{grid-template-columns:repeat(7,minmax(0,1fr))}
 #content .dashboard-week-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;min-height:68px;padding:8px 2px;text-align:center;border-right:1px solid var(--line);border-bottom:0!important}
 #content .dashboard-week-day:last-child{border-right:0}
 #content .dashboard-week-day[aria-pressed=true]{box-shadow:inset 0 -2px var(--forest)}
 #content :is(.dashboard-week-weekday,.dashboard-week-event,.dashboard-week-total){display:none}
 #content .dashboard-week-day>.lmf-sample-badge{display:inline-flex;justify-content:center;max-width:100%;margin:0;padding:1px 3px;font-size:12px;line-height:1.2;letter-spacing:0;text-align:center;white-space:normal}
 #content .dashboard-week-date{display:flex;flex-direction:column;align-items:center;gap:1px;font-size:12px;line-height:1.3}
 #content .dashboard-week-narrow{display:block;text-transform:uppercase}
 #content .dashboard-week-date strong{font-size:16px;line-height:1.25}
 #content .dashboard-week-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--forest);color:#fff;font-size:12px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
 #content .dashboard-week-count.is-empty{visibility:hidden}
}
}

/* /forest/workspace-samples.css */
@layer legacy{.dashboard-suggestions-heading{font-size:22px;margin:0 0 10px}.contacts-identity>.lmf-sample-badge{margin:6px 0 2px}.planner-task-main>.lmf-sample-badge{margin:6px 0 0}.board-note-heading .lmf-sample-badge{display:table;margin-bottom:9px}.comm-row-top>.lmf-sample-badge{align-self:flex-start}.comm-row-top:has(>.lmf-sample-badge){flex-wrap:wrap}.comm-row-top:has(>.lmf-sample-badge)>strong{flex-basis:100%;order:1}@media(max-width:1100px){}@media(max-width:560px){}
}

/* /forest/workspace-call-lists.css */
@layer legacy{.call-workspace{display:grid;gap:24px;max-width:1400px}.call-workspace-intro,.call-list-toolbar,.call-view-toolbar,.call-add-result{display:flex;align-items:center;gap:16px}.call-workspace-intro{justify-content:space-between}.call-workspace-intro p{margin:0;color:var(--muted,#536257);max-width:65ch}.call-list-toolbar{align-items:end;flex-wrap:wrap}.call-list-toolbar>label:first-child{flex:1;min-width:240px}.call-list-toolbar label{margin:0}.call-list-toolbar .actions{padding-bottom:2px}.call-name-form,.call-log{background:var(--surface,#fff);border:1px solid var(--border,#d8e0d6);border-radius:12px;padding:24px}.call-name-form{display:flex;gap:16px;align-items:end}.call-name-form label{flex:1;margin:0}.call-name-form .actions{padding-bottom:2px}.call-log h2{margin:0 0 20px;font-size:18px}.call-log textarea{min-height:120px}.call-log .muted{font-size:14px;margin:12px 0 20px}.call-add{background:var(--surface,#fff);border:1px solid var(--border,#d8e0d6);border-radius:12px;padding:16px 20px}.call-add summary{font-weight:620;cursor:pointer;padding:4px 0}.call-add[open] summary{margin-bottom:16px}.call-add-result{justify-content:space-between;border-top:1px solid var(--border,#d8e0d6);padding:12px 0}.call-add-result span{min-width:0;overflow-wrap:anywhere}.call-view-toolbar label{margin:0}.call-view-toolbar label:first-child{flex:1}.call-view-toolbar #call-list-count{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted,#536257)}.call-row{display:grid;grid-template-columns:minmax(200px,1.1fr) minmax(220px,1fr) minmax(210px,.8fr);gap:24px;padding:24px 0;border-top:1px solid var(--border,#d8e0d6);min-width:0}.call-row>div{min-width:0}.call-person h3{margin:0 0 8px;font-size:16px}.call-person h3 button{text-align:left;overflow-wrap:anywhere}.call-phone{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0}.call-phone a{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-variant-numeric:tabular-nums}.call-restricted{color:#a33832}.call-context{margin-top:8px}.call-context summary{font-size:14px;cursor:pointer;color:var(--muted,#536257);min-height:32px;line-height:32px}.call-context label{margin-top:12px}.call-history{display:grid;align-content:start;gap:8px;font-size:14px}.call-history p{margin:0;overflow-wrap:anywhere;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.call-column-label{font-weight:620}.call-history time{color:var(--muted,#536257);font-variant-numeric:tabular-nums}.call-actions{display:grid;align-content:start;gap:12px}.call-actions label{margin:0}.call-actions .actions{flex-wrap:wrap;gap:8px}.call-workspace button:disabled{cursor:not-allowed}.call-workspace input:focus-visible,.call-workspace select:focus-visible,.call-workspace textarea:focus-visible,.call-workspace summary:focus-visible{outline:2px solid #285c43;outline-offset:3px}.call-workspace ::selection{background:#e3eee4;color:#20362c}.call-workspace input,.call-workspace textarea{caret-color:#285c43}
@media(max-width:1050px){.call-row{grid-template-columns:minmax(180px,1fr) minmax(190px,1fr)}.call-actions{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap}.call-actions label{min-width:170px}.call-workspace{gap:20px}}
@media(max-width:600px){.call-workspace-intro{align-items:start}.call-workspace-intro p{font-size:15px}.call-list-toolbar{display:grid;grid-template-columns:1fr}.call-list-toolbar>label:first-child{min-width:0}.call-name-form{display:grid;padding:18px}.call-log{padding:18px}.call-row{grid-template-columns:1fr;gap:16px;padding:20px 0}.call-actions{grid-column:auto;display:grid}.call-actions .actions{display:grid;grid-template-columns:1fr 1fr}.call-view-toolbar{display:grid;grid-template-columns:1fr auto;gap:12px}.call-view-toolbar label:first-child{grid-column:1/-1}.call-add{padding:16px}.call-add-result{gap:12px}.call-add-result button{flex-shrink:0}.call-phone a{font-size:16px}.call-context summary{min-height:44px;line-height:44px}}

/* List administration stays available without preceding every call. */
.call-workspace{gap:16px}
.call-management{border-bottom:1px solid var(--line);min-width:0}
.call-management>summary,.call-add>summary{cursor:pointer}
.call-management-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:4px 0 20px}
.call-management-body .call-workspace-intro{grid-column:1/-1}
.call-management-body>label{margin:0}
.call-management-body>.actions{align-self:end;flex-wrap:wrap}
.call-add{padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.call-add[open]{padding-bottom:16px}
.call-add[open] summary{margin-bottom:8px}
.call-add label{margin-top:0}
.call-list-toolbar select,.call-view-toolbar input,.call-view-toolbar select{margin-bottom:0}
.call-list-toolbar label:first-child{min-width:0;width:100%}
.call-context summary{min-height:44px;line-height:1.5;padding:10px 0;box-sizing:border-box}
.call-list-toolbar input,.call-list-toolbar select,.call-management input,.call-management select{max-width:100%}
@media(max-width:600px){.call-workspace{gap:12px}.call-management-body{grid-template-columns:1fr}.call-management-body .call-workspace-intro{grid-column:auto}.call-view-toolbar{gap:8px}.call-add{padding:0}.call-add[open]{padding-bottom:12px}.call-row{gap:12px;padding:16px 0}.call-person h3{margin-bottom:0}.call-phone{margin:0 0 4px}.call-context summary{line-height:1.5}.call-workspace-intro{gap:12px}.call-workspace-intro button{flex:none}}

}

/* /forest/workspace-polish.css */
@layer legacy{/* D-064: shared refinement within the established FOREST visual system. */
/* B4 CL4 C6: the phone tabs of Pārlūks and Mana izlase (.prospect-mode), moved whole from the retired prospect sheet */
.prospect-mode{display:flex;gap:4px;border-bottom:1px solid #d8e0d6}.prospect-mode a{padding:12px 18px;text-decoration:none;color:#536257;font-weight:620;border-bottom:2px solid transparent}.prospect-mode a[aria-current]{color:#285c43;border-color:#285c43}.prospect-mode a:hover{background:#edf1eb}
@media(max-width:520px){.prospect-mode a{padding:12px 14px;font-size:15px}}
:root{--control-outline:#718675}
button{min-height:44px}
a{text-underline-offset:3px}
dialog>div>h2:first-child{padding-right:44px}
.detail-tabs button{min-height:48px}
.detail-tabs [role=tab]:focus-visible{outline-offset:-4px}
.parcel-main[role=tabpanel]:focus-visible{outline-offset:-4px}
.parcel-aside .task-item,.contacts-next .task-item{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px 12px}
.parcel-aside .task-due,.contacts-next .task-due{grid-column:2;max-width:none;text-align:left}
.check-task{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;border:0;border-radius:8px;background:transparent;padding:11px}
.check-task::before{content:"";position:absolute;width:22px;height:22px;border:1.5px solid var(--control-outline);border-radius:50%;box-sizing:border-box}
.dashboard-task .check-task::before{border-color:var(--control-outline)}
.check-task.is-done{background:transparent}
.check-task.is-done::before{background:var(--mint);border-color:var(--forest)}
.check-task .icon{position:relative;width:16px;height:16px}
.planner-complete{position:relative;border:0;border-radius:8px;background:transparent}
.planner-complete::before{content:"";position:absolute;width:22px;height:22px;border:1.5px solid var(--control-outline);border-radius:50%;box-sizing:border-box}
.planner-complete .icon{position:relative;width:16px;height:16px}
.note{border-left:0}
.source-note{line-height:1.5}
#more-dialog{width:min(440px,calc(100% - 24px));padding:24px;max-height:calc(100dvh - 120px);inset:auto 0 calc(80px + env(safe-area-inset-bottom));margin:0 auto}
#more-dialog h2{margin:0 48px 20px 0;font-size:22px}
#more-dialog nav{display:grid;gap:4px}
#more-dialog nav a{display:flex;align-items:center;gap:14px;min-height:52px;padding:12px;color:var(--ink);border-radius:8px;font-weight:620}
#more-dialog nav a:hover,#more-dialog nav a.active{background:var(--mint);text-decoration:none}
.mobile-menu-actions{display:flex;gap:12px;justify-content:space-between;border-top:1px solid var(--line);padding-top:20px;margin-top:20px}
.mobile-menu-actions button{display:inline-flex;align-items:center;gap:8px}
@media(max-width:1000px){
 #content button,#content summary{min-height:44px;min-width:44px}
 /* Seven calendar columns must fit narrow screens without overlapping targets. */
 #content .planner-month button{min-width:0;min-height:48px}
 #content .dashboard-task .check-task{width:44px;min-width:44px}
 .sidebar{top:auto;bottom:0;left:0;width:100%;height:auto;box-sizing:border-box;border-right:0;border-top:1px solid var(--line);padding:0 8px max(4px,env(safe-area-inset-bottom));z-index:1100;background:white}
 .sidebar .brand{display:none}
 .sidebar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0}
 .sidebar nav a,#nav-more{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:0;min-height:64px;margin:0;padding:8px 2px;font-size:12px;line-height:1.2;text-align:center;border:0;border-radius:0;background:transparent;color:var(--muted);font-weight:620}
 .sidebar nav a.nav-secondary{display:none}
 .sidebar nav a.active,#nav-more.active{color:var(--forest);background:var(--mint)}
 .sidebar nav a .icon,#nav-more .icon{width:21px;height:21px}
 .sidebar nav .nav-label-full{display:none}
 main{margin-left:0;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
 .topbar{height:60px;padding:0 24px}
 .topbar>div{gap:12px}
 #today-date,#quick-add{display:none}
 .language-control select{min-height:44px}
 #content{padding:24px}
 .page-heading{margin-bottom:24px}
 .parcel-layout{grid-template-columns:1fr}
 .parcel-aside{border-left:0;border-top:1px solid var(--line)}
 .parcel-main,.parcel-aside{padding:24px}
 #toast{bottom:calc(88px + env(safe-area-inset-bottom))}
}
@media(max-width:600px){
 .dashboard-task{grid-template-columns:44px minmax(0,1fr)}
 body{font-size:16px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}
 #content{padding:20px 16px}
 .topbar{padding:0 16px}
 .topbar>span{font-size:15px;max-width:150px;line-height:1.25}
 .page-heading{gap:12px;margin-bottom:20px}
 .page-heading h1{font-size:20px;line-height:1.2}
 .page-heading .actions{gap:8px}
 .parcel-main,.parcel-aside{padding:20px}
 .parcel-title{padding:20px 60px 16px 20px}
 .parcel-stats dd{font-size:20px}
 .parcel-stats dt{font-size:13px}
 .detail-tabs{gap:4px;padding:0 12px}
 .detail-tabs button{padding:12px}
 .leaflet-touch .leaflet-bar a{width:44px;height:44px;line-height:44px}
 .leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}
 #more-dialog{padding:20px}
}
@media(prefers-reduced-motion:no-preference){#nav-more{transition:background-color 120ms ease-out,color 120ms ease-out}}
@media print{#more-dialog,#nav-more{display:none!important}}
}

/* /forest/workspace-premium.css */
@layer legacy{/* D-068 / B4-UNIFY: single control vocabulary, grounded shadows, calm stone surfaces. */
@font-face{
 font-family:Manrope;src:url('/forest/assets/fonts/manrope-variable.ttf?v=3ae11c49db0455a3') format('truetype');
 font-style:normal;font-weight:200 800;font-display:swap;
}
:root{
 --forest:var(--lmf-green);--green:var(--lmf-green);--ink:var(--v31-text);--muted:var(--v31-text-2);
 --paper:var(--v31-bg);--line:var(--v31-line);--mint:var(--lmf-tint);
 --control-line:var(--lmf-field-line);--control-radius:var(--lmf-r-ctl);--control-hover:#f5f4ef;
 --focus:var(--lmf-focus);--nav:244px;--rail:#2f4739;--rail-text:#dce4dd;
 --overlay-shadow:0 16px 36px -8px rgba(28,36,32,.20),0 4px 12px -2px rgba(28,36,32,.08);
 --menu-shadow:0 10px 24px -6px rgba(28,36,32,.16),0 2px 6px -1px rgba(28,36,32,.08);
}
body{font-family:Manrope,"Segoe UI",sans-serif;line-height:1.55}
button,input,select,textarea{font-family:inherit;letter-spacing:0}
button{font-weight:620;border-radius:var(--control-radius);border-color:var(--control-line);min-height:38px}
button:not(.check-task):active{filter:brightness(.97)}
button:disabled{cursor:not-allowed;opacity:.52;filter:none}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
button .icon{width:17px;height:17px;stroke-width:1.8}
input:where(:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden])),select,textarea{
 border:1px solid var(--control-line);border-radius:var(--control-radius);background-color:#fff;
 color:var(--ink);min-height:38px;padding:7px 12px;line-height:1.4;
 font-weight:400;box-shadow:none;
}
textarea{min-height:96px;line-height:1.55}
input::placeholder,textarea::placeholder{color:#656e69;opacity:1;font-weight:400}
input:not([type=checkbox]):not([type=radio]):hover,select:hover,textarea:hover{border-color:#8d968f}
input:focus-visible,select:focus-visible,textarea:focus-visible{
 outline:2px solid var(--focus);outline-offset:2px;border-color:var(--forest);
}
input:disabled,select:disabled,textarea:disabled{background-color:#eeede6;color:#78817b;cursor:not-allowed}
input[readonly],textarea[readonly]{background-color:#f6f5f0}
input[type=checkbox],input[type=radio]{accent-color:var(--forest);width:18px;height:18px;flex:none;vertical-align:middle}
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
select:not([multiple]):not([size]){
 appearance:none;padding-right:36px;
 background-image:var(--lmf-chevron);
 background-repeat:no-repeat;background-position:right 10px center;background-size:16px;
}




















label{font-size:13px;font-weight:620;line-height:1.45}
h1{font-weight:700;letter-spacing:-.025em;line-height:1.2}
h2{font-weight:700;letter-spacing:-.02em}
h3{font-weight:620;letter-spacing:-.01em}
.page-heading{margin-bottom:22px}
.page-heading h1{font-size:22px;line-height:1.25}
.topbar{background:var(--paper);border-bottom-color:var(--line)}
.topbar>span{font-size:13px;font-weight:620;letter-spacing:.01em}
#today-date{font-size:13px}
.language-control select{background-color:transparent;border-color:transparent;font-size:13px;min-height:40px}
.language-control select:hover{border-color:#c4c7bf;background-color:#fff}
#quick-add{background:#fff;border-color:#c4c7bf;border-radius:8px}
:is(.searchbox,.contacts-search,.catalogue-search,.comm-search) input{padding-left:38px}
.searchbox>.icon{top:50%;transform:translateY(-50%);left:12px;width:16px;height:16px}
.toolbar>button,#contacts-filter-toggle{min-height:36px}
.contacts-filter-fields,.filter-drawer{background:#eeede6;border:0;border-radius:12px;padding:18px;gap:16px}
.contacts-filter-fields label,.filter-drawer label{font-size:13px}
.contacts-views,.detail-tabs{border-bottom-color:var(--line)}
.contacts-views button,.detail-tabs button{font-size:14px;font-weight:620;border-radius:0}
.contacts-views button[aria-pressed=true],.detail-tabs button.selected{font-weight:700;border-bottom-width:2px}
.contacts-views .count{font-size:12px;font-weight:620}
.contacts-register,.panel{border-radius:12px}
.contacts-table th{background:#f1f0ea;text-transform:none;letter-spacing:0;font-size:12px;font-weight:620;padding-top:12px;padding-bottom:12px}
.contacts-table .name{font-size:14px;font-weight:620}
.contacts-table td{padding-top:14px;padding-bottom:14px}
.contacts-secondary,.contacts-missing{font-size:13px}
.pagination button{background:#ffffff;border-color:#c4c7bf}
.segmented{padding:3px;gap:2px;background:#eeede6;border:0;border-radius:8px}
.segmented button{background:transparent;border-radius:6px;font-size:13px}
.segmented button.selected{background:#fff;color:var(--forest);font-weight:700;box-shadow:0 1px 2px rgba(28,36,32,.07)}
dialog{border:1px solid var(--line);box-shadow:var(--overlay-shadow);border-radius:14px;overscroll-behavior:contain}
.contacts-detail-header,.parcel-title{background:#ffffff}
.contacts-detail-title h2,.parcel-title h2{font-size:22px;letter-spacing:-.015em}
.contacts-detail-actions{gap:8px;margin-top:14px}
.contacts-detail-actions button{background:#eeede6;color:var(--ink);border-color:transparent;font-size:13px;padding:8px 14px}
.contacts-detail-actions button:hover{background:#e0dfd7}
.parcel-aside{background:#f6f5f0}
.contacts-disclosure summary{font-size:13px;font-weight:620}
.workspace-return{
 position:fixed;right:28px;bottom:28px;z-index:1050;display:inline-flex;align-items:center;gap:9px;
 min-height:42px;max-width:calc(100vw - 32px);padding:9px 16px;border:0;border-radius:10px;
 background:var(--forest);color:#fff;box-shadow:var(--menu-shadow);font-size:13px;font-weight:620;
}
.workspace-return[hidden]{display:none}
.workspace-return[data-obstructed="true"]{visibility:hidden;pointer-events:none}
.workspace-return:hover{background:var(--lmf-green-hover);color:#fff}
.workspace-return:focus-visible{outline-color:var(--lmf-focus);outline-offset:4px}
.workspace-return .icon{width:18px;height:18px}
@media(max-width:1050px){
 .contacts-table td{padding-top:0;padding-bottom:0}
 .contacts-table .contacts-next-cell{padding-top:14px}
}
@media(min-width:1001px){
 .sidebar{width:var(--nav);padding:24px 16px 20px;background:var(--rail);border-right:0;color:#f6f5f0;overflow-y:auto}
 .sidebar .brand{display:flex;align-items:center;justify-content:center;min-height:112px;margin:0 4px 24px;border-bottom:1px solid #456451;padding-bottom:20px}
 .sidebar .brand img{width:200px;height:104px;filter:brightness(0) invert(1);opacity:.94}
 .sidebar nav{gap:6px}
 .sidebar nav a{color:var(--rail-text);padding:13px 14px;gap:12px;min-height:48px;border-radius:10px;font-size:13px;font-weight:400;line-height:1.4}
 .sidebar nav a .icon{width:20px;height:20px;stroke-width:1.6}
 .sidebar nav a:hover{color:#fff;background:#3a5646}
 .sidebar nav a.active{color:#1c2420;background:#f6f5f0;font-weight:700}
 .sidebar nav a.active .icon{stroke-width:2}
 .sidebar nav a:focus-visible{outline-color:#f6f5f0}
 .sidebar nav a[data-page=planner]{margin-top:18px}
 main{margin-left:var(--nav)}
 #content{padding:24px 28px 56px}
}
@media(max-width:1000px){
 .sidebar{background:#fff;border-top-color:#e0dfd7;padding:6px 8px max(6px,env(safe-area-inset-bottom))}
 .sidebar nav a,#nav-more{border-radius:10px;min-height:62px;color:#525b56;font-size:var(--ui-fs-micro);gap:6px}
 .sidebar nav a.active,#nav-more.active{background:#e2ede5;color:#24543d;font-weight:700}
 .sidebar nav a .icon,#nav-more .icon{width:20px;height:20px}
 .workspace-return{right:20px;bottom:calc(94px + env(safe-area-inset-bottom))}
 #content{padding-bottom:76px} /* B4 DFA (audit M8): the last controls can scroll clear of Uz augšu */
 .topbar{height:64px}
}
@media(max-width:600px){
 .page-heading h1{font-size:20px}
 input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px;min-height:44px}
 .language-control select{font-size:15px}
 .contacts-detail-title h2,.parcel-title h2{font-size:20px}
 .contacts-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .contacts-detail-actions button{font-size:12px;white-space:normal;padding:10px 12px;justify-content:center;min-height:44px}
 .contacts-detail-actions button:last-child:nth-child(odd){grid-column:1/-1}
 .contacts-filter-fields,.filter-drawer{padding:16px}
 .workspace-return{right:16px;max-width:calc(100vw - 32px);font-size:12px;padding:10px 14px}
}
@media(prefers-reduced-motion:no-preference){
 button,input,select,textarea{transition:background-color 140ms ease-out,border-color 140ms ease-out,color 140ms ease-out}
 .sidebar nav a{transition:background-color 160ms ease-out,color 160ms ease-out}
}
@media(forced-colors:active){
 .sidebar .brand img{filter:none}
 .sidebar nav a.active,.sidebar nav a:hover{outline:1px solid Highlight}
 select:not([multiple]):not([size]){appearance:auto;background-image:none}
 .workspace-return{border:1px solid ButtonText}
}
@media print{.workspace-return{display:none!important}}

.search-subnav{display:none}
@media(min-width:1001px){
 .prospect-mode{display:none}
 .sidebar nav .search-subnav{display:grid;gap:2px;margin:-4px 0 6px 24px;padding-left:10px;border-left:1px solid #587261}
 .sidebar nav .search-subnav a{min-height:44px;padding:10px 12px;font-size:12px;border-radius:7px;line-height:1.4}
 .sidebar nav .search-parent-current{color:#fff}
}
@media(max-width:1000px){
 .sidebar nav a.search-parent-current{color:var(--forest);font-weight:700}
 .prospect-mode{display:flex;gap:4px;flex-wrap:wrap}
 .prospect-mode a{min-height:44px;display:flex;align-items:center;justify-content:center;flex:1 1 auto;padding:10px 12px}
}
@media(min-width:1001px) and (max-height:850px){
 .sidebar{padding:16px 16px 12px}
 .sidebar .brand{min-height:84px;margin-bottom:12px;padding-bottom:12px}
 .sidebar .brand img{width:144px;height:72px}
 .sidebar nav{gap:2px}
 .sidebar nav a{min-height:44px;padding-top:10px;padding-bottom:10px}
 .sidebar nav a[data-page=planner]{margin-top:10px}
}

#workspace-return.workspace-return{min-height:34px;gap:6px;padding:5px 10px;border:1px solid #c4c7bf;border-radius:8px;background:rgba(255,255,255,.92);color:#1c2420;box-shadow:var(--v31-sh-1);font-size:12px;font-weight:620;animation:none}
#workspace-return.workspace-return .icon{width:16px;height:16px}
#workspace-return.workspace-return:hover{background:#f5f4ef;color:#1c2420}
#workspace-return.workspace-return:focus-visible{background:#ffffff;outline:2px solid var(--focus);outline-offset:3px}
@media(max-width:1000px){#workspace-return.workspace-return{min-height:44px;padding:7px 9px}}
@media(forced-colors:active){#workspace-return.workspace-return{background:ButtonFace;color:ButtonText;border-color:ButtonText}}
/* B4 UP2: it stands in the corner stack (lmf-page-help.css, position:relative so its tap area stays round it); the old floating offsets never move it */
#workspace-return.workspace-return{inset:auto}

@media(min-width:1001px){
  :root{--lmf-scrollbar-size:11px;--lmf-scrollbar-thumb:#b6bbb4;--lmf-scrollbar-track:#eeede6}
  html,body,#content .database-scroll,#content .catalogue-side-scroll{
    scrollbar-width:auto;
    scrollbar-color:var(--lmf-scrollbar-thumb) var(--lmf-scrollbar-track);
  }
  html{scrollbar-gutter:stable}
  #content .catalogue-side-scroll{background:var(--lmf-scrollbar-track)}
  @supports selector(::-webkit-scrollbar){
    html,body,#content .database-scroll,#content .catalogue-side-scroll{scrollbar-color:auto}
    html::-webkit-scrollbar,body::-webkit-scrollbar,#content .database-scroll::-webkit-scrollbar,#content .catalogue-side-scroll::-webkit-scrollbar{
      width:var(--lmf-scrollbar-size);
      height:11px;
    }
    html::-webkit-scrollbar-track,body::-webkit-scrollbar-track,#content .database-scroll::-webkit-scrollbar-track,#content .catalogue-side-scroll::-webkit-scrollbar-track{
      background:var(--lmf-scrollbar-track);
      border-radius:6px;
    }
    html::-webkit-scrollbar-thumb,body::-webkit-scrollbar-thumb,#content .database-scroll::-webkit-scrollbar-thumb,#content .catalogue-side-scroll::-webkit-scrollbar-thumb{
      background:var(--lmf-scrollbar-thumb);
      border:2px solid var(--lmf-scrollbar-track);
      border-radius:6px;
      min-height:28px;
      min-width:28px;
    }
    html::-webkit-scrollbar-thumb:hover,body::-webkit-scrollbar-thumb:hover,#content .database-scroll::-webkit-scrollbar-thumb:hover,#content .catalogue-side-scroll::-webkit-scrollbar-thumb:hover{background:#8d968f}
    html::-webkit-scrollbar-corner,body::-webkit-scrollbar-corner,#content .database-scroll::-webkit-scrollbar-corner,#content .catalogue-side-scroll::-webkit-scrollbar-corner{background:var(--lmf-scrollbar-track)}
    #content .database-scroll.has-floating-side-scroll::-webkit-scrollbar{height:0}
  }
}
}

/* /forest/workspace-accounts.css */
@layer legacy{/* Accounts workspace (B4-UNIFY): replaces stray thick top green border with clean white card framing. */
.accounts-workspace{max-width:1280px;min-width:0}
.accounts-workspace :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.accounts-workspace fieldset{border:0;padding:0;margin:0;min-width:0}
.accounts-workspace label{display:block;margin:0 0 16px}
.accounts-workspace label input:not([type=checkbox]){display:block;width:100%;margin-top:6px}
.accounts-workspace label select{width:100%;margin-top:6px}
.accounts-workspace .muted{font-size:13px;line-height:1.6;max-width:64ch}
.accounts-person{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-bottom:24px;padding:18px 22px;background:var(--v31-surface,#fff);border:1px solid var(--line);border-radius:12px}
.accounts-person h2{font:var(--ui-t-row);margin:0;overflow-wrap:anywhere}
.accounts-person>span:not(.tag){font-size:13px;color:var(--muted);overflow-wrap:anywhere}

.accounts-layout{display:grid;grid-template-columns:minmax(280px,620px) minmax(240px,1fr);gap:24px;align-items:start}
.accounts-main{min-width:0;display:grid;gap:20px}
.accounts-section{padding:22px 24px;margin:0;background:var(--v31-surface,#fff);border:1px solid var(--line);border-radius:12px}
.accounts-section:last-child{margin-bottom:0}
.accounts-section h2,.accounts-access h2{font:var(--ui-t-win);margin:0 0 16px}
.accounts-section form{max-width:500px}
.accounts-section #account-language{width:100%;max-width:320px;margin-bottom:18px}
.accounts-section :is(input,select){font-size:14px}
.accounts-status{min-height:1.4em;margin:12px 0 0;font-size:13px;overflow-wrap:anywhere}
.accounts-status:empty{min-height:0;margin:0}
.accounts-status.error{color:var(--danger,#a33832)}
.accounts-access{background:var(--v31-surface,#fff);border:1px solid var(--line);border-radius:12px;padding:22px 24px}
.accounts-access dl{margin:0}
.accounts-access dl>div{padding:0 0 18px}
.accounts-access dl>div:last-child{padding-bottom:0}
.accounts-access dt{font-size:12px;color:var(--muted);margin-bottom:4px}
.accounts-access dd{font-size:var(--type-working);margin:0;line-height:1.65;overflow-wrap:anywhere}
.accounts-users-layout{display:grid;grid-template-columns:minmax(320px,1.1fr) minmax(300px,1fr);gap:24px;align-items:start}
.accounts-register{min-width:0}
.accounts-user-tools{display:flex;gap:12px;align-items:end;margin-bottom:18px}
.accounts-user-tools .accounts-user-search{flex:1;min-width:0;margin:0}
.accounts-user-tools>button{flex-shrink:0;margin-bottom:0;min-height:40px}
.accounts-user-tools input{width:100%;display:block;margin-top:6px}
.accounts-location{margin:14px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.accounts-location strong{color:var(--ink,inherit);font-variant-numeric:tabular-nums}
.accounts-user-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 20px;padding:20px;border-bottom:1px solid var(--line);background:var(--surface,#fff)}
.accounts-user-row:first-child{border-radius:12px 12px 0 0}
.accounts-user-row:last-child{border-bottom:0;border-radius:0 0 12px 12px}
.accounts-user-row:only-child{border-radius:12px}
.accounts-user-row.is-selected{background:var(--lmf-slate-soft,#f3f5f5)}
.accounts-user-row h3{font:var(--ui-t-row);line-height:1.5;margin:0 0 4px;overflow-wrap:anywhere}
.accounts-user-row p{font-size:13px;line-height:1.6;margin:10px 0 0;color:var(--muted);overflow-wrap:anywhere}
.accounts-user-row>button{grid-column:1/-1;justify-self:start;font-size:13px}
.accounts-username{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.accounts-user-meta{display:flex;flex-direction:column;align-items:end;gap:8px;font-size:12px;text-align:right}


.accounts-you{font-size:12px;font-weight:400;color:var(--muted)}
.accounts-editor{background:var(--v31-surface,#fff);border:1px solid var(--line);border-radius:12px;padding:22px 24px;min-width:0}
.accounts-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.accounts-editor-heading h2{font:var(--ui-t-win);margin:0}
.accounts-editor-heading button{font-size:12px;padding-inline:12px}
.accounts-editor-empty,.accounts-empty,.accounts-loading{padding:24px 0;color:var(--muted);font-size:14px;line-height:1.7}
.accounts-editor-empty p{max-width:36ch;margin:0}
.accounts-workspace .accounts-checkbox{display:flex;align-items:center;gap:12px;min-height:40px;margin:12px 0 18px}
.accounts-workspace .accounts-checkbox input{margin:0}
.accounts-sample-setting{margin-bottom:18px}
.accounts-workspace .accounts-sample-setting .accounts-checkbox{margin:0;line-height:1.5}
.accounts-sample-setting .accounts-checkbox input{flex:none}
.accounts-sample-setting .muted{margin:0 0 0 30px}
.accounts-role-help{margin:-4px 0 16px}
.accounts-permissions{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}
.accounts-workspace .accounts-choices{border-top:1px solid var(--line);padding-top:14px}
.accounts-choices legend{padding:0 10px 0 0;font-weight:700;font-size:13px}
.accounts-workspace .accounts-choices label{display:flex;align-items:center;gap:10px;min-height:40px;margin:0;line-height:1.5;font-weight:400}
.accounts-choices input{margin:0}
.accounts-choices:disabled{color:var(--muted)}
.accounts-new-password{border-top:1px solid var(--line);margin-top:22px;padding-top:22px}
.accounts-editor-actions{margin-top:22px;gap:10px;flex-wrap:wrap}
.accounts-additional-features{border-top:1px solid var(--line);margin-top:20px;padding-top:8px}
.accounts-additional-features>summary{min-height:40px;cursor:pointer;font-size:14px;font-weight:620;align-content:center}
.accounts-workspace .accounts-feature-choices{padding:4px 0 0;margin:0}
.accounts-workspace .accounts-feature-choice{display:flex;gap:12px;align-items:start;min-height:40px;padding:8px 0;margin:0;font-size:14px;font-weight:400;line-height:1.5}
.accounts-feature-choice input{flex:none;margin:3px 0 0}
.accounts-feature-choice small{display:block;font-size:13px;font-weight:400;color:var(--muted);margin-top:3px}
.accounts-additional-features>.muted{margin:8px 0 0;font-size:13px}
.accounts-workspace [aria-invalid=true]{border-color:var(--danger,#a33832)}
@media(max-width:1200px){.accounts-users-layout{gap:20px;grid-template-columns:minmax(250px,1fr) minmax(280px,1fr)}.accounts-permissions{grid-template-columns:1fr}.accounts-user-row{padding-inline:16px}}
@media(max-width:1000px){.accounts-layout{gap:20px;grid-template-columns:minmax(280px,1fr) minmax(220px,.75fr)}.accounts-users-layout{display:block}.accounts-users:not(.is-editing) .accounts-editor{display:none}.accounts-users.is-editing .accounts-register{display:none}.accounts-users.is-editing #account-user-new{display:none}.accounts-editor{max-width:680px}.accounts-permissions{grid-template-columns:1fr 1fr}.accounts-user-row{grid-template-columns:minmax(0,1fr) auto auto;align-items:center}.accounts-user-row>button{grid-column:auto}.accounts-user-meta{align-items:start;text-align:left}}
@media(max-width:600px){.accounts-layout{grid-template-columns:1fr;gap:16px}.accounts-person{gap:8px 12px;margin-bottom:18px;padding:16px}.accounts-person h2{flex-basis:100%}.accounts-section,.accounts-access,.accounts-editor{padding:18px 16px}.accounts-section :is(input,select){font-size:16px}.accounts-user-tools{align-items:end;gap:8px}.accounts-user-tools>button{font-size:13px;padding-inline:12px;min-height:44px}.accounts-user-row{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:18px 16px}.accounts-user-row>button{grid-column:1/-1}.accounts-user-meta{align-items:end;text-align:right}.accounts-permissions{grid-template-columns:1fr;gap:20px}.accounts-editor-heading{align-items:start}.accounts-editor-actions>button{flex:1;justify-content:center;white-space:normal}.accounts-editor-actions{padding-bottom:8px}.accounts-workspace .page-heading{gap:16px}.accounts-workspace .page-heading .actions{margin-left:0}.accounts-workspace .page-heading .actions button{white-space:normal}}
@media(forced-colors:active){.accounts-active,.accounts-role,.accounts-user-row.is-selected{outline:1px solid CanvasText}}
.accounts-field{margin:0 0 16px}
.accounts-workspace .accounts-field>label{margin-bottom:0}
.accounts-field-error{margin:8px 0 0;font-size:13px;line-height:1.5;font-weight:620;color:var(--danger,#a33832);max-width:64ch;overflow-wrap:anywhere}
.accounts-password-rules{margin:10px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
.accounts-password-rules p{margin:0 0 4px}
.accounts-password-rules ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:2px 18px}
.accounts-password-rules li{display:flex;align-items:center;gap:8px;min-width:0}
.accounts-password-rules li::before{content:'';flex:none;width:12px;height:12px;box-sizing:border-box;border:1.5px solid currentColor;border-radius:50%;opacity:.75}
.accounts-password-rules li:is(.is-met,.is-missing)::before{border:0;opacity:1;background:currentColor;-webkit-mask:var(--accounts-rule-mark) center/12px no-repeat;mask:var(--accounts-rule-mark) center/12px no-repeat}
.accounts-password-rules li.is-met{color:var(--forest);--accounts-rule-mark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.accounts-password-rules li.is-missing{color:var(--danger,#a33832);--accounts-rule-mark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
@media(forced-colors:active){.accounts-password-rules li:is(.is-met,.is-missing)::before{forced-color-adjust:none;background:CanvasText}}
}

/* /forest/workspace-access.css */
@layer legacy{/* Account navigation inherits the working rail and compact More menu. */
.account-link .icon,.users-link .icon{width:18px;height:18px;flex-shrink:0}
.account-link-copy{min-width:0;display:grid;gap:2px}
.account-link-copy strong{font-weight:620;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-link-copy small{font-size:var(--ui-fs-micro);font-weight:400}
.page-access-denied{max-width:900px}
.page-access-denied h1{font-size:22px;line-height:1.4;margin-bottom:24px}
@media(max-width:600px){.page-access-denied h1{font-size:20px}}

/* The shared species questionnaire uses the normal sticky workspace shell. */
#account-menu :is(#new-property,#account-new-task,#account-species-valuation){display:flex;align-items:center;gap:10px;text-align:left;white-space:normal}
#account-menu :is(#new-property,#account-new-task,#account-species-valuation) .icon{width:18px;height:18px;flex:none}
#account-menu #account-species-valuation span{min-width:0;overflow-wrap:anywhere;line-height:1.4}
#content.page-species-valuation{padding-bottom:16px}
.species-questionnaire-shell{min-width:0}
.species-questionnaire-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;margin-bottom:16px}
.species-questionnaire-toolbar h1{font-size:var(--type-page,1.375rem);font-weight:700;line-height:1.25;letter-spacing:-.025em;margin:0;overflow-wrap:anywhere}
.species-questionnaire-back{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:14px;font-weight:620;flex:none}
.species-questionnaire-back:before{content:'';width:8px;height:8px;border-left:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);margin-left:3px}
.species-questionnaire-frame{display:block;width:100%;height:calc(100dvh - 190px);min-height:320px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
@media(max-width:700px){.species-questionnaire-toolbar{display:block;margin-bottom:12px}.species-questionnaire-toolbar h1{margin-top:4px;font-size:20px}.species-questionnaire-frame{border-radius:8px}}
}

/* /forest/workspace-comments.css */
@layer legacy{/* Comment emphasis belongs to the text, with a quiet, labelled edit affordance. */
.search-table .source-comment-preview{font-weight:620;white-space:pre-wrap;overflow-wrap:anywhere}
.comment-edit-action{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 0;margin-top:3px;border:0;background:transparent;color:var(--forest);font-size:12px;font-weight:400}
.comment-edit-action .icon{width:14px;height:14px;flex:none}
.comment-edit-action:hover{background:transparent;text-decoration:underline;text-underline-offset:3px}
.comment-edit-action:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.comment-editor{width:min(620px,calc(100vw - 32px));max-width:620px;max-height:calc(100dvh - 32px);padding:28px;overflow:auto}
.comment-editor header{padding-right:36px;margin-bottom:22px}
.comment-editor h2{margin:0 0 8px;font-size:22px}
.comment-editor header p{margin:0;color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.comment-editor textarea{width:100%;min-height:180px;max-height:50dvh;resize:vertical;line-height:1.6}
.comment-editor .error{margin:12px 0;white-space:normal;overflow-wrap:anywhere}
.comment-editor-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}
.comment-editor-actions button{min-height:44px}
@media(max-width:480px){.comment-editor{padding:22px 18px}.comment-editor h2{font-size:20px}.comment-editor-actions button{flex:1}.comment-editor textarea{font-size:16px}}
.source-comment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px;margin-bottom:8px}
.parcel-main .source-comment-heading h3{margin:0}
.source-comment-heading .comment-edit-action{flex:none}

/* A read cue and original prefix share the existing comment-column width. */
.source-comment-preview{display:flex;align-items:center;gap:6px;min-width:0;width:100%;max-width:100%;min-height:24px;height:24px;padding:0;white-space:nowrap;text-align:left;overflow:hidden}
.source-comment-preview .icon{width:16px;height:16px;flex:none}
.source-comment-preview .source-comment-prefix{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.source-comment-preview:focus-visible{outline:2px solid var(--forest);outline-offset:-2px}
.source-comment-empty{display:block;white-space:nowrap}
/* Beat the later dense tbody button rule instead of relying on load order. */
.catalogue-dense .dense-property-table tbody td[data-table-column="sourceComment"] .source-comment-preview{display:flex;align-items:center;min-height:24px;height:24px;line-height:24px}
@media(max-width:1000px),(pointer:coarse){
 .source-comment-preview,.catalogue-dense .dense-property-table tbody td[data-table-column="sourceComment"] .source-comment-preview{min-height:44px;height:44px;line-height:1.3}
}
@media(forced-colors:active){
 .source-comment-preview{color:ButtonText}
 .source-comment-preview:focus-visible{outline-color:Highlight}
}
}

/* /forest/workspace-shortlist.css */
@layer legacy{/* A personal working list and an aligned decision surface, in the existing FOREST identity. */
.shortlist-bookmark{display:inline-flex;flex:0 0 44px;align-items:center;justify-content:center;width:44px;min-width:44px;min-height:44px;padding:10px;border:1px solid transparent;background:transparent;color:var(--muted,#536257);border-radius:8px;transition:color 160ms ease-out,background-color 160ms ease-out}
.shortlist-bookmark .icon{width:20px;height:20px;flex-shrink:0}
.shortlist-bookmark:hover{background:#edf1eb;color:#285c43}
.shortlist-bookmark.is-saved{color:#285c43;background:#e3eee4}
.shortlist-bookmark.is-saved .icon{fill:currentColor}
.shortlist-bookmark[aria-busy=true]{opacity:.55;cursor:wait}
.shortlist-bookmark:focus-visible,.shortlist-check:focus-within{outline:2px solid #285c43;outline-offset:2px}
.parcel-title-line{display:flex;align-items:flex-start;gap:12px}
.parcel-title-line h2{flex:1;min-width:0;overflow-wrap:anywhere}
.property-row-markers{flex-wrap:wrap;justify-content:flex-end}
.shortlist-check{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px;border-radius:8px;color:#285c43;cursor:pointer;font-size:13px;white-space:nowrap}
.shortlist-check input{width:19px;height:19px;min-height:19px;accent-color:#285c43;margin:0}
.search-table .marker-cell .shortlist-check{display:flex;align-items:center;justify-content:center;width:44px;margin:0 auto;padding:8px}
.search-table .marker-cell .shortlist-check span{display:none}
.shortlist-sync{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;margin-bottom:16px;border:1px solid #d8e0d6;border-radius:8px;color:#536257;background:#fff}
.shortlist-sync[role=alert]{color:#a33832}
.shortlist-empty{padding:clamp(28px,6vw,64px) 20px;text-align:center;max-width:640px;margin:32px auto;background:#fff;border:1px solid #d8e0d6;border-radius:12px}
.shortlist-empty>.icon{width:32px;height:32px;color:#285c43;margin-bottom:20px}
.shortlist-empty h2{font-size:22px;line-height:1.35;margin:0 0 12px}
.shortlist-empty p{max-width:42ch;margin:0 auto 24px;color:#536257;line-height:1.65}
.page-shortlist{padding-bottom:max(112px,var(--corner-room))!important}
.shortlist-selection{position:sticky;bottom:20px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;margin-top:24px;background:#203e2e;color:#fff;border-radius:12px;box-shadow:0 6px 22px #14291d26}
.shortlist-selection-copy{display:flex;align-items:center;gap:16px;min-width:0}
.shortlist-selection-copy strong{font-size:18px;white-space:nowrap;font-variant-numeric:tabular-nums}
.shortlist-selection-copy span{font-size:14px;line-height:1.5;color:#e3eee4}
.shortlist-selection-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}

.shortlist-selection .quiet{color:#fff;border-color:transparent;background:transparent}
.shortlist-selection button:disabled{opacity:.5}
.shortlist-selection button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.browser-label-compact{display:none}
.comparison-toolbar{display:flex;align-items:center;gap:24px;justify-content:space-between;margin:8px 0 18px}
.comparison-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#285c43;font-weight:620;text-decoration:none}
.comparison-back .icon{transform:rotate(180deg);width:18px;height:18px}
.comparison-options{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.comparison-options label{display:flex;align-items:center;gap:8px;font-size:14px;min-height:44px;cursor:pointer}
.comparison-options input{margin:0;width:18px;height:18px;min-height:18px;accent-color:#285c43}
.comparison-count{font-size:14px;color:#536257;font-variant-numeric:tabular-nums;white-space:nowrap}
.comparison-source-note{font-size:13px;color:#536257;line-height:1.6;max-width:90ch;margin:0 0 24px}
.comparison-scroll{overflow:auto;max-height:calc(100dvh - 180px);border:1px solid #d8e0d6;border-radius:12px;background:#fff;scrollbar-color:#819788 #edf1eb;scrollbar-width:thin}
.comparison-table{width:100%;min-width:calc(168px + var(--compare-columns)*168px);table-layout:fixed;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.comparison-table th,.comparison-table td{padding:17px 18px;text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid #e5eae2}
.comparison-table thead th{position:sticky;top:0;z-index:3;background:#f4f6f2;border-bottom:1px solid #c8d4c5;padding-top:22px;padding-bottom:18px}
.comparison-table tr>:first-child{width:168px;position:sticky;left:0;background:#fff;z-index:2}
.comparison-table thead tr>:first-child{z-index:4;background:#f4f6f2;font-size:13px;font-weight:620;color:#536257;vertical-align:bottom}
.comparison-table tbody th{font-size:13px;font-weight:620;color:#536257}
.comparison-table td{font-size:14px;line-height:1.45}
.comparison-table td+td,.comparison-table thead th+th{border-left:1px solid #edf1eb}
.comparison-number{font-variant-numeric:tabular-nums;font-weight:620;font-size:18px!important;letter-spacing:-.02em;color:#20362c}
.comparison-property{position:relative;display:grid;gap:9px;align-content:start;min-width:0}
.comparison-position{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;background:#dce9dd;color:#285c43;font-size:12px;font-weight:700}

.comparison-cadastre{color:#536257;font-size:12px;letter-spacing:.02em;font-weight:400;overflow-wrap:anywhere}
.comparison-remove{display:inline-flex;align-items:center;justify-content:flex-start;gap:5px;min-height:44px;padding:6px 0;background:transparent;border:0;color:#536257;font-size:12px;font-weight:400}
.comparison-remove .icon{height:16px;width:16px}
.comparison-table .comparison-group th{background:#edf1eb;color:#285c43;font-size:12px;font-weight:750;letter-spacing:.02em;padding:11px 18px;position:static}
.comparison-table .comparison-different td{background:#fbfcfa}
.comparison-unit{color:#536257;font-size:12px;white-space:nowrap;font-weight:400;display:block;margin-top:4px}
.comparison-table td .comparison-unit,.comparison-fact p .comparison-unit{white-space:normal}
.comparison-missing{font-size:13px;font-weight:400;color:#69776b;letter-spacing:0}
.comparison-mobile{display:none}
.comparison-no-differences{padding:24px;text-align:center;color:#536257}
.page-comparison ::selection{background:#dce9dd;color:#20362c}
.page-comparison :focus-visible{outline:2px solid #285c43;outline-offset:3px}
@media(max-width:1000px){
 .prospect-mode{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:transparent;border:0;border-bottom:1px solid #d8e0d6;border-radius:0;padding:0;margin-bottom:24px}
 .prospect-mode a{min-width:0;font-size:14px;padding:12px 6px!important;text-align:center;line-height:1.3;border-radius:0!important;border-bottom:2px solid transparent;background:transparent!important}
 .prospect-mode a[aria-current=page]{border-bottom-color:#285c43;font-weight:750;color:#285c43}
 .browser-label-full{display:none}.browser-label-compact{display:inline}
 .shortlist-selection{bottom:calc(80px + env(safe-area-inset-bottom,0px));padding:14px 16px}
 .comparison-toolbar{gap:12px;flex-wrap:wrap}.comparison-count{margin-left:auto}
 .comparison-options{order:3;width:100%;gap:18px}
}
@media(max-width:600px){
 .shortlist-selection{flex-wrap:wrap;gap:10px;padding:12px 14px;bottom:calc(76px + env(safe-area-inset-bottom,0px))}
 .shortlist-selection-copy{gap:12px;width:100%}.shortlist-selection-copy strong{font-size:18px}.shortlist-selection-copy span{font-size:12px}
 .shortlist-selection-actions{justify-content:space-between;width:100%}.shortlist-selection-actions button{font-size:13px;padding:8px 12px}
 .page-shortlist{padding-bottom:184px!important}
 .comparison-desktop{display:none}.comparison-mobile{display:block}
 .comparison-source-note{font-size:12px;margin-bottom:18px}
 .comparison-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:14px 0;border-top:1px solid #d8e0d6}
 .comparison-pair label{display:grid;min-width:0;gap:6px;font-size:12px;font-weight:600;color:#536257}
 .comparison-pair select{width:100%;min-width:0;font-size:16px;min-height:44px;padding-left:10px;text-overflow:ellipsis}
 .comparison-pair>span{grid-column:1/-1;font-size:12px;color:#536257}
 .comparison-pair-identities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:12px 0;background:#f4f6f2;position:sticky;top:0;z-index:4;border-bottom:1px solid #c8d4c5}
 .comparison-pair-identities .comparison-property{gap:5px;grid-template-columns:minmax(0,1fr) 44px}.comparison-pair-identities .comparison-cadastre{font-size:12px;grid-column:1/-1}
 .comparison-pair-identities .comparison-remove{grid-column:2;grid-row:1;justify-content:center;width:44px}.comparison-pair-identities .comparison-remove span{display:none}
 .comparison-pair-identities .comparison-position{display:none}
 .comparison-mobile-facts h2{font-size:13px;font-weight:750;color:#285c43;background:#edf1eb;padding:7px 12px;margin:12px 0 0}
 .comparison-fact{padding:10px 0;border-bottom:1px solid #d8e0d6}
 .comparison-fact h3{font-size:12px;font-weight:600;color:#536257;margin:0 0 5px}
 .comparison-fact h3 .comparison-unit{display:inline;margin-left:4px}
 .comparison-fact>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .comparison-fact p{margin:0;font-size:15px;overflow-wrap:anywhere;line-height:1.45}
 .comparison-fact p+p{border-left:1px solid #d8e0d6;padding-left:12px}
 .comparison-fact .comparison-number{font-size:20px!important}
 .comparison-options{gap:14px}.comparison-options label{font-size:13px}
 .page-comparison{padding-bottom:max(96px,var(--corner-room))!important}
 .page-comparison .page-heading{margin-bottom:16px}
 .page-comparison .prospect-mode{margin-bottom:12px}
 .page-comparison .comparison-back{display:none}
 .page-comparison .comparison-toolbar{margin:0 0 10px;gap:8px}
 .page-comparison .comparison-options{order:0;width:auto;gap:12px}
 .page-comparison .comparison-count{font-size:12px}
 .page-comparison .comparison-source-note{margin-bottom:12px}
 .page-comparison .comparison-pair{padding:10px 0;gap:8px 12px}
 .comparison-mobile-facts>h2:first-child{margin-top:12px}
}
@media(min-width:601px){
 .comparison-table{min-width:calc(220px + var(--compare-columns)*190px)}
 .comparison-table tr>:first-child{width:220px}
 .comparison-table th,.comparison-table td{padding:9px 16px}
 .comparison-table th{text-transform:none;letter-spacing:0}
 .comparison-table thead th{padding:12px 16px}
 .comparison-table .comparison-property{grid-template-columns:24px minmax(0,1fr) 44px;column-gap:9px;row-gap:2px;align-items:center}
 .comparison-table .comparison-position{grid-column:1;grid-row:1}

 .comparison-table .comparison-cadastre{grid-column:2;grid-row:2}
 .comparison-table .comparison-remove{grid-column:3;grid-row:1 / span 2;width:44px;justify-content:center;padding:6px}
 .comparison-table .comparison-remove span{display:none}
 .comparison-table .comparison-group th{padding:7px 16px}
 .comparison-table tbody th .comparison-unit{display:inline;margin-left:4px}
 .page-comparison .comparison-source-note{margin-bottom:16px}
}
@media(prefers-reduced-motion:reduce){.shortlist-bookmark{transition:none}}
@media(forced-colors:active){.shortlist-bookmark.is-saved{outline:2px solid Highlight}.shortlist-selection{border:1px solid CanvasText}}
@media(min-width:1001px){
 .sidebar nav a.search-parent-current{color:#1a3f2a;background:#e8eedf;font-weight:750}
 .sidebar nav a.search-parent-current .icon{stroke-width:2}
 .sidebar nav .search-subnav a.active{background:#315640;color:#f1f5e9;font-weight:700}
 .sidebar nav .search-subnav a:hover{background:#2c513d;color:#fff}
}

/* Keep comparison available without a full-width opaque strip. */
#shortlist-selection.shortlist-selection{width:max-content;max-width:min(640px,calc(100% - 16px));margin-inline:auto;gap:12px;padding:6px 8px;border:1px solid #285c4333;border-radius:8px;background:rgba(240,246,236,.68);color:#17382b;box-shadow:none}
#shortlist-selection .shortlist-selection-copy{gap:8px;min-width:0;flex:1 1 auto}
#shortlist-selection .shortlist-selection-copy strong{font-size:13px;line-height:1.3;font-weight:620}
#shortlist-selection .shortlist-selection-copy span{font-size:12px;line-height:1.3;color:#17382b}
#shortlist-selection .shortlist-selection-actions{gap:4px}
#shortlist-selection button{min-height:32px;padding:5px 8px;font-size:12px;gap:4px}
#shortlist-selection .quiet{background:transparent;color:#17382b;border-color:transparent}
#shortlist-selection button:focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:2px}
@media(max-width:1000px){#shortlist-selection button{min-height:44px}}
@media(max-width:640px){#shortlist-selection.shortlist-selection{gap:4px 8px;padding:4px 6px}#shortlist-selection .shortlist-selection-copy{gap:6px}#shortlist-selection .shortlist-selection-actions{justify-content:flex-end}}
@media(forced-colors:active){#shortlist-selection.shortlist-selection,#shortlist-selection .quiet{background:ButtonFace;color:ButtonText;border-color:ButtonText}#shortlist-selection .shortlist-selection-copy span{color:ButtonText}}
}

/* /forest/workspace-dense-table.css */
@layer legacy{/* Approved operating surface: compact table, quiet controls, retained mobile records. */
/* Data alignment is shared across chosen columns; cadastral identifiers retain their left anchor. */
.catalogue-dense .dense-property-table tbody tr[data-record-id]>td{text-align:left}
.catalogue-dense .dense-property-table tbody tr[data-record-id]>td.number-cell{text-align:right;font-variant-numeric:tabular-nums}
.catalogue-dense .dense-property-table tbody tr[data-record-id]>td :is(.source-comment-preview,.dense-facts-trigger,.next-check-action){text-align:left}
.catalogue-dense .dense-property-table tbody tr[data-record-id]>td .next-check-heading{justify-content:flex-start}
.catalogue-dense .dense-property-table tbody tr[data-record-id]>.table-row-menu-cell .table-row-actions>summary{margin-inline:auto}
@media(min-width:700px){
 #content.catalogue-dense{max-width:none;padding:20px 24px 36px}
 main:has(.catalogue-dense)>.topbar{height:48px;padding-inline:24px}
 .catalogue-dense .page-heading{align-items:center;margin-bottom:12px;gap:12px}
 .catalogue-dense .page-heading h1{font-size:22px;letter-spacing:-.02em;margin:0}
 .catalogue-dense .page-heading button{min-height:34px;padding:6px 12px;font-size:12px;border-radius:6px}
 .catalogue-dense .search-work-views{gap:2px;margin-bottom:10px;padding-bottom:6px}
 .catalogue-dense .search-work-views button{min-height:32px;padding:5px 10px;font-size:12px;border-radius:5px}
 .catalogue-dense .catalogue-toolbar{gap:6px;margin:0 0 10px;position:relative;align-items:center}
 .catalogue-dense .catalogue-toolbar .searchbox{min-width:190px;flex:1}
 .catalogue-dense .catalogue-toolbar input,.catalogue-dense .catalogue-toolbar select,
 .catalogue-dense .catalogue-toolbar>button,.catalogue-dense .catalogue-toolbar summary,
 .catalogue-dense #table-presentation-controls>button{min-height:34px;height:34px;margin:0;padding:5px 10px;border-radius:6px;font-size:12px}
 .catalogue-dense .catalogue-toolbar .searchbox input{padding-left:34px;min-width:0;line-height:1.35}
 .catalogue-dense .catalogue-toolbar .icon{width:16px;height:16px;flex:none}
 .catalogue-dense .catalogue-view-options{position:relative;order:5}
 .catalogue-dense .catalogue-view-options[open]{flex-basis:auto;padding:0;border:0;background:transparent}
 .catalogue-dense .catalogue-view-options[open]>summary{border:1px solid var(--line);padding:5px 10px;color:var(--ink);background:white}
 .catalogue-dense .catalogue-view-options .catalogue-view-actions{position:absolute;right:0;top:40px;z-index:1100;width:300px;padding:12px;display:grid;background:white;border-radius:8px;box-shadow:var(--menu-shadow)}
 .catalogue-dense .catalogue-view-actions button{min-height:36px;font-size:12px}
 .catalogue-dense .catalogue-view-actions .catalogue-sort{display:flex;max-width:100%}
 .catalogue-dense .catalogue-view-actions select{max-width:235px;flex:1}
 .catalogue-dense #table-presentation-controls{display:flex;align-items:center;gap:6px;margin-left:auto}
 .catalogue-dense #table-presentation-controls label{margin:0;flex:none}
 .catalogue-dense #table-presentation-controls button{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
 .catalogue-dense .table-columns{position:static;margin:0}
 .catalogue-dense .table-columns>summary{display:flex;align-items:center;gap:6px;background:white;border:1px solid var(--line);list-style:none}
 .catalogue-dense .table-columns>summary::-webkit-details-marker{display:none}
 .catalogue-dense .table-columns-count{font-size:var(--ui-fs-micro);color:var(--muted)}
 .catalogue-dense .table-columns-panel{position:absolute;right:0;top:calc(100% + 6px);width:min(780px,100%);max-height:65dvh;overflow:auto;z-index:1150;padding:16px;background:white;border:0;border-radius:8px;box-shadow:var(--menu-shadow)}
 .catalogue-dense .table-columns-panel input{width:16px;min-width:16px;flex:0 0 16px;height:16px;min-height:0;margin:0}
 .catalogue-dense .table-columns-panel label{min-height:34px;font-size:12px}
 .catalogue-dense .table-columns-help,.catalogue-dense .table-columns-footer p{font-size:12px;margin:0 0 10px}
 .catalogue-dense .table-column-order{border-top:1px solid var(--line);margin:12px 0;padding-top:8px}
 .catalogue-dense .table-column-order>summary{width:max-content;padding:4px 0;min-height:34px;font-weight:620}
 .catalogue-dense .table-column-order-list{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;list-style:none;counter-reset:column-position;max-width:520px;margin:6px 0;padding:0}
 .catalogue-dense .table-column-order-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;border-bottom:1px solid var(--line);padding:3px 0}
 .catalogue-dense .table-column-order-list li:before{counter-increment:column-position;content:counter(column-position);font-size:var(--ui-fs-micro);color:var(--muted);width:18px;flex:none;font-variant-numeric:tabular-nums}
 .catalogue-dense .table-column-order-name{font-size:12px;min-width:0;overflow-wrap:anywhere;flex:1}
 .catalogue-dense .table-column-order-actions{display:flex;gap:4px;flex:none}
 .catalogue-dense .table-column-order-actions button{width:32px;height:32px;min-height:32px;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:4px}
 .catalogue-dense .table-column-order-actions button span{display:none}
 .catalogue-dense .search-filters{padding:10px 12px;border-radius:7px;margin-bottom:12px}
 .catalogue-dense .search-core-filters{grid-template-columns:1fr 1.1fr 1.1fr 1fr .8fr;gap:10px}
 .catalogue-dense .search-filters label,.catalogue-dense .range-filter legend{font-size:var(--ui-fs-micro);margin-bottom:0}
 .catalogue-dense .search-filters input:not([type=checkbox]),.catalogue-dense .search-filters select{font-size:12px;min-height:32px;height:32px;padding:4px 8px;margin-top:4px;border-radius:5px}
 .catalogue-dense .search-filters:not(.is-open) .filter-footer{display:none}
 .catalogue-dense .search-source-checks{padding-top:8px;gap:4px 18px}
 .catalogue-dense .search-source-checks label{min-height:32px;font-size:12px}
 .catalogue-dense .search-advanced{margin-top:8px;padding-top:10px}
 .catalogue-dense .numeric-filters,.catalogue-dense .location-filters{gap:10px}
 .catalogue-dense .filter-footer{padding-top:8px;margin-top:8px}
 .catalogue-dense .filter-footer button{min-height:32px;font-size:12px;padding:4px 10px;border-radius:5px}
 .catalogue-dense .search-map-section{border-radius:7px;margin-bottom:12px}
 .catalogue-dense .search-map-section .map-area{height:230px}
 .catalogue-dense .database-panel{--table-font:13px;--table-row:28px;--table-action-height:24px;padding:0;border:1px solid var(--line);border-radius:7px;overflow:visible;margin:12px 0 0;background:white}
 .catalogue-dense .database-panel[data-density=comfortable]{--table-font:14px;--table-row:40px;--table-action-height:36px}
 .catalogue-dense .database-panel[data-density=dense]{--table-font:12px;--table-row:25px}
 .catalogue-dense .database-scroll{max-height:calc(100dvh - 160px);border-radius:6px 6px 0 0;scrollbar-color:#92aa98 #eff3ed;scrollbar-gutter:stable}
 .catalogue-dense .dense-property-table{table-layout:fixed;min-width:100%;border-collapse:separate;border-spacing:0;line-height:1.3}
 .catalogue-dense .dense-property-table th,.catalogue-dense .dense-property-table td{height:var(--table-row);padding:0 6px;font-size:var(--table-font);min-width:0;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;border:0;border-bottom:1px solid #e1e8dc;background:#fff;letter-spacing:0;text-transform:none;font-weight:400}
 .catalogue-dense .dense-property-table tbody tr:nth-child(even)>*{background:#f7f9f4}
 .catalogue-dense .dense-property-table tbody tr:hover>*{background:#edf3e8}
 .catalogue-dense .dense-property-table tbody tr.is-selected>*{background:#e2eedc}
 .catalogue-dense .dense-property-table .number-cell{text-align:right;font-variant-numeric:tabular-nums}
 .catalogue-dense .dense-property-table thead th{position:sticky;top:0;z-index:3;height:40px;background:#e9efe3;color:#354f3d;font-size:var(--ui-fs-micro);font-weight:600;border-right:0}
 .catalogue-dense .dense-property-table thead button{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:24px 12px;align-content:start;align-items:start;border:0;background:transparent;min-height:36px;height:36px;width:100%;padding:0;border-radius:0;font:inherit;color:inherit;white-space:normal;line-height:1.2;text-align:inherit;min-width:0;padding-inline-end:2px;box-shadow:none}
 .catalogue-dense .dense-property-table thead .number-cell button{justify-content:flex-end}
 .catalogue-dense .dense-property-table thead small{display:block;font-size:var(--ui-fs-micro);font-weight:400;color:var(--muted)}
 .catalogue-dense .dense-property-table thead .icon{width:11px;height:11px;flex:none}
 .catalogue-dense .dense-property-table .marker-cell{position:sticky;left:0;z-index:2;width:var(--marker-width);padding:0;text-align:center}
 .catalogue-dense .dense-property-table .identity-cell,.catalogue-dense .dense-property-table thead th[data-table-column=parcelCode]{position:sticky;left:var(--marker-width);z-index:2;width:auto;min-width:0;border-right:1px solid #bccdb5}
 .catalogue-dense .dense-property-table thead .marker-cell,.catalogue-dense .dense-property-table thead th[data-table-column=parcelCode]{z-index:4}
 .catalogue-dense .dense-property-table tbody button{min-height:var(--table-action-height);height:var(--table-action-height);padding:0;border:0;border-radius:3px;background:transparent;font-size:inherit;line-height:1.3;vertical-align:middle}
 .catalogue-dense .dense-property-table .record-name{display:block;width:100%;font-size:var(--table-font);font-weight:620;white-space:nowrap;font-variant-numeric:tabular-nums}
 .catalogue-dense .dense-property-table .table-marks{display:flex;align-items:center;justify-content:center;gap:0}
 .catalogue-dense .dense-property-table .shortlist-bookmark{width:26px;min-width:26px;height:var(--table-action-height);min-height:var(--table-action-height);flex:none;margin:0;display:inline-flex;align-items:center;justify-content:center}
 .catalogue-dense .dense-property-table .shortlist-bookmark .icon,.catalogue-dense .dense-property-table .table-mark .icon{width:14px;height:14px}
 
 
 
 
 .catalogue-dense .dense-property-table .shortlist-check{min-height:var(--table-action-height);height:var(--table-action-height);width:26px;min-width:26px;display:flex;align-items:center;justify-content:center;margin:0;padding:0}
 .catalogue-dense .dense-property-table .shortlist-check span{display:none}
 .catalogue-dense .dense-property-table .shortlist-check input{width:15px;height:15px;margin:0}
 .catalogue-dense .dense-property-table .table-comment-column{position:relative;padding-right:calc(var(--comment-action-width,24px) + 4px)}
 .catalogue-dense .dense-property-table .source-comment-preview{display:block;max-width:100%;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:620;text-align:left;line-height:24px}
 .catalogue-dense .dense-property-table .comment-edit-action{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:24px;margin:0;display:flex;align-items:center;justify-content:center;color:var(--forest)}
 .catalogue-dense .dense-property-table .comment-edit-action span{display:none}
 .catalogue-dense .dense-property-table .comment-edit-action .icon{width:13px;height:13px}
 .catalogue-dense .dense-property-table .table-inventory{display:flex;align-items:center;justify-content:center;gap:5px;min-height:24px;font-size:var(--ui-fs-micro);white-space:nowrap}
 .catalogue-dense .dense-property-table .table-row-menu-cell{position:sticky;right:0;z-index:2;overflow:visible;padding:0 2px;border-left:1px solid #bccdb5}
 .catalogue-dense .dense-property-table .table-row-menu-cell:has(.table-row-actions[open]){z-index:10}
 .catalogue-dense .dense-property-table thead th:last-child{right:0;z-index:4;border-left:1px solid #bccdb5}
 .catalogue-dense .table-row-actions>summary{position:relative;display:flex;align-items:center;justify-content:center;list-style:none;min-height:var(--table-action-height);height:var(--table-action-height);width:26px;padding:0;border-radius:3px}
 .catalogue-dense .table-row-actions>summary::-webkit-details-marker{display:none}
 .catalogue-dense .table-row-actions>summary:hover{background:var(--mint)}
 .catalogue-dense .table-row-actions>summary .icon{width:17px;height:17px;fill:none;stroke:currentColor}
 .catalogue-dense .table-action-dot{position:absolute;right:1px;top:1px;width:4px;height:4px;border-radius:50%;background:var(--forest)}
 .catalogue-dense .table-row-actions .record-actions{position:fixed;z-index:1200;display:grid;width:224px;max-height:calc(100dvh - 16px);overflow:auto;padding:8px;margin:0;background:white;box-shadow:var(--menu-shadow);border-radius:8px;white-space:normal}
 .catalogue-dense .table-row-actions:not([open]) .record-actions{display:none}
 .catalogue-dense .table-row-actions .record-actions strong{padding:6px 8px;font-size:12px;color:var(--muted)}
 .catalogue-dense .dense-property-table .record-actions button{display:flex;align-items:center;gap:8px;text-align:left;min-height:36px;height:auto;padding:7px 8px;font-size:12px;background:white;border-radius:4px}
 .catalogue-dense .dense-property-table .record-actions button:hover{background:var(--mint)}
 .catalogue-dense .dense-property-table .record-actions button[aria-pressed=true]{color:var(--forest);background:#e7efdf}
 .catalogue-dense .database-panel .pagination{display:flex;gap:12px;min-height:38px;padding:4px 8px;margin:0;font-size:var(--ui-fs-micro);flex-wrap:wrap}
 .catalogue-dense .database-panel .pagination .result-count{margin:0 auto 0 0;font-size:var(--ui-fs-micro);color:var(--muted);max-width:55%;overflow-wrap:anywhere}
 .catalogue-dense .database-panel .pagination .page-size{display:flex;align-items:center;gap:5px;margin:0;font-size:var(--ui-fs-micro)}
 .catalogue-dense .database-panel .pagination select{width:58px;min-height:28px;height:28px;margin:0;padding:3px 7px;font-size:var(--ui-fs-micro);border-radius:4px}
 .catalogue-dense .database-panel .pagination button{min-height:28px;padding:3px 9px;font-size:var(--ui-fs-micro);border-radius:4px}
 .catalogue-dense .table-draggable,.catalogue-dense .table-draggable button{touch-action:pan-y;cursor:grab}
 .catalogue-dense .dense-property-table thead [data-catalogue-sort]{cursor:pointer}
 .catalogue-dense .table-is-dragging,.catalogue-dense .table-is-dragging button{user-select:none;cursor:grabbing}
 .catalogue-dense .dense-property-table.table-custom-widths{min-width:0}
 .catalogue-dense .dense-property-table.table-custom-widths .number-cell{padding-inline:4px}
 .catalogue-dense .dense-property-table thead button>span:first-child:not(.table-sort-marker){display:block;min-width:0;height:24px;line-height:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .catalogue-dense .dense-property-table thead small{height:11px;line-height:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .catalogue-dense .dense-property-table thead .table-sort-marker{position:absolute;inset:auto auto 1px 0;display:inline-flex;align-items:center;height:11px;gap:2px;margin:0;padding:0 3px;border:0;border-radius:3px;background:#dce8d7;color:#36513e;line-height:11px}
 .catalogue-dense .table-resize-handle{position:absolute;inset:0 0 0 auto;width:8px;cursor:col-resize;touch-action:none;z-index:1;outline-offset:-2px}
 .catalogue-dense .table-resize-handle:after{content:'';position:absolute;right:0;top:9px;bottom:9px;width:1px;background:var(--forest);opacity:.18}
 .catalogue-dense .table-resize-handle:hover:after,.catalogue-dense .table-resize-handle:focus-visible:after,.catalogue-dense .table-is-resizing .table-resize-handle:focus:after{opacity:1}
 .catalogue-dense .table-resize-handle:focus-visible{outline:2px solid var(--forest)}

 .catalogue-dense .dense-property-table thead .table-sort-marker .icon{width:9px;height:9px}
 .catalogue-dense .table-is-resizing,.catalogue-dense .table-is-resizing *{user-select:none;cursor:col-resize!important}
 .catalogue-dense .table-width-help{font-size:12px;color:var(--muted);margin:0 0 10px}
 .catalogue-dense .table-column-widths{border-top:1px solid var(--line);padding-top:8px;margin:12px 0}
 .catalogue-dense .table-column-widths>summary{width:max-content;min-height:34px;padding:4px 0;font-weight:620}
 .catalogue-dense .table-column-width-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px;margin:8px 0}
 .catalogue-dense .table-column-width-list label{display:flex;align-items:center;gap:6px;min-width:0;margin:0}
 .catalogue-dense .table-column-width-list label>span:first-child{flex:1;overflow-wrap:anywhere}
 .catalogue-dense .table-column-width-list input{width:76px;min-width:76px;flex:0 0 76px;min-height:34px;height:34px;padding:4px 6px;font-size:13px}
 .catalogue-dense .table-column-width-list label>span:last-child{font-size:var(--ui-fs-micro);color:var(--muted)}
 .catalogue-dense .dense-property-table th.is-dragging{background:#cbdcc4;opacity:.7}
 .catalogue-dense .dense-property-table th.table-drop-before{box-shadow:inset 2px 0 var(--forest)}
 .catalogue-dense .dense-property-table th.table-drop-after{box-shadow:inset -2px 0 var(--forest)}
 .catalogue-dense .dense-property-table button:focus-visible,.catalogue-dense .dense-property-table summary:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
 body.table-expanded{overflow:hidden}
 .table-expanded #content.catalogue-dense{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;height:100dvh;padding:8px;background:var(--paper);overflow:hidden}
 .table-expanded .catalogue-dense>.page-heading,.table-expanded .catalogue-dense>.search-work-views,.table-expanded .catalogue-dense>.prospect-mode,.table-expanded #search-map-section,.table-expanded #search-selection,.table-expanded #map-visibility{display:none!important}
 .table-expanded .catalogue-dense .catalogue-toolbar{flex:none;margin-bottom:8px}
 .table-expanded .catalogue-dense .search-filters{display:none;flex:none}
 .table-expanded .catalogue-dense .search-filters.is-open{display:block;max-height:45dvh;overflow:auto;margin-bottom:8px}
 .table-expanded #land-container,.table-expanded #search-results,.table-expanded .database-panel{display:flex;flex-direction:column;flex:1;min-height:0}
 .table-expanded .catalogue-dense .database-panel{margin:0}
 .table-expanded .catalogue-dense .database-scroll{flex:1;max-height:none;min-height:0}
 .table-expanded .catalogue-dense .pagination{flex:none}
 .table-expanded #content.page-shortlist{padding-bottom:96px}
 .table-expanded #shortlist-selection{left:8px;right:8px;bottom:8px}
}
@media(min-width:700px) and (pointer:coarse){
 .catalogue-dense .database-panel[data-density]{--table-row:25px;--table-action-height:24px}
 .catalogue-dense .dense-property-table tbody button,.catalogue-dense .table-row-actions>summary{min-height:44px;height:44px}
 .catalogue-dense .dense-property-table .shortlist-bookmark,.catalogue-dense .dense-property-table .table-mark,.catalogue-dense .dense-property-table .shortlist-check,.catalogue-dense .dense-property-table .comment-edit-action,.catalogue-dense .table-row-actions>summary{width:44px;min-width:44px;min-height:44px;height:44px}
 .catalogue-dense .dense-property-table .table-marks{gap:0}
 .catalogue-dense .dense-property-table .table-row-menu-cell{padding:0}
 .catalogue-dense .catalogue-toolbar input,.catalogue-dense .catalogue-toolbar select,.catalogue-dense .catalogue-toolbar>button,.catalogue-dense .catalogue-toolbar summary,.catalogue-dense #table-presentation-controls>button,
 .catalogue-dense .search-filters input:not([type=checkbox]),.catalogue-dense .search-filters select,.catalogue-dense .search-filters button,.catalogue-dense .search-source-checks label,.catalogue-dense .table-columns-panel label,.catalogue-dense .database-panel .pagination button,.catalogue-dense .database-panel .pagination select,.catalogue-dense .search-work-views button{min-height:44px;height:auto}
 .catalogue-dense .dense-property-table thead button{min-height:44px}
 .catalogue-dense .table-column-order-actions button{width:44px;min-width:44px;height:44px;min-height:44px}
 .catalogue-dense .table-column-width-list input{min-height:44px;height:44px;font-size:16px}
 .catalogue-dense .table-column-widths>summary{min-height:44px}
}
@media(forced-colors:active){.catalogue-dense .table-row-actions .record-actions{border:1px solid CanvasText}.catalogue-dense .dense-property-table th.table-drop-before{border-left:2px solid Highlight}.catalogue-dense .dense-property-table th.table-drop-after{border-right:2px solid Highlight}}

/* Quiet quick filters stay with the visible geography fields. Native inputs retain keyboard/touch behavior. */
.catalogue-toolbar :where(#map-visibility,#table-density,.table-columns>summary){background:transparent;border-color:transparent;color:var(--ink);font-family:inherit;font-weight:400;box-shadow:none}
.catalogue-toolbar #table-density{padding-right:28px;cursor:pointer}
.catalogue-toolbar :where(#map-visibility,#table-density,.table-columns>summary):hover{background:var(--mint);color:var(--forest)}
.catalogue-toolbar #map-visibility[aria-expanded=false],.catalogue-dense .table-columns[open]>summary,
body:has(#mobile-columns-dialog[open]) [data-mobile-columns-open]{background:var(--mint);color:var(--forest);border-color:var(--forest);font-weight:620}
.catalogue-toolbar #map-visibility[aria-expanded=true]{background:transparent;border-color:transparent;font-weight:400}
.catalogue-toolbar :where(#map-visibility,#table-density,.table-columns>summary):focus-visible{outline:2px solid var(--forest);outline-offset:2px}
.catalogue-dense .dense-property-table tbody tr[data-record-id]>td:is(.marker-cell,[data-table-column=nextInventoryAgeSignal],[data-table-column=nextInventoryEvidence],[data-table-column=nextFirstSpecies]){text-align:center}
.dense-property-table thead th:is([data-table-column=nextInventoryAgeSignal],[data-table-column=nextInventoryEvidence],[data-table-column=nextFirstSpecies]) button{justify-content:center;text-align:center}
.mobile-register td:is([data-mobile-key=nextInventoryAgeSignal],[data-mobile-key=nextInventoryEvidence],[data-mobile-key=nextFirstSpecies]){text-align:center}
.catalogue-dense .dense-property-table tbody tr[data-record-id]>td:is([data-table-column=nextAgeRange],[data-table-column=nextInventory]),.catalogue-dense .dense-property-table thead th:is([data-table-column=nextAgeRange],[data-table-column=nextInventory]){text-align:right;font-variant-numeric:tabular-nums}
.catalogue-dense .dense-property-table th:is([data-table-column=nextAgeRange],[data-table-column=nextInventory]) button{justify-content:flex-end;text-align:right}
.search-source-checks .search-quick-filter{gap:7px;padding:2px 6px;border-radius:4px;cursor:pointer;color:#526557;transition:background-color .12s,color .12s}
.search-source-checks .search-quick-filter:hover{background:#e4ecdd;color:var(--ink)}
.search-source-checks .search-quick-filter:has(input:checked){background:#deead7;color:#284f32}
.search-source-checks .search-quick-filter span{font-weight:620;line-height:1.35}
.search-source-checks .search-quick-filter input{appearance:none;flex:0 0 16px;width:16px;height:16px;min-height:0;margin:0;padding:0;border:1px solid #829580;border-radius:3px;background:#fff;display:grid;place-content:center;cursor:pointer}
.search-source-checks .search-quick-filter input:checked{background:#345c3f;border-color:#345c3f}
.search-source-checks .search-quick-filter input:checked:after{content:"";width:8px;height:4px;transform:translateY(-1px) rotate(-45deg);border-left:2px solid white;border-bottom:2px solid white}
.search-source-checks .search-quick-filter input:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.table-inventory .inventory-signal{display:block;width:16px;height:16px;flex:none;overflow:visible}
.inventory-signal circle{fill:#eef1ec;stroke:#778579;stroke-width:1}
.inventory-signal path{fill:none;stroke:#516258;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.table-inventory[data-inventory-status=old] .inventory-signal circle{fill:#b74238;stroke:#b74238}
.table-inventory[data-inventory-status=not-old] .inventory-signal circle{fill:#387644;stroke:#387644}
.table-inventory[data-inventory-status=old] .inventory-signal path,.table-inventory[data-inventory-status=not-old] .inventory-signal path{stroke:white}
@media(max-width:1000px){.search-filters:not(.is-open){display:block}.search-filters:not(.is-open) .filter-footer{display:none}.search-source-checks{gap:2px 8px}.search-source-checks .search-quick-filter{min-height:44px}}
@media(prefers-reduced-motion:reduce){.search-source-checks .search-quick-filter{transition:none}}
@media(forced-colors:active){.search-source-checks .search-quick-filter input{appearance:auto}.search-source-checks .search-quick-filter input:checked:after{display:none}.inventory-signal circle{fill:Canvas!important;stroke:CanvasText!important}.inventory-signal path{stroke:CanvasText!important}}

@media(max-width:760px){.search-source-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 8px}.search-source-checks .search-quick-filter{min-width:0}.search-source-checks .search-quick-filter span{min-width:0;overflow-wrap:anywhere}}
/* Owner municipality uses the incumbent compact field/disclosure treatment. */
.owner-region-cell{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:24px;text-align:left;white-space:normal;font:inherit;color:var(--ink)}
.owner-region-places{white-space:normal;overflow-wrap:break-word}
.owner-region-state{width:100%;justify-content:center}
.owner-region-mark{width:16px;height:16px;flex:0 0 16px}
.owner-region-cell[data-owner-region-status="reference-only"]{color:#a13630}
.owner-region-cell[data-owner-region-status="unknown"] .owner-region-mark,.owner-region-cell[data-owner-region-status="partial"] .owner-region-mark{color:var(--amber)}

/* Requested value alignment: inventory year and attractiveness score. */
.catalogue-dense .dense-property-table tbody tr[data-record-id]>td:is([data-table-column=nextInventory],[data-table-column=nextAttractiveness]){text-align:center}
.catalogue-dense .mobile-register tbody tr[data-record-id]>td:is([data-mobile-key=nextInventory],[data-mobile-key=nextAttractiveness]){text-align:center}
.catalogue-dense .mobile-register td[data-mobile-key=nextInventory] .mobile-range{align-items:center}
.catalogue-dense :is(.dense-property-table td[data-table-column=nextAttractiveness],.mobile-register td[data-mobile-key=nextAttractiveness]) .next-score-cell{justify-content:center}

/* Anchor offscreen accessibility labels inside the scrollable property table. */
#content.page-properties .database-scroll{position:relative}

/* Requested owner municipality data alignment, including wrapped place names. */
.catalogue-dense .dense-property-table tbody tr[data-record-id]>td[data-table-column=nextOwnerRegion],
.catalogue-dense .mobile-register tbody tr[data-record-id]>td[data-mobile-key=nextOwnerRegion]{text-align:center}
.catalogue-dense .dense-property-table tbody tr[data-record-id]>td[data-table-column=nextOwnerRegion] .owner-region-cell,
.catalogue-dense .mobile-register tbody tr[data-record-id]>td[data-mobile-key=nextOwnerRegion] .owner-region-cell{width:100%;justify-content:center;text-align:center}

#app #content :is(.dense-property-table,.mobile-register) .next-table-evidence:has(.next-stock-number){justify-content:center}
/* Shared register alignment: text fields left, other headers and values centred. */
#app #content :is(.dense-property-table [data-table-column],.mobile-register [data-mobile-key]){text-align:center}
#app #content :is(.dense-property-table th[data-table-column],.mobile-register th[data-mobile-key])>button{text-align:center;justify-content:center}
#app #content :is(.dense-property-table tbody td[data-table-column=name],.mobile-register tbody td[data-mobile-key=name],.dense-property-table tbody td[data-table-column=municipality],.mobile-register tbody td[data-mobile-key=municipality],.dense-property-table tbody td[data-table-column=parish],.mobile-register tbody td[data-mobile-key=parish],.dense-property-table tbody td[data-table-column=nextOwnerRegion],.mobile-register tbody td[data-mobile-key=nextOwnerRegion],.dense-property-table tbody td[data-table-column=sourceComment],.mobile-register tbody td[data-mobile-key=sourceComment],.dense-property-table tbody td[data-table-column=sourceSpecies],.mobile-register tbody td[data-mobile-key=sourceSpecies],.dense-property-table tbody td[data-table-column=nextSpecies],.mobile-register tbody td[data-mobile-key=nextSpecies],.dense-property-table tbody td[data-table-column=nextFirstSpecies],.mobile-register tbody td[data-mobile-key=nextFirstSpecies]){text-align:left}
#app #content :is(.dense-property-table,.mobile-register) .owner-region-cell{justify-content:flex-start;text-align:left}
#app #content .dense-property-table .identity-cell .record-name{text-align:center}
#app #content .mobile-register .mobile-identity button{align-items:center;text-align:center}
#app #content .mobile-register :is(td[data-mobile-key=nextAgeRange],td[data-mobile-key=nextInventory]) .mobile-range{align-items:center}

/* Ephemeral wide-table identity view; inline and saved widths stay unchanged. */
@media(min-width:700px){
 #app #content .dense-property-table .cadastre-heading{position:sticky}
 #app #content .dense-property-table .cadastre-heading>button:not(.cadastre-toggle){padding-inline-end:26px}
 #app #content .dense-property-table .cadastre-heading>.cadastre-toggle{position:absolute;inset:4px 9px auto auto;display:grid;place-items:center;width:24px;min-width:24px;height:32px;min-height:0;padding:3px;border:0;border-radius:3px;background:transparent;color:var(--forest);cursor:pointer;z-index:2}
 #app #content .dense-property-table .cadastre-toggle svg{width:16px;height:16px}
 #app #content .dense-property-table .cadastre-toggle:hover{background:var(--mint)}
 #app #content .dense-property-table .cadastre-toggle:focus-visible{outline:2px solid var(--forest);outline-offset:-2px}
 #app #content .dense-property-table.cadastre-is-collapsed{width:calc(var(--cadastre-table-width) - var(--cadastre-column-width) + 44px)!important;min-width:0!important}
 #app #content .dense-property-table.cadastre-is-collapsed col.cadastre-column{width:44px!important}
 #app #content .dense-property-table.cadastre-is-collapsed :is(.identity-cell,.cadastre-heading){width:44px;max-width:44px;min-width:0}
 #app #content .dense-property-table.cadastre-is-collapsed .cadastre-heading>button:not(.cadastre-toggle){position:absolute;inset:2px auto auto 1px;width:14px;padding:0;font-size:var(--ui-fs-micro)}
 #app #content .dense-property-table.cadastre-is-collapsed .cadastre-heading>button:not(.cadastre-toggle)>span:first-child:not(.table-sort-marker):not(.table-sort-priority){display:none}
 #app #content .dense-property-table.cadastre-is-collapsed .cadastre-heading>button:not(.cadastre-toggle)::before{content:'#'}
 #app #content .dense-property-table.cadastre-is-collapsed .cadastre-heading>.cadastre-toggle{right:8px;width:22px;min-width:22px}
 #app #content .dense-property-table .cadastre-row-number{display:none;font-variant-numeric:tabular-nums}
 #app #content .dense-property-table.cadastre-is-collapsed .cadastre-full-id{display:none}
 #app #content .dense-property-table.cadastre-is-collapsed .cadastre-row-number{display:inline}
}
}

/* /forest/lmf-map.css */
@layer legacy{/* Shared V2 map controls preserve FOREST's working-surface vocabulary. */
/* Keep Leaflet's internal control/pane layers beneath the page navigation. */
.search-map-section,.leaflet-container{isolation:isolate}
.lmf-map-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 8px;color:var(--forest,#285c43);font-size:14px}
.lmf-map-tools a,.lmf-map-tools button,.lmf-map-tools summary{box-sizing:border-box;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border:1px solid var(--line,#d8e0d6);border-radius:8px;background:#fff;color:var(--forest,#285c43);font:inherit;font-weight:620;text-decoration:none;cursor:pointer}
.lmf-map-tools a:hover,.lmf-map-tools button:hover,.lmf-map-tools summary:hover{background:var(--paper,#edf1eb)}
.lmf-map-tools :is(a,button,summary,select,input):focus-visible{outline:3px solid #c88520;outline-offset:2px}
.lmf-map-tools details{position:relative;min-width:0}
.lmf-map-tools details>summary{list-style:none}
.lmf-map-tools details>summary::-webkit-details-marker{display:none}
.lmf-map-tools details[open]>summary{background:#e3eee4}
.lmf-map-layer-body{position:absolute;z-index:1001;top:calc(100% + 4px);left:0;width:min(310px,calc(100vw - 40px));max-height:min(440px,70vh);overflow:auto;display:grid;gap:8px;padding:14px;background:#fff;border:1px solid var(--line,#d8e0d6);border-radius:10px;box-shadow:0 10px 28px rgba(31,54,42,.16);color:var(--ink,#20362c)}
.lmf-map-background{display:grid;gap:6px;font-size:13px;font-weight:620}
.lmf-map-background select{width:100%;min-height:44px;margin:0;font:inherit;color:var(--ink,#20362c)}
.lmf-map-checkbox{display:flex;align-items:center;gap:8px;min-height:44px;line-height:1.4;font-size:14px;cursor:pointer}
.lmf-map-checkbox input{width:18px;height:18px;flex:none;accent-color:#285c43}
.lmf-map-checkbox:has(input:disabled){color:var(--muted,#536257);cursor:default}
.lmf-map-layer-note{font-size:12px;color:var(--muted,#536257)}
.lmf-map-layer-body>p.lmf-map-layer-note{margin:0;line-height:1.45}
.lmf-map-frames{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lmf-map-frames button{width:100%;font-size:13px;line-height:1.35;white-space:normal}
.lmf-map-frames button:last-child:nth-child(odd){grid-column:1/-1}
.lmf-map-status,.lmf-map-handoff-note{margin:6px 0 0;color:var(--muted,#536257);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.lmf-map-handoff-note{margin:2px 0 8px}
.lmf-map-stand-selection{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0;padding:2px 8px;background:#fff1d6;color:var(--ink,#20362c);font-size:13px;line-height:1.4}
.lmf-map-stand-selection[hidden]{display:none}
.lmf-map-stand-selection>span{min-width:0;overflow-wrap:anywhere}
.lmf-map-stand-selection>button{flex:none;min-height:44px;padding:8px;color:var(--forest,#285c43);background:transparent;border:0;border-radius:4px;font:inherit;cursor:pointer}
.lmf-map-stand-selection>button:hover{background:#f3e3bc}
.lmf-map-stand-selection>button:focus-visible{outline:3px solid #c88520;outline-offset:1px}
.lmf-map-stand-label{padding:3px 6px;font-size:12px;line-height:1.35;color:#20362c;background:#fff;border:0;pointer-events:none}
/* Forest Data numbers stay legible on both map backgrounds; geometry owns input. */
.lmf-map-number-overlay{position:absolute;inset:0;z-index:450;overflow:hidden;pointer-events:none}
.lmf-map-number-overlay[hidden],.lmf-map-number-overlay [hidden]{display:none}
.lmf-map-number-lines{position:absolute;inset:0;overflow:visible;pointer-events:none}
.lmf-map-number-connector{stroke:#20362c;stroke-width:1;stroke-opacity:.7;pointer-events:none}
.lmf-map-number{position:absolute;box-sizing:border-box;padding:2px 4px;border-radius:3px;background:rgba(255,255,255,.96);color:#20362c;box-shadow:0 1px 3px rgba(31,54,42,.14);font-family:inherit;font-size:12px;font-weight:620;font-variant-numeric:tabular-nums;line-height:16px;white-space:nowrap;pointer-events:none;user-select:none}
.lmf-map-wheel-hint{position:absolute;z-index:900;left:10px;bottom:10px;max-width:min(290px,calc(100% - 70px));padding:5px 8px;border-radius:5px;background:rgba(255,255,255,.94);color:#20362c;box-shadow:0 2px 9px rgba(31,54,42,.17);font-size:var(--ui-fs-micro);line-height:1.35;pointer-events:none;opacity:0}
.leaflet-container:hover>.lmf-map-wheel-hint,.leaflet-container:focus-within>.lmf-map-wheel-hint,.leaflet-container.lmf-map-wheel-active>.lmf-map-wheel-hint{opacity:1}
@media(max-width:520px){.lmf-map-tools{gap:6px}.lmf-map-tools a,.lmf-map-tools button,.lmf-map-tools summary{padding:8px 10px}.lmf-map-layer-body{left:0}}
/* One layout choice changes the existing catalogue map without remounting it. */
.search-map-section{overflow:visible}
.search-map-section .map-area{position:relative;overflow:hidden;border-radius:0 0 11px 11px}
.map-layout-row{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:6px 10px;background:#fff;border-radius:11px 11px 0 0}
.map-layout-row>.lmf-map-tools{margin:0 auto 0 0;padding:0;background:transparent}
.map-layout-row>.map-layout-control{margin:0}
.map-layout-control{display:flex;align-items:center;gap:8px;color:var(--muted,#536257);font-size:13px;font-weight:400}
.map-layout-control select{min-height:44px;max-width:min(190px,46vw);margin:0;font-size:14px;color:var(--ink,#20362c)}
#map-fullscreen-exit{min-height:44px;padding:8px 12px}
#land-container.map-layout-top #search-map-section .map-area,#land-container.map-layout-bottom #search-map-section .map-area{height:clamp(280px,42dvh,620px)}
#land-container.map-layout-top #search-results,#land-container.map-layout-bottom #search-results{max-height:clamp(280px,42dvh,620px);overflow:auto;min-height:0}
#land-container.map-layout-bottom #search-map-section{margin-top:12px}
#search-map-section.is-map-fullscreen,#search-map-section:fullscreen{display:flex;flex-direction:column;width:100%;height:100dvh;min-height:0;margin:0;border:0;border-radius:0;background:#fff;overflow:auto}
#search-map-section.is-map-fullscreen .map-area,#search-map-section:fullscreen .map-area{flex:1;min-height:180px;height:auto!important;border-radius:0}
#search-map-section.is-map-overlay{position:fixed;inset:var(--ui-env-offset) 0 0;z-index:9999;box-shadow:0 0 0 100vmax rgba(0,0,0,.55)}
#search-map-section.is-map-fullscreen .lmf-map-tools{padding:4px 10px;margin:0;background:#fff}
#search-map-section.is-map-fullscreen .lmf-map-status,#search-map-section.is-map-fullscreen .lmf-map-handoff-note{padding:0 10px}
@media(max-width:520px){.map-layout-row{justify-content:space-between;flex-wrap:wrap}.map-layout-control{flex:1;min-width:0}.map-layout-control select{flex:1;max-width:100%}#land-container.map-layout-top #search-map-section .map-area,#land-container.map-layout-bottom #search-map-section .map-area{height:clamp(280px,38dvh,480px)}#land-container.map-layout-top #search-results,#land-container.map-layout-bottom #search-results{max-height:clamp(280px,38dvh,480px)}}

/* Approved compact map controls: 30px targets exceed the 24px minimum. */
.leaflet-container .leaflet-control-zoom{border:0;background:transparent;box-shadow:0 2px 8px rgba(31,54,42,.14)}
.leaflet-container .leaflet-control-zoom>a{width:30px;height:30px;line-height:30px;font-size:18px;background:rgba(255,255,255,.84);color:var(--forest,#285c43);border-color:var(--line,#d8e0d6)}
.leaflet-container .leaflet-control-zoom>a:hover{background:rgba(255,255,255,.96)}
.leaflet-container .leaflet-control-zoom>a:focus-visible{outline:2px solid var(--forest,#285c43);outline-offset:2px}
.leaflet-container .leaflet-control-zoom>a.leaflet-disabled{color:var(--muted,#536257);background:rgba(255,255,255,.72)}

}

/* /forest/v2-preview.css */
@layer legacy{.v2-preview-label{font-size:12px;white-space:nowrap;color:var(--muted,#62756b)}
.v2-preview-label{border:1px solid currentColor;border-radius:999px;padding:.2rem .5rem}
.v2-login-note{font-size:13px;color:var(--muted,#62756b)}
@media(max-width:560px){#page-breadcrumb{display:none}.topbar>.v2-preview-label{font-size:12px;max-width:none}}
}

/* /forest/workspace-next-analysis.css */
@layer legacy{.next-mobile-label{display:none}
.page-next-analysis .next-analysis{max-width:1600px}
.page-next-analysis .page-heading{margin-bottom:10px}
.page-next-analysis .page-heading p{display:block}
.next-analysis-scope{font-size:13px;color:var(--muted);margin:3px 0 0}
.next-analysis-toolbar{display:flex;align-items:end;gap:12px;margin:8px 0 14px}
.next-analysis-toolbar label{display:grid;gap:3px;max-width:310px}
.next-analysis-toolbar input{min-width:240px}
.next-analysis-toolbar select{min-width:180px}
.next-analysis #next-status{font-size:13px;color:var(--muted);min-height:24px;margin-bottom:6px}
.page-next-analysis .next-table-wrap{overflow:auto;max-width:100%}
.page-next-analysis .next-table-wrap table{width:100%;border-collapse:collapse}
.page-next-analysis .next-table-wrap td,.page-next-analysis .next-table-wrap th{padding:10px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.page-next-analysis .next-table-wrap td small{display:block;color:var(--muted);font-size:12px}
.page-next-analysis .next-open{text-align:left;overflow-wrap:anywhere}
.next-pages{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:12px 0}
.next-pages button{min-height:40px}
.next-why{margin-top:12px}
.next-why summary,.next-detail details summary{cursor:pointer;color:var(--forest);font-weight:620}
.next-why>div{padding:12px 0}
.next-detail{max-width:900px;min-width:0}
.next-detail h2{margin:0;overflow-wrap:anywhere}
.next-detail .next-caution{color:var(--forest);font-weight:620}
.next-facts{margin:14px 0;border-top:1px solid var(--line)}
.next-value-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(80px,auto);gap:2px 14px;padding:9px 0;border-bottom:1px solid var(--line)}
.next-value-row small{grid-column:1/-1;color:var(--muted)}
.next-detail details{margin:14px 0}
.next-financial{border-bottom:1px solid var(--line);padding-bottom:10px}
.next-lenses{padding:4px 0 0}
.next-financial-row{display:grid;grid-template-columns:minmax(130px,1fr) auto;gap:2px 12px;padding:8px 0;border-bottom:1px solid var(--line)}
.next-financial-row small{grid-column:1/-1;color:var(--muted)}
.next-detail .table-wrap{max-width:100%;overflow:auto}
.next-detail td,.next-detail th{padding:8px;border-bottom:1px solid var(--line);text-align:left}
.next-source-list{overflow-wrap:anywhere}
@media(max-width:700px){
 .next-analysis-toolbar{flex-wrap:wrap}
 .next-analysis-toolbar label,.next-analysis-toolbar input{width:100%;max-width:none;min-width:0}
 .next-analysis-toolbar label{flex:1 1 180px}
 .page-next-analysis .next-table-wrap{overflow:visible}
 .page-next-analysis .next-table-wrap table,.page-next-analysis .next-table-wrap tbody,.page-next-analysis .next-table-wrap tr,.page-next-analysis .next-table-wrap td{display:block;width:100%;min-width:0;max-width:100%}
 .page-next-analysis .next-table-wrap thead{display:none}
 .page-next-analysis .next-table-wrap tbody tr{padding:10px 0;border-bottom:1px solid var(--line)}
 .page-next-analysis .next-table-wrap tbody td{border:0;padding:3px 7px;white-space:normal;overflow-wrap:anywhere}
 .page-next-analysis .next-table-wrap tbody td small{line-height:1.3}
 .page-next-analysis .next-table-wrap .next-mobile-label{display:block;font-size:12px;color:var(--muted);font-weight:600;margin-bottom:1px}
 .next-analysis .next-pages{justify-content:space-between}
 .next-detail .table-wrap table{min-width:0;font-size:12px}
 .next-detail td,.next-detail th{padding:7px 4px}
}
}

/* /forest/workspace-processing.css */
@layer legacy{.next-data-panel{border-bottom:1px solid var(--line);margin:0 0 16px;padding:0 0 10px;min-width:0}
.next-build-footer{margin-top:16px;padding-top:8px;border-top:1px solid var(--line);min-width:0}
.next-build-footer .next-data-panel{display:flex;align-items:center;flex-wrap:wrap;gap:4px 20px;border:0;margin:0;padding:0}
.next-build-footer .next-cohort-bar{flex:1;justify-content:flex-start;flex-wrap:wrap;gap:4px 20px;min-width:0}
.next-cohort-control{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;min-width:0}
.next-build-footer .next-cohort-bar label{min-height:44px;border-radius:4px;padding-inline:4px}
.next-build-footer .next-cohort-bar label:has(input:checked){background:var(--mint);color:var(--forest)}
.next-build-footer .next-data-disclosure{margin:0;min-width:0}
.next-build-footer .next-data-panel:has(.next-data-disclosure[open])>.next-data-disclosure{flex-basis:100%}
.next-build-footer :is(.next-data-disclosure,.next-source-disclosure)>summary{display:flex;align-items:center;gap:8px;list-style:none}
.next-build-footer :is(.next-data-disclosure,.next-source-disclosure)>summary::-webkit-details-marker{display:none}
.next-build-footer :is(.next-data-disclosure,.next-source-disclosure)>summary::after{content:'';width:7px;height:7px;flex:none;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 2px 4px 8px}
.next-build-footer :is(.next-data-disclosure,.next-source-disclosure)[open]>summary::after{transform:rotate(225deg);margin-top:7px}
.next-build-footer :is(.next-data-disclosure,.next-source-disclosure)[open]>summary{background:var(--mint);border-radius:4px;padding-inline:8px}
.table-expanded .next-build-footer{flex:none;margin-top:4px;padding-top:4px;max-height:45dvh;overflow:auto;overscroll-behavior:contain}
@media(min-width:1001px) and (pointer:fine){.next-build-footer .next-cohort-bar label,.next-build-footer .next-data-disclosure>summary{min-height:32px}}
@media(max-width:560px){.next-build-footer .next-data-panel{display:block}.next-build-footer .next-cohort-bar{gap:2px;align-items:flex-start}.next-build-footer .next-cohort-control{width:100%}}
.next-cohort-bar{display:flex;align-items:center;justify-content:space-between;gap:10px 20px;font-size:14px;color:var(--muted)}
.next-cohort-bar label{display:inline-flex;align-items:center;gap:8px;margin:0;color:var(--ink);font-weight:400;cursor:pointer}
.next-cohort-bar input{width:18px;height:18px;margin:0;accent-color:var(--forest)}
.next-data-disclosure{margin-top:4px}.next-data-disclosure>summary,.next-source-disclosure>summary,.next-overview-evidence>summary{cursor:pointer;color:var(--forest);font-weight:620;padding:10px 0;min-height:44px;box-sizing:border-box}
.next-data-disclosure>summary:focus-visible,.next-source-disclosure>summary:focus-visible,.next-overview-evidence>summary:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
.next-data-disclosure>p,.next-source-disclosure p,.next-upload>p{font-size:14px;color:var(--muted)}
.next-source-disclosure{border-top:1px solid var(--line);padding:6px 0}.next-source-disclosure ul{list-style:none;margin:0 0 12px;padding:0}.next-source-disclosure li{padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}
.next-upload-controls{display:flex;align-items:flex-end;gap:12px;max-width:720px}
.next-upload-controls .next-upload-fields{flex:1;min-width:0;max-width:none;grid-template-columns:minmax(0,1fr);gap:8px}
.next-upload-controls .next-upload-fields label{font-size:13px}
.next-upload-fields label[hidden]{display:none}
.next-upload-controls .next-upload-actions{flex:none;margin:0}
.next-upload .next-process-status{font-size:13px;line-height:1.4;margin:8px 0 0}
.next-upload .next-upload-preview{max-width:720px;box-sizing:border-box;padding:10px 12px;font-size:13px;line-height:1.45}
.next-upload-preview>strong{font-size:14px;font-weight:620}
.next-upload .next-upload-purpose-help{max-width:70ch;font-size:13px;line-height:1.5;margin:6px 0 8px}
.next-upload-preview .next-upload-purpose{font-size:13px;font-weight:620;color:var(--ink);margin:4px 0 10px}
.next-upload-preview[data-upload-purpose="relationships"]>dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 24px}
.next-upload-preview[data-upload-purpose="relationships"]>dl>div,.next-upload-preview .next-upload-owner-review dl>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
.next-upload-preview[data-upload-purpose="relationships"] dt{min-width:0;overflow-wrap:anywhere}
.next-upload-preview[data-upload-purpose="relationships"] dd{font-variant-numeric:tabular-nums;text-align:right}
.next-upload-owner-review{margin-top:8px;border-top:1px solid var(--line)}
.next-upload-owner-review>summary{display:flex;align-items:center;gap:8px;min-height:44px;list-style:none;cursor:pointer;color:var(--forest);font-size:13px;font-weight:620}
.next-upload-owner-review>summary::-webkit-details-marker{display:none}
.next-upload-owner-review>summary::after{content:'';width:7px;height:7px;flex:none;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 2px 4px 0}
.next-upload-owner-review[open]>summary::after{transform:rotate(225deg);margin-top:7px}
.next-upload-owner-review>summary:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
.next-upload-preview .next-upload-owner-review dl{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;max-width:420px;margin:0 0 10px}
.next-upload-preview .next-upload-share-warning{color:var(--ink);font-weight:400}
.next-upload>.next-upload-actions{max-width:720px;margin:8px 0}
@media(min-width:1001px) and (pointer:fine){.next-upload-owner-review>summary{min-height:32px}}
@media(max-width:560px){.next-upload-preview[data-upload-purpose="relationships"]>dl{grid-template-columns:minmax(0,1fr)}.next-upload>.next-upload-actions{align-items:stretch}.next-upload>.next-upload-actions button{width:100%}}
.next-upload-preview .next-upload-mapping-help{max-width:68ch;color:var(--ink)}
.next-upload-row-review{margin-top:8px;border-top:1px solid var(--line)}
.next-upload-row-review>summary{display:flex;align-items:center;min-height:44px;list-style:none;cursor:pointer;color:var(--forest);font-weight:620}
.next-upload-row-review>summary::-webkit-details-marker{display:none}
.next-upload-row-review>summary::after{content:'';width:7px;height:7px;flex:none;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 2px 4px 8px}
.next-upload-row-review[open]>summary::after{transform:rotate(225deg);margin-top:7px}
.next-upload-row-review>summary:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
@media(min-width:1001px) and (pointer:fine){.next-upload-row-review>summary{min-height:32px}}
@media(max-width:560px){.next-upload-controls{flex-direction:column;align-items:stretch;gap:8px}.next-upload-controls .next-upload-fields{width:100%}.next-upload-controls .next-upload-actions button{width:100%}}
.next-upload{border-top:1px solid var(--line);padding:12px 0}.next-upload h3{font-size:16px;margin:4px 0}.next-upload-fields{display:grid;grid-template-columns:minmax(190px,1.5fr) repeat(2,minmax(140px,1fr));gap:12px;align-items:end;max-width:920px}.next-upload-fields label{display:grid;gap:5px;font-size:14px;font-weight:400;margin:0}.next-upload-fields input,.next-upload-fields select{width:100%;min-height:44px;box-sizing:border-box}.next-upload-actions{display:flex;gap:8px;align-items:center;margin:12px 0}.next-upload-actions button,.next-source-disclosure button{min-height:44px}.next-process-status{min-height:1.3em;margin:8px 0}.next-upload-preview{border:1px solid var(--line);padding:6px 12px;margin:10px 0;background:#f6f8f3}.next-upload-preview dl{display:flex;gap:8px 24px;flex-wrap:wrap;margin:8px 0}.next-upload-preview dl>div{display:flex;gap:5px}.next-upload-preview dt{color:var(--muted)}.next-upload-preview dd{margin:0;font-weight:620}.next-upload-preview p{margin:8px 0}.next-upload-preview ul{margin:8px 0;padding-left:20px}
#detail-dialog.parcel-overview{width:min(1500px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
#detail-dialog.parcel-overview .parcel-title{padding:18px 60px 12px 24px}#detail-dialog.parcel-overview .detail-tabs{padding:0 24px}
#detail-dialog.parcel-overview .parcel-layout{grid-template-columns:minmax(0,1fr) minmax(230px,280px);min-height:0}
#detail-dialog.parcel-overview .parcel-main{padding:18px 24px}#detail-dialog.parcel-overview .parcel-aside{padding:18px 20px}
#detail-dialog.parcel-overview .parcel-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:0 22px;padding:0 0 12px;margin:0}.parcel-stats>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(80px,1fr);gap:12px;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--line)}#detail-dialog.parcel-overview .parcel-stats dt{margin:0;font-size:13px}#detail-dialog.parcel-overview .parcel-stats dd{margin:0;font-size:16px;font-weight:620}#detail-dialog.parcel-overview .parcel-stats dd small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
#detail-dialog.parcel-overview .detail-map{height:250px;margin-top:14px}#detail-dialog.parcel-overview .forest-analysis{margin-top:20px}#detail-dialog.parcel-overview .source-comment-heading{margin-top:18px}
.next-overview-evidence{border-bottom:1px solid var(--line);margin:8px 0}.next-overview-evidence p{margin:5px 0 10px;color:var(--muted)}
.next-property-context{margin:14px 0;border-top:1px solid var(--line)}.next-property-context h3{font-size:16px;margin:12px 0 4px}.next-property-context dl,.next-overview-evidence dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:0 20px;margin:0}.next-property-context dl>div,.next-overview-evidence dl>div{display:grid;grid-template-columns:minmax(90px,1fr) auto;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}.next-property-context dt,.next-overview-evidence dt{color:var(--muted)}.next-property-context dd,.next-overview-evidence dd{margin:0;font-weight:620;text-align:right;font-variant-numeric:tabular-nums}.next-property-context p{margin:8px 0;font-size:13px;color:var(--muted)}.next-overview-evidence .table-wrap{margin:12px 0;max-height:360px;overflow:auto}.next-overview-evidence table{min-width:440px}.next-overview-evidence ol{padding-left:20px}
.next-before-map{padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}.next-before-map p{margin:4px 0}.next-before-map p+ p{color:var(--muted);font-size:12px}.next-transaction-cue{color:var(--ink)!important}.next-property-context{margin:8px 0}.next-property-context details{font-size:13px}.next-property-context summary,.next-edit-disclosure summary{cursor:pointer;color:var(--forest);min-height:36px;display:flex;align-items:center}.next-edit-disclosure{margin:12px 0;border-top:1px solid var(--line)}.next-edit-disclosure #parcel-work{padding-top:10px}.next-partial-note{display:block;font-size:var(--ui-fs-micro);line-height:1.3;color:var(--muted);font-weight:400}.dense-property-table [data-table-column="nextCheck"]{white-space:normal;line-height:1.3}
.next-active-cohort #land-filters label[hidden]{display:none!important}
.next-check-reason{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:3px;line-height:1.4}
.next-property-context h4{font-size:14px;margin:14px 0 2px}.next-property-context .next-work-cohorts{grid-template-columns:1fr}.next-property-context .next-work-cohorts>div{padding:5px 0;border:0}.next-property-context details>summary{min-height:44px}.next-before-map .next-property-reason{font-size:14px;color:var(--ink)}.next-before-map .next-property-check{font-size:14px;color:var(--ink);margin:6px 0}.next-property-context dd{overflow-wrap:anywhere}
@media(max-width:820px){.next-upload-fields{grid-template-columns:1fr 1fr}.next-upload-fields label:first-child{grid-column:1/-1}#detail-dialog.parcel-overview .parcel-layout{grid-template-columns:1fr}#detail-dialog.parcel-overview .parcel-aside{border-left:0;border-top:1px solid var(--line)}}
@media(max-width:560px){.next-cohort-bar{align-items:flex-start;flex-direction:column}.next-upload-fields{grid-template-columns:1fr}.next-upload-fields label:first-child{grid-column:auto}#detail-dialog.parcel-overview{width:100vw;max-height:100dvh;height:100dvh;margin:0;border-radius:0}#detail-dialog.parcel-overview .parcel-title{padding:18px 54px 12px 18px}#detail-dialog.parcel-overview .parcel-main,#detail-dialog.parcel-overview .parcel-aside{padding:18px}#detail-dialog.parcel-overview .parcel-stats{grid-template-columns:1fr}#detail-dialog.parcel-overview .parcel-stats>div{grid-template-columns:minmax(100px,1fr) minmax(80px,1fr)}}
@media(max-width:560px){#detail-dialog.parcel-overview .lmf-map-wheel-hint{bottom:34px;max-width:calc(100% - 20px);font-size:12px}}

.next-property-context>dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.next-property-context>dl>div{grid-template-columns:minmax(0,1fr) auto;align-items:baseline}.next-property-context .next-work-cohorts>div{padding:6px 0}.next-property-context .next-work-cohorts>div:last-child{grid-column:1/-1}.next-property-context .next-source-partial{color:var(--ink);font-weight:400}
@media(max-width:560px){.next-property-context>dl{grid-template-columns:1fr}.next-property-context .next-work-cohorts>div:last-child{grid-column:auto}}
.next-recorded-sales{border-bottom:1px solid var(--line);margin:8px 0;min-width:0}.next-recorded-sales>summary{cursor:pointer;color:var(--forest);font-weight:620;min-height:44px;box-sizing:border-box;padding:10px 0;line-height:1.4}.next-recorded-sales>summary:focus-visible{outline:2px solid var(--forest);outline-offset:2px}.next-recorded-sales p{font-size:13px;line-height:1.5;color:var(--muted);margin:8px 0;overflow-wrap:anywhere}.next-recorded-sales h4{font-size:14px;margin:18px 0 4px}.next-recorded-sales .next-sales-warning{color:var(--ink);font-weight:400}.next-sales-subject{display:flex;flex-wrap:wrap;gap:6px 28px;margin:8px 0}.next-sales-subject>div{display:flex;gap:12px;align-items:baseline}.next-sales-subject dt{font-size:13px;color:var(--muted)}.next-sales-subject dd{margin:0;font-weight:620;font-size:14px;font-variant-numeric:tabular-nums}.next-sales-table{min-width:0}.next-sales-table table{width:100%;min-width:0;font-size:13px;table-layout:fixed}.next-sales-table th{font-weight:400;color:var(--muted);white-space:normal;line-height:1.35;text-align:right}.next-sales-table th:first-child{width:32%;text-align:left}.next-sales-table td{text-align:right;font-variant-numeric:tabular-nums;vertical-align:top;overflow-wrap:anywhere}.next-sales-table td:first-child{text-align:left}.next-sales-table td small{display:block;font-size:12px;font-weight:400;line-height:1.35;color:var(--muted);margin-top:4px}.next-sales-source a{color:var(--forest);text-underline-offset:3px}.next-sales-source a:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
@media(max-width:560px){.next-sales-subject{display:grid;gap:6px}.next-sales-subject>div{justify-content:space-between;gap:16px}.next-sales-table table,.next-sales-table tbody{display:block}.next-sales-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.next-sales-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;border-bottom:1px solid var(--line);padding:10px 0}.next-sales-table td{display:block;text-align:left;padding:0!important;border:0!important}.next-sales-table td:first-child{grid-column:1/-1}.next-sales-table td:before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);font-variant-numeric:normal;margin-bottom:2px}.next-sales-table td:first-child:before{display:inline;margin-right:8px}.next-sales-table td small{margin-top:3px}}

/* Batch 1: one decision surface, complete stand evidence in its own tab. */
#detail-dialog.parcel-overview .parcel-main,#detail-dialog.parcel-overview .parcel-aside{min-width:0}
.next-overview-summary{padding:0 0 12px;border-bottom:1px solid var(--line);margin-bottom:16px}
.next-property-check{font-size:14px;color:var(--ink)}
.next-check-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
.next-check-heading strong{font-weight:620;line-height:1.35}
.next-check-status{display:inline-block;font-size:var(--ui-fs-micro);font-weight:600;line-height:1.3;padding:2px 5px;border-radius:3px;background:var(--mint);color:var(--forest);white-space:normal}
.next-check-status[data-status=review]{background:#fff1d6;color:#765015}
.next-check-reason{display:block;margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.4;white-space:normal}
.dense-property-table [data-table-column=nextCheck]{white-space:normal!important;text-overflow:clip;overflow:visible;vertical-align:middle;padding-block:5px!important}
.dense-property-table [data-table-column=nextCheck] .next-check-heading{gap:3px 6px}
.dense-property-table [data-table-column=nextCheck] .next-check-reason{font-size:12px;margin-top:2px}
.next-run-line,.next-comparison-scope{font-size:12px;line-height:1.45;color:var(--muted);margin:8px 0 0;overflow-wrap:anywhere}
.next-comparison-scope{margin:0 0 10px}
.next-overview-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
#detail-dialog.parcel-overview .next-overview-map .detail-map{height:340px;margin:0;min-width:0}
.next-overview-map{min-width:0}
.next-overview-map .source-note,.next-selected-stand{font-size:12px;line-height:1.45;margin:8px 0;overflow-wrap:anywhere}
.next-selected-stand:empty{display:none}
.next-decision-ledger{min-width:0}
.next-decision-row{padding:0 0 12px;margin:0 0 12px;border-bottom:1px solid var(--line)}
.next-decision-row:last-child{margin-bottom:0}
.next-decision-row h3,.next-value-row h3{font-size:14px;font-weight:620;line-height:1.35;letter-spacing:0;margin:0 0 6px}
.next-decision-row p{font-size:13px;line-height:1.45;margin:4px 0;overflow-wrap:anywhere}
.next-decision-row .next-decision-qualification{color:var(--muted);font-size:12px}
.next-decision-row dl,.next-forest-data dl,.next-source-provenance dl,.next-stand-facts dl,.next-comparison-explanation dl{margin:4px 0 8px;display:grid;gap:4px}
.next-decision-row dl>div,.next-forest-data dl>div,.next-source-provenance dl>div,.next-stand-facts dl>div,.next-comparison-explanation dl>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:baseline;font-size:13px;line-height:1.45}
.next-decision-row dt,.next-forest-data dt,.next-source-provenance dt,.next-stand-facts dt,.next-comparison-explanation dt{color:var(--muted)}
.next-decision-row dd,.next-forest-data dd,.next-source-provenance dd,.next-stand-facts dd,.next-comparison-explanation dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
.next-financial-lenses{margin:20px 0 0;border-top:1px solid var(--line)}
.next-financial-lenses>.next-value-row{display:grid;grid-template-columns:minmax(150px,1fr) auto;gap:4px 20px;padding:12px 0;margin:0;border-bottom:1px solid var(--line)}
.next-financial-lenses>.next-value-row h3{margin:0}
.next-financial-lenses>.next-value-row>strong{font-size:13px;font-weight:620}
.next-financial-lenses>.next-value-row p{grid-column:1/-1;font-size:12px;line-height:1.45;color:var(--muted);margin:0;overflow-wrap:anywhere}
.next-comparison-explanation{margin:16px 0 0;border-bottom:1px solid var(--line)}
.next-comparison-explanation>summary,.next-first-component>summary,.next-layer-coverage>summary,.next-calculation-trace>summary,.next-source-provenance details>summary,.next-source-transactions>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--forest);font-size:13px;font-weight:620;padding:8px 0;line-height:1.4}
.next-comparison-explanation p,.next-first-component p,.next-layer-coverage p,.next-source-provenance p,.next-source-transactions p{font-size:13px;line-height:1.5;color:var(--muted);margin:8px 0;overflow-wrap:anywhere}
.next-forest-data{min-width:0}
.next-forest-data .next-run-line{margin:0 0 10px}
.next-forest-data>.source-note{font-size:13px;line-height:1.5}
.next-first-component{border-block:1px solid var(--line);margin:12px 0 18px}
.next-first-component dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 24px}
.next-first-component ul{padding-left:18px;font-size:13px;line-height:1.6}
.next-stand{border-bottom:1px solid var(--line);min-width:0}
.next-stand>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;cursor:pointer;padding:8px 0;line-height:1.4}
.next-stand>summary>span{min-width:0;font-size:14px}
.next-stand>summary>span>span{display:block;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;margin-top:2px}
.next-stand>summary button{min-height:36px;padding:6px 0;font-size:12px;flex:none}
.next-stand[open]>summary{color:var(--forest)}
.next-stand-facts{padding:0 0 16px;min-width:0}
.next-stand-facts>dl,.next-stand-metadata{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 24px}
.next-stand-facts .source-note{font-size:12px;line-height:1.5;margin:10px 0;color:var(--muted)}
.next-component-scroll{overflow-x:auto;max-width:100%;min-width:0;margin:12px 0;border:1px solid var(--line);border-radius:6px}
.next-component-scroll:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.next-component-table{width:100%;min-width:1140px;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}
.next-component-table caption{text-align:left;padding:10px 12px;font-size:12px;color:var(--muted)}
.next-component-table th,.next-component-table td{padding:8px 10px;border-bottom:1px solid var(--line);line-height:1.4;vertical-align:top;text-align:right;white-space:normal;letter-spacing:0;text-transform:none}
.next-component-table th{font-weight:620;color:var(--ink);background:var(--mint)}
.next-component-table tbody th{background:white}
.next-component-table th:nth-child(2),.next-component-table td:nth-child(2),.next-component-table th:nth-last-child(-n+2),.next-component-table td:nth-last-child(-n+2){text-align:left;min-width:130px}
.next-component-table td small{display:block;font-size:var(--ui-fs-micro);color:var(--muted);margin-top:4px}
.next-source-provenance{min-width:0}
.next-source-provenance h3{margin:20px 0 8px;font-size:14px}
.next-source-provenance h3:first-child{margin-top:0}
.next-source-provenance dl>div{grid-template-columns:minmax(120px,.65fr) minmax(0,1.35fr);padding:4px 0}
.next-source-provenance dd{text-align:left}
.next-source-records{list-style:none;padding:0;margin:0}
.next-source-records>li{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere}
.next-source-records a{display:inline-block;margin-left:12px;min-height:36px;padding:6px 0}
.next-source-provenance pre{font:12px/1.5 "Segoe UI",Arial,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;max-width:100%;padding:12px;background:var(--paper);border-radius:6px}
.next-component-trace{border-top:1px solid var(--line);padding:10px 0}
.next-component-trace h4{font-size:13px;margin:0 0 8px}
.next-source-transactions ol{font-size:13px;line-height:1.6;padding-left:20px}
.next-source-provenance details>summary:focus-visible,.next-stand>summary:focus-visible,.next-first-component>summary:focus-visible,.next-comparison-explanation>summary:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
@media(max-width:1240px){.next-overview-layout{grid-template-columns:1fr}#detail-dialog.parcel-overview .next-overview-map .detail-map{height:280px}.next-decision-ledger{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}}
@media(max-width:1000px){#detail-dialog.parcel-overview .parcel-layout{grid-template-columns:1fr}#detail-dialog.parcel-overview .parcel-aside{border-left:0;border-top:1px solid var(--line)}.next-stand>summary button,.next-source-records a{min-height:44px}.next-overview-layout{gap:16px}}
@media(max-width:560px){.next-decision-ledger{display:block}.next-first-component dl,.next-stand-facts>dl,.next-stand-metadata{grid-template-columns:1fr}.next-financial-lenses>.next-value-row{grid-template-columns:1fr;gap:4px}.next-financial-lenses>.next-value-row p{grid-column:auto}.next-source-provenance dl>div{grid-template-columns:minmax(90px,.55fr) minmax(0,1.45fr)}.next-stand>summary{align-items:flex-start;gap:8px}.next-stand>summary button{max-width:100px;white-space:normal;line-height:1.35}.next-check-status{font-size:12px}.next-source-provenance pre{padding:10px}}

.next-layer-coverage{border-block:1px solid var(--line);margin:12px 0}.next-layer-coverage dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 24px}
.dense-property-table [data-table-column=nextFirstSpecies],.dense-property-table [data-table-column=nextInventory],.dense-property-table [data-table-column=nextInventoryEvidence]{white-space:normal!important;text-overflow:clip;overflow-wrap:anywhere}
@media(max-width:560px){.next-layer-coverage dl{grid-template-columns:1fr}}

/* Values share one section; source-backed physical facts stay immediately visible. */
.next-decision-ledger>.next-decision-row:first-child dd{font-size:16px;font-weight:620;color:var(--ink)}
.next-species-summary{margin:10px 0}.next-species-summary>p{overflow-wrap:anywhere}.next-species-summary>p>strong{font-size:12px;font-weight:620}
.next-financial-lenses{padding-top:14px}.next-financial-lenses>h3{font-size:16px;margin:0 0 10px;font-weight:620}
.next-value-priorities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.next-value-priorities>.next-value-row{padding:0 0 12px;min-width:0;margin:0;border:0}
.next-value-row h4{font-size:13px;font-weight:620;margin:0 0 6px;line-height:1.4}
.next-value-priorities>.next-value-row>strong{display:block;font-size:22px;line-height:1.3;margin:0 0 6px;font-variant-numeric:tabular-nums}
.next-value-priorities>.next-value-row>p{font-size:12px;line-height:1.45;color:var(--muted);margin:0;overflow-wrap:anywhere}
.next-financial-lenses>.next-value-row{border-top:1px solid var(--line);border-bottom:0;margin:0;padding:10px 0;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px}
.next-financial-lenses>.next-value-row h4{margin:0;font-size:12px;color:var(--muted)}
.next-financial-inputs>summary,.next-restriction-claims>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--forest);font-size:12px;font-weight:620;padding:6px 0;line-height:1.4}
.next-financial-inputs p,.next-restriction-claims p{font-size:12px;color:var(--muted);line-height:1.5;margin:6px 0}
.next-restriction-claims ul{font-size:12px;line-height:1.5;padding-left:18px;margin:4px 0}
.next-reference-price{padding:10px 0;border-top:1px solid var(--line);font-size:13px}
.dense-property-table [data-table-column=nextSpecies]{white-space:normal!important;text-overflow:clip;overflow-wrap:anywhere}
@media(max-width:560px){.next-value-priorities{gap:14px}.next-value-row h4{font-size:12px}.next-value-priorities>.next-value-row>strong{font-size:20px}.next-financial-lenses>.next-value-row{grid-template-columns:minmax(0,1fr) auto}}

/* The requested value strip follows the next check and precedes the map. */
.next-financial-lenses{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.15fr) minmax(0,.9fr);gap:10px 20px;margin:0 0 20px;padding:0 0 16px;border-top:0;border-bottom:1px solid var(--line)}
.next-financial-lenses>h3{grid-column:1/-1;margin:0}
.next-value-priorities{display:contents}
.next-value-priorities>.next-value-row{display:block;padding:0}
.next-value-priorities>.next-value-row>strong{font-size:22px;font-weight:620}
.next-financial-lenses>.next-value-row{display:block;border:0;padding:0;align-self:start}
.next-financial-lenses>.next-value-row h4{font-size:12px;margin:0 0 8px}
.next-financial-lenses>.next-value-row>strong{display:block;font-size:18px;margin:0 0 9px;color:var(--muted)}
.next-financial-lenses>.next-value-row>p{font-size:12px;line-height:1.45}
.next-financial-inputs,.next-value-priorities>.timber-scenario{grid-column:1/-1;order:2}
.next-financial-inputs{margin:0}.next-financial-inputs>summary{padding:0;min-height:36px}
@media(max-width:560px){.next-financial-lenses{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.next-financial-lenses>.next-value-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;border-top:1px solid var(--line);padding-top:9px}.next-financial-lenses>.next-value-row h4{margin:0}.next-financial-lenses>.next-value-row>strong{margin:0;font-size:16px}.next-financial-lenses>.next-value-row>p{grid-column:1/-1;margin-top:3px}.next-financial-inputs>summary{min-height:44px}}

.catalogue-dense .dense-property-table td:is([data-table-column=nextCheck],[data-table-column=nextStock],[data-table-column=nextStockDensity],[data-table-column=nextSpecies],[data-table-column=nextFirstSpecies],[data-table-column=nextInventory],[data-table-column=nextInventoryEvidence]){white-space:normal;overflow:visible;text-overflow:clip;height:auto}
.dense-property-table td:is([data-table-column=nextStock],[data-table-column=nextStockDensity]) .next-partial-note{white-space:normal;overflow-wrap:normal;font-size:12px;line-height:1.35}

/* One shared scenario qualification; exact arithmetic stays on demand. */
.next-financial-basis,.next-price-coverage,.next-financial-warning{grid-column:1/-1;margin:0;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.next-financial-basis{color:var(--muted);margin-bottom:2px}
.next-price-coverage{font-weight:620;color:var(--ink);padding-top:4px}
.next-financial-warning{color:var(--muted);max-width:75ch}
.next-financial-inputs{min-width:0}.next-financial-inputs>summary:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.next-financial-inputs h4,.next-finance-acquisition h4{margin:18px 0 6px;font-size:13px;font-weight:620}
.next-financial-inputs ul{padding-left:18px;margin:4px 0;font-size:13px;line-height:1.5;color:var(--muted)}
.next-benchmark-arithmetic,.next-benchmark-pins,.next-finance-acquisition dl{display:grid;gap:0;margin:10px 0;font-size:13px;line-height:1.45}
.next-benchmark-arithmetic>div,.next-benchmark-pins>div,.next-finance-acquisition dl>div{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,1.3fr);gap:8px 20px;padding:5px 0;border-bottom:1px solid var(--line)}
.next-benchmark-arithmetic dt,.next-benchmark-pins dt,.next-finance-acquisition dt{color:var(--muted)}
.next-benchmark-arithmetic dd,.next-benchmark-pins dd,.next-finance-acquisition dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.next-benchmark-arithmetic dd{text-align:right}.next-monetary-sources ul{font-size:13px;line-height:1.5;color:var(--muted);padding-left:18px}
.next-table-evidence{display:block;max-width:100%;min-width:0}
.next-owner-evidence{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-width:0;vertical-align:middle}
.next-owner-evidence .icon,.next-coverage-signal .icon,.next-check-state .icon,.next-check-status .icon{width:14px;height:14px;flex:none;color:var(--forest)}
.next-owner-label{overflow:hidden;text-overflow:ellipsis}.next-check-status{display:inline-flex;align-items:center;gap:4px}
@media(min-width:1001px) and (pointer:fine){
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .dense-property-table tbody :is(td,th){height:25px!important;max-height:25px;padding-block:0;line-height:1.2;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .next-table-evidence{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:25px;max-height:25px}
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .next-table-evidence:has(.next-stock-number){display:flex;justify-content:flex-end;align-items:center;gap:2px}
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .next-stock-number{font-variant-numeric:tabular-nums;white-space:nowrap}
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .next-coverage-signal{display:inline-flex;align-items:center;flex:none}
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .next-coverage-signal .icon{width:12px;height:12px}
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .next-check-inline{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%;height:25px;line-height:1.2}
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .next-check-inline>strong{font-size:12px;font-weight:620;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .next-check-state{display:inline-flex;flex:none;align-items:center}
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] [data-table-column=processingStage]{text-align:center}
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] [data-table-column=processingStage] button{justify-content:center;padding-inline:2px}
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .next-owner-evidence{justify-content:center;height:25px}
 .catalogue-dense.next-active-cohort .database-panel[data-density=comfortable] .next-owner-label{white-space:normal;overflow:visible;text-overflow:clip}
}
@media(max-width:560px){.next-benchmark-arithmetic>div,.next-benchmark-pins>div,.next-finance-acquisition dl>div{grid-template-columns:minmax(0,1fr);gap:2px}.next-benchmark-arithmetic dd{text-align:left}.next-financial-inputs p{font-size:13px}.next-price-coverage{padding-top:2px}}

/* Labels, figures and their qualifications stay together at every width. */
.next-value-row{min-width:0}.next-value-row h4{overflow-wrap:anywhere}
@media(max-width:1000px){
 .next-financial-lenses{grid-template-columns:repeat(2,minmax(0,1fr))}
 .next-financial-lenses>.next-value-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;border-top:1px solid var(--line);padding-top:10px}
 .next-financial-lenses>.next-value-row h4,.next-financial-lenses>.next-value-row>strong{margin:0}
 .next-financial-lenses>.next-value-row>p{grid-column:1/-1}
}
@media(max-width:560px){.next-financial-lenses{grid-template-columns:minmax(0,1fr);gap:14px}.next-value-priorities>.next-value-row>strong{font-size:20px}}
/* Native disclosures retain a shared, visible geometric state cue. */
:is(.next-financial-inputs,.next-restriction-claims,.next-first-component,.next-layer-coverage,.next-comparison-explanation,.next-calculation-trace,.next-stand,.next-source-provenance details,.next-edit-disclosure,.next-stand-money-evidence,.next-stand-reconciliation)>summary{gap:8px}
:is(.next-financial-inputs,.next-restriction-claims,.next-first-component,.next-layer-coverage,.next-comparison-explanation,.next-calculation-trace,.next-stand,.next-source-provenance details,.next-edit-disclosure,.next-stand-money-evidence,.next-stand-reconciliation)>summary::before{
 content:"";display:block;width:14px;height:14px;flex:0 0 14px;background:currentColor;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;transform:rotate(-90deg);
}
:is(.next-financial-inputs,.next-restriction-claims,.next-first-component,.next-layer-coverage,.next-comparison-explanation,.next-calculation-trace,.next-stand,.next-source-provenance details,.next-edit-disclosure,.next-stand-money-evidence,.next-stand-reconciliation)[open]>summary::before{transform:rotate(0)}
.next-source-group>summary>span{display:grid;gap:2px;min-width:0}.next-source-group>summary strong{font-size:13px;font-weight:620}.next-source-group>summary small{font-size:12px;font-weight:400;color:var(--muted)}
.next-source-records>li>p{margin:0 0 3px}.next-source-identifiers>summary{font-size:12px!important}
@media(forced-colors:active){:is(.next-financial-inputs,.next-restriction-claims,.next-first-component,.next-layer-coverage,.next-comparison-explanation,.next-calculation-trace,.next-stand,.next-source-provenance details,.next-edit-disclosure,.next-stand-money-evidence,.next-stand-reconciliation)>summary::before{background:CanvasText}}
/* Stand amounts share the inventory register, with exact evidence on demand. */
.next-stand-scope,.next-stand-order{font-size:13px;line-height:1.5;color:var(--muted);margin:8px 0;max-width:75ch;overflow-wrap:anywhere}
.next-stand-order{margin:16px 0 2px;font-size:12px}
.next-stand>summary>.next-stand-summary-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:8px 16px;align-items:center;flex:1;min-width:0}
.next-stand>summary>.next-stand-summary-main>span{display:grid;gap:2px;min-width:0;margin:0;color:var(--ink);font-size:14px}
.next-stand-identity strong{font-size:14px;font-weight:620;overflow-wrap:anywhere}
.next-stand-identity small{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.next-stand-summary-main .next-stand-money{text-align:right}
.next-stand-money>span{font-size:12px;color:var(--muted)}
.next-stand-money>strong{font-size:16px;line-height:1.35;font-weight:620;color:var(--forest);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.next-stand>summary button{font-family:inherit;white-space:normal;line-height:1.4;min-height:36px}
.next-stand-finance{padding:4px 0 12px;margin-bottom:12px;border-bottom:1px solid var(--line);min-width:0}
.next-stand-finance>dl>div,.next-stand-reconciliation>dl>div,.next-stand-finance :is(.next-benchmark-arithmetic,.next-benchmark-pins)>div{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
.next-stand-price-coverage{font-size:13px;font-weight:620;line-height:1.45;margin:6px 0;color:var(--ink);overflow-wrap:anywhere}
.next-stand-money-evidence,.next-stand-reconciliation{min-width:0}
.next-stand-money-evidence>summary,.next-stand-reconciliation>summary{display:flex;align-items:center;min-height:36px;padding:6px 0;cursor:pointer;font-family:inherit;font-size:13px;font-weight:620;line-height:1.45;color:var(--forest)}
.next-stand-money-evidence>summary:focus-visible,.next-stand-reconciliation>summary:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.next-stand-money-evidence :is(p,ul),.next-stand-reconciliation>p{font-size:13px;line-height:1.5;color:var(--muted);margin:8px 0;max-width:75ch;overflow-wrap:anywhere}
.next-stand-money-evidence h4{font-size:13px;font-weight:620;line-height:1.4;margin:16px 0 6px}
.next-stand-money-evidence ul{padding-left:18px}
.next-stand-reconciliation{margin-top:14px}
.next-stand-reconciliation>summary>span{min-width:0;overflow-wrap:anywhere}
@media(max-width:1000px),(pointer:coarse){.next-stand>summary button,.next-stand-money-evidence>summary,.next-stand-reconciliation>summary{min-height:44px;min-width:44px;box-sizing:border-box}}
@media(max-width:560px){
 .next-stand>summary>.next-stand-summary-main{grid-template-columns:minmax(0,1fr);gap:6px}
 .next-stand-summary-main .next-stand-money{text-align:left}
 .next-stand-finance>dl>div,.next-stand-reconciliation>dl>div,.next-stand-finance :is(.next-benchmark-arithmetic,.next-benchmark-pins)>div{grid-template-columns:minmax(0,1fr);gap:2px}
 .next-stand-finance dd,.next-stand-reconciliation dd{text-align:left}
}

/* D-114: Forest tables share the established main-table finish. */
.next-forest-data .next-component-table{border-collapse:separate;border-spacing:0}
.next-forest-data .next-component-table thead th{background:#e9efe3;color:#354f3d;font-weight:620;border-right:1px solid #dce4d6;vertical-align:middle}
.next-forest-data .next-component-table thead th:last-child{border-right:0}
.next-forest-data .next-component-label{display:block;line-height:1.3}
.next-forest-data .next-component-unit{display:block;font-size:var(--ui-fs-micro);font-weight:400;line-height:1.35;color:var(--muted);margin-top:2px}
.next-forest-data .next-component-table tbody :is(th,td){background:#fff;border-bottom-color:#e1e8dc;font-weight:400;vertical-align:middle}
.next-forest-data .next-component-table tbody tr:nth-child(even)>*{background:#f7f9f4}
.next-forest-data .next-component-table tbody tr:hover>*{background:#edf3e8}
.next-forest-data .next-component-table th:nth-child(2),.next-forest-data .next-component-table td:nth-child(2){text-align:left}
.next-forest-data .next-component-table :is(th,td):is(:first-child,:nth-child(11),:nth-child(12)){text-align:center}
.next-forest-data .next-component-table td[data-forest-unknown]{background:#f6e9e7!important}
.next-forest-data .next-component-table caption{color:var(--muted);background:#fff}
.next-component-help{margin:8px 0 12px;min-width:0}
.next-component-help>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 0;box-sizing:border-box;cursor:pointer;list-style:none;color:var(--forest);font-size:13px;font-weight:620;line-height:1.4}
.next-component-help>summary::-webkit-details-marker{display:none}
.next-component-help>summary::before{content:"";width:14px;height:14px;flex:0 0 14px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;transform:rotate(-90deg)}
.next-component-help[open]>summary::before{transform:rotate(0)}
.next-component-help>summary:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.next-component-help p{font-size:13px;line-height:1.55;color:var(--muted);max-width:72ch;margin:8px 0;overflow-wrap:anywhere}
@media(forced-colors:active){.next-component-help>summary::before{background:CanvasText}.next-forest-data .next-component-table td[data-forest-unknown]{outline:1px dashed CanvasText}}

/* D-114 actual-screen correction: bounded metadata text tracks. */
.next-forest-data .next-stand-metadata>div{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:start;column-gap:12px}
.next-forest-data .next-stand-metadata :is(dt,dd){min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.next-forest-data .next-stand-metadata dd{text-align:left}
@media(max-width:1000px){.next-forest-data .next-stand-metadata{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){.next-forest-data .next-stand-metadata>div{grid-template-columns:minmax(0,1fr);row-gap:2px}}

/* VMD source status uses the established Settings tokens. */
.next-vmd-update{padding-block:12px;border-block:1px solid var(--line);min-width:0}
.next-vmd-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}
.next-vmd-heading h3{font-size:14px;line-height:1.4;margin:0;color:var(--forest)}
.next-vmd-heading p{font-size:14px;line-height:1.45;margin:2px 0 0;color:var(--ink)}
.next-vmd-heading button{min-height:44px;font:inherit;font-size:13px;flex:none}
.next-vmd-dates{display:flex;flex-wrap:wrap;gap:8px 24px;margin:10px 0 4px}
.next-vmd-dates div{min-width:0}.next-vmd-dates dt{font-size:12px;line-height:1.4;color:var(--muted)}
.next-vmd-dates dd{font-size:13px;line-height:1.45;margin:2px 0 0;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.next-vmd-coverage summary{min-height:44px;display:flex;align-items:center;width:fit-content;cursor:pointer;color:var(--forest);font-size:13px;font-weight:620}
.next-vmd-coverage p,.next-vmd-update>.data-error{font-size:13px;line-height:1.5;margin:4px 0;max-width:70ch}
.next-vmd-coverage summary:focus-visible,.next-vmd-heading button:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
@media(min-width:1001px) and (pointer:fine){.next-vmd-heading button,.next-vmd-coverage summary{min-height:32px}}
}

/* /forest/workspace-contact-evidence.css */
@layer legacy{.contacts-uploaded{grid-column:1/-1;border-top:1px solid var(--line);padding:10px 0 0;min-width:0}.contacts-uploaded>summary{cursor:pointer;font-size:13px;font-weight:620;color:var(--forest);min-height:44px;padding:12px 0}.contacts-uploaded>summary:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
.contacts-uploaded .source-contact-intro,.contacts-uploaded .source-contact-note{font-size:12px;color:var(--muted);line-height:1.45;margin:7px 0}
.contacts-uploaded ul{padding:0;margin:8px 0 0;list-style:none}.contacts-uploaded li{border-top:1px solid var(--line);padding:7px 0;overflow-wrap:anywhere;font-size:13px}.contacts-uploaded li strong{font-weight:620}.contacts-uploaded li small{display:block;color:var(--muted);margin-top:2px}
.contacts-uploaded .source-company-record p{margin:4px 0;font-size:13px;line-height:1.45}.contacts-uploaded .source-company-mismatch{font-weight:620;color:var(--ink)}.contacts-uploaded .source-company-record a{text-underline-offset:3px}
.contacts-uploaded li .source-contact-quality{color:var(--ink)}
}

/* /forest/workspace-scoring.css */
@layer legacy{.next-score-cell,.catalogue-dense .dense-property-table tbody .next-score-cell { display:inline-flex; align-items:baseline; justify-content:flex-end; min-height:0; height:auto; padding:0; border:0; border-radius:3px; background:transparent; max-width:100%; white-space:nowrap; font:inherit; color:inherit; line-height:inherit; font-variant-numeric:tabular-nums; cursor:default; }
.next-score-cell strong { color:#285c43; font-size:inherit; }
.next-score-cell:focus-visible { outline:2px solid #285c43; outline-offset:1px; }
.score-sort-note { color:#815000; font-size:12px; max-width:28ch; }
.score-overview { padding:12px 0 16px; border-bottom:1px solid #d8e0d6; margin-bottom:16px; }
.score-overview header,.score-comparison header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.score-overview h3,.score-comparison h3 { margin:0; font-size:16px; }
.score-comparison dl { display:flex; gap:16px; flex-wrap:wrap; }
.score-comparison dd { margin:4px 0; }
[data-comparison-row="nextAttractiveness"] small,.score-comparison-mobile small { display:block; margin-top:4px; color:#536257; }
/* B4 VB2: the phone comparison shows the value badges, in the order of the properties (as the PC table row does) */
.score-comparison-mobile .score-comparison-badges { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 0; }
[data-comparison-row="nextAttractiveness"] th>button { display:block; margin-top:8px; }
.scoring-dialog { width:min(680px,calc(100vw - 24px)); max-width:680px; max-height:min(820px,calc(100dvh - 24px)); padding:0; border:1px solid #718575; border-radius:12px; background:#fff; color:#20362c; font-family:inherit; box-shadow:0 12px 40px rgb(24 45 33 / 20%); }
.scoring-dialog::backdrop { background:rgb(25 41 32 / 38%); }
.scoring-dialog form { display:flex; flex-direction:column; margin:0; max-height:min(818px,calc(100dvh - 26px)); }
.scoring-dialog label { font-size:14px; }
.scoring-dialog input:not([type="checkbox"]),.scoring-dialog select { min-height:40px; width:100%; padding:8px; border:1px solid #718575; border-radius:8px; background:#fff; color:#20362c; font:inherit; caret-color:#285c43; }
.scoring-dialog input[type="checkbox"] { accent-color:#285c43; width:18px; height:18px; flex-shrink:0; }
.scoring-dialog button { min-height:40px; }
.scoring-dialog :focus-visible { outline:2px solid #285c43; outline-offset:2px; }
.scoring-dialog ::selection { color:#20362c; background:#e3eee4; }
.score-group-body { padding:4px 12px 12px; }
.scoring-dialog button:disabled { cursor:default; }
@media(max-width:1000px),(pointer:coarse) {
 .scoring-dialog input:not([type="checkbox"]),.scoring-dialog select { font-size:16px; min-height:44px; }
 .scoring-dialog button,.score-group>summary,.score-group-switch,.score-datasets label,.score-metric-title,.score-unavailable label { min-height:44px; }
}
@media(max-width:700px) {
 .mobile-register .next-score-cell { min-width:44px; min-height:44px; }
 .scoring-dialog { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); }
 .scoring-dialog form { max-height:calc(100dvh - 18px); }
}

/* Keep the numeric edge fixed while a visible lower-bound sign gets its own track. */
.next-score-cell{width:100%}
.next-score-cell>[data-score-value]{flex:1;min-width:0;text-align:right}
#content.catalogue-dense :is(.dense-property-table td[data-table-column="nextAttractiveness"],.mobile-register td[data-mobile-key="nextAttractiveness"]){text-align:right}
#content.catalogue-dense :is(.dense-property-table td[data-table-column="nextAttractiveness"],.mobile-register td[data-mobile-key="nextAttractiveness"]) .next-score-cell{justify-content:flex-end}
[data-comparison-row="nextAttractiveness"]>td{text-align:right}
[data-comparison-row="nextAttractiveness"] [data-score-value]{display:block}

/* Compact reserved sign track keeps equal digits stationary with or without ≥. */
#app #content :is(.dense-property-table,.mobile-register) .next-score-cell>[data-score-value]{flex:0 1 auto;text-align:center}

/* Reserve the same compact qualifier track for complete stock and lower bounds. */
.next-stock-cell:has(>.next-stock-symbol){display:inline-grid;grid-template-columns:0.85em max-content;column-gap:0;align-items:baseline;vertical-align:middle;font-variant-numeric:tabular-nums;white-space:nowrap;max-width:100%}
.next-stock-cell>.next-stock-symbol,.next-stock-cell>.next-stock-number{text-align:right}

/* Browser figures begin at the same left edge; partial status follows the figure. */
#app #content.catalogue-dense :is(.dense-property-table,.mobile-register) td:is([data-table-column="nextAttractiveness"],[data-table-column="nextStock"],[data-table-column="nextStockDensity"],[data-mobile-key="nextAttractiveness"],[data-mobile-key="nextStock"],[data-mobile-key="nextStockDensity"]){text-align:center}
#app #content :is(.dense-property-table,.mobile-register) .next-score-cell{justify-content:center}
#app #content :is(.dense-property-table,.mobile-register) .next-score-cell>[data-score-value]{text-align:center}
#app #content :is(.dense-property-table,.mobile-register) .next-score-cell .score-table-number,.next-stock-cell:has(>.next-stock-number){display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;vertical-align:middle;font-variant-numeric:tabular-nums;white-space:nowrap}
.next-stock-cell>.next-stock-number,.score-table-number>.score-value-number{text-align:left}
.table-partial-marker{display:inline-block;width:10px;height:10px;min-width:10px;flex:0 0 10px;vertical-align:middle;color:var(--ink,#20362c)}

/* Keep incomplete-status markers in a fixed trailing slot inside Browser cells. */
#app #content :is(.dense-property-table,.mobile-register) .next-score-cell>[data-score-value]{flex:1 1 auto;min-width:0;width:100%}
#app #content :is(.dense-property-table,.mobile-register) .next-score-cell .score-table-number,
#app #content :is(.dense-property-table,.mobile-register) .next-stock-cell:has(>.next-stock-number){display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;max-width:100%;box-sizing:border-box;padding-inline-end:4px}
#app #content :is(.dense-property-table,.mobile-register) .table-partial-marker{margin-inline-start:auto}

/* Value keeps its qualifier before a stable number track, including complete rows. */

/* Stock shares Value's fixed leading qualifier slot, including complete rows. */
#app #content :is(.dense-property-table,.mobile-register) .next-stock-cell:has(>.next-stock-number){display:grid;grid-template-columns:10px minmax(0,max-content) 10px;column-gap:5px;justify-content:normal;padding-inline-end:0;width:max-content;max-width:100%;margin-inline:auto}
#app #content :is(.dense-property-table,.mobile-register) .next-stock-cell>.next-stock-number{grid-column:2;grid-row:1;text-align:center;min-width:0}
#app #content :is(.dense-property-table,.mobile-register) .next-stock-cell>.table-partial-marker{grid-column:1;grid-row:1;margin:0;align-self:center}
/* The active value calculation beside the list's sort control. */
.catalogue-results-toolbar .value-mode-chip{margin-left:auto}
.value-mode-chip{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--forest);font-size:13px;font-weight:620;line-height:1.3;white-space:nowrap;cursor:default}
.value-mode-chip[data-value-mode-chip=unavailable]{border-color:color-mix(in srgb,#815000 22%,#fff1d6);background:#fff1d6;color:#815000}
.value-mode-chip:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
/* The calculation beside the property overview's value (r7). */
.score-overview .score-overview-mode{min-height:24px;padding:2px 10px;font-size:12px}
.value-mode-chip[data-value-mode-label=unavailable]{border-color:color-mix(in srgb,#815000 22%,#fff1d6);background:#fff1d6;color:#815000}
.value-mode-banner{margin:0 0 12px;padding:10px 14px;border:1px solid color-mix(in srgb,#815000 22%,#fff1d6);border-radius:8px;background:#fff1d6;color:#815000;font-size:14px;line-height:1.5}
}

/* /forest/workspace-dense-facts.css */
@layer legacy{.dense-species-pair{display:grid;grid-template-columns:minmax(0,1fr) 12px;align-items:center;gap:2px 6px;width:100%;max-width:100%;vertical-align:middle;color:var(--forest,#285c43);line-height:1.3;text-align:left}
.dense-species-chip{display:grid;grid-template-columns:18px minmax(0,1fr) 4ch;align-items:center;gap:5px;grid-column:1;min-width:0;max-width:100%;font-variant-numeric:tabular-nums;color:var(--ink,#20362c);white-space:normal}
.dense-species-chip .dense-fact-glyph{color:var(--forest,#285c43)}
.dense-fact-glyph{width:18px;height:20px;flex:none;vertical-align:middle}
.dense-species-name{min-width:0;font-weight:400;line-height:1.2;overflow-wrap:anywhere}
.dense-species-summary{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-width:0;max-width:100%;font-weight:400;line-height:1.25;text-align:left}
.dense-species-summary .dense-species-item{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dense-species-summary .dense-species-item+.dense-species-item::before{content:'·';padding-inline-end:5px;color:var(--muted,#536257)}
@media(max-width:699px){
 .mobile-register .mobile-species-cell{justify-content:flex-start;text-align:left}
 .mobile-register .dense-species-summary{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:16px;align-content:center;gap:1px;width:100%;font-size:12px;line-height:16px}
 .mobile-register .dense-species-summary .dense-species-item+.dense-species-item::before{content:none}
}
.dense-species-share{flex:none;font-weight:620;text-align:right}
.dense-species-share,.dense-species-zero{font-variant-numeric:tabular-nums}
.dense-species-partial{display:inline-flex;grid-column:2;grid-row:1 / span 2;flex:none;color:var(--muted,#536257);align-items:center}.dense-species-partial svg{width:12px;height:12px}
.dense-unknown{display:inline-flex;align-items:center;justify-content:center;width:18px;vertical-align:middle;color:var(--muted,#536257);cursor:help}
.dense-unknown-glyph{width:14px;height:14px;flex:none}
.dense-facts-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;color:var(--forest,#285c43);background:transparent;border:0;border-radius:4px;min-height:32px;padding:2px 4px;white-space:normal;text-align:left}
.dense-facts-trigger:hover,.dense-facts-trigger[aria-expanded=true]{background:var(--mint,#e3eee4)}
.dense-facts-trigger:active{background:var(--line,#d8e0d6)}
:is(.dense-facts-trigger,.dense-species-zero,.dense-unknown):focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:1px}
.dense-facts-popover h3{font-size:14px;margin:20px 0 6px}.dense-facts-basis{font-weight:620}
.dense-property-table td[data-table-unknown],.catalogue-dense .dense-property-table td[data-table-unknown],.mobile-register.database-panel td[data-table-unknown]{background:#f6e9e7!important;text-align:left}
.dense-property-table td[data-table-unknown] .dense-unknown,.mobile-register td[data-table-unknown] .dense-unknown{display:flex;width:100%;min-height:var(--table-action-height,28px)}
.dense-property-table td[data-table-unknown] .dense-unknown-glyph,.mobile-register td[data-table-unknown] .dense-unknown-glyph{visibility:hidden}
.dense-property-table td[data-table-unknown]:focus-within,.mobile-register td[data-table-unknown]:focus-within{box-shadow:inset 0 0 0 2px var(--forest,#285c43)}
.dense-property-table td:has(.dense-species-pair){padding-block:4px!important}
.dense-property-table td:has([data-inventory-age=unresolved]),.mobile-register td:has([data-inventory-age=unresolved]),.mobile-register td:has(.mobile-species-cell .dense-unknown){background:#f6e9e7!important}
.dense-property-table [data-inventory-age=unresolved]>svg,.mobile-register [data-inventory-age=unresolved]>svg,.mobile-register .mobile-species-cell .dense-unknown-glyph{visibility:hidden}
.dense-species-detail-list,.dense-species-legend ul{list-style:none;margin:12px 0 0;padding:0}
.dense-species-detail-list>li{padding:10px 0;border-top:1px solid var(--line,#d8e0d6)}
.dense-species-detail-heading{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.dense-species-detail-heading>span{color:var(--muted,#536257);margin-left:auto;font-size:12px}
.dense-facts-measures{margin:6px 0}.dense-facts-measures>div{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:baseline;gap:8px;padding:2px 0}
.dense-facts-measures dt{color:var(--muted,#536257);overflow-wrap:anywhere}.dense-facts-measures dd{margin:0;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.dense-species-legend,.dense-facts-source{margin-top:12px;padding-top:8px;border-top:1px solid var(--line,#d8e0d6)}
.dense-species-legend summary,.dense-facts-source summary{min-height:36px;padding:4px 0;font-weight:620;cursor:pointer}.dense-species-legend li{display:flex;gap:8px;align-items:center;padding:3px 0}
.dense-facts-source p{font-size:12px}.dense-first-component{padding-top:4px;border-top:1px solid var(--line,#d8e0d6);margin-top:12px}
@media(min-width:1001px) and (pointer:fine){
 .catalogue-dense .database-panel[data-density=dense] .dense-species-pair{column-gap:8px;row-gap:2px;min-height:24px}
 .catalogue-dense .database-panel[data-density=dense] .dense-species-chip .dense-fact-glyph{width:16px;height:18px}
 .catalogue-dense .database-panel[data-density=dense] .dense-facts-trigger{min-height:24px;height:24px;padding:0 3px;font-size:inherit;line-height:1.2}
 .catalogue-dense .database-panel[data-density=dense] .dense-inventory-evidence{min-width:25px}
 .catalogue-dense .database-panel[data-density=dense] .dense-inventory-evidence .dense-fact-glyph{width:17px;height:19px}
}
@media(max-width:1000px),(pointer:coarse){.dense-facts-trigger{min-height:44px;padding:6px}.dense-species-legend summary,.dense-facts-source summary{min-height:44px}}
@media(max-width:360px){.dense-facts-measures>div{grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:5px}.dense-species-detail-heading>span{margin-left:0}}
@media(forced-colors:active){.dense-species-pair,.dense-unknown,.dense-facts-trigger{color:CanvasText}.dense-facts-popover{outline:1px solid CanvasText}}
@media(forced-colors:active){.dense-property-table td[data-table-unknown],.mobile-register td[data-table-unknown]{outline:1px dashed CanvasText}.dense-property-table td[data-table-unknown] .dense-unknown-glyph,.mobile-register td[data-table-unknown] .dense-unknown-glyph{visibility:visible}}
@media(forced-colors:active){.dense-property-table td:has([data-inventory-age=unresolved]),.mobile-register td:has([data-inventory-age=unresolved]),.mobile-register td:has(.mobile-species-cell .dense-unknown){outline:1px dashed CanvasText}.dense-property-table [data-inventory-age=unresolved]>svg,.mobile-register [data-inventory-age=unresolved]>svg,.mobile-register .mobile-species-cell .dense-unknown-glyph{visibility:visible}}
/* Compact sale check: the cadastral identity and its saved width stay intact. */
.sale-status-glyph{width:20px;height:20px;flex:none;vertical-align:middle}
.dense-property-table [data-table-column=nextSaleCheck],.mobile-register [data-mobile-key=nextSaleCheck]{text-align:center}
.dense-property-table td[data-table-column=nextSaleCheck],.mobile-register td[data-mobile-key=nextSaleCheck]{padding:0}
.dense-property-table .sale-status,.catalogue-dense .dense-property-table .sale-status,.mobile-register .sale-status{display:inline-flex;align-items:center;justify-content:center;width:24px;min-width:24px;height:24px;min-height:24px;padding:2px;border:0;border-radius:4px;background:transparent;vertical-align:middle}
.dense-property-table .sale-status-sale,.mobile-register .sale-status-sale{color:#8c2823}.dense-property-table .sale-status-bounded,.mobile-register .sale-status-bounded{color:var(--forest,#285c43)}.dense-property-table .sale-status-unknown,.mobile-register .sale-status-unknown{color:#815000}
.dense-property-table .sale-status:hover,.dense-property-table .sale-status[aria-expanded=true],.mobile-register .sale-status:hover,.mobile-register .sale-status[aria-expanded=true]{background:var(--mint,#e3eee4)}
.sale-status:focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:-2px}
@media(max-width:1000px),(pointer:coarse){.mobile-register .sale-status{width:44px;min-width:44px;height:44px;min-height:44px;padding:12px}.mobile-register .sale-status-glyph{width:20px;height:20px}}
.next-sale-proof{padding:14px 16px;margin:0 0 20px;border:1px solid var(--line,#d8e0d6);border-radius:8px;color:var(--ink,#20362c)}
.next-sale-proof[data-sale-verification=after-inventory]{border-color:#ddb6b1;background:#fcf4f2}.next-sale-proof[data-sale-verification=no-later-sale-found]{border-color:#bdd2bf;background:#edf5ee}.next-sale-proof[data-sale-verification=unable-to-check]{border-color:#e0cba3;background:#fff7e7}
.next-sale-proof h3{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:16px;line-height:1.35;font-weight:620;color:inherit}
.next-sale-proof[data-sale-verification=after-inventory] h3{color:#8c2823}.next-sale-proof[data-sale-verification=no-later-sale-found] h3{color:var(--forest,#285c43)}.next-sale-proof[data-sale-verification=unable-to-check] h3{color:#815000}
.next-sale-proof p{margin:6px 0;line-height:1.45;max-width:72ch}.next-sale-proof .next-sale-owner-note{font-weight:620}
.next-sale-measures{margin:12px 0}.next-sale-measures>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px;padding:4px 0;border-bottom:1px solid var(--line,#d8e0d6)}
.next-sale-measures dt{font-weight:400}.next-sale-measures dd{margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.next-sale-limit{font-size:13px}
.dense-facts-popover .next-sale-proof{border:0;border-radius:0;background:transparent;padding:0;margin:0}.dense-facts-popover .next-sale-proof h3{font-size:14px}
@media(max-width:500px){.next-sale-proof{padding:12px}.next-sale-measures>div{grid-template-columns:minmax(0,1fr);gap:2px}.next-sale-proof h3{font-size:16px}}
@media(forced-colors:active){.sale-status,.next-sale-proof,.next-sale-proof h3{color:CanvasText!important;background:Canvas!important}.sale-status{outline:1px solid CanvasText}.next-sale-proof{border-color:CanvasText}}


/* Match the existing centred check cells despite general table alignment rules. */
.catalogue-dense .dense-property-table tbody tr[data-record-id]>td[data-table-column=nextSaleCheck],.dense-property-table tbody tr[data-record-id]>td[data-table-column=nextSaleCheck],.mobile-register tbody tr[data-record-id]>td[data-mobile-key=nextSaleCheck]{text-align:center}
.catalogue-dense .dense-property-table thead th[data-table-column=nextSaleCheck]>button,.dense-property-table thead th[data-table-column=nextSaleCheck]>button{justify-content:center;text-align:center}
.mobile-register thead th[data-mobile-key=nextSaleCheck]{text-align:center}

/* Keep owner place names within their saved dense-table column. */
.dense-property-table .owner-region-cell{display:flex;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.dense-property-table .owner-region-cell .owner-region-places{display:block;min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dense-property-table .owner-region-cell .owner-region-mark{flex:none}
}

/* /forest/workspace-multi-sort.css */
@layer legacy{.multi-sort-launch{display:inline-flex;align-items:center;white-space:nowrap}
.multi-sort-paused{max-width:230px;color:var(--warning,#815000);font-size:12px;line-height:1.3;white-space:nowrap;cursor:help}
.table-sort-marker{display:inline-flex;align-items:center;gap:2px;flex:none;margin-inline-start:5px;padding-inline-start:4px;border-inline-start:1px solid var(--line,#d8e0d6);color:var(--muted,#536257);line-height:1;white-space:nowrap}
.table-sort-priority{font-size:var(--ui-fs-micro);font-weight:600;line-height:1;flex:none;font-variant-numeric:tabular-nums;color:inherit}
.table-sort-marker>.icon{width:12px;height:12px;flex:none}
.multi-sort-dialog{box-sizing:border-box;width:min(600px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px;overflow:auto;border:0;border-radius:8px;background:var(--surface,#fff);color:var(--ink,#20362c);box-shadow:var(--menu-shadow,0 8px 24px #20362c26)}
.multi-sort-dialog::backdrop{background:#20362c40}
.multi-sort-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.multi-sort-heading h2{font-size:18px;margin:0}.multi-sort-heading>button{display:flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:4px}
.multi-sort-dialog p{margin:12px 0;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.multi-sort-rules{list-style:none;margin:12px 0;padding:0;display:grid;gap:8px}.multi-sort-rules>li{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--line,#d8e0d6)}
.multi-sort-position{width:16px;flex:none;text-align:center;color:var(--muted,#536257);font-variant-numeric:tabular-nums}
.multi-sort-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,.6fr);gap:8px;flex:1;min-width:0}.multi-sort-fields label{min-width:0;margin:0}.multi-sort-fields select{margin:0;width:100%;min-width:0;min-height:36px;padding:4px 26px 4px 6px;font-size:14px;border-color:#718575}
.multi-sort-rule-actions{display:flex;flex:none;gap:3px}.multi-sort-rule-actions button{display:flex;align-items:center;justify-content:center;min-width:30px;min-height:36px;padding:3px}.multi-sort-rule-actions .icon,.multi-sort-heading .icon{width:16px;height:16px}
.multi-sort-dialog button{border-color:#718575}.multi-sort-dialog button:disabled{opacity:.5;cursor:default}.multi-sort-dialog button:focus-visible,.multi-sort-dialog select:focus-visible,.multi-sort-dialog input:focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:1px}
.multi-sort-dialog .multi-sort-footnote{color:var(--muted,#536257);font-size:13px}.multi-sort-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding-top:12px;border-top:1px solid var(--line,#d8e0d6)}.multi-sort-footer>div{display:flex;gap:8px}.multi-sort-footer button{min-height:36px}
@media(max-width:560px),(pointer:coarse){.multi-sort-dialog{padding:12px}.multi-sort-fields{grid-template-columns:minmax(0,1fr)}.multi-sort-fields select{min-height:44px;font-size:16px}.multi-sort-rule-actions{flex-direction:column}.multi-sort-rule-actions button{min-width:44px;min-height:44px}.multi-sort-footer button,.multi-sort-heading>button{min-height:44px}.multi-sort-footer{gap:8px}.multi-sort-footer>div{margin-left:auto}.multi-sort-paused{max-width:100%}}
@media(forced-colors:active){.multi-sort-dialog{outline:1px solid CanvasText}.multi-sort-paused,.table-sort-priority{color:CanvasText}}
}

/* /forest/workspace-shell.css */
@layer legacy{/* Task 3B: the established FOREST controls and a static horizontal workspace shell.
   Shapes are informed by the supplied Supaste and Uiverse references; authored here. */
:root{--nav:0px;--navigation-surface:#4c6e54;--control-radius:var(--lmf-r-ctl);--control-hover:#edf3ec;--field-surface:var(--v31-surface);--control-border:var(--lmf-field-line);--menu-shadow:0 8px 24px #102b2924}
/* Low-specificity defaults let the existing dense table and specialised controls win. */
button:disabled{box-shadow:none}
input:where(:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color])),select,textarea{
 background-color:var(--field-surface);border-color:var(--control-border);border-radius:var(--control-radius);padding:8px 10px;
 font-size:14px;font-weight:400;box-shadow:inset 0 1px 2px rgba(22,40,30,.06);
}
input:where(:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color])),select{min-height:40px}
select:not([multiple]):not([size]){padding-right:36px;background-position:right 10px center}
input:where(:not([type=checkbox]):not([type=radio]):not([type=range])):focus-visible,select:focus-visible,textarea:focus-visible{
 border-color:var(--lmf-focus);outline:2px solid transparent;outline-offset:2px;box-shadow:var(--lmf-field-focus);
}
input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true]{border-color:#a33832;box-shadow:inset 0 -2px 0 #a33832}
input:disabled,select:disabled,textarea:disabled{background-color:#edf0e9;box-shadow:none}
input[readonly],textarea[readonly]{background-color:#f3f6f0}
.search-filters :is(select,input:not([type=checkbox])).is-filter-active,#land-search.is-filter-active{background-color:var(--mint);border-color:var(--forest);color:var(--ink)}
:is(.actions,.toolbar,.filter-footer,.login-card) button:where(:not(.check-task):not(.planner-complete):not(.table-resize-handle):not([role=tab])){border-radius:var(--control-radius)}
:is(.catalogue-view-actions,.table-columns-panel,details[open]>.record-actions){border-radius:8px;background-color:var(--white,#fff)}






#app>main{margin-left:0;min-width:0;padding-bottom:0}
.workspace-topnav{
 position:relative;z-index:900;display:flex;align-items:center;gap:12px;min-width:0;
 margin:0 16px;padding:7px 12px;background:var(--navigation-surface);color:#f6f9f2;border-radius:0 0 12px 12px;
}
@media(min-width:1001px){
 .workspace-topnav{position:sticky;top:var(--ui-env-offset)}
 html:has(.workspace-topnav){scroll-padding-top:72px}
}
.workspace-topnav .brand{display:flex;align-items:center;justify-content:center;flex:0 0 106px;margin:0;min-width:0}
.workspace-topnav .brand img{width:106px;height:44px;object-fit:contain;filter:brightness(0) invert(1);opacity:.96}
.workspace-topnav>nav{display:flex;align-items:center;gap:3px;min-width:0;flex:1}
.workspace-topnav nav>a,.workspace-topnav #browse-toggle,.workspace-topnav #nav-more{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;margin:0;padding:7px 9px;
 color:#e5eee3;background:transparent;border:0;border-radius:6px;font-size:13px;font-weight:620;line-height:1.35;white-space:nowrap;
 box-shadow:none;text-decoration:none;
}
.workspace-topnav nav>a:hover,.workspace-topnav #browse-toggle:hover,.workspace-topnav #nav-more:hover,
.workspace-topnav #account-menu-toggle:hover{background:#ffffff14;color:#fff}
.workspace-topnav nav>a.active,.workspace-topnav #browse-toggle.search-parent-current,.workspace-topnav #nav-more.active{
 color:var(--forest);background:#e8eedf;font-weight:700;
}
.workspace-topnav .icon{width:16px;height:16px;flex:none}
.workspace-topnav button>[data-icon]{display:flex;align-items:center;flex:none}
.workspace-topnav .nav-chevron{width:12px;height:12px;transition:transform .16s ease-out}
.workspace-topnav [aria-expanded=true]>.nav-chevron{transform:rotate(180deg)}
.workspace-nav-tools{display:flex;align-items:center;gap:6px;flex:none}
.workspace-topnav .header-language select{width:108px;min-width:108px;min-height:36px;height:36px;margin:0;padding:5px 27px 5px 9px;font-size:13px;background-color:#f4f7ef;color:var(--ink);border:0}
.workspace-topnav #quick-add,.workspace-topnav #account-menu-toggle{
 display:inline-flex;align-items:center;justify-content:center;gap:5px;width:36px;height:36px;min-height:36px;padding:8px;border:0;border-radius:6px;
 background:#f4f7ef;color:var(--forest);box-shadow:none;
}
.workspace-topnav #quick-add:hover{background:#e8eedf}
.workspace-topnav #account-menu-toggle{width:44px;background:transparent;color:#e5eee3}
.browse-navigation,.account-navigation{position:relative;flex:none;min-width:0}
.workspace-topnav .workspace-nav-menu{
 position:absolute;top:100%;left:0;z-index:1200;display:grid;gap:2px;width:238px;max-width:calc(100vw - 24px);
 margin:0;padding:7px;background:#fff;color:var(--ink);border:0;border-radius:8px;box-shadow:var(--menu-shadow);
 max-height:calc(100dvh - 100px);overflow:auto;overscroll-behavior:contain;
}
.workspace-topnav .workspace-nav-menu[hidden]{display:none}
.workspace-topnav .account-navigation>.workspace-nav-menu{left:auto;right:0}
.workspace-topnav .workspace-nav-menu>a,.workspace-topnav .workspace-nav-menu>button{
 display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-height:38px;margin:0;padding:8px 10px;
 color:var(--ink);background:transparent;border:0;border-radius:4px;box-shadow:none;white-space:normal;
 font-size:13px;font-weight:620;line-height:1.4;text-align:left;text-decoration:none;
}
.workspace-topnav .workspace-nav-menu>a:hover,.workspace-topnav .workspace-nav-menu>button:hover{background:var(--control-hover)}
.workspace-topnav .workspace-nav-menu>a.active{color:var(--forest);background:var(--mint);font-weight:700}
.workspace-topnav .account-link-copy{display:grid;min-width:0;overflow-wrap:anywhere}
.workspace-topnav .account-link-copy strong{font-size:13px;font-weight:620}
.workspace-topnav .account-link-copy small{font-size:12px;color:var(--muted)}
.workspace-topnav #logout{border-top:1px solid var(--line);border-radius:0;margin-top:4px;padding-top:10px}
.workspace-topnav a:focus-visible,.workspace-topnav button:focus-visible{outline:2px solid #d5e5bd;outline-offset:2px}
.workspace-topnav .workspace-nav-menu a:focus-visible,.workspace-topnav .workspace-nav-menu button:focus-visible{outline-color:var(--focus);outline-offset:-2px}
.workspace-topnav .header-language select:focus-visible{outline-color:#d5e5bd;outline-offset:2px}
.workspace-topnav+main>.topbar{min-height:32px;height:auto;padding:6px 24px;gap:14px;justify-content:flex-start;border-bottom:0;font-size:12px}
.workspace-topnav+main>.topbar>span{font-size:12px;max-width:none}
.workspace-topnav+main>.topbar>.v2-preview-label{font-size:var(--ui-fs-micro);line-height:1.3}
.workspace-topnav+main>.topbar>#today-date{display:inline-block;margin-left:auto;color:var(--muted);font-size:12px}
.workspace-topnav+main>.topbar>#page-breadcrumb{display:none}
main:has(.catalogue-dense)>.topbar{height:auto;min-height:30px}
.table-expanded #app>.workspace-topnav,.table-expanded #app>main>.topbar{display:none!important}
/* Dense evidence fits inside the 25px cell, including its bottom border.
   The old source-check padding is important, so this narrow override is too. */
@media(min-width:1001px) and (pointer:fine){
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .dense-property-table tbody [data-table-column=nextCheck]{padding-block:0!important}
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .next-table-evidence{line-height:24px;max-height:24px}
 .catalogue-dense.next-active-cohort .database-panel[data-density=dense] :is(.next-check-inline,.next-owner-evidence){height:24px;max-height:24px}
 /* Expanded browsing keeps the temporary source tools after the table.
    The compact bottom row retains the cohort and comparison scope. */
 .table-expanded #content.catalogue-dense.next-active-cohort{
  display:grid;grid-template-columns:minmax(0,1fr) max-content;
  grid-template-rows:auto auto minmax(0,1fr) auto;gap:2px 12px;padding:4px;
 }
 .table-expanded .catalogue-dense.next-active-cohort>.next-build-footer{grid-row:4;grid-column:2;align-self:center;max-width:min(620px,48vw);margin:0;padding:0;border:0}
 .table-expanded .catalogue-dense .next-build-footer .next-cohort-bar{font-size:12px;line-height:1.3;gap:4px 10px;white-space:nowrap;flex-wrap:nowrap}
 .table-expanded .catalogue-dense .next-build-footer .next-cohort-bar label{gap:5px;min-height:20px;padding:0;white-space:nowrap}
 .table-expanded .catalogue-dense .next-build-footer .next-data-panel{gap:4px 12px;flex-wrap:nowrap}
 .table-expanded .catalogue-dense .next-build-footer .next-data-disclosure{font-size:12px}
 .table-expanded .catalogue-dense .next-build-footer .next-data-disclosure>summary{min-height:20px;padding:0;line-height:1.5;white-space:nowrap}
 .table-expanded .catalogue-dense.next-active-cohort>.next-build-footer:has(.next-data-disclosure[open]){grid-column:1/-1;max-width:none;align-self:start}
 .table-expanded .catalogue-dense .next-build-footer .next-data-panel:has(.next-data-disclosure[open]){display:block}
 .table-expanded .catalogue-dense .next-build-footer .next-data-disclosure[open]{max-height:40dvh;overflow:auto;padding-right:4px}
 .table-expanded .catalogue-dense.next-active-cohort>.next-comparison-scope{grid-row:4;grid-column:1;align-self:center;margin:0;font-size:12px;line-height:1.3;min-width:0}
 .table-expanded .catalogue-dense.next-active-cohort>.next-comparison-scope .next-comparison-note{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .table-expanded .catalogue-dense.next-active-cohort:has(.next-data-disclosure[open])>.next-comparison-scope{grid-row:5;grid-column:1/-1}
 .table-expanded .catalogue-dense.next-active-cohort>.catalogue-toolbar{grid-row:1;grid-column:1/-1;margin:0}
 .table-expanded .catalogue-dense.next-active-cohort>.search-filters{grid-row:2;grid-column:1/-1}
 .table-expanded .catalogue-dense.next-active-cohort>#land-container{grid-row:3;grid-column:1/-1}
 .table-expanded .catalogue-dense.next-active-cohort:has(.database-panel[data-density=dense]) .catalogue-toolbar :is(input,select,summary),
 .table-expanded .catalogue-dense.next-active-cohort:has(.database-panel[data-density=dense]) .catalogue-toolbar>button,
 .table-expanded .catalogue-dense.next-active-cohort:has(.database-panel[data-density=dense]) #table-presentation-controls>button{min-height:28px;height:28px;padding-block:3px}
 .table-expanded .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .dense-property-table thead th{height:38px;padding-block:0!important}
 .table-expanded .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .dense-property-table thead th>button{height:37px;max-height:37px;overflow:hidden}
 .table-expanded .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .dense-property-table thead th>button>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .table-expanded .catalogue-dense.next-active-cohort .database-panel[data-density=dense] .dense-property-table thead th>button>span>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
#more-dialog{inset:0;margin:auto;max-height:calc(100dvh - 32px);width:min(440px,calc(100% - 24px));padding:20px;border-radius:12px}
#more-dialog h2{margin-bottom:12px}
#more-dialog nav{gap:2px}
#more-dialog nav a{min-height:44px;padding:9px 10px;border-radius:6px;font-size:var(--ui-fs-row)}
#more-dialog .mobile-menu-actions{padding-top:14px;margin-top:14px;gap:8px}
#nav-more{display:none}
@media(max-width:1240px){
 .workspace-topnav nav>a.nav-secondary{display:none}
 .workspace-topnav #nav-more{display:inline-flex}
}
@media(max-width:1000px),(pointer:coarse){
 input:where(:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color])),select{min-height:44px;font-size:16px}
 textarea{font-size:16px}
 .workspace-topnav nav>a,.workspace-topnav #browse-toggle,.workspace-topnav #nav-more,
 .workspace-topnav #quick-add,.workspace-topnav #account-menu-toggle,.workspace-topnav .header-language select{min-height:44px;height:44px}
 .workspace-topnav #quick-add{width:44px}
 .workspace-topnav .header-language select{width:116px;min-width:116px;font-size:16px}
 .workspace-topnav .workspace-nav-menu>a,.workspace-topnav .workspace-nav-menu>button{min-height:44px;font-size:15px}
 #toast{bottom:16px}
 #workspace-return{bottom:16px}
}
@media(max-width:900px){
 .workspace-topnav{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;margin:0 8px;padding:6px 8px 4px}
 .workspace-topnav .brand{justify-content:flex-start;justify-self:start;min-width:0;width:84px}
 .workspace-topnav .brand img{width:84px;height:42px}
 .workspace-nav-tools{grid-column:2;grid-row:1;justify-self:end}
 .workspace-topnav #quick-add{display:none}
 .workspace-topnav>nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;width:100%}
 .workspace-topnav nav>a,.workspace-topnav #browse-toggle,.workspace-topnav #nav-more{
  flex-direction:column;gap:4px;width:100%;min-width:0;min-height:52px;height:auto;padding:6px 2px;font-size:12px;letter-spacing:-.02em;line-height:1.3;
 }
 .workspace-topnav nav>a .icon,.workspace-topnav #browse-toggle .icon,.workspace-topnav #nav-more .icon{width:18px;height:18px}
 .workspace-topnav #browse-toggle>.nav-chevron{position:absolute;right:4px;top:7px;width:10px;height:10px}
 .workspace-topnav #browse-menu{width:226px}
 .workspace-topnav+main>.topbar{flex-wrap:wrap;gap:4px 10px;padding:6px 16px}
 .workspace-topnav+main>.topbar>#today-date{font-size:var(--ui-fs-micro)}
 .workspace-topnav+main>.topbar>.v2-preview-label{font-size:var(--ui-fs-micro)}
}
@media(prefers-reduced-motion:reduce){.workspace-topnav .nav-chevron,button{transition:none}}
@media(forced-colors:active){
 .workspace-topnav,.workspace-topnav .workspace-nav-menu{background:Canvas;color:CanvasText;border:1px solid CanvasText;box-shadow:none}
 .workspace-topnav .brand img{filter:none}
 .workspace-topnav nav>a,.workspace-topnav #browse-toggle,.workspace-topnav #nav-more,.workspace-topnav #account-menu-toggle{color:LinkText}
 .workspace-topnav nav>a.active,.workspace-topnav #browse-toggle.search-parent-current{outline:1px solid Highlight}
 .workspace-topnav :is(a,button,select):focus-visible{outline-color:Highlight}
}
@media print{.workspace-topnav,.workspace-topnav+main>.topbar{display:none!important}}

/* Keep every filter-panel opener selected while its existing panel is open. */
@media screen{
 #content #toggle-filters[aria-expanded="true"],
 #content [data-mobile-filter-summary][aria-expanded="true"],
 #content #contacts-filter-toggle[aria-expanded="true"],
 #content #planner-more-filters[aria-expanded="true"],
 #content .comm-filter-details[open]>summary,
 #content .multi-location-filter[open]>summary

{
  background-color:var(--lmf-control-selected,#dcebdd);border-color:#7da78b;color:#174b30;
 }
}

/* B2-DESIGN (Janis 18 Nov 2026): one toast design, the kit's toast line (workspace-v31-shell.css .v31-toast): ink, 12 px corners,
   14 px semibold; the refusal toast the kit's refusal colour; its button the kit's veiled button. Position rules stay as they were. */
#toast{border-radius:12px;background:var(--v31-text);color:var(--lmf-on-fill);font:var(--v31-fw-bold) var(--v31-fs)/var(--v31-lh-row) var(--v31-font);box-shadow:var(--v31-sh-overlay);min-height:44px;padding:6px 6px 6px 16px}
#toast.error-toast{background:var(--lmf-refused)}
#toast button{min-height:32px;margin:0;padding:0 12px;border:0;border-radius:8px;background:var(--v31-on-fill-veil);color:var(--lmf-on-fill);font:var(--v31-fw-bold) var(--v31-fs)/1 var(--v31-font);box-shadow:none}
#toast button:hover{background:var(--v31-on-fill-veil-hover)}
#toast button:focus-visible{outline:2px solid var(--lmf-on-fill);outline-offset:2px}
/* B2-DESIGN: the map's attribution link was the map library's own blue (Janis: no blue anywhere) */
.leaflet-container .leaflet-control-attribution a{color:var(--lmf-green)}
}

/* /forest/workspace-mobile-table.css */
@layer legacy{.inventory-evidence-trigger{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;padding:0 2px;min-height:24px;width:100%;background:transparent;border:0;border-radius:4px;font:inherit;color:var(--muted,#536257);cursor:pointer}
.mobile-detail-heading .mobile-detail-close{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:12px;border:0;border-radius:6px;background:transparent;color:var(--muted,#536257);cursor:pointer}
.mobile-detail-heading .mobile-detail-close:hover{background:var(--mint,#e3eee4);color:var(--forest,#285c43)}
.mobile-detail-heading .mobile-detail-close:focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:-2px}
.mobile-detail-close .icon{width:18px;height:18px;stroke-width:1.6;pointer-events:none}
#mobile-columns-dialog .mobile-column-width-list{max-height:240px;overflow:auto;overscroll-behavior:contain}
#mobile-columns-dialog .mobile-column-width-list label{display:grid;grid-template-columns:minmax(0,1fr) 94px;gap:8px;align-items:center;min-height:44px;margin:0;padding:2px 0;border-bottom:1px solid var(--line,#d8e0d6);font-size:13px;line-height:1.3}
#mobile-columns-dialog .mobile-width-value{display:flex;align-items:center;gap:4px;color:var(--muted,#536257);font-size:var(--ui-fs-micro)}
#mobile-columns-dialog .mobile-width-value input{box-sizing:border-box;width:72px;min-width:0;min-height:44px;padding:5px 6px;border:1px solid var(--line,#d8e0d6);border-radius:5px;background:var(--paper,#f4f6f2);color:var(--ink,#20362c);font-size:16px;text-align:right;font-variant-numeric:tabular-nums}
#mobile-columns-dialog [data-mobile-widths-reset]{min-height:44px;padding:4px 0;font-size:12px;color:var(--forest,#285c43)}
.inventory-evidence-trigger[data-inventory-age=review],.inventory-evidence-trigger[data-historical-inventory=old]{color:#95604d}
.inventory-evidence-trigger[data-inventory-age=within-window],.inventory-evidence-trigger[data-historical-inventory=not-old]{color:var(--forest,#285c43)}
.inventory-evidence-trigger:hover,.inventory-evidence-trigger[aria-expanded=true]{background:var(--mint,#e3eee4)}
.inventory-evidence-trigger:active{background:var(--line,#d8e0d6)}
.inventory-evidence-trigger:focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:-2px}
.mobile-inventory-glyph{width:21px;height:21px;flex:none}

.mobile-detail-measures{margin:12px 0}.mobile-detail-measures>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:6px 0;border-bottom:1px solid var(--line,#d8e0d6)}
.mobile-detail-measures dt{color:var(--muted,#536257);overflow-wrap:anywhere}.mobile-detail-measures dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.mobile-columns-dialog{box-sizing:border-box;width:min(580px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);margin:auto;padding:16px;border:0;border-radius:8px;background:var(--surface,#fff);color:var(--ink,#20362c);box-shadow:var(--menu-shadow,0 8px 24px #20362c26)}
.mobile-columns-dialog::backdrop{background:#20362c66}.mobile-columns-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 48px);min-height:0;gap:10px}
.mobile-columns-heading,.mobile-columns-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none}.mobile-columns-heading h2{margin:0;font-size:18px}.mobile-columns-dialog p{margin:0;font-size:14px}
.mobile-columns-dialog button,.mobile-columns-dialog select,.mobile-columns-dialog summary{min-height:44px}.mobile-columns-dialog select{font-size:16px;max-width:100%;width:100%}
.mobile-columns-scroll{overflow:auto;min-height:0;overscroll-behavior:contain}.mobile-column-order{margin:8px 0;border-bottom:1px solid var(--line,#d8e0d6)}.mobile-column-order summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border:1px solid var(--line,#d8e0d6);border-radius:8px;background:var(--paper,#f4f6f2);color:var(--ink,#20362c);font-weight:620;cursor:pointer;box-sizing:border-box;list-style:none}.mobile-column-order summary::-webkit-details-marker{display:none}.mobile-column-order summary:hover,.mobile-column-order[open]>summary{background:var(--mint,#e3eee4);color:var(--forest,#285c43)}
.mobile-column-order ol{list-style:none;padding:0;margin:0}.mobile-column-order li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0}.mobile-column-order li>span{overflow-wrap:anywhere}.mobile-column-order li>div{display:flex;flex:none;gap:4px}.mobile-column-order button{min-width:44px;padding:6px}
.mobile-column-swap{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 0}.mobile-column-swap label{display:flex;flex-direction:column;gap:4px}.mobile-column-swap button{justify-self:start}
.mobile-column-choices fieldset{border:0;border-top:1px solid var(--line,#d8e0d6);padding:12px 0;margin:0}.mobile-column-choices legend{padding-right:8px;font-weight:620}.mobile-column-choices label{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 2px;font-size:14px;cursor:pointer}.mobile-column-choices label>span{overflow-wrap:anywhere}.mobile-column-choices input{width:20px;height:20px;flex:none;accent-color:var(--forest,#285c43)}.mobile-column-choices small{display:block;color:var(--muted,#536257)}
.mobile-columns-dialog :is(button,select,input,summary):focus-visible,.mobile-inventory-popover :is(button,[tabindex]):focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:1px}.mobile-columns-dialog button:disabled{opacity:.55;cursor:default}
@media(max-width:1000px){
 .mobile-register tbody tr[data-record-id]>td{text-align:left}
 .mobile-register tbody tr[data-record-id]>td:is(.number-cell,[data-mobile-key=nextAttractiveness],[data-mobile-key=nextAgeRange],[data-mobile-key=nextInventory],[data-mobile-key=sourceInventoryYear]),.mobile-register thead th:is([data-mobile-key=nextAttractiveness],[data-mobile-key=nextAgeRange],[data-mobile-key=nextInventory],[data-mobile-key=sourceInventoryYear]){text-align:right;font-variant-numeric:tabular-nums}
 .mobile-register tbody tr[data-record-id]>td :is(.dense-facts-trigger,.next-check-action){text-align:inherit}
 .mobile-register tbody tr[data-record-id]>td:is([data-mobile-key=nextInventoryAgeSignal],[data-mobile-key=nextInventoryEvidence],[data-mobile-key=nextFirstSpecies]){text-align:center}
 .mobile-register tbody tr[data-record-id]>td .source-comment-preview{width:100%;text-align:left}
 .mobile-register tbody tr[data-record-id]>td .next-check-heading{justify-content:flex-start}
 .mobile-register thead th:is([data-mobile-key=nextInventoryAgeSignal],[data-mobile-key=nextInventoryEvidence],[data-mobile-key=nextFirstSpecies]){text-align:center}
 .mobile-register td:is([data-mobile-key=nextAgeRange],[data-mobile-key=nextInventory]) .mobile-range{align-items:flex-end}
 .mobile-register-surface{min-width:0}.mobile-register-surface .catalogue-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;margin-bottom:0}.mobile-register-surface .catalogue-toolbar>.searchbox{grid-column:1/-1;min-width:0;width:100%;min-height:44px}.mobile-register-surface #land-search{font-size:16px;min-height:44px}
 .mobile-register-surface .catalogue-toolbar>:is(button,details)>summary,.mobile-register-surface .catalogue-toolbar>button{min-height:44px;padding:8px 10px;white-space:nowrap}
 .mobile-register-surface .catalogue-view-options{min-width:0}.mobile-register-surface .catalogue-view-options>summary{min-height:44px;padding:8px 10px}.mobile-register-surface .catalogue-view-actions{z-index:1300;max-width:calc(100vw - 24px)}
 .mobile-register-surface #land-filters:not(.is-open){display:none}.mobile-register-surface #land-filters.is-open{margin-top:8px}.mobile-register-surface .mobile-filter-summary{margin:4px 0 8px;font-size:13px;line-height:1.3;color:var(--muted,#536257)}
 .mobile-work-views{margin:8px 0}.mobile-work-views>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:8px 12px;background:var(--surface,#fff);border:1px solid var(--line,#d8e0d6);border-radius:8px;color:var(--ink,#20362c);font-size:var(--type-working);font-weight:620;cursor:pointer}.mobile-work-views>summary::after{content:'';width:8px;height:8px;border-bottom:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);margin:0 4px 4px 12px}.mobile-work-views[open]>summary::after{transform:rotate(225deg);margin-top:4px}
 .mobile-work-views .search-work-views{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0;margin:0}.mobile-work-views .search-work-views button{min-height:44px;flex:1 1 140px}
 .mobile-table-host{min-width:0;max-width:100%;overflow:visible}.mobile-table-host #table-presentation-controls.mobile-table-tools{display:flex;gap:6px;align-items:center;flex-wrap:nowrap;padding:0;margin:8px 0 4px;min-width:0;width:100%}
 .mobile-table-tools label{min-width:0;flex:1}.mobile-table-tools select{width:100%;font-size:16px;min-height:44px;padding:8px;min-width:0}.mobile-table-tools button{min-height:44px;font-size:14px;padding:8px;flex:none}.mobile-table-tools [data-mobile-columns-open]{display:flex;align-items:center;gap:5px}.mobile-table-tools [data-mobile-columns-open]>span{font-variant-numeric:tabular-nums;color:var(--muted,#536257)}
 .mobile-table-host>.catalogue-results-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:0;margin:4px 0 6px;min-height:44px}.mobile-table-host>.catalogue-results-toolbar #land-count{flex:1 1 130px;font-size:13px;line-height:1.3}.mobile-table-host>.catalogue-results-toolbar :is([data-score-open],[data-multi-sort-open]){min-height:44px;padding:8px 10px;font-size:14px}.mobile-table-host>.catalogue-results-toolbar.mobile-has-sort>.catalogue-sort{display:none}.mobile-table-host>.catalogue-results-toolbar .score-sort-note,.mobile-table-host>.catalogue-results-toolbar .multi-sort-paused{flex-basis:100%;font-size:13px}
 .mobile-register.database-panel{min-width:0;max-width:100%;padding:0;overflow:hidden;border-radius:8px;background:var(--surface,#fff);border:1px solid var(--line,#d8e0d6)}.mobile-overflow-hint{font-size:12px;line-height:1.35;margin:0;padding:6px 8px;color:var(--muted,#536257);background:var(--paper,#f4f6f2)}
 .mobile-table-scroll{position:relative;overflow-x:auto;overflow-y:auto;max-width:100%;min-width:0;overscroll-behavior-x:contain;scrollbar-color:var(--muted,#536257) var(--paper,#f4f6f2)}.mobile-table-scroll:focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:-2px}
 .mobile-register table{table-layout:fixed;border-collapse:separate;border-spacing:0;min-width:100%;max-width:none;font-size:13px;line-height:1.25;font-variant-numeric:tabular-nums;color:var(--ink,#20362c)}.mobile-register :is(th,td){padding:3px 2px;vertical-align:middle;text-align:left;overflow-wrap:anywhere;border-bottom:1px solid var(--line,#d8e0d6)}.mobile-register thead th{position:sticky;top:0;z-index:2;background:var(--secondary,#edf1eb);font-size:12px;line-height:1.2;font-weight:620;height:42px;text-align:left}.mobile-register thead th>span{display:block}.mobile-register thead th small{display:block;font-size:var(--ui-fs-micro);font-weight:400;margin-top:2px;color:var(--muted,#536257)}.mobile-register td.number-cell{text-align:right}
 .mobile-register .mobile-identity{position:sticky;left:0;z-index:1;padding:0;background:var(--surface,#fff);box-shadow:1px 0 0 var(--line,#d8e0d6)}.mobile-register thead th[data-mobile-key=parcelCode]{position:sticky;left:0;z-index:3;text-align:left;padding:4px}.mobile-register .mobile-identity button{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:100%;min-height:44px;padding:6px 4px;white-space:nowrap;border:0;border-radius:0;background:transparent;color:var(--forest,#285c43);font-size:13px;line-height:1.25;text-align:left;font-weight:620}.mobile-register .mobile-identity button:hover,.mobile-register tr:hover>.mobile-identity{background:var(--mint,#e3eee4)}.mobile-register .mobile-identity button:active{background:var(--line,#d8e0d6)}.mobile-register [data-record-id].is-selected>:is(td,th){background:var(--mint,#e3eee4)}
 .mobile-register button:focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:-2px}.mobile-register .mobile-number{white-space:nowrap;display:inline-block}.mobile-register .mobile-number small{display:block;font-size:var(--ui-fs-micro);color:var(--muted,#536257)}.mobile-range{display:flex;flex-direction:column;align-items:center;white-space:nowrap}.mobile-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-sort-cue{display:inline-flex!important;gap:2px;align-items:center;font-size:var(--ui-fs-micro);vertical-align:middle}.mobile-sort-cue .icon{width:12px;height:12px}
 .mobile-register td:is([data-mobile-key=nextSpecies],[data-mobile-key=nextInventoryAgeSignal],[data-mobile-key=sourceInventoryStatus],[data-mobile-key=nextAttractiveness]){padding:0}
 .mobile-register .inventory-evidence-trigger{min-height:44px;min-width:32px;padding:4px 0}.mobile-register .mobile-species-cell{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px;padding:2px 0;border:0;border-radius:4px;background:transparent;color:var(--forest,#285c43)}.mobile-register .mobile-species-cell:hover{background:var(--mint,#e3eee4)}.mobile-register .mobile-species-cell .dense-species-pair{display:grid;grid-template-columns:minmax(0,1fr) 10px;gap:2px 4px;align-items:center;line-height:1.3}.mobile-register .mobile-species-cell .dense-species-chip{display:grid;grid-template-columns:13px minmax(0,1fr) 4ch;gap:4px;grid-column:1;font-size:12px;line-height:1.3}.mobile-register .mobile-species-cell .dense-fact-glyph{width:13px;height:15px}.mobile-register .mobile-species-cell .dense-species-partial{position:static;grid-column:2;grid-row:1 / span 2}.mobile-register .mobile-species-cell .dense-species-partial svg{width:8px;height:8px}.mobile-register .dense-facts-trigger{min-height:44px;padding:4px 0;min-width:32px;font-size:12px}.mobile-register .dense-inventory-evidence>span{display:none}.mobile-register [data-score-detail]{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;padding:2px 0;white-space:nowrap}.mobile-register .next-score-cell{font-size:13px}.mobile-register .next-score-cue{display:none}
 .mobile-register .next-check-action,.mobile-register .next-check-status,.mobile-register .next-check-reason{font-size:12px;line-height:1.25}.mobile-register .next-owner-evidence{font-size:12px}.mobile-register .table-comment-column{overflow-wrap:anywhere}.mobile-register td>.comment-cell{min-width:0}
 .mobile-register[data-variant=ledger] .mobile-identity button{min-height:58px}.mobile-identity-name{white-space:normal;font-size:12px;font-weight:400;color:var(--muted,#536257);line-height:1.25;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mobile-register[data-variant=grouped] tbody>tr[data-record-id]>:is(th,td){min-height:52px}.mobile-register[data-variant=grouped] .mobile-identity button{min-height:52px}.mobile-register .mobile-group-head th{position:static;height:26px;font-size:12px;background:var(--paper,#f4f6f2);border-bottom:1px solid var(--line,#d8e0d6)}
 .mobile-register .mobile-pagination{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px;font-size:13px}.mobile-pagination>span{margin-right:auto}.mobile-pagination :is(button,select){min-height:44px;font-size:var(--type-working);padding:6px 8px}.mobile-pagination .actions{display:flex;gap:4px}.mobile-pagination .page-size{margin:0;display:flex}
 .mobile-row-detail>td{padding:0!important}.mobile-property-detail{padding:12px;max-width:calc(100vw - 28px);font-size:14px;line-height:1.4;overflow-wrap:anywhere;background:var(--paper,#f4f6f2)}.mobile-property-detail:focus{outline:2px solid var(--focus,#285c43);outline-offset:-2px}.mobile-detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.mobile-detail-heading h2{margin:0;font-size:16px;overflow-wrap:anywhere}.mobile-detail-heading h2 span{display:block;font-size:14px;font-weight:400;margin-top:4px}.mobile-detail-heading button{min-height:44px;flex:none}.mobile-detail-actions{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.mobile-detail-actions button{min-height:44px;min-width:44px;font-size:14px;padding:6px 10px}.mobile-detail-actions .table-marks{height:auto;display:flex;gap:4px}.mobile-property-detail .dense-facts-trigger{font-size:14px;min-width:44px}.mobile-property-detail .mobile-detail-measures dd{white-space:normal}.mobile-inventory-explanation{padding-top:12px;border-top:1px solid var(--line,#d8e0d6)}.mobile-inventory-explanation p{margin:0 0 10px}
 body.mobile-table-focused .mobile-table-host{position:fixed;inset:var(--ui-env-offset) 0 0;z-index:1200;background:var(--paper,#f4f6f2);display:flex;flex-direction:column;padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));box-sizing:border-box;max-height:calc(100dvh - var(--ui-env-offset));overflow:hidden}body.mobile-table-focused .mobile-table-host>.mobile-table-tools{margin-top:0}body.mobile-table-focused .mobile-register{display:flex;flex-direction:column;min-height:0;flex:1}body.mobile-table-focused .mobile-table-scroll{flex:1;min-height:0;padding-bottom:96px}/* B4 UP2: the corner stack (84 px and its 12 px gap) stands over the end of this list; its last row scrolls clear */body.mobile-table-focused .mobile-pagination{flex:none}body.mobile-table-focused .mobile-property-detail{max-width:calc(100vw - 20px)}
 .mobile-table-host ::selection{background:var(--mint,#e3eee4);color:var(--ink,#20362c)}.mobile-register-surface input{caret-color:var(--forest,#285c43)}
 #content.mobile-register-surface{padding:8px 8px 40px}
 .mobile-register-surface .page-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px;min-height:44px;margin:0 0 4px}.mobile-register-surface .page-heading h1{font-size:22px;line-height:1.2;margin:0}.mobile-register-surface .page-heading .actions{width:auto;min-width:0;margin:0;gap:6px;flex:none}.mobile-register-surface .page-heading button{min-height:44px;padding:6px 10px;font-size:14px}
 .mobile-register-surface .prospect-mode{margin:4px 0;gap:4px}.mobile-register-surface .prospect-mode>a{min-height:44px;padding:8px;font-size:13px}
 .mobile-work-views{margin:4px 0}.mobile-work-views>summary{padding:6px 10px;line-height:1.3}
 .mobile-register-surface .catalogue-toolbar{margin:4px 0 0;padding:0;gap:4px 6px}.mobile-register-surface .catalogue-toolbar>.searchbox{grid-column:1/span 2;grid-row:1}.mobile-register-surface .catalogue-toolbar>#reset-catalogue-view{grid-column:3;grid-row:1}
 .mobile-register-surface .catalogue-toolbar>:is(#toggle-filters,.catalogue-view-options,#map-visibility,.view-link){grid-row:2}.mobile-register-surface .catalogue-toolbar>button,.mobile-register-surface .catalogue-view-options>summary{padding:6px 8px;font-size:14px;line-height:1.3;white-space:normal}.mobile-register-surface .catalogue-toolbar .icon{width:16px;height:16px}
 .mobile-register-surface .mobile-filter-summary{display:block;max-width:100%;min-height:44px;margin:4px 0;padding:6px 8px;text-align:left;font-size:13px;line-height:1.3;color:var(--ink,#20362c);background:var(--surface,#fff);border:1px solid var(--line,#d8e0d6);overflow-wrap:anywhere}.mobile-register-surface .mobile-filter-summary:focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:1px}
 .mobile-table-host #table-presentation-controls.mobile-table-tools{margin:4px 0}.mobile-table-tools label{margin:0}.mobile-table-tools select{margin:0}.mobile-table-host>.catalogue-results-toolbar{margin:0 0 4px;gap:4px 6px}
 .mobile-register thead th{color:var(--ink,#20362c);text-transform:none;letter-spacing:0;overflow-wrap:normal;word-break:normal}.mobile-register thead th>span{overflow-wrap:normal;word-break:normal}.mobile-register thead th small{color:var(--muted,#536257);overflow-wrap:normal}
 .mobile-register .mobile-identity button{overflow:hidden}.mobile-register .mobile-identity button>span:first-child{white-space:nowrap}.mobile-register .mobile-identity{box-shadow:1px 0 0 var(--line,#d8e0d6),3px 0 0 var(--surface,#fff)}
}
@media(max-width:360px){.mobile-table-tools button{font-size:13px;padding:6px}.mobile-table-tools select{padding:6px}.mobile-detail-measures>div{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:8px}.mobile-columns-dialog{padding:12px}.mobile-columns-dialog form{max-height:calc(100dvh - 40px)}}
@media(forced-colors:active){.inventory-evidence-trigger{color:CanvasText}.mobile-inventory-popover,.mobile-columns-dialog{outline:1px solid CanvasText}.mobile-register .mobile-identity{box-shadow:none;border-right:1px solid CanvasText}}
/* Phone toolbar: retain original controls, with occasional view actions grouped. */
@media(max-width:699px){
 #content.mobile-register-surface .catalogue-search-row{display:block;margin:0 0 4px}
 #content.mobile-register-surface .catalogue-search-row>.searchbox{width:100%;min-width:0;margin:0}
 #content.mobile-register-surface #land-filters:has(.catalogue-controls-row){margin:0;padding:0}
 #content.mobile-register-surface #land-filters:not(.is-open) .catalogue-controls-row{display:none}
 #content.mobile-register-surface #land-filters:not(.is-open) .catalogue-location-filters{display:none}
 #content.mobile-register-surface #land-filters.is-open .catalogue-controls-row{display:flex;margin:4px 0}
 #content.mobile-register-surface .mobile-table-host #table-presentation-controls.mobile-table-tools{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:4px 0;width:100%;min-width:0}
 #content.mobile-register-surface .mobile-table-tools #toggle-filters{order:0}
 #content.mobile-register-surface .mobile-table-tools [data-mobile-columns-open]{order:1}
 #content.mobile-register-surface .mobile-table-tools #catalogue-sort-slot{order:2;display:flex;min-width:0;gap:4px;flex:1 1 auto}
 #content.mobile-register-surface .mobile-table-tools .mobile-browser-view{order:3;position:relative;flex:none;margin:0 0 0 auto;min-width:0}
 #content.mobile-register-surface .mobile-table-tools :is(button,summary){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;height:auto;padding:6px 8px;border:1px solid var(--lmf-control-line,#b9cdbd);border-radius:6px;background:var(--lmf-control-surface,#f8fbf6);color:var(--lmf-control-ink,#214b32);font-family:inherit;font-size:13px;line-height:1.25;white-space:nowrap;cursor:pointer}
 #content.mobile-register-surface .mobile-table-tools .icon{width:15px;height:15px}
 #content.mobile-register-surface .mobile-table-tools [aria-expanded=true]{background:var(--lmf-control-selected,#e5efdf);border-color:#a4c4aa;color:#174b30}
 #content.mobile-register-surface .mobile-table-tools :is(button,summary):hover{background:var(--lmf-control-hover,#edf4e8)}
 #content.mobile-register-surface .mobile-table-tools :is(button,summary):focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:1px}
 #content.mobile-register-surface .mobile-browser-view-actions{position:absolute;right:0;top:calc(100% + 4px);z-index:1300;display:flex;flex-direction:column;gap:4px;min-width:180px;max-width:calc(100vw - 24px);padding:6px;border:1px solid var(--line,#d8e0d6);border-radius:8px;background:var(--surface,#fff)}
 #content.mobile-register-surface .mobile-browser-view:not([open])>.mobile-browser-view-actions{display:none}
 #content.mobile-register-surface .mobile-browser-view-actions .catalogue-right-controls{display:flex;flex-wrap:wrap;gap:4px;margin:0;order:0}
 #content.mobile-register-surface .mobile-browser-view-actions .catalogue-right-controls button{flex:1 1 auto}
 #content.mobile-register-surface #catalogue-record-summary{display:flex;align-items:center;gap:0;margin:0 0 2px;font-size:13px;line-height:1.3;font-variant-numeric:tabular-nums}
 #content.mobile-register-surface #catalogue-record-summary [data-mobile-review-separator]{white-space:pre}
 #content.mobile-register-surface #catalogue-record-summary :is([data-forest-review-toggle],[data-forest-review-reason]){min-height:44px;height:auto;padding:4px;font-size:13px}
 #content.mobile-register-surface .mobile-register :is(th,td){padding-inline:3px;overflow-wrap:normal;word-break:normal}
 #content.mobile-register-surface .mobile-register thead th{font-size:12px;overflow:hidden;overflow-wrap:anywhere;word-break:normal}
 #content.mobile-register-surface .mobile-register thead th>:is(span,small){max-width:100%;overflow-wrap:anywhere;word-break:normal}
 #content.mobile-register-surface .mobile-register thead th[data-mobile-key=parcelCode]{padding:0 2px}
 #content.mobile-register-surface .mobile-identity-heading{display:flex;align-items:center;justify-content:space-between;gap:2px;min-width:0}
 #content.mobile-register-surface .mobile-identity-heading>span{min-width:0;overflow-wrap:normal}
 #content.mobile-register-surface .mobile-identity-heading [data-mobile-identity-toggle]{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:24px;min-height:44px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--forest,#285c43);cursor:pointer}
 #content.mobile-register-surface [data-mobile-identity-toggle] svg{width:18px;height:18px}
 #content.mobile-register-surface [data-mobile-identity-toggle]:hover{background:var(--mint,#e3eee4)}
 #content.mobile-register-surface [data-mobile-identity-toggle]:focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:-2px}
 #content.mobile-register-surface .mobile-register .mobile-identity{padding:0}
 #content.mobile-register-surface .mobile-register .mobile-identity button{min-height:44px;padding:6px 2px}
 #content.mobile-register-surface .mobile-register[data-identity-collapsed=true] .mobile-identity-heading{justify-content:center}
 #content.mobile-register-surface .mobile-register[data-identity-collapsed=true] .mobile-identity button{align-items:center;padding:6px 1px;text-align:center;font-variant-numeric:tabular-nums}
 #content.mobile-register-surface .mobile-register[data-identity-collapsed=true] thead th[data-mobile-key=parcelCode]{padding:0}
}


/* Phone keeps its own table and 44px identity control, with one title baseline. */
@media(max-width:699px){
 #content.mobile-register-surface .mobile-register thead th[data-mobile-key]{box-sizing:border-box;height:48px;padding-top:4px;padding-bottom:0;vertical-align:top}
 #content.mobile-register-surface .mobile-register thead th[data-mobile-key]>span:not(.mobile-sort-cue),#content.mobile-register-surface .mobile-identity-heading>span{display:block;min-width:0;max-height:13px;line-height:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #content.mobile-register-surface .mobile-register thead th[data-mobile-key] small{margin-top:1px;line-height:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #content.mobile-register-surface .mobile-identity-heading{position:relative;align-items:flex-start;height:40px;padding-inline-end:24px}
 #content.mobile-register-surface .mobile-identity-heading [data-mobile-identity-toggle]{position:absolute;inset:-4px 0 auto auto;min-height:44px}
 #content.mobile-register-surface .mobile-register[data-identity-collapsed=true] .mobile-identity-heading{padding-inline-end:0}
 #content.mobile-register-surface .mobile-register .mobile-sort-cue{position:absolute;inset:auto auto 3px 3px;height:11px;gap:2px;margin:0;padding:0 3px;border-radius:3px;background:#dce8d7;color:#36513e;font-size:12px;line-height:11px}
 #content.mobile-register-surface .mobile-register .mobile-sort-cue .icon{width:9px;height:9px}
}

/* Phone filters retain one form and the always-visible location row. */
@media(max-width:699px){
 #content.mobile-register-surface #land-filters.phone-filter-panel{display:block;margin:0 0 6px;padding:0;border:0;background:transparent}
 #content.mobile-register-surface #land-filters.phone-filter-panel .catalogue-controls-row{display:block;margin:0;padding:0}
 #content.mobile-register-surface #land-filters.phone-filter-panel .catalogue-location-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%;margin:0;padding:0}
 #content.mobile-register-surface .phone-filter-panel .catalogue-location-filters label{display:flex;flex-direction:column;gap:2px;min-width:0;margin:0;font-size:12px;line-height:1.2}
 #content.mobile-register-surface .phone-filter-panel .catalogue-location-filters select{box-sizing:border-box;width:100%;min-width:0;margin:0}   /* B4 OF2 p3: look and size from the family */
 #content.mobile-register-surface #land-filters.phone-filter-panel>.phone-filter-toolbar-slot{display:block;min-width:0;margin:2px 0 0}
 #content.mobile-register-surface .phone-filter-toolbar-slot .mobile-table-tools{display:flex;align-items:center;flex-wrap:wrap;gap:4px;width:100%;margin:2px 0}
 #content.mobile-register-surface .phone-filter-panel [hidden]{display:none!important}
 #content.mobile-register-surface .phone-filter-toolbar-slot .mobile-filter-summary{display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;margin:0;padding:4px 0;border:0;background:transparent;font-size:12px;line-height:1.4}
 #content.mobile-register-surface .phone-filter-toolbar-slot .mobile-filter-summary[hidden]{display:none}
 #content.mobile-register-surface .phone-filter-panel #advanced-filters{margin:4px 0 8px;padding:0 10px;border:1px solid var(--line,#d8e0d6);border-radius:6px;background:var(--surface,#fff)}
 #content.mobile-register-surface .phone-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}
 #content.mobile-register-surface .phone-filter-heading strong{font-size:15px}
 #content.mobile-register-surface .phone-filter-heading [data-phone-filter-count]{font-size:12px;color:var(--muted,#536257);font-weight:400}
 #content.mobile-register-surface .phone-filter-heading button{display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;padding:10px;border:0;background:transparent;color:var(--forest,#285c43)}
 #content.mobile-register-surface .phone-filter-group{margin:0;padding:0;border:0;border-top:1px solid var(--line,#d8e0d6);border-radius:0;background:transparent}
 #content.mobile-register-surface .phone-filter-group>summary{box-sizing:border-box;min-height:44px;display:flex;align-items:center;gap:4px;padding:8px 0;font-size:15px;font-weight:620;color:var(--forest,#285c43);cursor:pointer;list-style:none}
 #content.mobile-register-surface .phone-filter-group>summary::-webkit-details-marker{display:none}
 #content.mobile-register-surface .phone-filter-group>summary::after{content:'';width:7px;height:7px;margin-left:auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
 #content.mobile-register-surface .phone-filter-group[open]>summary::after{transform:rotate(225deg)}
 #content.mobile-register-surface .phone-filter-group:not([open])>.phone-filter-fields{display:none}
 #content.mobile-register-surface .phone-filter-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:0 0 10px}
 #content.mobile-register-surface .phone-filter-panel :is(.search-core-filters,.numeric-filters,.search-source-checks,.multiple-location-filters){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;padding:0}
 #content.mobile-register-surface .phone-filter-panel .search-core-filters label:last-child{grid-column:auto}
 #content.mobile-register-surface .phone-filter-panel :is(label,fieldset){min-width:0;margin:0;font-size:13px}
 #content.mobile-register-surface .phone-filter-panel :is(input:not([type=checkbox]),select){box-sizing:border-box;min-width:0;width:100%;margin:2px 0 0}
 #content.mobile-register-surface .phone-filter-panel :is(.phone-quick-filter,.catalogue-checks label,.search-quick-filter,.almost-ready-filter legend label),#content.mobile-register-surface [data-phone-filter-group=quick] label{display:flex;align-items:center;gap:8px;min-height:44px;padding:2px 0}
 #content.mobile-register-surface .phone-filter-panel input[type=checkbox]{margin:0;flex:none}
 #content.mobile-register-surface .phone-filter-panel .lmf-current-extra-filters{display:block;margin:0;padding:0;border:0}
 #content.mobile-register-surface .phone-filter-panel .range-filter{padding:0;border:0}
 #content.mobile-register-surface .phone-filter-panel .current-value-filter>div{display:flex;align-items:center;gap:4px}
 /* B4 OF2 (Sol's review): No and Līdz are one capsule on a phone too (the family draws the shared outline), so nothing stands between the two halves and the dash */
 #content.mobile-register-surface .phone-filter-panel :is(.current-value-filter,.range-filter)>div{gap:0}
 #content.mobile-register-surface .phone-filter-panel :is(.current-value-filter,.range-filter)>div>span[aria-hidden]{display:grid;place-items:center;align-self:stretch;height:auto;padding-inline:3px}
 #content.mobile-register-surface .phone-filter-panel :is(.current-value-filter,.range-filter)>div{align-items:center;margin-top:2px}
 #content.mobile-register-surface .phone-filter-panel :is(.current-value-filter,.range-filter)>div>input[type="number"]{margin-top:0;margin-bottom:0}
 #content.mobile-register-surface .phone-filter-panel :is(.current-value-filter,.range-filter)>div>span[aria-hidden]{align-self:center;height:var(--ui-h-field)}
 #content.mobile-register-surface .phone-filter-panel .current-value-filter input{flex:1;width:0}
 #content.mobile-register-surface .phone-filter-panel .almost-ready-filter{padding:8px 0 0;border:0}
 #content.mobile-register-surface .phone-filter-panel .near-margin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}
 #content.mobile-register-surface .phone-filter-panel :is(.phone-filter-help,.phone-near-margins)>summary{min-height:36px;display:flex;align-items:center;font-size:12px;color:var(--forest,#285c43);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
 #content.mobile-register-surface .phone-filter-panel .filter-evidence-help{margin:0 0 6px;font-size:12px;line-height:1.45}
 #content.mobile-register-surface .phone-filter-panel :is(.location-filters,.catalogue-checks):empty{display:none}
 #content.mobile-register-surface .phone-filter-panel .filter-footer{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:0;margin:0;border:0}
 #content.mobile-register-surface .phone-filter-panel .filter-footer :is(input,select){max-width:none}
 #content.mobile-register-surface .phone-filter-done{padding:6px 0 10px;border-top:1px solid var(--line,#d8e0d6)}
 #content.mobile-register-surface .phone-filter-done button{width:100%;min-height:44px;padding:6px 12px;font-size:15px;background:var(--forest,#285c43);color:#fff;border:0;border-radius:5px}
 #content.mobile-register-surface .phone-filter-panel :is(button,summary,input,select):focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:1px}
}
}

/* /forest/workspace-table-hover.css */
@layer legacy{/* Compact evidence typography. Keep table cells and their density independent. */
.table-hover-panel{--panel-body:.8125rem;--panel-title:.875rem;--panel-note:.75rem;position:fixed;z-index:1950;display:flex;flex-direction:column;box-sizing:border-box;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:hidden;background:var(--surface,#fff);color:var(--ink,#20362c);border:1px solid var(--line,#d8e0d6);border-radius:8px;box-shadow:var(--menu-shadow,0 8px 24px #20362c26);font-family:inherit;font-size:var(--panel-body);font-weight:400;line-height:1.5;text-align:left}
.table-hover-panel[hidden]{display:none}.table-hover-panel:focus{outline:2px solid var(--focus,#285c43);outline-offset:0}
.table-hover-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;background:var(--paper,#f4f6f2);border-bottom:1px solid var(--line,#d8e0d6);flex:none}
.table-hover-heading h2{font-size:var(--panel-title);font-weight:620;line-height:1.4;letter-spacing:-.01em;margin:0;overflow-wrap:anywhere}
.table-hover-heading [data-table-hover-close]{display:flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:4px;color:var(--forest,#285c43);background:transparent;border:0;border-radius:4px;flex:none;cursor:pointer}
.table-hover-heading [data-table-hover-close]:hover{background:var(--mint,#e3eee4)}.table-hover-heading [data-table-hover-close]:active{background:var(--line,#d8e0d6)}
.table-hover-heading svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.table-hover-body{padding:10px 12px;overflow:auto;overscroll-behavior:contain;min-height:0}.table-hover-body p{max-width:65ch;margin:0 0 8px;overflow-wrap:anywhere}
.table-hover-body :is(h3,h4){font-size:var(--panel-body);font-weight:620;line-height:1.5;letter-spacing:0;margin:14px 0 6px}
.table-hover-body strong{font-weight:620}
.table-hover-body :is(.dense-facts-measures,.mobile-detail-measures){margin:8px 0 12px}
.table-hover-body :is(.dense-facts-measures,.mobile-detail-measures)>div{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:baseline;gap:6px 12px;padding:5px 0;border-bottom:1px solid var(--line,#d8e0d6)}
.table-hover-body :is(.dense-facts-measures,.mobile-detail-measures) dt{color:var(--muted,#536257);font-size:var(--panel-body);font-weight:400;line-height:1.5;overflow-wrap:anywhere}
.table-hover-body :is(.dense-facts-measures,.mobile-detail-measures) dd{margin:0;color:var(--ink,#20362c);font-size:var(--panel-body);font-weight:620;line-height:1.5;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.table-hover-body .dense-species-detail-list{margin:10px 0 0}
.table-hover-body .dense-species-detail-list>li{padding:8px 0 4px}
.table-hover-body .dense-species-detail-heading{gap:6px;line-height:1.5}
.table-hover-body .dense-species-detail-heading>span{font-size:var(--panel-note);color:var(--muted,#536257)}
.table-hover-body :is(.dense-facts-source,.dense-species-legend){margin-top:12px;padding-top:6px}
.table-hover-body :is(.dense-facts-source,.dense-species-legend) summary{display:list-item;font-size:var(--panel-body);font-weight:620;padding:4px 0;line-height:1.5}
.table-hover-body summary::marker{color:var(--forest,#285c43)}
.table-hover-body .dense-facts-source p{font-size:var(--panel-note);line-height:1.5;color:var(--muted,#536257)}
.table-hover-body .table-panel-state{margin:0 0 10px;padding:8px 10px;background:var(--mint,#e3eee4);color:var(--forest,#285c43);border-radius:6px;font-size:var(--panel-body);font-weight:620;line-height:1.5}
.table-hover-body .table-panel-records{margin:0 0 12px}
.table-hover-body .table-panel-note{margin:8px 0;padding:8px 10px;background:var(--paper,#f4f6f2);color:var(--muted,#536257);border-radius:6px;font-size:var(--panel-note);line-height:1.6;overflow-wrap:anywhere}
/* Score, inventory and expanded-phone details share the evidence type roles. */
.table-hover-body :is(.score-basis,.score-term-list dl){gap:0;margin:8px 0 12px}
.table-hover-body :is(.score-basis,.score-term-list dl)>div{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.5fr);align-items:baseline;gap:6px 12px;padding:5px 0;border-bottom:1px solid var(--line,#d8e0d6)}
.table-hover-body :is(.score-basis,.score-term-list) dt{font-size:var(--panel-body);font-weight:400;line-height:1.5;color:var(--muted,#536257);overflow-wrap:anywhere}
.table-hover-body :is(.score-basis,.score-term-list) dd{font-size:var(--panel-body);font-weight:620;line-height:1.5;color:var(--ink,#20362c);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.table-hover-body .score-basis-note{display:block;font-size:var(--panel-note);font-weight:400;line-height:1.5;color:var(--muted,#536257)}
.table-hover-body :is(.score-details,.score-term-list>details)>summary{font-size:var(--panel-body);font-weight:620;line-height:1.5;padding:5px 0;cursor:pointer}
.table-hover-body.mobile-inventory-body>p:first-child:has(strong){margin:0 0 10px;padding:8px 10px;background:var(--mint,#e3eee4);color:var(--forest,#285c43);border-radius:6px;line-height:1.5}
@media(max-width:1000px),(pointer:coarse){.table-hover-body :is(.score-details,.score-term-list>details)>summary{min-height:44px;box-sizing:border-box}}
@media(max-width:700px){
 .mobile-property-detail{--panel-body:.875rem;--panel-title:.9375rem;--panel-note:.8125rem;font-size:var(--panel-body);font-weight:400;line-height:1.5}
 .mobile-detail-heading h2{font-size:var(--panel-title);font-weight:620;line-height:1.4}
 .mobile-detail-heading h2 span{font-size:var(--panel-body);font-weight:400;line-height:1.5}
 .mobile-property-detail .mobile-detail-measures{margin:8px 0 12px}
 .mobile-property-detail .mobile-detail-measures>div{align-items:baseline;gap:6px 12px;padding:5px 0}
 .mobile-property-detail .mobile-detail-measures dt{font-weight:400;line-height:1.5}
 .mobile-property-detail .mobile-detail-measures dd{font-weight:620;line-height:1.5}
 .mobile-property-detail .mobile-inventory-explanation p{max-width:65ch;font-size:var(--panel-note);line-height:1.6}
 .mobile-property-detail .dense-species-pair{flex-wrap:wrap;justify-content:flex-end;white-space:normal;row-gap:4px;max-height:none}
 .mobile-property-detail strong{font-weight:620}
 .mobile-register-surface .page-heading h1{font-size:20px;line-height:1.25}
}
@media(max-width:360px){
 .table-hover-body :is(.dense-facts-measures,.mobile-detail-measures,.score-basis,.score-term-list dl)>div,.mobile-property-detail .mobile-detail-measures>div{grid-template-columns:minmax(0,1fr);gap:2px}
 .table-hover-body :is(.dense-facts-measures,.mobile-detail-measures) dd,.mobile-property-detail .mobile-detail-measures dd{text-align:left}
 .mobile-property-detail .dense-species-pair{justify-content:flex-start}
}
.table-hover-panel :is(button,summary,[tabindex]):focus-visible{outline:2px solid var(--focus,#285c43);outline-offset:-2px}
.table-hover-tooltip{display:block;overflow:auto;white-space:pre-line;padding:10px 12px;overflow-wrap:anywhere}
.table-hover-panel ::selection{background:var(--mint,#e3eee4);color:var(--ink,#20362c)}
@media(max-width:1000px),(pointer:coarse){.table-hover-panel{--panel-body:.875rem;--panel-title:.9375rem;--panel-note:.8125rem}.table-hover-heading [data-table-hover-close],.table-hover-panel summary{min-height:44px}.table-hover-heading [data-table-hover-close]{min-width:44px}}
@media(max-width:360px){.table-hover-body{padding:10px}}
@media(forced-colors:active){.table-hover-panel{border-color:CanvasText}.table-hover-heading [data-table-hover-close]{color:CanvasText}}
}

/* /forest/workspace-typography.css */
@layer legacy{/* Compact working typography; data cells keep their independent density and geometry. */
:root{
 --type-page:1.375rem;--type-detail:1.125rem;--type-section:1rem;
 --type-subsection:.875rem;--type-metric:1.125rem;
 --type-working:.875rem;--type-fact:.8125rem;--type-note:.75rem;
}
@media screen{
 body{font-size:var(--type-working);line-height:1.45}
 dialog{font-family:inherit;font-size:var(--type-working);line-height:1.45}
 button,input,select,textarea{font-size:var(--type-working)}
 .accounts-section :is(input,select),.mobile-column-choices label{font-size:var(--type-working)}
 .mobile-column-choices label{margin:0}
 :where(#app,dialog) h2{font-size:18px;line-height:1.35;font-weight:620}
 :where(#app,dialog) h3{font-size:var(--type-subsection);line-height:1.4;font-weight:620}
 .page-heading h1,.dashboard-header h1{
  font-size:var(--type-page);font-weight:700;line-height:1.25;letter-spacing:-.025em;
  text-wrap:balance;overflow-wrap:anywhere;
 }
 .catalogue-dense .page-heading h1{font-size:22px}
 .mobile-register-surface .page-heading h1{font-size:var(--type-page)}
 .login-card h1{font-size:22px;line-height:1.25;letter-spacing:-.025em}
 .contacts-detail-title h2,.parcel-title h2{
  font-size:var(--type-detail);line-height:1.3;font-weight:620;letter-spacing:-.02em;
  overflow-wrap:anywhere;
 }
 #task-dialog h2,.comment-editor h2,#more-dialog h2,.multi-sort-heading h2{
  font-size:18px;line-height:1.35;font-weight:620;
 }
 .dashboard-section-head h2,.dashboard-week-heading h2,.dashboard-section h2,
 .planner-agenda-heading h2,.call-log h2,
 .shortlist-empty h2,.dashboard-suggestions-heading
{
  font-size:var(--type-section);line-height:1.35;font-weight:620;letter-spacing:-.015em;
 }
 .dashboard-trip h2{font-size:14px;line-height:1.4;font-weight:620}
 .dashboard-trip h3{font-size:18px;line-height:1.3;font-weight:620;margin:6px 0 10px}
 .dashboard-week-date strong{font-size:18px;line-height:1.35;font-weight:620;font-variant-numeric:tabular-nums}
 .dashboard-recommendation h3{font-size:var(--type-section);line-height:1.4;font-weight:620}
 .dashboard-section-head{padding-block:14px}
 .dashboard-controls-label{font-size:13px;font-weight:400}
 .dashboard-empty,.comm-placeholder p{font-size:14px;line-height:1.55}
 .dashboard-trip>p{font-size:14px;line-height:1.55;max-width:65ch}
 .accounts-person h2{font:var(--ui-t-row)}
 .contacts-comments>h3,.contacts-history-heading h3,.call-person h3,.parcel-main>.source-comment-heading h3,.parcel-aside h3{font-size:var(--type-subsection);line-height:1.4;font-weight:620}
 .contacts-table .name{font-size:var(--type-working);font-weight:620}
 .contacts-table td{padding-block:12px}
 .contacts-detail-header{padding-block:20px 16px}
 .contacts-working-note p,.contacts-comment p,.comm-message-body{max-width:70ch;font-size:var(--type-working);line-height:1.55}
 .comm-message h2{font-size:18px;line-height:1.35;font-weight:620;letter-spacing:-.015em}
 .next-cohort-bar+.comm-connections{margin-top:12px}
 .board-note h3{font-size:var(--type-subsection);line-height:1.45;font-weight:620}
 .board-note-body{font-size:var(--type-working);line-height:1.55}
 .board-compose h2,.board-empty h2{font-size:var(--type-section);line-height:1.4;font-weight:620}
 .shortlist-selection-copy strong{font-size:var(--type-section);line-height:1.4;font-weight:620}
 .comparison-number{font-size:16px!important;line-height:1.35;font-weight:620}
 .comparison-fact .comparison-number{font-size:16px!important}
 .property-row-title h2{font-size:var(--type-section);line-height:1.35;font-weight:620}
 .next-value-priorities>.next-value-row>strong{
  font-size:var(--type-metric);font-weight:620;line-height:1.3;font-variant-numeric:tabular-nums;
 }
 .parcel-stats dd{font-size:18px;line-height:1.35}
 .forest-analysis h3{font-size:var(--type-subsection);line-height:1.4}
 .forest-summary dd{font-size:16px;line-height:1.35}
 
 
 
 

 /* Repeated working roles must not escape through older fixed-size component rules. */
 .planner-task-title,.comm-row-top strong,.accounts-user-row h3,.prospect-property strong,
 .prospect-owner-address strong,.next-property-check,.next-before-map .next-property-reason

{
  font-size:var(--type-working);line-height:1.45;
 }
 .parcel-main,.parcel-aside{font-size:var(--type-working)}
 .page-heading,.dashboard-header{margin-bottom:20px}
 .dashboard-controls{margin-bottom:20px}
 .dashboard-day,.dashboard-workbench,.dashboard-recommendations{column-gap:24px}
 .dashboard-task{padding-block:12px}
 .dashboard-record{padding-block:12px}
 .dashboard-empty{padding-block:20px}
 .dashboard-aside{gap:20px}
 .dashboard-task-meta{margin-top:4px}
 .dashboard-trip{padding:20px}
 .dashboard-trip h2{margin-bottom:12px}
 .dashboard-trip-stops{margin-block:16px}
 .dashboard-recommendation{padding-block:18px}
 .comm-detail{padding:20px}
 .comm-message h2{margin-block:18px 10px}
 .comm-message-actions{margin-top:24px;padding-top:16px}
 .comm-compose{padding:22px}
 .accounts-person{margin-bottom:24px;padding-bottom:18px}
 .accounts-section{margin-bottom:24px;padding-bottom:24px}
 .accounts-section h2,.accounts-access h2{margin-bottom:14px}
 .accounts-layout{column-gap:32px}
 .accounts-user-row{padding-block:18px}

 /* Give expanded evidence the same fact/label/note hierarchy as table information. */
 .score-overview{font-size:var(--type-fact);line-height:1.45;padding-block:8px 12px;margin-bottom:12px}
 .score-overview h3{font-size:var(--type-subsection);font-weight:620;line-height:1.4}
 .score-overview header>button{font-size:var(--type-fact)}
 .score-overview :is(.score-details,.score-term-list>details)>summary{
  font-family:inherit;font-size:var(--type-fact);font-weight:620;line-height:1.45;
  min-height:28px;box-sizing:border-box;padding-block:5px;cursor:pointer;
 }
 .score-overview :is(.score-basis,.score-term-list dl){gap:0;margin-block:8px 12px}
 .score-overview :is(.score-basis,.score-term-list dl)>div{
  grid-template-columns:minmax(0,10.5rem) minmax(0,1fr);align-items:baseline;
  gap:4px 12px;padding-block:4px;
 }
 .score-overview :is(.score-basis,.score-term-list) :is(dt,dd){font-size:var(--type-fact);line-height:1.45;min-width:0;overflow-wrap:anywhere}
 .score-overview :is(.score-basis,.score-term-list) dd{font-weight:400;font-variant-numeric:tabular-nums}
 .score-overview .score-basis-note{display:block;font-size:var(--type-note);font-weight:400;line-height:1.5;color:var(--muted)}
 .scoring-dialog label,.score-group>summary{font-size:var(--type-fact);line-height:1.45}
 .scoring-dialog :is(.score-group-switch,.score-datasets label,.score-metric-title,.score-unavailable label){margin:0;min-height:32px}
 :is(.contacts-disclosure,.forest-disclosure,.accounts-additional-features)>summary{
  font-family:inherit;font-size:var(--type-fact);font-weight:620;line-height:1.45;
 }
 .contacts-disclosure summary{font-size:var(--type-fact);line-height:1.45}
 .contacts-disclosure{margin-top:16px}
 .contacts-disclosure summary{padding-block:8px}
 :is(.next-edit-disclosure,.next-financial-inputs,.next-restriction-claims,
 .timber-scenario,.timber-more,.timber-saved)>summary{
  font-family:inherit;font-size:var(--type-fact);font-weight:620;line-height:1.45;
 }
 .next-source-provenance pre{font-family:inherit}
 .property-facts{font-size:var(--type-fact);line-height:1.45}
 .forest-analysis table{font-size:var(--type-fact);line-height:1.45}
 .forest-analysis .source-note{font-size:var(--type-fact);line-height:1.5}
 .forest-distributions{gap:20px;margin-block:18px}
 .forest-summary{gap:16px 24px;margin-block:14px 10px}
 .parcel-main .detail-source,.parcel-main .source-note{font-size:var(--type-fact);line-height:1.5}
}
@media screen and (min-width:1001px) and (pointer:fine){.dashboard-week-day{min-height:140px}}
@media screen and (max-width:1050px){
 .contacts-table td{padding-block:0}
 .contacts-table .contacts-next-cell{padding-top:10px}
}
@media screen and (pointer:coarse){:root{--type-page:1.25rem;--type-detail:1.125rem;--type-metric:1.125rem;--type-working:.9375rem;--type-subsection:.9375rem}}   /* B4 DS4: the touch Text on any coarse pointer, as the family tokens */
@media screen and (max-width:700px){
 :root{--type-page:1.25rem;--type-detail:1.125rem;--type-metric:1.125rem;--type-working:.9375rem;--type-subsection:.9375rem}   /* B4 DS4: 15 on a phone, the touch Text */
 .login-card h1{font-size:20px}
 .dashboard-trip h3{font-size:16px}
 
 .property-facts{grid-template-columns:minmax(0,1fr);gap:0}
 .property-facts>div{min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px}
 .property-facts :is(dt,dd){min-width:0;overflow-wrap:anywhere}
}
@media screen and (max-width:900px){
 .workspace-topnav nav>a,.workspace-topnav #browse-toggle,.workspace-topnav #nav-more{
  white-space:normal;overflow-wrap:anywhere;height:auto;
 }
 .workspace-topnav :is(.sidebar-item-label,.nav-label-full){min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
}
@media screen and (max-width:1000px),screen and (pointer:coarse){
 .score-overview{--type-fact:.875rem;--type-note:.8125rem}
 .score-overview :is(.score-details,.score-term-list>details)>summary{min-height:44px}
 .scoring-dialog :is(.score-group-switch,.score-datasets label,.score-metric-title,.score-unavailable label){min-height:44px}
 :is(.next-edit-disclosure,.next-financial-inputs,.next-restriction-claims,
 .timber-scenario,.timber-more,.timber-saved,.score-unavailable)>summary{min-height:44px;box-sizing:border-box}
 #app #content :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color]),select,textarea),
 dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color]),select,textarea),
 .login-language select{font-size:16px;min-height:44px}
 .multi-sort-heading>button,.comment-edit-action{min-width:44px;min-height:44px}
 #set-next,#mobile-logout{min-width:44px;min-height:44px}
}
@media screen and (max-width:700px){
 .score-overview :is(.score-basis,.score-term-list dl)>div{grid-template-columns:minmax(0,1fr);gap:2px}
}
@media screen and (max-width:480px){
 .comm-folders{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:360px){
 .dashboard-header{flex-wrap:wrap}
 .dashboard-header h1{flex-basis:100%}
 .dashboard-header .actions{width:100%;justify-content:flex-start}
 .dashboard-switch{grid-template-columns:repeat(auto-fit,minmax(min(100%,6em),1fr))}
 .dashboard-switch button>span{min-width:0;overflow-wrap:anywhere}
 .dashboard-section-head{flex-wrap:wrap;align-items:flex-start}
 .dashboard-section-head h2{flex-basis:100%}
 .dashboard-section-head a{text-align:left}
}
}

/* /forest/workspace-property-focus.css */
@layer legacy{/* FOREST property workbench: flat measurements, quiet details, one optional map. */
.property-focus-overview .property-focus-sources{margin:0;border-bottom:1px solid var(--line);padding:0}
.property-focus-overview .property-focus-sources>summary{display:flex;align-items:center;gap:8px;min-height:36px;padding:7px 0;box-sizing:border-box;color:var(--forest);font-size:13px;font-weight:400;line-height:1.4;list-style:none;cursor:pointer}
.property-focus-overview .property-focus-sources>summary::-webkit-details-marker{display:none}
.property-focus-overview .property-focus-sources>summary::before{content:"";display:block;width:14px;height:14px;flex:0 0 14px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;transform:rotate(-90deg)}
.property-focus-overview .property-focus-sources[open]>summary::before{transform:rotate(0)}
.property-sources-body{padding:6px 0 16px;font-size:13px;line-height:1.5;min-width:0}
.property-sources-body :is(h3,h4){margin:16px 0 8px}
.property-sources-body :is(p,li){max-width:72ch;overflow-wrap:anywhere}
.property-sources-body dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;margin:8px 0 16px}
.property-sources-body dl>div{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;border-bottom:1px solid var(--line);padding:5px 0}
.property-sources-body dt{font-weight:400;color:var(--muted);overflow-wrap:anywhere}
.property-sources-body dd{margin:0;overflow-wrap:anywhere;text-align:left}
.property-sources-body .next-source-group{margin:8px 0}
.property-sources-body .next-source-group>summary{padding:8px 0;min-height:36px;cursor:pointer;color:var(--forest)}
.property-sources-body .next-source-group>summary small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:3px}
.property-sources-body .next-source-records{padding-inline-start:20px}
.property-sources-body pre{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
@media(max-width:740px){.property-sources-body dl{grid-template-columns:minmax(0,1fr)}.property-focus-overview .property-focus-sources>summary{min-height:44px}}
.property-focus-sectionbar{display:flex;align-items:center;flex-wrap:wrap;gap:4px 20px}
.property-focus-sectionbar>.detail-tabs{flex:1 1 auto;min-width:0;margin-block:0}
.property-focus-nearby{display:flex;align-items:center;gap:8px;padding:6px 20px 6px 0;flex:0 0 auto;font-size:13px;line-height:1.4}
.property-focus-nearby>label{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted);font-size:inherit}
.property-focus-nearby :is(select,button){width:auto;min-height:36px;margin:0;padding:6px 9px;font:inherit;line-height:1.4;border:1px solid var(--line);border-radius:6px;background:var(--paper,#fff);color:var(--ink)}
.property-focus-nearby button{color:var(--forest);font-weight:620}
.property-focus-nearby button:hover:not(:disabled){background:var(--mint)}
.property-focus-nearby button:disabled{opacity:.55;cursor:default}
.property-focus-nearby :is(select,button):focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.nearby-harvest-applied{font-size:13px;font-weight:400}
.nearby-harvest-coverage{font-size:12px;color:var(--muted)}
@media(max-width:800px),(pointer:coarse){.property-focus-nearby{padding-inline:20px;flex-wrap:wrap}.property-focus-nearby :is(select,button){min-height:44px;font-size:16px}}
@media(max-width:560px){.property-focus-sectionbar{gap:0}.property-focus-sectionbar>.detail-tabs{flex-basis:100%}.property-focus-nearby{padding-block:4px 10px}}
#detail-dialog.property-focus-dialog{width:min(1380px,calc(100vw - 32px));padding:0;color:var(--ink);border-radius:14px}
#detail-dialog.property-focus-dialog .parcel-title{position:relative;padding:20px 232px 14px 24px}
#detail-dialog.property-focus-dialog .parcel-title h2{font-size:18px;line-height:1.3;margin:0;font-weight:620;overflow-wrap:anywhere}
.property-focus-dialog .parcel-subline{gap:6px 16px;align-items:center;font-size:13px}
.property-focus-dialog .parcel-title-line{align-items:center;flex-wrap:wrap;gap:10px 16px}
.property-focus-markers{display:flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:100%}
.property-focus-markers button:not(.b){display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;width:auto;min-width:0;min-height:36px;padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:var(--paper,#fff);color:var(--ink);font-family:inherit;font-size:13px;line-height:1.3}
.property-focus-markers .icon{width:16px;height:16px;flex:0 0 16px}
.property-focus-markers button:not(.b)[aria-pressed=true]{color:var(--forest);background:var(--mint);border-color:var(--forest)}
.property-focus-markers button:not(.b):hover:not(:disabled){background:var(--mint);color:var(--forest)}
.property-focus-markers button:disabled{opacity:.55;cursor:default}
.property-focus-markers button[aria-busy=true]{cursor:wait}
.property-focus-map-toolbar button:hover{background:var(--mint)}
#detail-dialog.property-focus-dialog>.close-dialog{top:20px;right:20px;width:36px;height:36px;min-height:36px;padding:6px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:6px;background:var(--paper,#fff);color:var(--forest);box-shadow:none}
#detail-dialog.property-focus-dialog>.close-dialog .icon{width:18px;height:18px}
#detail-dialog.property-focus-dialog>.close-dialog:hover{background:var(--mint)}
.property-focus-dialog :is(button,a,summary):focus-visible{outline:2px solid var(--forest);outline-offset:3px}
#detail-dialog.property-focus-dialog .parcel-layout{grid-template-columns:minmax(0,1fr) 232px}
#detail-dialog.property-focus-dialog .parcel-main{padding:18px 24px 22px}
#detail-dialog.property-focus-dialog .parcel-aside{padding:18px 18px;background:#f7f8f4}
.property-focus-dialog .detail-tabs{gap:20px}
.property-focus-dialog .detail-tabs button{font-size:14px;min-height:44px}
.property-focus-dialog .parcel-aside .next-edit-disclosure{margin-top:16px}
.property-focus-overview .score-overview{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 16px;padding:0 0 8px;margin:0 0 16px;border-bottom:1px solid var(--line)}
.property-focus-overview .score-overview header{justify-content:flex-start;gap:8px 16px;margin:0;min-width:0}
.property-focus-overview .score-overview h3{font-size:14px;line-height:1.4}
.property-focus-overview .score-overview header>button{font-size:12px;min-height:32px;padding:3px 9px}
.property-focus-overview h3{font-size:14px;font-weight:620;line-height:1.4;margin:0 0 8px}
.property-focus-facts{margin:0 0 16px;min-width:0}
.property-focus-facts>dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:0}
.property-focus-facts dl>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.property-focus-facts dt{color:var(--muted);font-size:13px;line-height:1.4}
.property-focus-facts dd{margin:0;color:var(--ink);font-size:18px;font-weight:620;font-variant-numeric:tabular-nums;line-height:1.4;overflow-wrap:anywhere}
.property-focus-overview .next-financial-lenses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:0 0 16px;padding:12px 0 8px;border:0;border-block:1px solid var(--line);border-radius:0;background:transparent;min-width:0}
.property-focus-overview .next-financial-lenses>h3{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0;margin:0}
.property-focus-overview .next-value-priorities{display:contents}
.property-focus-overview .next-financial-lenses>h3,.property-focus-overview .next-financial-inputs{grid-column:1/-1}
.property-focus-overview .next-value-row{display:flex;flex-direction:column;gap:4px;padding:0;margin:0;border:0;background:transparent;min-width:0}
.property-focus-overview .next-value-row h4{margin:0;font-size:13px;color:var(--muted);font-weight:400;line-height:1.4;overflow-wrap:anywhere}
.property-focus-overview .next-value-row>strong{font-size:18px;font-weight:620;font-variant-numeric:tabular-nums;line-height:1.4;overflow-wrap:anywhere;min-width:0}
.property-focus-overview [data-value-lens="property"]{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:baseline}
.property-focus-overview .next-property-context{margin:0;border:0}
.property-focus-overview .next-financial-inputs{margin:0;border:0;padding:0}
.property-focus-overview :is(.next-financial-inputs,.property-focus-basis,.property-focus-context,.property-focus-comment,.score-overview .score-details)>summary{font-family:inherit;color:var(--forest);min-height:36px;box-sizing:border-box;cursor:pointer;padding:7px 0;line-height:1.4;font-size:13px;font-weight:400}
.property-focus-overview :is(.property-focus-basis,.property-focus-context,.property-focus-comment){margin:0;border-bottom:1px solid var(--line);padding:0}
/* Use the established 14px chevron, alignment and type for all Overview disclosures. */
.property-focus-overview :is(.next-financial-inputs,.property-focus-basis,.property-focus-context,.property-focus-comment,.score-details)>summary{display:flex;align-items:center;gap:8px;list-style:none}
.property-focus-overview :is(.next-financial-inputs,.property-focus-basis,.property-focus-context,.property-focus-comment,.score-details)>summary::-webkit-details-marker{display:none}
.property-focus-overview :is(.next-financial-inputs,.property-focus-basis,.property-focus-context,.property-focus-comment,.score-details)>summary::before{content:"";display:block;width:14px;height:14px;flex:0 0 14px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;transform:rotate(-90deg)}
.property-focus-overview :is(.next-financial-inputs,.property-focus-basis,.property-focus-context,.property-focus-comment,.score-details)[open]>summary::before{transform:rotate(0)}
@media(forced-colors:active){.property-focus-overview :is(.next-financial-inputs,.property-focus-basis,.property-focus-context,.property-focus-comment,.score-details)>summary::before{background:CanvasText}}
.property-focus-overview details>p{max-width:70ch;line-height:1.5}
.property-focus-map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px}
.property-focus-map-toolbar h3{margin:0}
.property-focus-map-toolbar button{min-height:36px;font-size:13px;padding:5px 10px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--forest)}
.property-focus-map-toolbar button[aria-expanded=false]{background:var(--mint);border-color:var(--forest);font-weight:620}
.property-focus-overview .property-focus-map-layout{display:block;margin:0 0 12px}
.property-focus-overview .next-overview-map[hidden]{display:none}
#detail-dialog.property-focus-dialog .property-focus-overview .detail-map{height:270px;margin:8px 0 0;border-radius:8px;overflow:hidden}
.property-focus-overview .next-overview-map>.source-note{font-size:12px;margin:5px 0 0}
.property-focus-overview .next-overview-summary{padding:0;margin:10px 0;background:transparent;border:0}
.property-focus-overview .next-comparison-explanation{margin:8px 0}
/* Forest map failures and imagery credits stay in the shared live status slot. */
.property-focus-forest p.lmf-map-status[hidden]{display:none}
/* Paired facts share label and figure tracks when localized labels wrap. */
@media(width < 1200px){
 .property-focus-facts dl>div,.property-focus-overview .next-value-priorities>.next-value-row{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;grid-row:span 2;align-items:start;row-gap:4px}
}
/* Wide Overview: two semantic ledgers, with the same label/value rhythm. */
@media(min-width:1200px){
 .property-focus-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:0 24px}
 .property-focus-overview>*{grid-column:1/-1;min-width:0}
 .property-focus-overview>.property-focus-facts{grid-column:1;margin:0 0 16px}
 .property-focus-overview>.next-financial-lenses{grid-column:2;display:block;margin:0 0 16px;padding:0;border:0}
 .property-focus-facts>h3,.property-focus-overview .next-financial-lenses>h3{display:flex;align-items:center;min-height:24px;margin:0 0 8px}
 .property-focus-facts>dl{grid-template-columns:minmax(0,1fr);gap:0}
 .property-focus-facts dl>div,.property-focus-overview .next-value-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto);align-items:baseline;gap:16px;padding:4px 0;border-bottom:1px solid var(--line)}
 .property-focus-facts dd,.property-focus-overview .next-value-row>strong{text-align:right}
}
@media(max-width:1000px){
 #detail-dialog.property-focus-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 #detail-dialog.property-focus-dialog .parcel-title{padding:18px 48px 12px 18px}
 .property-focus-dialog .parcel-title-line h2{flex-basis:100%}
 .property-focus-markers button{min-height:44px;padding:7px 8px;font-size:12px}
 #detail-dialog.property-focus-dialog>.close-dialog{top:14px;right:14px;width:36px;height:36px}
 #detail-dialog.property-focus-dialog .detail-tabs{padding:0 18px;gap:16px}
 #detail-dialog.property-focus-dialog .parcel-layout{grid-template-columns:minmax(0,1fr)}
 #detail-dialog.property-focus-dialog .parcel-main{padding:18px}
 #detail-dialog.property-focus-dialog .parcel-aside{padding:18px;border-top:1px solid var(--line)}
 .property-focus-map-toolbar button{min-height:44px}
 .property-focus-overview :is(.next-financial-inputs,.property-focus-basis,.property-focus-context,.property-focus-comment,.score-details)>summary{min-height:44px!important;padding-block:12px!important}
 .property-focus-overview .score-overview header>button{min-height:44px}
}
@media(max-width:360px){.property-focus-facts>dl{gap:8px 12px}.property-focus-overview .next-financial-lenses{grid-template-columns:minmax(0,1fr)}.property-focus-overview [data-value-lens="property"]{display:flex}}

.property-focus-marker-recovery{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex-basis:100%;font-size:12px;color:var(--forest);}
.property-focus-marker-recovery button{min-height:36px;padding:6px 10px;}
@media(max-width:1000px){.property-focus-marker-recovery button{min-height:44px;}}
@media(pointer:coarse){
 @media(min-width:801px){#detail-dialog.property-focus-dialog .parcel-title{padding-right:260px}}
 .property-focus-markers button{min-height:44px}
 #detail-dialog.property-focus-dialog>.close-dialog{width:44px;height:44px;min-height:44px}
}

/* V2.1 selected local refinements, measured against the 250px Forest Data map. */
#detail-dialog.property-focus-dialog .parcel-title{padding-top:14px;padding-bottom:10px}
#detail-dialog.property-focus-dialog>.close-dialog{top:14px}
.property-focus-dialog .detail-tabs{gap:18px}
.property-focus-dialog .detail-tabs button{font-size:13px;min-height:36px;padding-block:7px}
.property-focus-map-frame{position:relative;isolation:isolate;min-width:0}
#detail-dialog.property-focus-dialog .property-focus-forest .detail-map{height:350px;margin:0;border-radius:8px;overflow:hidden}
.property-focus-map-frame>.lmf-map-tools{position:absolute;z-index:1001;top:10px;right:10px;margin:0;gap:6px;font-size:12px;pointer-events:auto}
.property-focus-map-frame>.lmf-map-tools :is(a,button,summary){min-height:34px;padding:6px 9px;border-radius:6px;background:rgba(255,255,255,.9);font-weight:400;color:var(--forest,#285c43)}
.property-focus-map-frame>.lmf-map-tools :is(a,button,summary):hover{background:var(--paper,#edf1eb)}
.property-focus-map-frame .lmf-map-layer-body{left:auto;right:0;z-index:1002}
.property-focus-forest .next-forest-data>.next-layer-coverage,.property-focus-forest .next-forest-data>.next-first-component{margin-top:14px}
@media(max-width:1000px),(pointer:coarse){
 .property-focus-dialog .detail-tabs button{min-height:44px}
 .property-focus-map-frame>.lmf-map-tools :is(a,button,summary){min-height:44px;padding:8px 10px}
}
@media(max-width:800px){
 #detail-dialog.property-focus-dialog .parcel-title{padding-top:12px;padding-bottom:8px}
 #detail-dialog.property-focus-dialog .detail-tabs{gap:14px}
 #detail-dialog.property-focus-dialog .property-focus-forest .detail-map{height:clamp(220px,45svh,350px)}
 .property-focus-map-frame>.lmf-map-tools{top:8px;right:8px}
 .property-focus-map-frame .lmf-map-layer-body{max-width:calc(100vw - 68px);max-height:260px}
}
@media(max-height:650px) and (min-width:801px){
 #detail-dialog.property-focus-dialog .property-focus-forest .detail-map{height:280px}
}

/* Candidate styles for root's existing shell. No record or source text is clipped. */
.next-stand-species-preview{display:grid;gap:.25rem;min-width:0;flex:1;}
.next-preview-record,.next-preview-remaining{display:block;white-space:normal;overflow-wrap:anywhere;}
.next-preview-record{font-size:inherit;line-height:1.4;}
.next-preview-remaining{font-weight:620;}
.next-reference-component{margin-block:1rem;}
.next-reference-component h4{margin-block:.5rem;}
.next-reference-branch{margin-block:.6rem;}
.next-reference-branch dd{white-space:normal;overflow-wrap:anywhere;}
.next-factual-dates time{white-space:normal;overflow-wrap:anywhere;}
@media(max-width:48rem){.next-stand-summary-main{display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem;}.next-stand-species-preview{width:100%;}}

/* Explicit unconfigured interest state in the established compact Overview. */
.next-planning-why>summary{min-height:36px;box-sizing:border-box;padding-block:8px;cursor:pointer}
@media(max-width:800px),(pointer:coarse){.next-planning-why>summary{min-height:44px;padding-block:12px}}

/* D57: one inherited Forest type scale; recorded figures carry the emphasis. */
.next-forest-data{font-family:inherit;font-size:12px;line-height:16px;color:var(--ink);font-variant-numeric:tabular-nums}
.next-forest-data>.next-stand-register{margin:0}
.next-forest-data .next-stand-visible{min-width:0;padding:0 0 4px}
.next-forest-data .next-stand-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;min-height:44px;padding:0}
.next-forest-data .next-stand-header>.next-stand-summary-main{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:3px 14px;flex:1;min-width:0}
.next-forest-data .next-stand-identity{display:flex!important;align-items:baseline;flex-wrap:wrap;gap:3px 10px!important;min-width:0}
.next-forest-data .next-stand-identity h3{margin:0;font-family:inherit;font-size:13px;line-height:18px;font-weight:620;overflow-wrap:anywhere}
.next-forest-data .next-stand-identity small{font:inherit;color:var(--muted)}
.next-forest-data .next-stand-header [data-map-stand]{flex:none;min-width:44px;min-height:36px;padding:6px 0;font:inherit;white-space:normal}
.next-forest-data .next-stand-measures{display:flex!important;align-items:baseline;flex-wrap:wrap;gap:4px 12px!important;min-width:0;color:var(--ink)!important;font:inherit!important}
.next-forest-data .next-stand-measures>span{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:4px}
.next-forest-data .next-stand-measures strong{font-family:inherit;font-size:12px;line-height:16px;font-weight:620}
.next-forest-data .next-stand-measures small{font:inherit;color:var(--muted)}
.next-forest-data .next-stand-measures .next-codecraft-partial{flex-basis:100%;font:inherit;color:var(--muted)}
.next-forest-data .next-map-stand-status{flex-basis:100%;font:inherit;color:var(--muted)}
.next-forest-data .next-stand-facts{padding:0}
.next-forest-data .next-stand-facts>.next-stand-metadata{display:flex;flex-wrap:wrap;gap:2px 20px;margin:0 0 5px;padding:0;font:inherit}
.next-forest-data .next-stand-metadata>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 5px;min-width:0;max-width:100%;padding:0;font:inherit}
.next-forest-data .next-stand-metadata :is(dt,dd){margin:0;padding:0;font:inherit;text-align:left}
.next-forest-data .next-stand-metadata dt{color:var(--muted)}
.next-forest-data .next-stand-metadata dt::after{content:':' }
.next-forest-data .next-stand-metadata dd{color:var(--ink)}
.next-forest-data .next-primary-scroll{overflow-x:auto;max-width:100%;min-width:0;margin:0 0 2px;scrollbar-color:var(--forest) var(--mint);overscroll-behavior-x:contain}
.next-forest-data .next-component-primary{width:100%;min-width:760px;table-layout:auto;font:inherit}
.next-forest-data .next-component-primary :is(th,td){min-width:0;padding:2px 8px;font-family:inherit;font-size:12px;line-height:16px;font-weight:400;text-align:right;vertical-align:middle;white-space:nowrap}
.next-forest-data .next-component-primary :is(th,td):first-child{position:sticky;left:0;z-index:1;min-width:124px;text-align:left;white-space:normal}
/* Override legacy missing-data colour without changing missing-data attributes or wording. */
.next-forest-data .next-component-table.next-component-primary tbody :is(th,td){background:var(--paper,#fff);color:var(--ink);font-weight:400;outline:0}
.next-forest-data .next-component-table tbody td[data-forest-unknown]{background:var(--paper,#fff)!important}
.next-forest-data .next-component-primary thead th{padding-block:4px;font-weight:620;line-height:16px}
.next-forest-data .next-component-primary thead th:first-child{z-index:2}
.next-forest-data .next-component-primary :is(th,td):last-child{text-align:left;min-width:116px;max-width:180px;white-space:normal}
.next-forest-data .next-component-primary .next-component-label{font:inherit;line-height:16px}
.next-forest-data .next-component-primary .next-component-group{display:inline;margin:0 0 0 5px;font:inherit;font-weight:400;color:var(--muted);white-space:nowrap}
.next-forest-data .next-component-primary .next-component-unit{margin:0;font:inherit;font-weight:400;line-height:16px}
.next-forest-data .next-component-primary caption,.next-component-group-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.next-forest-data .next-reference-value{display:inline-flex;align-items:center;justify-content:flex-end;min-height:24px;max-width:100%;border-radius:3px;font:inherit;cursor:help}
.next-forest-data .next-reference-value strong{font-weight:700}
.next-forest-data td[data-age-emphasis="past-guideline"] .next-reference-value strong{color:#a33832;font-weight:700}
.next-forest-data .next-reference-value:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.next-forest-data .next-measurement-warning{display:block;max-width:20ch;margin:3px 0 0;font:inherit;font-weight:400;color:#81551f;white-space:normal}
/* t21 readiness steps: a counted group's step under its value (muted, one short line, wraps on a phone). */
.next-forest-data .next-readiness-step{display:block;max-width:24ch;margin:2px 0 0 auto;text-align:right;font:inherit;font-size:var(--ui-fs-micro);line-height:1.25;font-weight:400;color:var(--muted);white-space:normal}
.next-forest-data .next-reference-legend,.next-forest-data .next-codecraft-basis,.next-forest-data .next-value-calculation{margin:6px 0;max-width:75ch;font:inherit;color:var(--muted)}
.next-forest-data .next-codecraft-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 28px;margin:8px 0 10px;padding:0 0 8px;border-bottom:1px solid var(--line);font:inherit}
.next-forest-data .next-codecraft-summary>div{display:flex;align-items:baseline;gap:8px;min-width:0;font:inherit}
.next-forest-data .next-codecraft-summary dt{color:var(--muted)}
.next-forest-data .next-codecraft-summary dd{margin:0;font-weight:620;color:var(--ink)}
.next-forest-data .next-codecraft-summary>.next-codecraft-partial dd{font-weight:400}
.next-forest-data details>summary{display:flex;align-items:center;gap:8px;min-height:32px;padding:4px 0;box-sizing:border-box;cursor:pointer;list-style:none;font:inherit;font-weight:400;color:var(--forest)}
.next-forest-data details>summary::-webkit-details-marker{display:none}
.next-forest-data details>summary::before{content:"";display:block;width:14px;height:14px;flex:0 0 14px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;transform:rotate(-90deg)}
.next-forest-data details[open]>summary::before{transform:rotate(0)}
.next-forest-data details>summary:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.next-forest-data .next-stand-secondary{min-width:0;margin:0}
.next-forest-data .next-component-extra{min-width:880px}
.next-forest-data .next-component-extra :is(th,td):is(:nth-child(7),:nth-child(8)){text-align:left;min-width:130px}
.next-forest-data .next-source-tree-count{display:block;margin-top:2px;font:inherit;color:var(--muted)}
.next-forest-data .next-stand-context{display:flex;flex-wrap:wrap;gap:2px 0;margin:0 0 6px;color:var(--muted);font:inherit;overflow-wrap:anywhere}
.next-forest-data .next-stand-context>span:not(:last-child)::after{content:" · ";white-space:pre}
.next-forest-data .next-stand-details>section,.next-forest-data>.next-forest-details>section{min-width:0;margin:8px 0;padding:0;border:0;font:inherit}
.next-forest-data :is(.next-stand-details,.next-forest-details) :is(h4,h5){margin:8px 0 4px;font-family:inherit;font-size:13px;line-height:18px;font-weight:620;color:var(--ink)}
.next-forest-data :is(.next-stand-details,.next-forest-details) p{max-width:75ch;margin:6px 0;font:inherit;line-height:18px;overflow-wrap:anywhere}
.next-forest-data .next-stand-details :is(.next-factual-dates,.next-planning-why,.next-component-help)>dl{display:grid;grid-template-columns:minmax(0,1fr);gap:5px 16px;margin:6px 0}
.next-forest-data :is(.next-stand-details,.next-forest-details) dl>div{min-width:0;font:inherit;overflow-wrap:anywhere}
.next-forest-data .next-stand-details .next-source-extra{margin-top:12px}
.next-forest-data>.next-forest-details{margin-top:4px;border-top:1px solid var(--line)}
.property-focus-forest .detail-map{scroll-margin-top:12px}
.property-focus-forest .detail-map:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
@media(max-width:800px),(pointer:coarse){
 .next-forest-data details>summary,.next-forest-data .next-stand-header [data-map-stand]{min-height:44px;padding-block:8px}
 .next-forest-data .next-stand-facts>.next-stand-metadata{gap:2px 14px}
}
@media(max-width:560px){
 .next-forest-data .next-stand-header>.next-stand-summary-main{display:grid;gap:3px;padding-block:5px}
 .next-forest-data .next-stand-header [data-map-stand]{max-width:100px}
 .next-forest-data .next-component-primary{min-width:740px}
 .next-forest-data .next-component-primary :is(th,td){padding-inline:6px}
 .next-forest-data .next-component-primary :is(th,td):first-child{min-width:112px!important}
 .next-forest-data .next-codecraft-summary{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}
 .next-forest-data .next-codecraft-summary>div{justify-content:space-between;gap:10px}
 .next-forest-data .next-codecraft-summary dd{white-space:nowrap}
 .next-forest-data .next-codecraft-summary dt{overflow-wrap:anywhere}
}
@media(forced-colors:active){.next-forest-data details>summary::before{background:CanvasText}.next-forest-data .next-measurement-warning{color:CanvasText}}

/* D58: the current-filter count stays below the map, including when its canvas is hidden. */
#land-count.catalogue-map-count{flex:none;margin:6px 0 8px;color:var(--muted);font-family:inherit;font-size:12px;line-height:16px;font-weight:400;overflow-wrap:anywhere}
#search-map-section>#land-count.catalogue-map-count{padding:0 10px;margin:6px 0 8px}

/* R1: the passive text hint must not intercept the record action below it. */
#next-table-evidence-hint{pointer-events:none}

/* Tablet identity and workflow actions wrap before the full-width Forest register. */
@media(max-width:1000px){
 #detail-dialog.property-focus-dialog .parcel-title{padding-right:54px}
 #detail-dialog.property-focus-dialog .parcel-title-line h2{flex:1 0 100%;min-width:0;overflow-wrap:break-word;word-break:normal}
 .property-focus-dialog .parcel-title-line>.property-focus-markers{flex-basis:100%}
}
@media(min-width:561px) and (max-width:1000px){
 #detail-dialog.property-focus-dialog .parcel-main{padding:16px 14px 20px}
 #detail-dialog.property-focus-dialog .property-focus-forest .next-component-primary :is(th,td){padding-inline:6px}
 #detail-dialog.property-focus-dialog .property-focus-forest .next-component-primary thead th{white-space:normal;overflow-wrap:normal;word-break:normal}
}
/* Keep the map available while exposing the first recorded groups on a phone. */
@media(max-width:560px){
 #detail-dialog.property-focus-dialog .property-focus-forest .detail-map{height:180px}
}
/* Forest potential: paired areas and stock figures, with aligned label/value tracks. */
.property-focus-overview>.property-focus-facts{grid-column:1/-1}
.property-focus-overview>.property-focus-facts>dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.property-focus-overview>.property-focus-facts>dl>div{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;grid-row:span 2;align-items:start;row-gap:4px;padding:0;border:0}
.property-focus-overview>.property-focus-facts>dl>[data-forest-potential-figure="observed-area"]{grid-column:1;grid-row:1/span 2}
.property-focus-overview>.property-focus-facts>dl>[data-forest-potential-figure="stock"]{grid-column:2;grid-row:1/span 2}
.property-focus-overview>.property-focus-facts>dl>[data-forest-potential-figure="reference-area"]{grid-column:1;grid-row:3/span 2}
.property-focus-overview>.property-focus-facts>dl>[data-forest-potential-figure="stock-density"]{grid-column:2;grid-row:3/span 2}
.property-focus-overview>.property-focus-facts>dl dt{font-size:12px;line-height:1.4}
.property-focus-overview>.property-focus-facts>dl dd{font-size:16px;line-height:1.4;text-align:left}
@media(max-width:560px){
 .property-focus-overview>.property-focus-facts>dl{grid-template-columns:minmax(0,1fr);gap:8px}
 .property-focus-overview>.property-focus-facts>dl>[data-forest-potential-figure]{display:flex;flex-direction:column;grid-column:auto;grid-row:auto;gap:4px}
}

/* Result totals and the existing review filter share one quiet, reachable line. */
#catalogue-record-summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:5px 0 7px;color:var(--muted);font:inherit;font-size:12px;line-height:18px}
#catalogue-record-summary>#land-count{margin:0;flex:0 1 auto}
#catalogue-record-summary .catalogue-review-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
#catalogue-record-summary [data-forest-review-toggle]{min-height:28px;padding:3px 7px;border-radius:5px;font:inherit;font-weight:400;color:var(--muted)}
#catalogue-record-summary [data-forest-review-toggle][aria-pressed="true"]{color:var(--green);background:#edf3e8}
#catalogue-record-summary [data-forest-review-reason]{min-height:28px;max-width:100%;padding:3px 24px 3px 7px;font:inherit}
#search-map-section>#catalogue-record-summary{padding:0 10px}
@media(pointer:coarse){#catalogue-record-summary [data-forest-review-toggle],#catalogue-record-summary [data-forest-review-reason]{min-height:44px}}

/* Compact Browser controls: one search row, one location/action row. */
#content:has(.catalogue-search-row){padding-top:10px}
.catalogue-search-row{display:flex;align-items:center;gap:24px;margin:0 0 8px;min-width:0}
.catalogue-search-row>.search-work-views{flex:1 1 auto;min-width:0;margin:0;padding:0;border:0;gap:2px;flex-wrap:wrap}
.catalogue-search-row>.searchbox{flex:0 1 320px;min-width:240px;position:relative;margin:0}
.catalogue-search-row>.searchbox>input{width:100%;min-height:34px;height:34px;font-size:12px;margin:0;padding:5px 10px 5px 32px}
.catalogue-search-row>.searchbox>.icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--muted);pointer-events:none}
#land-filters:has(.catalogue-controls-row){padding:0;border:0;background:transparent;margin:0 0 8px;display:block}
#land-filters .catalogue-controls-row{display:flex;align-items:flex-end;gap:6px;flex-wrap:wrap;margin:0;padding:0;min-width:0}
.catalogue-location-filters{display:flex;flex:1 1 360px;gap:6px;min-width:0;align-items:flex-end}
.catalogue-location-filters>label{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:3px;font-size:var(--ui-fs-micro);line-height:1.2}
#land-filters .catalogue-location-filters select{margin:0;width:100%;min-width:0;min-height:34px;height:34px;max-width:100%;font-size:12px;padding:5px 24px 5px 8px}
.catalogue-controls-row>button,.catalogue-right-controls button,.catalogue-controls-row summary{white-space:nowrap}
#catalogue-sort-slot,#catalogue-presentation-slot,.catalogue-right-controls,#catalogue-expand-slot{display:flex;align-items:center;gap:6px;flex:none}
.catalogue-controls-row .catalogue-right-controls{margin-left:auto;order:10}
.catalogue-controls-row #table-presentation-controls{margin:0;display:flex;gap:6px}
.catalogue-controls-row .catalogue-view-options{order:5}
.catalogue-controls-row .catalogue-right-controls button{min-height:34px;height:34px;padding:5px 10px;font-size:12px;border-radius:6px}
#search-map-section{position:relative}
#search-map-section>.map-layout-row{position:absolute;z-index:1001;top:8px;right:8px;margin:0;padding:0;min-height:0;width:auto;background:transparent;border:0;pointer-events:none}
#search-map-section>.map-layout-row>.lmf-map-tools{margin:0;padding:0;gap:5px;pointer-events:auto}
#search-map-section>.map-layout-row>.lmf-map-tools :is(a,button,summary){min-height:30px;height:auto;padding:5px 8px;border-radius:5px;background:color-mix(in srgb,var(--white,#fff) 86%,transparent);color:var(--forest);font-family:inherit;font-size:var(--ui-fs-micro);line-height:1.35}
#search-map-section>.map-layout-row>.lmf-map-tools :is(a,button,summary):hover{background:var(--white,#fff)}
#search-map-section .lmf-map-layer-body{left:auto;right:0}
.catalogue-controls-row #catalogue-sort-slot button{min-height:34px;height:34px;padding:5px 10px;font-size:12px;border-radius:6px;margin:0}
#land-filters:has(.catalogue-controls-row) .search-core-filters:empty{display:none}
#land-filters:has(.catalogue-controls-row) .search-source-checks{padding-top:4px;gap:4px 14px}
#land-filters:has(.catalogue-controls-row) .lmf-reference-qualification{display:flex;align-items:center}
#land-filters:has(.catalogue-controls-row) #filter-error[hidden]{display:none}
#land-filters:has(.catalogue-controls-row) .search-advanced{padding:12px;background:var(--paper,#f4f6f2);border:1px solid var(--line);border-radius:8px}
#land-filters:has(.catalogue-controls-row) .search-advanced>label{display:block;max-width:280px;margin-bottom:10px}
@media(min-width:1001px){
 .catalogue-search-row .search-work-views button{min-height:34px;padding:5px 8px}
 .catalogue-controls-row .catalogue-location-filters{max-width:510px}
 .catalogue-controls-row .catalogue-view-options .catalogue-view-actions{right:0}
}
@media(max-width:1000px){
 .catalogue-search-row{gap:8px;align-items:stretch;flex-wrap:wrap}
 .catalogue-search-row>.mobile-work-views{margin:0;flex:0 1 auto}
 .catalogue-search-row>.mobile-work-views>summary{min-height:44px;display:flex;align-items:center;box-sizing:border-box;margin:0}
 .catalogue-search-row>.searchbox{flex:1 1 240px;min-width:0}
 .catalogue-search-row>.searchbox>input{min-height:44px;height:44px;font-size:16px}
 #land-filters .catalogue-controls-row{display:flex;gap:6px;grid-template-columns:none}
 #land-filters .catalogue-location-filters{flex:1 0 100%;gap:6px}
 #land-filters .catalogue-location-filters select{min-height:44px;height:44px;font-size:14px}
 #land-filters .catalogue-controls-row>button,#land-filters .catalogue-right-controls button,#land-filters .catalogue-controls-row summary,#land-filters [data-multi-sort-open]{min-height:44px;height:auto;font-size:14px;padding:6px 8px}
 .catalogue-controls-row .catalogue-right-controls{margin-left:auto;gap:6px}
 .mobile-register-surface #land-filters:not(.is-open)>:not(.catalogue-controls-row){display:none}
 .mobile-register-surface #land-filters:has(.catalogue-controls-row){display:block}
 .mobile-register-surface #land-filters.is-open .search-source-checks{display:flex}
 .catalogue-controls-row>.catalogue-view-options{grid-row:auto}
 .mobile-register-surface .catalogue-controls-row #toggle-filters{grid-row:auto}
}
@media(max-width:550px){
 .catalogue-search-row>.searchbox{flex-basis:100%;order:-1}
 .catalogue-search-row>.mobile-work-views{flex:1}
 .catalogue-search-row>.mobile-work-views>summary{min-height:44px}
 .catalogue-location-filters>label{font-size:12px}
 #land-filters .catalogue-location-filters select{padding-inline:5px;font-size:12px}
}
/* Stand identity stays beside its measurements; context opens deliberately. */
#detail-dialog.property-focus-dialog{width:min(1400px,calc(100vw - 16px))}
#detail-dialog.property-focus-dialog .property-title-compact{padding:10px 52px 8px 18px}
.property-heading-row{display:grid;grid-template-columns:minmax(130px,220px) minmax(0,1fr);align-items:center;gap:20px;margin-bottom:6px}
.property-heading-identity{min-width:0}.property-heading-identity .parcel-subline{margin:2px 0 0}
.property-heading-sections{display:flex;align-items:center;gap:16px;min-width:0;padding-left:20px;border-left:1px solid var(--line);flex-wrap:wrap}
.property-focus-dialog .property-heading-sections>.detail-tabs{margin:0;padding:0;border-bottom:0;gap:16px;min-width:0;flex-wrap:wrap}
.property-forest-map-toggle{font:inherit;font-size:12px;min-height:36px;padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:var(--paper,#fff);color:var(--forest);white-space:nowrap}
.property-focus-map-frame[hidden]{display:none!important}
.property-title-compact .parcel-title-line{display:flex;align-items:center;gap:8px 16px}
.property-title-compact .property-focus-nearby{margin-left:auto;padding:0}
.next-forest-data .next-stand-visible.property-stand-compact{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;position:relative;padding:7px 0;border-bottom:1px solid var(--line);margin:0}
.next-forest-data .property-stand-compact>.next-stand-header{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;min-height:0;padding:4px 0 0}
.next-forest-data .property-stand-compact>.next-stand-header h3{font-family:inherit;font-size:13px;font-weight:750;line-height:1.35;color:var(--forest);margin:0;overflow-wrap:anywhere}
.next-forest-data .property-stand-compact>.next-stand-header>[data-map-stand]{font:inherit;font-size:var(--ui-fs-micro);line-height:1.3;min-height:30px;padding:2px 0;text-align:left;white-space:normal}
.property-stand-info{margin:0;padding:0;border:0;background:transparent}
.property-stand-info>summary{display:flex;align-items:center;gap:4px;list-style:none;cursor:pointer;color:var(--forest);font:inherit;font-size:var(--ui-fs-micro);min-height:30px;padding:2px 4px 2px 0;border-radius:4px}
.property-stand-info>summary::-webkit-details-marker{display:none}
.property-stand-info>summary>.icon{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.property-stand-info>summary:hover,.property-stand-info[open]>summary{background:var(--mint)}
.property-stand-info-panel{position:absolute;z-index:100;left:104px;top:6px;width:min(580px,calc(100% - 104px));max-height:min(440px,70dvh);overflow:auto;box-sizing:border-box;padding:14px 16px;background:var(--white,#fff);border-radius:8px;box-shadow:var(--menu-shadow);color:var(--ink);font-family:inherit;font-size:12px;line-height:1.4}
.property-stand-info-panel h4{font:inherit;font-weight:700;margin:0 0 8px}
.next-forest-data .property-stand-info-panel .property-stand-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;margin:0;padding:0;font:inherit}
.next-forest-data .property-stand-info-grid>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:8px;align-items:baseline;padding:5px 0;border-bottom:1px solid var(--line);min-width:0}
.next-forest-data .property-stand-info-grid :is(dt,dd){font:inherit;margin:0;min-width:0;overflow-wrap:anywhere}.property-stand-info-grid dt{color:var(--muted)}.property-stand-info-grid dd{font-weight:620;text-align:right}
.property-stand-info-grid dd small{font:inherit;font-weight:400}
.property-stand-compact>.next-stand-facts{min-width:0;max-width:100%}
.property-stand-compact .next-primary-scroll{margin-bottom:0}
.property-stand-compact .next-stand-extra{margin:0}
@media(max-width:800px){
 .property-heading-row{grid-template-columns:minmax(120px,170px) minmax(0,1fr);gap:12px}
 .property-heading-sections{padding-left:12px;gap:8px}
 .property-focus-dialog .property-heading-sections>.detail-tabs{gap:8px}
 .property-focus-dialog .property-heading-sections>.detail-tabs button,.property-forest-map-toggle{font-size:12px;min-height:44px}
 .property-stand-info>summary,.next-forest-data .property-stand-compact>.next-stand-header>[data-map-stand]{min-height:44px}
 .property-stand-info-panel{max-height:65dvh;overflow:auto}
 .next-forest-data .property-stand-info-panel .property-stand-info-grid{grid-template-columns:1fr}
}
@media(max-width:1000px),(pointer:coarse){#search-map-section>.map-layout-row>.lmf-map-tools :is(a,button,summary){min-height:44px;padding:8px;font-size:12px}}
@media(pointer:coarse){.property-stand-info>summary,.next-forest-data .property-stand-compact>.next-stand-header>[data-map-stand],.property-forest-map-toggle{min-height:44px}}
@media(max-width:550px){
 #detail-dialog.property-focus-dialog .property-title-compact{padding:10px 44px 8px 12px}
 .property-heading-row{display:block;margin-bottom:4px}
 .property-heading-sections{border-left:0;padding:4px 0 0;gap:8px}
 .property-focus-dialog .property-heading-sections>.detail-tabs{gap:10px}
 .property-title-compact .parcel-title-line{gap:6px;align-items:flex-start}
 .property-title-compact .property-focus-nearby{margin-left:0}
 .next-forest-data .next-stand-visible.property-stand-compact{grid-template-columns:74px minmax(0,1fr);gap:8px}
 .next-forest-data .property-stand-compact>.next-stand-header h3{font-size:12px}
 .property-stand-info-panel{left:0;top:44px;width:100%}
}
@media(min-width:1150px) and (pointer:fine){
 #detail-dialog.property-focus-dialog .property-title-compact{display:flex;align-items:center;flex-wrap:nowrap;gap:7px;padding:8px 46px 8px 12px;min-height:36px}
 .property-title-compact .property-heading-row,.property-title-compact .parcel-title-line{display:contents}
 .property-title-compact .property-heading-identity{display:flex;align-items:center;gap:6px;flex:0 1 178px;min-width:112px;white-space:nowrap}
 #detail-dialog.property-focus-dialog .property-heading-identity h2{font-size:13px;line-height:1.3;font-weight:700;max-width:96px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .property-title-compact .property-heading-identity .parcel-subline{margin:0;font-size:var(--ui-fs-micro);gap:0;white-space:nowrap;flex:none}
 .property-title-compact .property-heading-sections{padding-left:8px;gap:6px;flex-wrap:nowrap;flex:none}
 #detail-dialog.property-focus-dialog .property-heading-sections>.detail-tabs{gap:5px;padding:0;flex-wrap:nowrap}
 #detail-dialog.property-focus-dialog .property-heading-sections>.detail-tabs button{min-height:28px;height:28px;font-size:var(--ui-fs-micro);line-height:1.25;padding:4px 3px;white-space:nowrap}
 .property-title-compact .property-focus-markers{gap:3px;flex-wrap:nowrap;padding-left:8px;border-left:1px solid var(--line)}
 .property-title-compact .property-focus-markers button,.property-title-compact .property-forest-map-toggle{min-height:28px;height:28px;font-size:var(--ui-fs-micro);line-height:1.25;padding:4px 5px;gap:3px;border-radius:5px}
 .property-title-compact .property-focus-markers .icon{width:13px;height:13px;flex-basis:13px}
 .property-title-compact .property-focus-nearby{margin:0;gap:4px;flex:none;font-size:var(--ui-fs-micro);white-space:nowrap}
 .property-title-compact .property-focus-nearby label{font-size:var(--ui-fs-micro);gap:4px}
 .property-title-compact .property-focus-nearby :is(select,button){height:28px;min-height:28px;padding:3px 5px;font:inherit;font-size:var(--ui-fs-micro)}
 #detail-dialog.property-focus-dialog>.close-dialog{top:8px;right:10px;height:28px;min-height:28px;width:28px;padding:5px}
}

/* LMF operating controls: shared forest palette, type, geometry and states. */
:root{--lmf-control-ink:#254b39;--lmf-control-muted:#566c5e;--lmf-control-line:#c2d3c6;--lmf-control-surface:#fbfdf9;--lmf-control-hover:#eaf2e9;--lmf-control-selected:#dcebdd;--lmf-control-focus:var(--lmf-focus);--lmf-control-radius:6px}
:is(.catalogue-controls-row,.property-title-compact,.parcel-aside,.property-stand-info) :is(button,summary,select),
.catalogue-search-row input,.mobile-table-tools :is(button,select){font-family:inherit;letter-spacing:0;box-sizing:border-box}
#content .catalogue-controls-row :is(button,.table-columns>summary),
#detail-dialog .property-title-compact :is(.property-focus-marker,.property-forest-map-toggle,.property-focus-nearby button),
#detail-dialog .parcel-aside button,.mobile-table-tools :is(button,select){
 border:1px solid var(--lmf-control-line);border-radius:var(--lmf-control-radius);background:var(--lmf-control-surface);color:var(--lmf-control-ink);box-shadow:none;font-weight:620;line-height:1.25;transition:background-color .12s,border-color .12s,color .12s
}
#content .catalogue-controls-row :is(button,.table-columns>summary):hover:not(:disabled),
#detail-dialog .property-title-compact :is(.property-focus-marker,.property-forest-map-toggle,.property-focus-nearby button):hover:not(:disabled),
#detail-dialog .parcel-aside button:hover:not(:disabled),.mobile-table-tools :is(button,select):hover:not(:disabled){background:var(--lmf-control-hover);border-color:#91b19b;color:#174a30}
#content .catalogue-controls-row :is(button,.table-columns>summary):active:not(:disabled),
#detail-dialog .property-title-compact button:active:not(:disabled){background:var(--lmf-control-selected)}
#detail-dialog .property-title-compact .property-focus-marker[aria-pressed=true],
#content .catalogue-controls-row .table-columns[open]>summary,
#content .catalogue-controls-row #toggle-filters[aria-expanded=true],
#content .catalogue-controls-row #map-visibility[aria-expanded=false],
#content .catalogue-controls-row #table-expand[aria-expanded=true],
#content .mobile-table-tools [data-mobile-focus][aria-expanded=true]{background:var(--lmf-control-selected);border-color:#7da78b;color:#174b30}
#content .catalogue-controls-row :is(button,summary):disabled,#detail-dialog .property-title-compact button:disabled{color:#758379;background:#f2f5ef;border-color:#d9e2d8;cursor:default;opacity:1}
#content .catalogue-controls-row :is(button,summary,select):focus-visible,
.catalogue-search-row :is(button,input,summary):focus-visible,
#detail-dialog :is(.property-title-compact,.parcel-aside,.property-stand-info) :is(button,summary,select):focus-visible,
.mobile-table-tools :is(button,select):focus-visible{outline:2px solid var(--lmf-control-focus);outline-offset:2px}
#content #land-filters .catalogue-location-filters select,#detail-dialog .property-focus-nearby select,.mobile-table-tools select{
 appearance:none;border:1px solid var(--lmf-control-line);border-radius:var(--lmf-control-radius);background-color:var(--lmf-control-surface);color:var(--lmf-control-ink);font-weight:620;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23395745' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 8px center;background-repeat:no-repeat;background-size:14px;padding-right:28px
}
#content #land-filters .catalogue-location-filters>label{color:var(--lmf-control-muted);font-weight:620;gap:4px}
#content #land-filters .catalogue-location-filters select:hover,#detail-dialog .property-focus-nearby select:hover{border-color:#91b19b}
#content #land-filters .catalogue-location-filters select.is-filter-active{background-color:var(--lmf-control-selected);border-color:#7da78b;color:#174b30}
.catalogue-search-row>.searchbox{border:0;border-radius:var(--lmf-control-radius);background:transparent}
#content .catalogue-search-row #land-search{border:1px solid var(--lmf-control-line);border-radius:var(--lmf-control-radius);background:var(--lmf-control-surface);color:#203e2d;box-shadow:none;font-family:inherit;font-weight:400;caret-color:var(--lmf-control-focus)}
#content .catalogue-search-row #land-search::placeholder{color:var(--lmf-control-muted);opacity:1}
#content .catalogue-search-row #land-search:hover{border-color:#91b19b}
.catalogue-search-row .search-work-views{align-items:center;gap:2px;flex-wrap:wrap}
#content .catalogue-search-row .search-work-views button{display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;min-height:32px;padding:5px 8px;border:1px solid transparent;border-radius:5px;background:transparent;color:#47604f;font-family:inherit;font-size:12px;font-weight:620;line-height:1.3;box-shadow:none}
#content .catalogue-search-row .search-work-views button:hover:not(:disabled){background:var(--lmf-control-hover);color:#174b30}
#content .catalogue-search-row .search-work-views button[aria-pressed=true]{background:var(--lmf-control-selected);border-color:#b4cdb9;color:#174b30;font-weight:700}
#content .catalogue-search-row .search-work-views [data-qualification-toggle]{margin-left:5px;border-left-color:#b4cdb9}
#content .catalogue-search-row .search-work-views [data-qualification-toggle]:disabled{color:#758379;background:transparent;border-color:transparent;cursor:default}
#land-filters .lmf-reference-qualification[hidden]{display:none!important}
#land-filters .search-source-checks:not(:has(>label:not([hidden]))){display:none}
/* Native checkbox semantics are retained; the geometry and focus match peer controls. */
#land-filters input[type=checkbox],#table-columns input[type=checkbox],.mobile-columns-dialog input[type=checkbox],.multi-sort-dialog input[type=checkbox]{appearance:none;display:inline-grid;place-content:center;width:16px;height:16px;min-width:16px;min-height:16px;margin:0;border:1px solid #a2bba9;border-radius:4px;background:var(--lmf-control-surface);vertical-align:middle;cursor:pointer}
#land-filters input[type=checkbox]:checked,#table-columns input[type=checkbox]:checked,.mobile-columns-dialog input[type=checkbox]:checked,.multi-sort-dialog input[type=checkbox]:checked{background:#2b6846;border-color:#2b6846}
#land-filters input[type=checkbox]:checked::before,#table-columns input[type=checkbox]:checked::before,.mobile-columns-dialog input[type=checkbox]:checked::before,.multi-sort-dialog input[type=checkbox]:checked::before{content:'';width:7px;height:4px;border-left:1.8px solid white;border-bottom:1.8px solid white;transform:translateY(-1px) rotate(-45deg)}
#land-filters input[type=checkbox]:disabled,#table-columns input[type=checkbox]:disabled{cursor:default;opacity:.6}
#land-filters input[type=checkbox]:focus-visible,#table-columns input[type=checkbox]:focus-visible{outline:2px solid var(--lmf-control-focus);outline-offset:3px}
/* Centre the existing nonmodal picker on the full-width toolbar, with a reachable close action. */
#content.catalogue-dense .table-columns-panel{left:50%;right:auto;transform:translateX(-50%);box-sizing:border-box}
#table-columns .table-columns-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-16px;z-index:1;margin:-16px -16px 12px;padding:10px 16px;background:#fff;border-bottom:1px solid var(--lmf-control-line);font-family:inherit;font-size:13px;color:var(--lmf-control-ink)}
#content #table-columns .table-columns-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;min-width:28px;height:28px;min-height:28px;padding:5px;cursor:pointer}
#table-columns .table-columns-close .icon{width:16px;height:16px}
@media(pointer:coarse){#content #table-columns .table-columns-close{width:44px;min-width:44px;height:44px;min-height:44px}}
#detail-dialog .property-stand-info>summary{gap:5px;min-height:30px;padding:3px 6px;border:1px solid var(--lmf-control-line);border-radius:5px;background:var(--lmf-control-surface);font-family:inherit;font-size:var(--ui-fs-micro);font-weight:600;color:var(--lmf-control-ink)}
#detail-dialog .property-stand-info>summary::before,#detail-dialog .property-stand-info>summary::after{display:none}
#detail-dialog .property-stand-info[open]>summary{background:var(--lmf-control-selected);border-color:#7da78b}
#detail-dialog .property-stand-info-panel{border-radius:8px;box-shadow:0 5px 22px #203e2d26;outline:1px solid #d3dfd1}
#detail-dialog .property-stand-compact>.next-stand-header>[data-map-stand]{color:#3b6048;font-family:inherit;font-weight:620;text-underline-offset:3px}
#search-map-section .lmf-map-layer-body{max-height:160px;overflow:auto;overscroll-behavior:contain;scrollbar-color:#91ad99 #edf3e9}
/* The same dense data surface runs on tablet and computer. Phones retain their own renderer. */
@media(min-width:700px){
 #content.catalogue-dense .database-panel[data-density=dense]{--table-font:12px;--table-row:25px;--table-action-height:24px}
 #content.catalogue-dense .dense-property-table :is(th,td){font-family:inherit;font-size:12px;line-height:1.3}
 #content.catalogue-dense .dense-property-table tbody :is(td,th){white-space:nowrap!important;padding-block:0;overflow:hidden;text-overflow:ellipsis}
 #content.catalogue-dense .dense-property-table tbody button,#content.catalogue-dense .table-row-actions>summary{min-height:24px;height:24px;font-size:inherit}
 #content.catalogue-dense .dense-property-table :is(.table-mark,.shortlist-bookmark,.shortlist-check,.comment-edit-action){width:26px;min-width:26px;min-height:24px;height:24px}
 #content.catalogue-dense .dense-property-table .table-row-actions>summary{width:32px;min-width:32px}
 #content.catalogue-dense .dense-property-table .dense-facts-trigger{min-height:24px;height:24px;padding:0 3px;font-size:inherit}
 #content.catalogue-dense .database-panel .next-table-evidence{line-height:24px;max-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #content.catalogue-dense .database-panel .next-table-evidence:has(.next-stock-number){display:flex;justify-content:flex-end;align-items:center;gap:2px}
 #content.catalogue-dense .database-panel .next-owner-evidence{height:24px;justify-content:center}
 #content.catalogue-dense .database-panel .dense-species-chip .dense-fact-glyph{width:16px;height:18px}
 #content.catalogue-dense .database-panel .dense-species-pair{column-gap:8px;row-gap:2px;min-height:24px}
 #content.catalogue-dense .database-panel .next-coverage-signal{display:inline-flex;align-items:center;flex:none}
 #content.catalogue-dense .database-panel .next-coverage-signal .icon{width:12px;height:12px}
 .catalogue-controls-row #catalogue-sort-slot button,#content .catalogue-controls-row>button,#content .catalogue-controls-row .table-columns>summary,#content .catalogue-right-controls button{height:32px;min-height:32px;font-size:12px;padding:5px 8px}
 #content #land-filters .catalogue-location-filters select{height:32px;min-height:32px;font-size:12px}
 #content .catalogue-search-row #land-search{height:32px;min-height:32px;font-size:12px}
 .catalogue-controls-row .catalogue-location-filters{max-width:430px;flex-basis:300px}
 .catalogue-search-row{gap:12px}
 .catalogue-search-row>.searchbox{flex-basis:290px;min-width:220px}
}
@media(min-width:700px) and (max-width:1100px){
 #content.catalogue-dense{padding:10px 12px 30px}
 .catalogue-search-row{flex-wrap:wrap;gap:6px}
 .catalogue-search-row>.searchbox{flex-basis:100%;order:-1}
 .catalogue-search-row>.search-work-views{flex-basis:100%}
 #land-filters .catalogue-location-filters{flex-basis:100%;max-width:none}
}
@media(max-width:699px){
 .property-heading-sections{width:100%;max-width:100%;min-width:0}
 #detail-dialog.property-focus-dialog .property-heading-sections>.detail-tabs{display:flex;flex:1 1 100%;width:100%;max-width:100%;min-width:0;gap:4px;flex-wrap:wrap;overflow:visible;box-sizing:border-box}
 #detail-dialog.property-focus-dialog .property-heading-sections>.detail-tabs button{flex:0 1 auto;min-width:0;min-height:44px;font-size:12px;padding:6px 3px}
 #detail-dialog .property-heading-identity .parcel-actions-jump{display:none}
 #content .catalogue-search-row .search-work-views button{min-height:44px;white-space:normal}
 #content .mobile-work-views>summary{border-color:var(--lmf-control-line);border-radius:6px;background:var(--lmf-control-surface);color:var(--lmf-control-ink)}
 .catalogue-controls-row #catalogue-sort-slot button{min-height:44px;height:44px;font-size:15px;padding:6px 8px}
 #content #land-filters .catalogue-location-filters select{font-size:13px;min-height:44px}
 .mobile-table-host>.catalogue-results-toolbar:empty{display:none}
}
@media(pointer:coarse){
 #content .catalogue-controls-row :is(button,.table-columns>summary),#content #land-filters .catalogue-location-filters select,#detail-dialog .property-title-compact :is(button,select),#detail-dialog .property-stand-info>summary{min-height:44px;height:auto}
}
@media(prefers-reduced-motion:reduce){#content .catalogue-controls-row :is(button,summary),#detail-dialog .property-title-compact button{transition:none}}
/* Map work controls share the kit and leave the centre of the map clear. */
#search-map-section .map-area-action{left:10px;bottom:12px;transform:none;gap:5px}
#search-map-section .map-area-action button{min-height:32px;height:32px;padding:5px 9px;border:1px solid #9fb9a8;border-radius:6px;background:rgb(251 253 249 / 88%);color:var(--lmf-control-ink);font-family:inherit;font-size:12px;font-weight:620;box-shadow:0 2px 7px #203e2d18}
#search-map-section .map-area-action button:hover{background:#fbfdf9}
#search-selection{padding:9px 12px;background:#f4f8ef;border-color:var(--lmf-control-line);border-radius:8px}
#search-selection .selection-main{align-items:center;gap:12px}
#search-selection .selection-main>div:first-child{display:flex;align-items:baseline;gap:10px;min-width:0;flex:1}
#search-selection .selection-main strong{font-size:13px;line-height:1.4;white-space:nowrap;max-width:25ch;overflow:hidden;text-overflow:ellipsis}
#search-selection .selection-main>div>span{font-size:var(--ui-fs-micro);line-height:1.4;margin:0;white-space:nowrap;color:var(--lmf-control-muted)}
#search-selection .selection-main .actions{gap:5px;flex-wrap:nowrap;flex:none}
#search-selection .selection-main button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;height:30px;padding:5px 8px;border:1px solid var(--lmf-control-line);border-radius:6px;background:var(--lmf-control-surface);color:var(--lmf-control-ink);font-family:inherit;font-size:var(--ui-fs-micro);font-weight:600;box-shadow:none;white-space:nowrap}
#search-selection button:focus-visible,#search-map-section .map-area-action button:focus-visible{outline:2px solid var(--lmf-control-focus);outline-offset:2px}
#search-selection .selection-main button .icon{width:14px;height:14px}
/* Stand context remains deliberate; concise volume checks never stretch data cells. */
#detail-dialog .property-stand-info-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
#detail-dialog .property-stand-info-top h4{margin:0;min-width:0}
#detail-dialog .property-stand-info-close{flex:none;min-height:32px;padding:5px 9px;border:1px solid var(--lmf-control-line);border-radius:6px;background:var(--lmf-control-surface);color:var(--lmf-control-ink);font:inherit;font-size:12px;font-weight:620}
#detail-dialog .next-component-primary td.fd-has-check{white-space:nowrap}
#detail-dialog .next-component-primary .property-volume-check{display:inline-block;vertical-align:baseline;min-width:0;min-height:24px;height:24px;margin:0 0 0 4px;padding:2px 4px;border:0;border-radius:4px;background:#f5efd9;color:#715512;font-family:inherit;font-size:var(--ui-fs-micro);font-weight:600;line-height:1.2;white-space:nowrap;box-shadow:none}
#detail-dialog .next-component-primary .property-volume-check:focus-visible,#detail-dialog .property-stand-info-close:focus-visible{outline:2px solid var(--lmf-control-focus);outline-offset:2px}
#detail-dialog .parcel-aside .detail-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin:10px 0 12px}
#detail-dialog .parcel-aside .detail-actions>button{display:flex;align-items:center;justify-content:flex-start;gap:7px;width:100%;min-width:0;min-height:36px;height:auto;margin:0;padding:8px 10px;border:1px solid #abc4b1;border-radius:6px;background:#edf4e9;color:#254b39;font-family:inherit;font-size:12px;font-weight:620;line-height:1.35;white-space:normal;overflow-wrap:anywhere;text-align:left;box-shadow:none}
#detail-dialog .parcel-aside .detail-actions>button .icon{width:16px;height:16px;flex:0 0 16px}
#detail-dialog .parcel-aside #set-next,#detail-dialog .parcel-aside .next-edit-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:36px;box-sizing:border-box;margin:0;padding:8px 10px;border:1px solid var(--lmf-control-line);border-radius:6px;background:var(--lmf-control-surface);color:var(--lmf-control-ink);font-family:inherit;font-size:12px;font-weight:620;line-height:1.3;text-decoration:none;box-shadow:none}
#detail-dialog .parcel-aside .next-edit-disclosure{margin:8px 0 0;padding:0;border:0;border-radius:0;background:transparent}
#detail-dialog .parcel-aside .next-edit-disclosure>summary::before{display:none}
#detail-dialog .parcel-aside .next-edit-disclosure>summary::after{content:'';display:block;width:6px;height:6px;margin-right:2px;border-bottom:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);flex:none}
#detail-dialog .parcel-aside .next-edit-disclosure[open]>summary{background:var(--lmf-control-hover)}
#detail-dialog .parcel-aside .next-edit-disclosure[open]>summary::after{transform:rotate(225deg)}
#detail-dialog .parcel-aside .next-edit-disclosure>form{padding:10px 0 0}
#detail-dialog .parcel-aside :is(#set-next,.next-edit-disclosure>summary):hover{background:var(--lmf-control-hover);border-color:#91b19b}
#detail-dialog .parcel-aside .property-aside-markers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:12px 0 0;margin:12px 0 0;border:0;border-top:1px solid var(--lmf-control-line);width:100%}
#detail-dialog .parcel-aside .property-aside-markers>button:not(.b){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;width:100%;min-height:52px;height:auto;padding:7px 3px;border:1px solid var(--lmf-control-line);border-radius:6px;background:var(--lmf-control-surface);color:var(--lmf-control-ink);font-family:inherit;font-size:var(--ui-fs-micro);font-weight:600;line-height:1.3;white-space:normal;text-align:center;box-shadow:none}
#detail-dialog .parcel-aside .property-aside-markers>[data-planning-print]{grid-column:1/-1;flex-direction:row;min-height:36px;font-size:12px}
#detail-dialog .parcel-aside .property-aside-markers>button:not(.b)[aria-pressed=true]{background:var(--lmf-control-selected);border-color:#7da78b;color:#174b30}
#detail-dialog .parcel-aside .property-aside-markers>button:not(.b):hover:not(:disabled){background:var(--lmf-control-hover);border-color:#91b19b}
#detail-dialog .parcel-aside .property-aside-markers>button:not(.b):disabled{background:#f2f5ef;color:#758379;border-color:#d9e2d8;opacity:1;cursor:default}
#detail-dialog .parcel-aside .property-aside-markers>button .icon{width:15px;height:15px;flex-basis:15px}
@media(min-width:700px){#content .dense-property-table th :is(.dense-sort,.dense-column-label){overflow-wrap:normal;word-break:normal}}
@media(pointer:coarse){
 #content .catalogue-search-row #land-search,#content .catalogue-search-row .search-work-views button{min-height:44px;height:auto}
 #search-map-section .map-area-action button,#search-selection .selection-main button,#detail-dialog .property-stand-info-close{min-height:44px;height:auto}
 #detail-dialog .parcel-aside #set-next,#detail-dialog .parcel-aside .next-edit-disclosure>summary,#detail-dialog .parcel-aside .detail-actions>button{min-height:44px}
}
@media(max-width:1000px){#search-selection .selection-main{flex-wrap:wrap}#search-selection .selection-main>div:first-child{flex-basis:100%;flex-wrap:wrap;gap:2px 8px}}
.catalogue-side-scroll{position:fixed;bottom:10px;height:16px;z-index:950;overflow-x:scroll;overflow-y:hidden;box-sizing:border-box;border:1px solid #b4cbb9;border-radius:6px;background:#eff5e9;box-shadow:0 3px 9px #203e2d20;scrollbar-color:#73957d #eff5e9;scrollbar-width:auto;overscroll-behavior:contain;opacity:.5}
.catalogue-side-scroll:is(:hover,:focus-visible){opacity:1}
.catalogue-side-scroll[hidden]{display:none}
.catalogue-side-scroll>div{height:1px}
.catalogue-side-scroll::-webkit-scrollbar{height:12px}
.catalogue-side-scroll::-webkit-scrollbar-track{background:#eff5e9;border-radius:5px}
.catalogue-side-scroll::-webkit-scrollbar-thumb{background:#73957d;border:2px solid #eff5e9;border-radius:5px}
.catalogue-side-scroll:focus-visible{outline:2px solid var(--lmf-control-focus);outline-offset:2px}
.database-scroll.has-floating-side-scroll::-webkit-scrollbar{height:0}
@supports selector(::-webkit-scrollbar){.database-scroll.has-floating-side-scroll{scrollbar-width:auto;scrollbar-color:auto}}
#detail-dialog .property-stand-heading{display:grid;gap:2px;min-width:0;max-width:100%}
#detail-dialog .property-stand-index{display:block;margin:0;font-family:inherit;font-size:18px;font-weight:700;line-height:1.2;letter-spacing:-.015em;font-variant-numeric:tabular-nums;color:var(--forest);max-width:100%;overflow-wrap:anywhere}
#detail-dialog .property-stand-index.is-unavailable{font-size:16px;color:var(--lmf-control-muted);font-weight:400}
#content .dense-property-table .marker-cell>.catalogue-pin-first{position:relative;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-height:28px;padding:5px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--lmf-control-muted);vertical-align:middle;cursor:pointer;box-shadow:none}
#content .dense-property-table .marker-cell>.catalogue-pin-first.is-active{background:var(--lmf-control-selected);border-color:var(--lmf-control-line);color:var(--lmf-control-ink)}
#content .dense-property-table .marker-cell>.catalogue-pin-first:hover{background:var(--lmf-control-hover);border-color:#91b19b}
#content .catalogue-pin-first:focus-visible{outline:2px solid var(--lmf-control-focus);outline-offset:2px}
#content .catalogue-pin-first>.icon{width:16px;height:16px;flex:none}
#content .catalogue-pin-first>.pin-first-slash{position:absolute;inset:5px;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
@media(pointer:coarse){#content .dense-property-table .marker-cell>.catalogue-pin-first{width:44px;height:44px;min-height:44px;padding:13px}#content .catalogue-pin-first>.pin-first-slash{inset:13px}}
@media(max-width:699px){
 #search-map-section>.map-layout-row>.lmf-map-tools :is(a,button,summary),#detail-dialog .property-focus-map-frame>.lmf-map-tools :is(a,button,summary){min-height:30px;height:30px;padding:4px 7px;font-size:12px;line-height:1.3}
 #search-map-section .leaflet-control-zoom>a,#detail-dialog .property-focus-map-frame .leaflet-control-zoom>a{width:30px;height:30px;line-height:30px;font-size:20px}
 #detail-dialog .property-focus-map-frame>.lmf-map-tools{top:8px;right:8px;gap:4px}
}
/* A phone is a separate work scene: identity, sections, then three clear actions. */
@media(max-width:699px),(max-height:500px) and (pointer:coarse){
 #detail-dialog.property-focus-dialog .property-title-compact.property-phone-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;padding:12px 12px 10px;min-height:0}
 .property-phone-header :is(.property-heading-row,.property-heading-sections,.parcel-title-line){display:contents}
 #detail-dialog .property-phone-header .property-heading-identity{grid-column:1;grid-row:1;min-width:0;padding-right:4px}
 #detail-dialog .property-phone-header .property-heading-identity h2{font-size:16px;font-weight:700;line-height:1.3;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #detail-dialog .property-phone-header .parcel-subline{font-size:12px;line-height:1.4;margin:3px 0 0}
 #detail-dialog.property-focus-dialog .property-phone-header .detail-tabs{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin:0;padding:0;border:0;width:100%;min-width:0}
 #detail-dialog.property-focus-dialog .property-phone-header .detail-tabs button{width:100%;min-width:0;min-height:44px;height:44px;font-size:12px;padding:6px 1px;line-height:1.2;white-space:normal}
 #detail-dialog .property-phone-header .property-focus-markers{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0;margin:0;border:0;width:100%}
 #detail-dialog .property-phone-header .property-focus-markers.property-mobile-has-map{grid-template-columns:repeat(3,minmax(0,1fr))}
 #detail-dialog .property-phone-header .property-focus-markers>button{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:100%;min-height:44px;height:auto;padding:6px;font-size:12px;font-weight:600;line-height:1.25;white-space:normal}
 #detail-dialog .property-phone-header .property-mobile-actions{border-color:#7da78b;background:var(--lmf-control-hover)}
 #detail-dialog .property-phone-header .property-mobile-actions[aria-expanded=true]{background:var(--lmf-control-selected)}
 #detail-dialog .property-mobile-secondary{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 0 0;border-top:1px solid var(--lmf-control-line)}
 #detail-dialog .property-mobile-secondary[hidden]{display:none}
 #detail-dialog .property-mobile-secondary>button{width:100%;min-width:0;min-height:44px;padding:6px 3px;font-size:12px;white-space:normal;justify-content:center}
 #detail-dialog .property-mobile-secondary .property-focus-nearby{grid-column:1/-1;display:flex;justify-content:space-between;gap:6px;margin:0;padding:4px 0;font-size:12px;min-width:0}
 #detail-dialog .property-mobile-secondary .property-focus-nearby label{font-size:12px;gap:6px;flex:1;min-width:0}
 #detail-dialog .property-mobile-secondary .property-focus-nearby select{font-size:13px;min-height:44px;flex:1;max-width:108px}
 #detail-dialog .property-mobile-secondary .property-focus-nearby button{font-size:12px;min-height:44px}
 #detail-dialog.property-focus-dialog.fd-phone-head>.close-dialog{top:10px;right:8px;min-width:44px;width:44px;min-height:44px;padding:7px}
}
/* Original source identifiers remain on the measured rows, outside the scanning view. */
#detail-dialog .next-component-primary .next-component-group[hidden]{display:none!important}
.next-forest-data .property-stand-details-simple{font-family:inherit;font-size:12px;line-height:1.5}
.next-forest-data .property-stand-notes{padding:4px 0 10px;max-width:100%}
.next-forest-data .property-stand-explainer{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:18px;margin:0;padding:0}
.next-forest-data .property-stand-explainer>div{min-width:0;margin:0;padding:0}
.next-forest-data .property-stand-explainer dt{font:inherit;font-weight:620;color:var(--ink);margin:0 0 3px}
.next-forest-data .property-stand-explainer dd{font:inherit;color:var(--lmf-control-muted);margin:0;overflow-wrap:anywhere}
#detail-dialog .next-stand-details .property-stand-explainer>div{display:block;grid-template-columns:none}
#detail-dialog .next-stand-details .property-stand-explainer :is(dt,dd){width:auto;text-align:left;max-width:none}
.next-forest-data .property-stand-legend{list-style:none;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:18px;margin:12px 0 0;padding:10px 0 0;border-top:1px solid var(--lmf-control-line)}
.next-forest-data .property-stand-legend li{min-width:0;display:flex;flex-direction:column;gap:3px;margin:0;padding:0;font:inherit;color:var(--lmf-control-muted)}
.next-forest-data .property-stand-legend-regular{font-weight:400;color:var(--ink)}
.next-forest-data .property-stand-legend-match{font-weight:700;color:var(--ink)}
.next-forest-data .property-stand-legend-past{font-weight:700;color:#a53f35}
.next-forest-data .property-stand-recorded{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;padding:10px 0 0;margin:10px 0 0;border-top:1px solid var(--lmf-control-line)}
.next-forest-data .property-stand-recorded>div{display:flex;gap:12px;justify-content:space-between;min-width:0}
.next-forest-data .property-stand-recorded :is(dt,dd){font:inherit;margin:0;overflow-wrap:anywhere}
.next-forest-data .property-stand-recorded dd{font-weight:620}
#detail-dialog .next-stand-details .property-stand-recorded>div{display:flex;grid-template-columns:none}
#detail-dialog .next-stand-details .property-stand-recorded dt{flex:1;width:auto;text-align:left}
#detail-dialog .next-stand-details .property-stand-recorded dd{flex:0 1 auto;width:auto;text-align:right}
.next-forest-data .property-stand-notes-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.next-forest-data .property-stand-notes-footer p{font:inherit;font-size:var(--ui-fs-micro);line-height:1.4;color:var(--lmf-control-muted);margin:0}
#detail-dialog .property-stand-sources{flex:none;min-height:30px;padding:5px 9px;border:1px solid var(--lmf-control-line);border-radius:6px;background:var(--lmf-control-surface);color:var(--lmf-control-ink);font:inherit;font-size:12px;line-height:1.3;cursor:pointer}
#detail-dialog .property-stand-sources:hover{background:var(--lmf-control-hover);border-color:#91b19b}
#detail-dialog .property-stand-sources:focus-visible{outline:2px solid var(--lmf-control-focus);outline-offset:2px}
@media(max-width:1000px){.next-forest-data .property-stand-explainer,.next-forest-data .property-stand-legend{grid-template-columns:1fr;gap:9px}.next-forest-data .property-stand-legend li{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px}}
@media(pointer:coarse),(max-width:699px){#detail-dialog .property-stand-sources{min-height:44px}}
@media(max-width:550px){.next-forest-data .property-stand-legend li{display:flex;gap:2px}.next-forest-data .property-stand-recorded{grid-template-columns:1fr}.next-forest-data .property-stand-notes-footer{align-items:flex-start;flex-direction:column;gap:8px}}
#search-map-section .lmf-map-wheel-hint{display:none}
@media(min-width:700px){#content .dense-property-table thead button>span{font-size:var(--ui-fs-micro);overflow-wrap:normal;word-break:normal}}
@media(min-width:1150px) and (pointer:fine){
 #detail-dialog.property-focus-dialog .property-title-compact{display:grid;grid-template-columns:minmax(0,1fr) 210px;column-gap:0}
 #detail-dialog .property-title-compact .property-heading-row{display:flex;grid-column:1;align-items:center;gap:7px;min-width:0;margin:3px 0}
 #detail-dialog .property-title-compact .property-heading-sections{flex:1 1 auto}
 #detail-dialog .property-title-compact .property-heading-sections>.detail-tabs{flex:none}
 #detail-dialog .property-title-compact .property-forest-map-toggle{margin-left:auto}
 #detail-dialog .property-title-compact .property-tablet-map-tools{display:contents}
}
@media(min-width:700px) and (max-width:1199px){#detail-dialog .property-heading-row>.property-focus-nearby{grid-column:1/-1;justify-self:end}}

/* One in-site waiting state, below the unchanged navigation. No minimum animation time. */
#content.workspace-loading-surface{display:block}
.workspace-loading-view{min-height:calc(100dvh - 152px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:32px 20px 72px;text-align:center;box-sizing:border-box}
.workspace-loading-title{display:block;color:var(--lmf-control-ink,#254b39);font:inherit;font-size:22px;font-weight:620;line-height:1.35;letter-spacing:-.025em;text-wrap:balance}
.workspace-loading-copy{display:block;max-width:42ch;margin:10px auto 0;color:var(--lmf-control-muted,#566c5e);font:inherit;font-size:13px;font-weight:400;line-height:1.6;text-wrap:pretty}
.workspace-loading-motion{display:block;position:relative;width:72px;height:3px;margin:0 auto 26px;overflow:hidden;border-radius:3px;background:#d8e4d9}
.workspace-loading-motion>span{display:block;width:100%;height:100%;border-radius:inherit;background:#285c43;transform-origin:center;animation:lmf-workspace-wait 1.65s ease-in-out infinite}
@keyframes lmf-workspace-wait{0%,100%{transform:scaleX(.28);opacity:.4}50%{transform:scaleX(1);opacity:1}}
#content .workspace-loading-retry{min-height:40px;padding:9px 18px;border:1px solid #91b19b;border-radius:6px;background:var(--lmf-control-selected,#dcebdd);color:#174b30;font:inherit;font-size:13px;font-weight:620;line-height:1.3;box-shadow:none}
#content .workspace-loading-retry:hover{background:#cfe2d1}
#content .workspace-loading-retry:focus-visible{outline:2px solid var(--lmf-control-focus,#267149);outline-offset:3px}
#session-recovery.workspace-loading-session{background:transparent;border:0;box-shadow:none;text-align:center}
#session-recovery.workspace-loading-session #session-status{margin:0}
#session-recovery.workspace-loading-session .actions{margin:0}
@media(max-width:699px){.workspace-loading-view{min-height:calc(100dvh - 180px);padding:28px 18px 72px}.workspace-loading-title{font-size:20px}.workspace-loading-copy{max-width:34ch}.workspace-loading-retry{min-height:44px}}
@media(prefers-reduced-motion:reduce){.workspace-loading-motion>span{animation:none;transform:scaleX(.5);opacity:.8}}

/* October 17: scoped additions inside the existing Browser More filters panel. */
#land-filters .multiple-location-filters,
#land-filters .lmf-current-extra-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  min-width: 0;
}
#land-filters .multi-location-filter,
#land-filters .lmf-current-extra-filters > fieldset {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border, #d8e0d6);
  border-radius: 8px;
}
#land-filters .multi-location-filter > summary {
  padding: 4px 0;
  min-height: 28px;
  cursor: pointer;
  font-weight: 620;
  overflow-wrap: anywhere;
}
#land-filters .multi-location-filter fieldset {
  min-width: 0;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
}
#land-filters .multi-location-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 2px 10px;
  max-height: 248px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#land-filters .multi-location-choices label,
#land-filters .almost-ready-filter legend label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  overflow-wrap: anywhere;
}
#land-filters .multi-location-choices input[type=checkbox],
#land-filters .almost-ready-filter input[type=checkbox] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
}
#land-filters .near-margin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
#land-filters .near-margin-fields input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
#land-filters .filter-evidence-help,
#land-filters .location-selection-notice {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #536257);
}
#land-filters .location-selection-notice {
  grid-column: 1 / -1;
}
#land-filters .location-selection-notice[hidden] {
  display: none;
}
@media (max-width: 699px) {
  #land-filters .multiple-location-filters,
  #land-filters .lmf-current-extra-filters { grid-template-columns: minmax(0, 1fr); }
  #land-filters .multi-location-choices label { min-height: 44px; }
  #land-filters .near-margin-fields input { font-size: 16px; }
}

/* 17 October: compact only the named Browser controls, at every resolution. */
#content #land-filters :is(#toggle-filters,#catalogue-sort-slot>button,#map-visibility,#table-expand,#reset-catalogue-view,.table-columns>summary),#content .mobile-table-tools :is([data-mobile-columns-open],[data-mobile-focus]),#content .catalogue-results-toolbar [data-multi-sort-open]{min-height:30px;height:30px;padding:4px 6px;font-size:12px;line-height:1.25}
#content #land-filters .catalogue-location-filters select{min-height:30px;height:30px;padding:4px 24px 4px 6px;font-size:12px;line-height:1.25}
/* Keep both totals and the review controls in the short interval between map and table. */
#content #land-container>#search-map-section{margin-bottom:4px}
#content #catalogue-record-summary{margin:4px 0;gap:2px 12px}
#content #catalogue-record-summary :is([data-forest-review-toggle],[data-forest-review-reason]){min-height:28px;height:28px;padding-block:3px}
body:not(.table-expanded):not(.mobile-table-focused) #content #search-results>.database-panel{margin-top:4px}
@media(pointer:coarse),(max-width:699px){
 #content #land-filters :is(#toggle-filters,#catalogue-sort-slot>button,#map-visibility,#table-expand,#reset-catalogue-view,.table-columns>summary),#content .mobile-table-tools :is([data-mobile-columns-open],[data-mobile-focus]),#content .catalogue-results-toolbar [data-multi-sort-open]{min-height:36px;height:auto;padding:4px 6px;font-size:13px}
 #content #land-filters .catalogue-location-filters select{min-height:36px;height:36px;font-size:13px}
 #content #catalogue-record-summary :is([data-forest-review-toggle],[data-forest-review-reason]){min-height:32px;height:32px}
}
@media(max-width:699px){#content #land-filters .catalogue-location-filters select{font-size:16px}}
/* A wide, short touch viewport uses the established laptop density. */
@media(min-width:1200px) and (max-height:999px) and (pointer:coarse){
 #content #land-filters :is(#toggle-filters,#catalogue-sort-slot>button,#map-visibility,#table-expand,#reset-catalogue-view,.table-columns>summary){min-height:30px;height:30px;font-size:12px}
 #content #land-filters .catalogue-location-filters select{min-height:30px;height:30px;font-size:12px}
 #content #catalogue-record-summary :is([data-forest-review-toggle],[data-forest-review-reason]){min-height:28px;height:28px}
}
/* Keep the single desktop header row on laptop-sized coarse-pointer screens.
   Tall tablets and the separate short-landscape/phone header retain their layout. */
@media(min-width:1150px) and (min-height:501px) and (max-height:999px) and (pointer:coarse){
 #detail-dialog.property-focus-dialog .property-title-compact{display:grid;grid-template-columns:minmax(0,1fr) 210px;align-items:center;column-gap:0;padding:8px 46px 8px 12px;min-height:36px}
 #detail-dialog .property-title-compact .property-heading-row{display:flex;grid-column:1;align-items:center;gap:7px;min-width:0;margin:3px 0}
 #detail-dialog .property-title-compact .parcel-title-line{display:contents}
 #detail-dialog .property-title-compact .property-tablet-map-tools{display:contents}
 #detail-dialog .property-title-compact .property-heading-identity{display:flex;align-items:center;gap:6px;flex:0 1 178px;min-width:112px;white-space:nowrap}
 #detail-dialog.property-focus-dialog .property-heading-identity h2{font-size:13px;line-height:1.3;font-weight:700;max-width:96px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #detail-dialog .property-title-compact .property-heading-identity .parcel-subline{margin:0;font-size:12px;gap:0;white-space:nowrap;flex:none}
 #detail-dialog .property-title-compact .property-heading-sections{padding-left:8px;gap:6px;flex-wrap:nowrap;flex:1 1 auto}
 #detail-dialog.property-focus-dialog .property-heading-sections>.detail-tabs{gap:5px;padding:0;flex-wrap:nowrap;flex:none}
 #detail-dialog.property-focus-dialog .property-heading-sections>.detail-tabs button{min-height:28px;height:28px;font-size:12px;line-height:1.25;padding:4px 3px;white-space:nowrap}
 #detail-dialog .property-title-compact .property-forest-map-toggle{min-height:28px;height:28px;font-size:12px;line-height:1.25;padding:4px 5px;border-radius:5px;margin-left:auto}
 #detail-dialog .property-title-compact .property-focus-nearby{margin:0;padding:0;gap:4px;flex:none;flex-wrap:nowrap;font-size:12px;white-space:nowrap}
 #detail-dialog .property-title-compact .property-focus-nearby label{font-size:12px;gap:4px}
 #detail-dialog .property-title-compact .property-focus-nearby :is(select,button){height:28px;min-height:28px;padding:3px 5px;font:inherit;font-size:12px}
 #detail-dialog .property-title-compact .property-focus-nearby select{padding-right:28px}
 #detail-dialog.property-focus-dialog>.close-dialog{top:8px;right:10px;height:28px;min-height:28px;width:28px;padding:5px}
}

/* Native Chromium: beat the shared #app/#content input :is() specificity. */
#app #content #land-filters .catalogue-location-filters select{min-height:30px;height:30px;font-size:12px}
@media(pointer:coarse),(max-width:699px){#app #content #land-filters .catalogue-location-filters select{min-height:36px;height:36px;font-size:13px}}
@media(min-width:1200px) and (max-height:999px) and (pointer:coarse){#app #content #land-filters .catalogue-location-filters select{min-height:30px;height:30px;font-size:12px}}
@media(max-width:699px){#app #content #land-filters .catalogue-location-filters select{font-size:16px}}

/* The reviewed parent already fixes 25px rows and 24px body actions.
   Complete the same Browser dense-table geometry for every non-phone pointer. */
@media(min-width:700px){
 #content.catalogue-dense .database-panel[data-density=dense] .dense-property-table thead button:not(.catalogue-pin-first){min-height:36px}
 #content.catalogue-dense .database-panel[data-density=dense] .dense-property-table .marker-cell>.catalogue-pin-first{width:28px;height:28px;min-height:28px;padding:5px}
 #content.catalogue-dense .database-panel[data-density=dense] .dense-property-table .catalogue-pin-first>.pin-first-slash{inset:5px}
 #content.catalogue-dense .database-panel[data-density=dense] .dense-property-table .dense-facts-trigger{line-height:1.2}
 #content.catalogue-dense .database-panel[data-density=dense] .dense-property-table .dense-inventory-evidence{min-width:25px}
 #content.catalogue-dense .database-panel[data-density=dense] .dense-property-table .dense-inventory-evidence .dense-fact-glyph{width:17px;height:19px}
 #content.catalogue-dense .database-panel[data-density=dense] .dense-property-table .table-row-menu-cell{padding:0 2px}
}

/* Round1: tablet identity/sections, then one map/nearby/navigation row. */
@media(min-width:700px) and (max-width:1149.99px) and (min-height:501px),
 (min-width:1150px) and (max-width:1199.99px) and (min-height:1000px) and (pointer:coarse),
 (min-width:1150px) and (max-width:1199.99px) and (min-height:501px) and (pointer:none){
 #detail-dialog.property-focus-dialog .property-title-compact{display:grid;grid-template-columns:minmax(130px,1fr) auto auto;gap:8px 12px;padding:12px 52px 10px 18px;min-height:0}
 #detail-dialog.property-focus-dialog .property-title-compact :is(.property-heading-row,.property-heading-sections,.parcel-title-line){display:contents}
 #detail-dialog .property-title-compact .property-heading-identity{grid-column:1;grid-row:1;min-width:0}
 #detail-dialog .property-title-compact .detail-tabs{grid-column:2/-1;grid-row:1;justify-self:end;gap:8px;flex-wrap:nowrap}
 #detail-dialog .property-title-compact .detail-tabs button{min-height:44px;height:auto;white-space:nowrap}
 #detail-dialog .property-title-compact .property-forest-map-toggle{grid-column:1;grid-row:2;justify-self:start;min-height:44px;margin:0}
 #detail-dialog .property-title-compact .property-focus-nearby{grid-column:2;grid-row:2;justify-self:end;margin:0;padding:0;gap:6px;flex-wrap:nowrap}
 #detail-dialog .property-title-compact .property-focus-nearby :is(select,button){min-height:44px;height:auto}
 #detail-dialog.property-focus-dialog>.close-dialog{min-width:44px;min-height:44px;top:12px;right:8px}
}

/* Overview: area pair beside volume pair, using the shared compact fact type. */
#detail-dialog.property-focus-dialog .property-focus-overview>.score-overview{grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;padding:0 0 8px;margin:0 0 12px}
#detail-dialog.property-focus-dialog .property-focus-overview>.score-overview>header{grid-column:1;grid-row:1;margin:0}
#detail-dialog.property-focus-dialog .property-focus-overview>.score-overview>p:not(.muted){grid-column:2;grid-row:1;margin:0;text-align:right;font-size:14px;line-height:1.4;white-space:nowrap}
#detail-dialog.property-focus-dialog .property-focus-overview>.score-overview>:is(.next-partial-note,.muted){grid-column:1/-1;margin:0;font-size:13px;line-height:1.4}
#detail-dialog.property-focus-dialog .property-focus-overview>.property-focus-facts>dl{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;gap:4px 24px}
#detail-dialog.property-focus-dialog .property-focus-overview>.property-focus-facts>dl>[data-forest-potential-figure]{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto;align-items:baseline;gap:8px;padding:0;border:0}
#detail-dialog.property-focus-dialog .property-focus-overview>.property-focus-facts>dl>[data-forest-potential-figure="observed-area"]{grid-column:1;grid-row:1}
#detail-dialog.property-focus-dialog .property-focus-overview>.property-focus-facts>dl>[data-forest-potential-figure="reference-area"]{grid-column:1;grid-row:2}
#detail-dialog.property-focus-dialog .property-focus-overview>.property-focus-facts>dl>[data-forest-potential-figure="stock"]{grid-column:2;grid-row:1}
#detail-dialog.property-focus-dialog .property-focus-overview>.property-focus-facts>dl>[data-forest-potential-figure="stock-density"]{grid-column:2;grid-row:2}
#detail-dialog.property-focus-dialog .property-focus-overview>.property-focus-facts>dl dt{font-size:13px;line-height:1.4}
#detail-dialog.property-focus-dialog .property-focus-overview>.property-focus-facts>dl dd{font-size:14px;line-height:1.4;font-weight:620;text-align:right;white-space:nowrap}
@media(max-width:480px){
 #detail-dialog.property-focus-dialog .property-focus-overview>.property-focus-facts>dl{grid-template-columns:minmax(0,1fr);grid-template-rows:none;gap:4px}
 #detail-dialog.property-focus-dialog .property-focus-overview>.property-focus-facts>dl>[data-forest-potential-figure]{grid-column:1;grid-row:auto}
}

/* A stand's recorded inventory year supports its identity without competing with its score. */
#detail-dialog .property-stand-inventory{display:grid;gap:1px;margin:0;max-width:100%;font-family:inherit;line-height:1.25}
#detail-dialog .property-stand-inventory :is(dt,dd){margin:0;overflow-wrap:anywhere;text-align:left}
#detail-dialog .property-stand-inventory dt{font-size:var(--ui-fs-micro);font-weight:400;color:var(--lmf-control-muted)}
#detail-dialog .property-stand-inventory dd{font-size:13px;font-weight:620;color:var(--forest);font-variant-numeric:tabular-nums}

/* Compact local comparison: side information or horizontal bands, shared facts. */
#detail-dialog .property-stand-popup-panel{position:fixed;inset:auto;top:12px;left:12px;z-index:20;width:min(470px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}
#detail-dialog #parcel-tab.fd-map-shown.fd-map-shown .next-stand-register{margin-top:12px}
#detail-dialog .property-forest-ledger-wrap{width:100%;max-width:100%;box-sizing:border-box;min-width:0;overflow:visible;border:1px solid var(--line);border-radius:5px}
#detail-dialog .property-forest-scroll-hint{display:none}
#detail-dialog .property-forest-ledger{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0;margin:0;font-family:inherit;font-size:12px;line-height:1.35;font-variant-numeric:tabular-nums lining-nums}
#detail-dialog .property-forest-ledger>thead th{position:sticky;top:0;z-index:3;background:#dce9d3;padding:5px 6px;vertical-align:middle;text-align:center;border:0;border-right:1px solid #c6d6bd;border-bottom:2px solid #8da780;font-family:inherit;font-size:var(--ui-fs-micro);line-height:1.25;font-weight:600;min-width:0;max-width:none}
#detail-dialog .property-forest-ledger>thead th:first-child{width:88px;text-align:left}
#detail-dialog .property-forest-ledger>thead .property-stand-column{width:218px;text-align:left;padding-left:10px}
#detail-dialog .property-forest-ledger .next-component-unit{display:block;font-size:var(--ui-fs-micro);line-height:1.15;font-weight:400;color:var(--muted)}
#detail-dialog .property-forest-ledger>tbody>tr[data-next-component]>:is(th,td):not(.property-stand-meta-cell){height:25px;box-sizing:border-box;padding:3px 6px;text-align:center;vertical-align:middle;font-family:inherit;font-size:12px;line-height:18px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums lining-nums;min-width:0;max-width:none;white-space:nowrap;background:#fff}
#detail-dialog .property-forest-ledger>tbody>tr[data-next-component]>th[scope=row]:not(.property-stand-meta-cell){font-weight:400;text-align:left;white-space:normal}
#detail-dialog .property-forest-ledger>tbody>tr[data-next-component]:nth-child(even)>:is(th,td):not(.property-stand-meta-cell){background:#f8faf6}
#detail-dialog .property-forest-ledger .next-reference-value{min-height:14px;line-height:14px}
#detail-dialog .property-forest-ledger .property-volume-check{min-height:16px;padding:0 3px;font-size:var(--ui-fs-micro)}
#detail-dialog .property-forest-ledger .next-component-group{display:none}
#detail-dialog .property-forest-ledger .property-stand-accessible-header{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#detail-dialog .property-forest-ledger>tbody>.property-stand-separator>td,#detail-dialog .property-forest-ledger>tbody>tr>.property-stand-meta-cell{position:static;padding:0;text-align:left;background:#f0f4eb;border:0;border-top:1px solid #c4d3bf;border-bottom:1px solid #d6e1d1;white-space:normal;vertical-align:middle}
#detail-dialog .property-forest-ledger>tbody>tr>.property-stand-meta-cell[rowspan]{border-left:1px solid var(--line)}
#detail-dialog .property-forest-ledger .property-stand-group{display:block;position:relative;margin:0;padding:0;border:0;min-width:0}
#detail-dialog .property-forest-ledger .property-stand-group>.next-stand-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:1px 6px;min-height:0;margin:0;padding:3px 8px;border:0}
#detail-dialog .property-forest-ledger .property-stand-heading{display:flex;grid-column:1;grid-row:1;align-items:baseline;gap:7px;min-width:0}
#detail-dialog .property-forest-ledger .property-stand-heading h3{margin:0;font-family:inherit;font-size:12px;font-weight:400;line-height:1.3;color:var(--forest);white-space:nowrap}
#detail-dialog .property-forest-ledger .property-stand-heading :is(.property-stand-number-main,.property-stand-number-sub){font-weight:750}
#detail-dialog .property-forest-ledger .property-stand-index{font-family:inherit;font-size:12px;line-height:1.3;font-weight:700;font-variant-numeric:tabular-nums;color:#715331;white-space:nowrap}
#detail-dialog .property-forest-ledger .property-stand-context{display:flex;grid-column:1/3;grid-row:2;align-items:baseline;gap:3px 8px;flex-wrap:wrap;min-width:0}
#detail-dialog .property-forest-ledger :is(.property-stand-value,.property-stand-inventory,.property-stand-volume){display:flex;align-items:baseline;gap:4px;margin:0;line-height:1.3;font-family:inherit}
#detail-dialog .property-forest-ledger :is(.property-stand-value,.property-stand-inventory,.property-stand-volume) :is(dt,dd){margin:0;font-size:12px;line-height:1.3;text-align:left;white-space:nowrap}
#detail-dialog .property-forest-ledger :is(.property-stand-value,.property-stand-inventory,.property-stand-volume) dt{color:var(--muted);font-weight:400}
#detail-dialog .property-forest-ledger :is(.property-stand-value,.property-stand-inventory,.property-stand-volume) dd{font-weight:700}
#detail-dialog .property-forest-ledger .property-stand-volume dt{color:var(--muted);font-weight:400}
#detail-dialog .property-forest-ledger .property-stand-volume dd{font-weight:620;color:var(--ink)}
#detail-dialog .property-forest-ledger .property-stand-volume dd{display:inline-flex;align-items:baseline;gap:2px}
#detail-dialog .property-forest-ledger .property-stand-volume dd :is(strong,small){display:inline;font:inherit;color:inherit}
#detail-dialog .property-forest-evidence-panel{padding:14px;box-sizing:border-box}
#detail-dialog .property-forest-ledger .property-stand-actions{display:inline-flex;grid-column:2/4;grid-row:1/3;align-items:center;justify-content:flex-end;gap:4px;flex:none;margin:0 0 0 auto}
#detail-dialog .property-forest-ledger .property-stand-info{position:static;margin:0}
#detail-dialog .property-forest-ledger .property-stand-actions :is(summary,[data-map-stand]){display:inline-flex;align-items:center;justify-content:center;min-height:26px;height:26px;box-sizing:border-box;margin:0;padding:3px 6px;border:1px solid #d1dfcb;border-radius:4px;background:#f6f9f3;color:var(--forest);font-family:inherit;font-size:var(--ui-fs-micro);line-height:1.2;box-shadow:none;cursor:pointer;white-space:nowrap}
#detail-dialog .property-forest-ledger .property-stand-actions :is(summary,[data-map-stand]):hover,#detail-dialog .property-forest-ledger .property-stand-actions details[open]>summary{background:var(--mint);border-color:#a9c2a0}
#detail-dialog .property-forest-ledger .property-stand-actions :is(summary,[data-map-stand]):focus-visible{outline:2px solid var(--lmf-control-focus);outline-offset:2px}
#detail-dialog .property-forest-ledger .property-stand-info>summary{min-width:26px;width:26px;padding:4px}
#detail-dialog .property-forest-ledger .property-stand-info>summary>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#detail-dialog .property-forest-ledger .property-stand-info-panel{position:fixed;inset:auto;top:12px;left:12px;z-index:20;width:min(470px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;font:400 12px/1.4 Manrope,"Segoe UI",sans-serif;text-align:left}
#detail-dialog .property-forest-ledger .property-stand-actions>[data-map-stand]{min-width:26px;width:26px;padding:4px}
#detail-dialog .property-forest-ledger .property-stand-actions>[data-map-stand] svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#detail-dialog .property-forest-ledger .next-stand-details{margin:0;padding:0;border:0;min-width:0}
#detail-dialog .property-forest-ledger .next-stand-details>summary{font-weight:400;gap:3px}
#detail-dialog .property-forest-ledger .property-stand-details-panel{padding:12px;box-sizing:border-box;max-width:calc(100vw - 24px)}
#detail-dialog .property-stand-popup-panel .property-stand-info-close{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-height:28px;padding:4px;border:0;background:transparent}
#detail-dialog .property-stand-popup-panel .property-stand-info-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
#detail-dialog .property-forest-ledger .property-stand-damage{margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}
#detail-dialog .property-forest-ledger .property-stand-damage h5{margin:0 0 6px;font-size:12px;font-weight:620;color:var(--forest)}
#detail-dialog .property-forest-ledger .property-stand-damage dd{font-weight:400}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-group>.next-stand-header{display:grid;grid-template-columns:136px 126px 132px minmax(130px,1fr) auto;gap:3px 12px;min-height:32px;padding:3px 8px}
#detail-dialog .property-forest-ledger[data-forest-layout=band] :is(.property-stand-heading,.property-stand-context){display:contents}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-inventory{grid-column:3;grid-row:1}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-volume{grid-column:4;grid-row:1}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-actions{grid-column:5;grid-row:1;margin:0}
#detail-dialog .property-forest-ledger[data-forest-layout=band] :is(.property-stand-value,.property-stand-inventory,.property-stand-volume){padding-left:0;border:0;gap:5px}
#detail-dialog .property-forest-ledger .property-stand-inventory dd{color:var(--forest)}
#detail-dialog .property-forest-ledger>tbody.is-map-selected>tr[data-next-component]>:is(th,td):not(.property-stand-meta-cell){background:#edf5e7}
#detail-dialog .property-forest-ledger>tbody.is-map-selected>.property-stand-separator>td{background:#dcebcf}
#detail-dialog .property-forest-ledger>thead th.fd-has-toggle{padding:0}
#detail-dialog .property-forest-ledger .property-measure-toggle{display:grid;grid-template-rows:auto 10.35px;align-content:center;justify-items:center;width:100%;min-width:0;min-height:35px;box-sizing:border-box;margin:0;padding:5px 6px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;line-height:inherit;box-shadow:none;cursor:pointer}
#detail-dialog .property-forest-ledger .property-measure-toggle .next-component-label{grid-row:1}
#detail-dialog .property-forest-ledger .property-measure-toggle .next-component-unit{grid-row:2}
#detail-dialog .property-forest-ledger>thead th:first-child .property-measure-toggle{justify-items:start}
#detail-dialog .property-forest-ledger .property-measure-toggle:hover{background:#cfdfc4}
#detail-dialog .property-forest-ledger .property-measure-toggle:focus-visible{outline:2px solid var(--forest);outline-offset:-3px}
#detail-dialog .property-forest-ledger>thead th.is-column-highlighted{background:#bfd5af}
#detail-dialog .property-forest-ledger .property-measure-toggle[aria-pressed=true]{box-shadow:inset 0 -3px #607f4f}
#detail-dialog .property-forest-ledger>tbody>tr[data-next-component]>.is-column-highlighted:not(.property-stand-meta-cell){background:#d2e3c3;box-shadow:inset 1px 0 #aac29a,inset -1px 0 #aac29a}
/* Mouse rows share the selected-column tint; intersections retain a stronger cue. */
@media(hover:hover) and (pointer:fine){
 #detail-dialog .property-forest-ledger>tbody>tr[data-next-component]:hover>:is(th,td):not(.property-stand-meta-cell){background:#d2e3c3}
 #detail-dialog .property-forest-ledger>tbody>tr[data-next-component]:hover>.is-column-highlighted:not(.property-stand-meta-cell){background:#bdd3ab}
}
#detail-dialog .property-forest-ledger .property-stand-actions>[data-map-stand][aria-pressed=true]{background:#d6e7c9;border-color:#729464;color:#234c30}
#detail-dialog .property-forest-ledger[data-forest-layout=band]>tbody>.property-stand-separator>td{border-top:2px solid #b7cbb0;background:#eaf1e5}
#detail-dialog .property-stand-popup-panel .property-stand-info-grid dd{font-weight:700}
#detail-dialog .property-stand-popup-panel>.property-stand-explainer{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
#detail-dialog .property-stand-popup-panel .property-stand-explainer>div{display:block;grid-template-columns:none}
#detail-dialog .property-stand-popup-panel .property-stand-explainer :is(dt,dd){width:auto;max-width:none;text-align:left}
#detail-dialog .property-stand-popup-panel>.property-stand-legend{grid-template-columns:minmax(0,1fr);gap:7px}
#detail-dialog .property-stand-popup-panel .property-stand-legend li{display:grid;grid-template-columns:75px minmax(0,1fr);gap:8px}
#detail-dialog .property-stand-popup-panel .property-stand-info-grid dd :is(strong,small,span,time){font-weight:inherit}
#detail-dialog .property-stand-popup-panel .property-stand-info-grid dd.property-stand-volume-inline{display:inline-flex;align-items:baseline;justify-content:flex-end;gap:3px;white-space:nowrap;flex-wrap:nowrap}
#detail-dialog .property-stand-popup-panel .property-stand-info-grid dd.property-stand-volume-inline small{display:inline;font:inherit;white-space:nowrap}
#detail-dialog .parcel-aside .property-aside-markers{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
/* B4 OF2-P2 (decisions 195, 196): the star (a tool with its word), the priority pin (a tool) and "Kad apmeklēt?" (an add) are family buttons:
   they keep their row, the family draws them; the saved star is ochre */
#detail-dialog .parcel-aside .property-aside-markers{align-items:center}
#detail-dialog .parcel-aside .property-aside-markers>.b{width:100%;min-width:0}
#detail-dialog .property-focus-markers .shortlist-bookmark:is(.is-saved,[aria-pressed=true]) svg{color:var(--ui-ochre)}
#detail-dialog .parcel-aside .property-aside-markers :is(.property-focus-marker,[data-shortlist-toggle]):not([data-planning-print],.b){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;height:100%;box-sizing:border-box;align-self:stretch}
@media(min-width:601px) and (max-width:1000px){#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-group>.next-stand-header{grid-template-columns:122px 106px 102px minmax(100px,1fr) auto;gap:3px 8px}}
@media(max-width:900px){#detail-dialog .property-forest-ledger>thead .property-stand-column{width:210px}}
@media(max-width:800px),(pointer:coarse){
 #detail-dialog .property-forest-ledger .property-measure-toggle{min-height:44px}
 #detail-dialog .property-forest-ledger .property-stand-actions :is(summary,[data-map-stand]),#detail-dialog .property-stand-popup-panel .property-stand-info-close{min-height:44px;min-width:44px;height:auto;box-sizing:border-box}
}
@media(max-width:600px){
 #detail-dialog .property-forest-ledger-wrap{overflow-x:auto;overscroll-behavior-inline:contain}
 #detail-dialog .property-forest-scroll-hint{display:flex;justify-content:flex-end;align-items:center;gap:5px;margin:0 0 3px;font-size:12px;line-height:1.3;color:var(--muted)}
 #detail-dialog .property-forest-scroll-hint svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
 #detail-dialog .property-forest-ledger{min-width:410px}
 #detail-dialog .property-forest-ledger>thead th:first-child{width:78px}
 #detail-dialog .property-forest-ledger .property-stand-group>.next-stand-header{display:grid;position:sticky;left:0;grid-template-columns:minmax(0,1fr) auto;gap:1px 6px;min-height:0;width:calc(100vw - 52px);max-width:100%;padding:3px 6px;box-sizing:border-box}
 #detail-dialog .property-forest-ledger :is(.property-stand-heading,.property-stand-context){display:contents}
 #detail-dialog .property-forest-ledger .property-stand-heading h3{grid-column:1;grid-row:1;white-space:normal;font-size:12px}
 #detail-dialog .property-forest-ledger .property-stand-inventory{grid-column:1;grid-row:3}
 #detail-dialog .property-forest-ledger .property-stand-volume{grid-column:1;grid-row:4}
 #detail-dialog .property-forest-ledger :is(.property-stand-value,.property-stand-inventory,.property-stand-volume){display:grid;grid-template-columns:54px auto;gap:3px}
 #detail-dialog .property-forest-ledger .property-stand-actions{grid-column:2;grid-row:1/5;margin:0;gap:3px}
}

/* Approved phone density: smaller facts and controls, the same measurement rows and gap. */
@media(max-width:699px){
 #detail-dialog .property-forest-ledger .property-stand-heading h3,#detail-dialog .property-forest-ledger .property-stand-index,#detail-dialog .property-forest-ledger :is(.property-stand-value,.property-stand-inventory,.property-stand-volume) :is(dt,dd){font-size:12px;line-height:1.25}
 #detail-dialog .property-phone-header .property-focus-markers>button{min-height:32px;height:32px;padding:2px 4px;font-size:12px;line-height:1.15}
 #detail-dialog .property-forest-ledger .property-stand-actions :is(summary,[data-map-stand]){min-height:30px;height:30px;min-width:30px;padding:3px 5px;font-size:12px}
 #detail-dialog .property-forest-ledger .property-stand-info>summary,#detail-dialog .property-forest-ledger .property-stand-actions>[data-map-stand]{width:30px;padding:4px}
 #detail-dialog .property-forest-ledger .property-stand-actions :is(summary,[data-map-stand]) svg{width:14px;height:14px}
}
/* Tablet map tools are one compact row; original controls restore on other widths. */
/* Label visibility affects the native number overlay, never the stand geometry. */
#detail-dialog #parcel-map.property-stand-numbers-hidden>.lmf-map-number-overlay{display:none!important}
#detail-dialog .lmf-map-tools .property-stand-numbers-toggle{position:relative}   /* B4 OF2-P2: the glass map tool (.b.t.map) draws it */
@media(min-width:700px) and (max-width:1149.99px) and (min-height:501px),
 (min-width:1150px) and (max-width:1199.99px) and (min-height:1000px) and (pointer:coarse),
 (min-width:1150px) and (max-width:1199.99px) and (min-height:501px) and (pointer:none){
 #detail-dialog .property-title-compact .property-tablet-map-tools{display:flex;grid-column:1/3;grid-row:2;align-items:center;gap:6px;min-width:0;width:100%}
 #detail-dialog .property-title-compact .property-tablet-map-tools .property-forest-map-toggle{margin:0;flex:none;min-height:32px;height:32px;padding:3px 8px;font-size:12px;line-height:1.2}
 #detail-dialog .property-title-compact .property-tablet-map-tools .property-focus-nearby{display:flex;align-items:center;justify-content:flex-start;gap:6px;min-width:0;margin:0;padding:0;font-size:12px}
 #detail-dialog .property-title-compact .property-tablet-map-tools .property-focus-nearby label{display:inline-flex;align-items:center;gap:5px;font-size:12px;line-height:1.2}
 #detail-dialog .property-title-compact .property-tablet-map-tools .property-focus-nearby :is(select,button){box-sizing:border-box;min-height:32px;height:32px;padding:3px 8px;font-size:12px;line-height:1.2}
 #detail-dialog .property-title-compact .property-tablet-map-tools .property-focus-nearby select{width:76px;min-width:0;padding-right:22px}
}

/* Approved compact Overview: semantic value, reserved future section and on-map tools. */
#detail-dialog.property-focus-dialog .property-focus-overview>.score-overview{align-items:center;padding-bottom:12px;margin-bottom:16px}
#detail-dialog.property-focus-dialog .property-focus-overview>.score-overview>header h3{font-size:16px;font-weight:620;margin:0}
#detail-dialog.property-focus-dialog .property-focus-overview>.score-overview [data-score-value]{font-size:22px;line-height:1.25;font-weight:620;font-variant-numeric:tabular-nums}
#detail-dialog.property-focus-dialog .property-focus-overview>.score-overview>:is(.next-partial-note,.muted){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#detail-dialog.property-focus-dialog .property-focus-overview>.property-future-features{grid-column:1/-1;padding:12px 0;margin:0 0 14px;border-block:1px solid var(--line);text-align:center;font-size:13px;line-height:1.5;font-weight:400;color:var(--muted)}
.property-focus-overview .next-overview-map{position:relative}
.property-focus-overview .next-overview-map>.lmf-map-tools{position:absolute;z-index:1001;top:18px;right:10px;margin:0;gap:5px;font-size:12px;pointer-events:auto}
.property-focus-overview .next-overview-map>.lmf-map-tools :is(a,button,summary){min-height:32px;padding:5px 8px;border-radius:6px;background:rgba(255,255,255,.86);font-weight:400}
.property-focus-overview .next-overview-map>.lmf-map-tools .lmf-map-layer-body{left:auto;right:0;max-width:min(310px,calc(100vw - 96px));box-sizing:border-box}
.property-focus-overview .property-focus-map-toolbar{margin-top:4px;margin-bottom:10px}
#detail-dialog.property-focus-dialog .property-focus-overview .detail-map{margin-top:0}
.property-focus-overview .next-overview-map>.lmf-map-tools{top:10px}
@media(max-width:740px),(pointer:coarse){.property-focus-overview .next-overview-map>.lmf-map-tools :is(a,button,summary){min-height:32px;padding:5px 8px}.property-focus-overview .next-overview-map>.lmf-map-tools{top:8px;right:8px}}
@media(max-width:520px){.property-focus-overview .next-overview-map>.lmf-map-tools :is(a,button,summary){min-height:30px;padding:4px 7px;font-size:12px}}

/* The explicit compact-map brief uses 30px zoom targets on every pointer. */
#search-map-section .leaflet-control-zoom>a,#detail-dialog .property-focus-map-frame .leaflet-control-zoom>a{width:30px;height:30px;line-height:30px;font-size:18px}

/* Distinguish the reserved development area without adding vertical space. */
#detail-dialog.property-focus-dialog .property-focus-overview>.property-future-features{padding-inline:12px;border:1px solid #e2e9de;border-radius:6px;background:#f4f7f2}

/* Four existing property sections; the long notes label receives the wider phone track. */
@media screen and (max-width:700px){
 #detail-dialog.property-focus-dialog .property-phone-header .detail-tabs{grid-template-columns:minmax(0,.9fr) minmax(0,.8fr) minmax(0,1.8fr) minmax(0,1.1fr)}
}

/* Overview reuses the Forest header kit; its phone actions have two primary controls. */
@media screen and (max-width:699px),screen and (max-height:500px) and (pointer:coarse){
 #detail-dialog .property-phone-header .property-focus-markers.property-mobile-has-map:has(>[data-property-map-toggle]):not(:has(>[data-planning-print])){grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Forest map: 15% shorter on desktop/tablet; phone and touch landscape retain their original heights. */
@media(min-width:700px){#detail-dialog.property-focus-dialog .property-focus-forest .detail-map{height:297.5px}}
@media(min-width:700px) and (max-width:800px){#detail-dialog.property-focus-dialog .property-focus-forest .detail-map{height:clamp(187px,38.25svh,297.5px)}}
@media(min-width:801px) and (max-height:650px){#detail-dialog.property-focus-dialog .property-focus-forest .detail-map{height:238px}}
@media(min-width:700px) and (max-height:500px) and (pointer:coarse){#detail-dialog.property-focus-dialog .property-focus-forest .detail-map{height:350px}}
@media(min-width:700px) and (max-width:800px) and (max-height:500px) and (pointer:coarse){#detail-dialog.property-focus-dialog .property-focus-forest .detail-map{height:clamp(220px,45svh,350px)}}
@media(min-width:801px) and (max-height:500px) and (pointer:coarse){#detail-dialog.property-focus-dialog .property-focus-forest .detail-map{height:280px}}

/* The phone's horizontal scrollport keeps species fixed; the matching heading
   presentation follows the outer dialog without adding another vertical scroller. */
@media(max-width:600px){
 #detail-dialog .property-forest-ledger>tbody>tr[data-next-component]>th[scope=row]{position:sticky;left:0;z-index:2}
 #detail-dialog .property-forest-ledger>thead th:first-child{left:0;z-index:4}
}
#detail-dialog [data-forest-sticky-header]{position:fixed;z-index:12;overflow:hidden;margin:0;padding:0;border:0;background:#dce9d3;box-sizing:border-box;isolation:isolate}
#detail-dialog [data-forest-sticky-header][hidden]{display:none!important}
#detail-dialog .property-forest-sticky-table{min-width:0!important;max-width:none;margin:0;border:0;will-change:transform}
#detail-dialog .property-forest-sticky-table>thead th{position:relative;top:auto}
#detail-dialog .property-forest-sticky-table>thead th:first-child{z-index:5;background:#dce9d3}
#detail-dialog .property-forest-sticky-table>thead th:first-child.is-column-highlighted{background:#bfd5af}
@media print{#detail-dialog [data-forest-sticky-header]{display:none!important}}

/* Batch B (24 Oct): owner box, compartment area / site class / restriction flag, main-species emphasis. Existing tokens only. */
#detail-dialog .property-owner-box{display:grid;align-content:start;margin:0 0 14px;padding:2px 12px 4px;background:var(--white,#fff);border:1px solid var(--line);border-radius:12px;color:var(--ink);font-size:13px;line-height:1.35;font-variant-numeric:tabular-nums}
#detail-dialog .property-owner-facts{display:grid;align-content:start;margin:0;padding:0}
#detail-dialog .property-owner-row{display:grid;grid-template-columns:minmax(0,92px) minmax(0,1fr);align-items:baseline;gap:10px;margin:0;padding:6px 0;border-bottom:1px solid #e8ede6}
#detail-dialog .property-owner-facts>.property-owner-row:last-child{border-bottom:0}
#detail-dialog .property-owner-row>dt{margin:0;font-size:12px;font-weight:400;color:var(--muted);overflow-wrap:anywhere}
#detail-dialog .property-owner-row>dd{margin:0;min-width:0;font-weight:400;overflow-wrap:anywhere}
#detail-dialog .property-owner-name>dd{font-weight:700}
#detail-dialog .property-owner-person+.property-owner-person,#detail-dialog .property-owner-more,#detail-dialog .property-owner-land,#detail-dialog .property-owner-others{border-top:1px solid var(--line)}
#detail-dialog .property-owner-more>summary{display:flex;align-items:center;gap:6px;min-height:44px;margin:0;padding:0;list-style:none;color:var(--forest);font-size:12px;font-weight:620;letter-spacing:0;text-transform:none;cursor:pointer}
#detail-dialog .property-owner-more>summary::-webkit-details-marker{display:none}
#detail-dialog .property-owner-more>summary::before{content:"";display:block;width:14px;height:14px;flex:0 0 14px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;transform:rotate(-90deg);transition:transform 160ms ease-out}
#detail-dialog .property-owner-more[open]>summary::before{transform:none}
#detail-dialog .property-owner-more>summary:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
#detail-dialog .property-owner-address>dd{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
#detail-dialog .property-owner-map{display:inline-flex;align-items:center;gap:4px;min-height:26px;padding:2px 7px;border:1px solid #d1dfcb;border-radius:6px;background:#f6f9f3;color:var(--forest);font-size:12px;font-weight:620;line-height:1.2;text-decoration:none}
#detail-dialog .property-owner-map:hover{background:var(--mint);border-color:#a9c2a0}
#detail-dialog .property-owner-map svg,#detail-dialog .property-owner-others svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#detail-dialog .property-owner-channel{display:block;color:var(--forest);text-underline-offset:3px}
#detail-dialog span.property-owner-channel{color:var(--ink)}
#detail-dialog .property-owner-restricted{display:inline-block;margin-left:4px;padding:0 5px;border-radius:4px;background:#fff1d6;color:#815000;font-size:var(--ui-fs-micro);font-weight:600}
#detail-dialog .property-owner-description>dd{font-weight:400}
#detail-dialog .property-owner-others-toggle,#detail-dialog .property-owner-others-none{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;margin:0;padding:6px 0;border:0;border-radius:0;background:transparent;color:var(--ink);font:inherit;font-size:13px;text-align:left;box-shadow:none}
#detail-dialog .property-owner-others-toggle{cursor:pointer;color:var(--forest)}
#detail-dialog .property-owner-others-toggle>span,#detail-dialog .property-owner-others-none>span:first-child{flex:1;min-width:0;font-weight:620}
#detail-dialog .property-owner-others-toggle>strong{min-width:24px;padding:1px 7px;border-radius:999px;background:var(--mint);color:var(--forest);font-size:12px;font-weight:700;text-align:center}
#detail-dialog .property-owner-others-toggle svg{transition:transform 160ms ease-out}
#detail-dialog .property-owner-others-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
#detail-dialog .property-owner-others-toggle:hover{background:#f6f9f3}
#detail-dialog .property-owner-others-toggle:focus-visible,#detail-dialog .property-owner-property:focus-visible,#detail-dialog .property-owner-map:focus-visible,#detail-dialog .property-owner-channel:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
#detail-dialog .property-owner-others-panel{padding:0 0 6px}
#detail-dialog .property-owner-others-panel>ul{display:grid;gap:2px;margin:0;padding:0;list-style:none}
#detail-dialog .property-owner-property{display:grid;grid-template-columns:minmax(0,1fr) 14px;align-items:center;column-gap:8px;width:100%;min-height:44px;margin:0;padding:5px 8px;border:1px solid #e1e8df;border-radius:8px;background:#f9fbf8;color:var(--ink);font:inherit;text-align:left;box-shadow:none;cursor:pointer}
#detail-dialog .property-owner-property:hover{background:var(--mint);border-color:#b8ccb1}
#detail-dialog .property-owner-property-name{grid-column:1;font-size:13px;font-weight:620;overflow-wrap:anywhere}
#detail-dialog .property-owner-property>small{grid-column:1;font-size:var(--ui-fs-micro);color:var(--muted);overflow-wrap:anywhere}
#detail-dialog .property-owner-property>svg{grid-column:2;grid-row:1/3;color:var(--forest)}
#detail-dialog .property-owner-others-note{margin:6px 0 0;font-size:var(--ui-fs-micro);line-height:1.35;color:var(--muted)}
/* The sidebar's generic button skin (border, fill, hover) must not reach the box's row controls. */
#detail-dialog .property-owner-box button.property-owner-others-toggle{border:0;border-radius:6px;background:transparent;color:var(--forest);font-weight:400;line-height:1.35}
#detail-dialog .property-owner-box button.property-owner-others-toggle:hover:not(:disabled){border:0;background:#f3f7f1;color:var(--forest)}
#detail-dialog .property-owner-box button.property-owner-property{border:1px solid #e1e8df;border-radius:8px;background:#f9fbf8;color:var(--ink);font-weight:400;line-height:1.35}
#detail-dialog .property-owner-box button.property-owner-property:hover:not(:disabled){border-color:#b8ccb1;background:var(--mint);color:var(--ink)}
@media(prefers-reduced-motion:reduce){#detail-dialog .property-owner-others-toggle svg,#detail-dialog .property-owner-more>summary::before{transition:none}}
@media(min-width:1001px){#detail-dialog.property-focus-dialog .parcel-layout{grid-template-columns:minmax(0,1fr) 264px}}
@media(min-width:1001px) and (max-width:1199px){#detail-dialog.property-focus-dialog .parcel-layout{grid-template-columns:minmax(0,1fr) 248px}}
@media(max-width:1000px){
 #detail-dialog .property-owner-box[data-owner-placement=top]{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;margin-top:4px;margin-bottom:12px}
 #detail-dialog .property-owner-box[data-owner-placement=top] .property-owner-address>dd{flex-direction:row;align-items:center;justify-content:space-between;gap:8px}
 #detail-dialog .property-owner-box[data-owner-placement=top] .property-owner-map{flex:none}
 #detail-dialog .property-owner-box[data-owner-placement=top]>.property-owner-people{grid-column:1}
 #detail-dialog .property-owner-box[data-owner-placement=top]>.property-owner-land{grid-column:2;grid-row:1;border-top:0}
 #detail-dialog .property-owner-box[data-owner-placement=top]>.property-owner-others{grid-column:1/-1}
 #detail-dialog .property-owner-map{min-height:44px;padding-inline:10px}
}
@media(max-width:699px){
 #detail-dialog .property-owner-box[data-owner-placement=top]{grid-template-columns:minmax(0,1fr)}
 #detail-dialog .property-owner-box[data-owner-placement=top]>.property-owner-land{grid-column:1;grid-row:auto;border-top:1px solid var(--line)}
 #detail-dialog .property-owner-box[data-owner-placement=top] .property-owner-facts{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
 #detail-dialog .property-owner-box[data-owner-placement=top] .property-owner-row{display:block;padding:5px 0;border-bottom:0}
 #detail-dialog .property-owner-box[data-owner-placement=top] .property-owner-row>dt{font-size:12px;line-height:1.3}
 #detail-dialog .property-owner-box[data-owner-placement=top] :is(.property-owner-name,.property-owner-address,.property-owner-description){grid-column:1/-1}
}
@media(pointer:coarse){#detail-dialog .property-owner-map{min-height:44px;padding-inline:10px}}

/* Compartment facts in the grouped Forest data header. */
#detail-dialog .property-forest-ledger :is(.property-stand-area,.property-stand-site){display:flex;align-items:baseline;gap:4px;margin:0;line-height:1.3;font-family:inherit}
#detail-dialog .property-forest-ledger :is(.property-stand-area,.property-stand-site) :is(dt,dd){margin:0;font-size:12px;line-height:1.3;text-align:left;white-space:nowrap}
#detail-dialog .property-forest-ledger :is(.property-stand-area,.property-stand-site) dt{color:var(--muted);font-weight:400}
#detail-dialog .property-forest-ledger :is(.property-stand-area,.property-stand-site) dd{font-weight:700;color:var(--ink)}
#detail-dialog .property-forest-ledger details.property-stand-restriction{margin:0;min-width:0}
#detail-dialog .property-forest-ledger details.property-stand-restriction>summary{display:inline-flex;align-items:baseline;gap:4px;min-height:22px;height:auto;margin:0;padding:2px 7px;border:1px solid #d1dfcb;border-radius:4px;background:transparent;color:var(--ink);font:inherit;font-size:12px;line-height:1.3;white-space:nowrap;cursor:pointer;list-style:none}
#detail-dialog .property-forest-ledger details.property-stand-restriction>summary::before{content:none;display:none}
#detail-dialog .property-forest-ledger details.property-stand-restriction>summary::-webkit-details-marker{display:none}
#detail-dialog .property-forest-ledger .property-stand-restriction-label{color:var(--muted);font-weight:400}
#detail-dialog .property-forest-ledger .property-stand-restriction-value{font-weight:700}
#detail-dialog .property-forest-ledger details.property-stand-restriction[data-restriction=yes]>summary{background:#fff1d6;border-color:#e3c587}
#detail-dialog .property-forest-ledger details.property-stand-restriction[data-restriction=yes] .property-stand-restriction-value,#detail-dialog .property-forest-ledger details.property-stand-restriction[data-restriction=seasonal] .property-stand-restriction-value{color:#815000}
#detail-dialog .property-forest-ledger details.property-stand-restriction[data-restriction=seasonal]>summary{background:#fff8e8;border-color:#ead4a3}
#detail-dialog .property-forest-ledger details.property-stand-restriction[data-restriction=no] .property-stand-restriction-value{color:var(--forest)}
#detail-dialog .property-forest-ledger details.property-stand-restriction[data-restriction=unknown]>summary{border-style:dashed;border-color:#aab7a9}
#detail-dialog .property-forest-ledger details.property-stand-restriction[data-restriction=unknown] .property-stand-restriction-value{color:var(--muted);font-weight:620}
#detail-dialog .property-forest-ledger details.property-stand-restriction>summary:hover,#detail-dialog .property-forest-ledger details.property-stand-restriction[open]>summary{border-color:#a9c2a0;box-shadow:inset 0 0 0 1px #a9c2a0}
#detail-dialog .property-forest-ledger details.property-stand-restriction>summary:focus-visible{outline:2px solid var(--lmf-control-focus,#285c43);outline-offset:2px}
#detail-dialog .property-stand-restriction-panel .property-stand-restriction-text{margin:0;font-size:13px;font-weight:620;line-height:1.4}
#detail-dialog .property-stand-restriction-panel .property-stand-restriction-note{margin:6px 0 0;font-size:12px;line-height:1.4;color:var(--muted)}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-group>.next-stand-header{grid-template-columns:132px 92px 108px 92px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:2px 10px}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-heading h3{grid-column:1;grid-row:1}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-value{grid-column:2;grid-row:1}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-area{grid-column:3;grid-row:1}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-site{grid-column:4;grid-row:1}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-restriction{grid-column:5;grid-row:1;justify-self:start}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-inventory{grid-column:2;grid-row:2}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-volume{grid-column:3/6;grid-row:2}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-actions{grid-column:6;grid-row:1/3;align-self:center}
@media(min-width:601px) and (max-width:1000px){#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-group>.next-stand-header{grid-template-columns:116px 84px 100px 84px minmax(0,1fr) auto;gap:2px 8px}}
@media(min-width:1400px){
 #detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-group>.next-stand-header{grid-template-columns:132px 92px 104px 96px 172px 84px minmax(120px,1fr) auto;grid-template-rows:auto;gap:3px 10px}
 #detail-dialog .property-forest-ledger[data-forest-layout=band] :is(.property-stand-heading h3,.property-stand-value,.property-stand-area,.property-stand-site,.property-stand-restriction,.property-stand-inventory,.property-stand-volume,.property-stand-actions){grid-row:1}
 #detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-restriction{grid-column:5}
 #detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-inventory{grid-column:6}
 #detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-volume{grid-column:7}
 #detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-actions{grid-column:8}
}
@media(max-width:800px),(pointer:coarse){#detail-dialog .property-forest-ledger details.property-stand-restriction>summary{min-height:44px;align-items:center}}
@media(max-width:600px){
 #detail-dialog .property-forest-ledger .property-stand-group>.next-stand-header{grid-template-columns:minmax(0,.8fr) minmax(0,.6fr) auto;gap:3px 8px}
 #detail-dialog .property-forest-ledger .property-stand-heading h3{grid-column:1/3;grid-row:1;align-self:center}
 #detail-dialog .property-forest-ledger .property-stand-value{grid-column:1;grid-row:2}
 #detail-dialog .property-forest-ledger .property-stand-area{grid-column:2/4;grid-row:2}
 #detail-dialog .property-forest-ledger .property-stand-site{grid-column:1;grid-row:3}
 #detail-dialog .property-forest-ledger .property-stand-restriction{grid-column:2/4;grid-row:3;justify-self:start}
 #detail-dialog .property-forest-ledger .property-stand-inventory{grid-column:1;grid-row:4}
 #detail-dialog .property-forest-ledger .property-stand-volume{grid-column:2/4;grid-row:4}
 #detail-dialog .property-forest-ledger :is(.property-stand-value,.property-stand-inventory,.property-stand-volume,.property-stand-area,.property-stand-site){display:flex;flex-wrap:wrap;align-items:baseline;gap:0 4px}
 #detail-dialog .property-forest-ledger .property-stand-actions{grid-column:3;grid-row:1;align-self:center}
 #detail-dialog .property-forest-ledger details.property-stand-restriction>summary{position:relative;min-height:0;padding:1px 6px;font-size:12px}
 #detail-dialog .property-forest-ledger details.property-stand-restriction>summary::after{content:"";position:absolute;inset:-14px -6px}
}
@media(max-width:699px){#detail-dialog .property-forest-ledger :is(.property-stand-area,.property-stand-site) :is(dt,dd){font-size:12px;line-height:1.25}}
/* An open stand popup lives in the sticky phone header; lift that header above the sticky species column. Phone only
   (r7, in-app finding 2): on wider screens the header is not sticky and the popup is fixed on its own, so a lifted header
   painted over the sticky column headings. While a popup is open on a phone, the heading copy steps aside. */
@media(max-width:600px){
 #detail-dialog .property-forest-ledger .property-stand-group>.next-stand-header.fd-open{position:sticky;z-index:30}
 #detail-dialog.fd-stand-open [data-forest-sticky-header]{display:none!important}
}

/* Main species carries the emphasis; other species stay visible but plainer. */
#detail-dialog .property-forest-ledger>tbody>tr[data-species-role=main]>th[scope=row]:not(.property-stand-meta-cell){font-weight:700;color:var(--ink)}
#detail-dialog .property-forest-ledger>tbody>tr[data-species-role=other]>:is(th,td):not(.property-stand-meta-cell){color:var(--muted)}
#detail-dialog .property-forest-ledger>tbody>tr[data-species-role=other] .next-reference-value{font-weight:400}
.next-forest-data .property-stand-legend-main{font-weight:700;color:var(--ink)}
.next-forest-data .property-stand-legend-other{font-weight:400;color:var(--muted)}
/* Main species value calculation: other groups are shown, not counted (never 0). */
.next-not-counted{color:var(--muted);font-size:13px;font-weight:400;white-space:nowrap}
.next-not-counted-short{display:none}
/* The visually hidden full form needs a positioned cell, or it escapes the table scroller (Meow P1-1). */
td[data-value-status="not-counted"]{position:relative}
@media(max-width:1000px){
 .next-not-counted-full{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .next-not-counted-short{display:inline;white-space:normal}
}
/* The Forest data table's value column is narrow at every width: short visible form there, full form for readers. */
.property-forest-ledger .next-not-counted-full{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.property-forest-ledger .next-not-counted-short{display:inline;white-space:normal}
/* A stand lowered for diameter: the cue beside the header value, the reason sentence under the value in Details. */
#detail-dialog .property-forest-ledger .next-stand-header>.property-stand-lowered{grid-column:1/-1;font-size:var(--ui-fs-micro);font-weight:400;line-height:1.25;color:var(--muted)}
#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-group>.next-stand-header>.property-stand-lowered{grid-column:2/5;grid-row:3}
@media(min-width:1400px){#detail-dialog .property-forest-ledger[data-forest-layout=band] .property-stand-group>.next-stand-header>.property-stand-lowered{grid-row:2}}
@media(max-width:600px){
 #detail-dialog .property-forest-ledger .next-stand-header>.property-stand-lowered{grid-column:1/4;grid-row:3}
 #detail-dialog .property-forest-ledger .next-stand-header.fd-lowered :is(.property-stand-site,.property-stand-restriction){grid-row:4}
 #detail-dialog .property-forest-ledger .next-stand-header.fd-lowered :is(.property-stand-inventory,.property-stand-volume){grid-row:5}
}
.property-stand-info-grid>div.property-stand-reason-pair{grid-column:1/-1}
#detail-dialog .property-stand-info-panel .property-stand-info-grid dd span.property-stand-reason{display:block;margin-top:2px;font-weight:400;color:var(--muted);text-align:left;white-space:normal}

/* t16: quiet stand context, stronger measurement headings and a separate wrapping cutting fact. */
#detail-dialog .property-forest-ledger .property-stand-cutting{grid-column:1/-1;grid-row:auto;font-size:var(--ui-fs-micro);font-weight:400;line-height:1.4;overflow-wrap:anywhere}
#detail-dialog .property-forest-ledger .next-component-primary thead th{font-weight:700}
.next-stand-summary-main>.next-stand-identity>small{font-weight:400}
.next-component-primary .next-main-species-note{display:block;font-size:var(--ui-fs-micro);font-weight:400}
@media(max-width:600px){.property-forest-ledger .next-not-counted-short{font-size:12px}}

.next-forest-data .next-component-primary thead th{font-weight:620}

@media(min-width:601px) and (max-width:1000px){.next-forest-data .next-component-primary :is(th,td){padding-inline:5px}}

/* B2-DESIGN (audit P1): the parish line in the compact window header stays inside its identity column instead of running under
   the tab strip ("Mores pagasts · Siguldas novads" under Darījums); it wraps to a second line when the column is narrow.
   The name keeps its line; the cadastre number and parish go under it and wrap inside the column. The tabs are not touched. */
#detail-dialog .property-title-compact .property-heading-identity{flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;min-width:0}
#detail-dialog .property-title-compact .property-heading-identity>h2{max-width:100%}
#detail-dialog .property-title-compact .property-heading-identity .parcel-subline{flex:0 1 auto;min-width:0;max-width:100%;white-space:normal;flex-wrap:wrap;column-gap:6px;row-gap:0}
}

/* /forest/workspace-inventory-clarity.css */
@layer legacy{/* Recorded-year and imported historical signals keep their existing names,
   source explanations and evidence buttons. The shapes do not certify validity. */
.inventory-evidence-trigger{
 --inventory-status-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12,2 22,12 12,22 2,12'/%3E%3Cpath d='M9.4 9a2.6 2.6 0 0 1 5.2 0c0 1.8-2.6 1.8-2.6 3.6m0 3h.01'/%3E%3C/svg%3E");
 color:#4b5b50;
}
.inventory-evidence-trigger[data-inventory-age=review],
.inventory-evidence-trigger[data-historical-inventory=old]{
 --inventory-status-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12,3 22,21 2,21'/%3E%3Cpath d='M12 9v5.5m0 3h.01'/%3E%3C/svg%3E");
 color:#97665d;
}
.inventory-evidence-trigger[data-inventory-age=within-window],
.inventory-evidence-trigger[data-historical-inventory=not-old]{
 --inventory-status-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m7.4 12.1 3.1 3.2 6.1-6.6'/%3E%3C/svg%3E");
 color:#58735e;
}
.inventory-evidence-trigger::before{
 content:'';
 display:block;
 flex:none;
 width:24px;
 height:24px;
 background-color:currentColor;
 -webkit-mask-image:var(--inventory-status-mask);
 mask-image:var(--inventory-status-mask);
 -webkit-mask-position:center;
 mask-position:center;
 -webkit-mask-repeat:no-repeat;
 mask-repeat:no-repeat;
 -webkit-mask-size:contain;
 mask-size:contain;
}
.inventory-evidence-trigger>.mobile-inventory-glyph{display:none}
.inventory-evidence-trigger[data-inventory-age=unresolved]::before{visibility:hidden}
.next-owner-evidence[data-owner-evidence]{justify-content:center;width:100%}
.next-owner-evidence[data-owner-evidence]>.icon{width:18px;height:18px;stroke-width:1.8}
.next-owner-evidence[data-owner-evidence=uploaded]>.icon{color:#6d806c}
.next-owner-evidence[data-owner-evidence=reference]>.icon{color:#9b756d}
.catalogue-dense .dense-property-table tbody tr[data-record-id]>td[data-table-column=processingStage],
.mobile-register tbody tr[data-record-id]>td[data-mobile-key=processingStage]{text-align:center}
.dense-property-table th[data-table-column=processingStage] button{justify-content:center;text-align:center}
.mobile-register thead th[data-mobile-key=processingStage]{text-align:center}
@media(forced-colors:active){
 .inventory-evidence-trigger[data-inventory-age],
 .inventory-evidence-trigger[data-historical-inventory]{color:ButtonText}
 .inventory-evidence-trigger::before{background-color:ButtonText;forced-color-adjust:none}
 .inventory-evidence-trigger[data-inventory-age=unresolved]::before{visibility:visible}
 .next-owner-evidence[data-owner-evidence]>.icon{color:CanvasText}
}
}

/* /forest/workspace-cleanup.css */
@layer legacy{/* D-104: familiar workspace settings, with source management out of the catalogue. */
.topbar[hidden]{display:none!important}
.accounts-sample-setting[hidden]{display:none!important}
.workspace-settings{max-width:1120px;margin:0 auto;padding:24px 4px 40px}
.workspace-settings [hidden]{display:none!important}
.workspace-settings-layout{display:grid;grid-template-columns:208px minmax(0,1fr);gap:32px;align-items:start}
.workspace-settings-panels{min-width:0}
.workspace-settings-panels [data-workspace-species-settings]>.lmf-species-settings{margin-top:0}
.workspace-settings-section-heading{margin-bottom:20px}
.workspace-settings-section-heading h2{margin:0 0 8px;font:var(--ui-t-win);letter-spacing:-.015em}
.workspace-settings-section-heading p{margin:0;color:var(--muted,#525b56);font-size:13px;line-height:1.5;max-width:65ch}
.workspace-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.workspace-settings-heading h1{margin:0;font:var(--ui-t-page);letter-spacing:-.02em}
.workspace-settings .next-data-panel{background:var(--v31-surface,#fff);border:1px solid var(--line);border-radius:12px;padding:22px 24px;margin:0}
.workspace-settings .next-cohort-bar{font-size:13px;padding-bottom:12px;border-bottom:1px solid var(--line);gap:8px}
.workspace-settings .next-data-disclosure{margin:8px 0 0}
.workspace-settings .next-data-disclosure>summary{display:none}
.workspace-settings .next-data-disclosure>summary{font-size:18px;line-height:1.4}
.workspace-settings .next-data-disclosure>p{margin:4px 0 18px}
.workspace-settings .next-data-disclosure>p>a{color:var(--forest);text-underline-offset:3px}
.workspace-settings .next-source-disclosure{padding:8px 0;margin:0 0 16px;border-bottom:1px solid var(--line)}
.workspace-settings .next-source-disclosure li{padding:10px 0}
.workspace-settings .next-upload h3{font:var(--ui-t-step);margin:18px 0 8px}
.workspace-settings .next-upload>p{font-size:13px}
.workspace-settings .next-upload-controls{max-width:none;margin-top:16px}
.workspace-settings .next-process-status{margin-bottom:0;min-height:20px}
.workspace-settings :is(a,summary,button):focus-visible{outline:2px solid var(--forest);outline-offset:3px}
@media(max-width:860px){
 .workspace-settings-layout{grid-template-columns:minmax(0,1fr);gap:24px}
}
@media(max-width:600px){
 .workspace-settings{padding:16px 0 28px}
 .workspace-settings-heading{gap:10px;margin-bottom:16px}
 .workspace-settings-heading h1{font-size:20px}
 .workspace-settings .next-data-panel{padding:16px;border-radius:10px}
 .workspace-settings .next-upload-controls{display:block}
 .workspace-settings .next-upload-actions{margin-top:12px}
 .workspace-settings .next-upload-actions button{min-height:44px}
 .workspace-settings input[type=file]{width:100%;max-width:100%}
 .workspace-settings-layout{gap:20px}
}

body:has(.workspace-settings [data-species-editor]) #workspace-return{display:none!important}
.workspace-settings .value-mode-panel{max-width:720px}
.workspace-settings .value-mode-choices{margin:0;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.workspace-settings .value-mode-option{display:flex;align-items:flex-start;gap:12px;margin:0;padding:16px 20px;min-height:56px;cursor:pointer;color:var(--ink);font-size:inherit;font-weight:400;line-height:1.5}
.workspace-settings .value-mode-option+.value-mode-option{border-top:1px solid var(--line)}
.workspace-settings .value-mode-option:hover{background:var(--v31-surface-2,#eeede6)}
.workspace-settings .value-mode-option.is-active{background:var(--lmf-tint,#e2ede5)}
.workspace-settings .value-mode-option.is-pending,.workspace-settings .value-mode-option.is-pending:hover{background:#fff;box-shadow:inset 0 0 0 2px var(--forest)}
.workspace-settings .value-mode-option.is-disabled{cursor:default}
.workspace-settings .value-mode-option.is-disabled:not(.is-active):hover{background:transparent}
.workspace-settings .value-mode-option input{margin-top:3px}
.workspace-settings .value-mode-option-text{display:grid;gap:4px;min-width:0}
.workspace-settings .value-mode-option-name{font:var(--ui-t-row)}
.workspace-settings .value-mode-active{display:inline-block;margin-left:8px;padding:0 8px;border:1px solid var(--lmf-band-line,#cce0d2);border-radius:999px;background:#fff;color:var(--forest);font-size:12px;font-weight:620;line-height:1.6;vertical-align:1px}
.workspace-settings .value-mode-option-help{color:var(--muted);font-size:13px;line-height:1.5;max-width:65ch}
.workspace-settings .value-mode-option-note{color:#7a4d00;font-size:13px;line-height:1.45}
.workspace-settings .value-mode-confirm{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-top:12px;padding:14px 20px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.workspace-settings .value-mode-confirm p{margin:0;font-weight:620}
.workspace-settings .value-mode-unavailable{margin:12px 0 0;padding:12px 16px;border:1px solid var(--v31-warn-line,#ecd9ab);border-radius:8px;background:var(--v31-warn-bg,#fcefd3);color:#7a4d00;font-size:13px;line-height:1.5}
.workspace-settings .value-mode-unavailable p{margin:0}
.workspace-settings .value-mode-unavailable .value-mode-admin-hint{margin-top:4px;font-weight:620}
.workspace-settings .value-mode-readonly{margin:12px 0 0;color:var(--muted);font-size:13px}
.workspace-settings .value-mode-status{min-height:20px;margin:12px 0 0;font-size:13px;color:var(--ink)}
.workspace-settings .value-mode-status.is-refusal{padding:12px 16px;border:1px solid var(--v31-warn-line,#ecd9ab);border-radius:8px;background:var(--v31-warn-bg,#fcefd3);color:#7a4d00}
.workspace-settings .value-mode-status.is-success{color:var(--forest);font-weight:620}
.workspace-settings .value-mode-status:focus:not(:focus-visible){outline:none}
.workspace-settings .value-mode-actions button[aria-disabled=true]{opacity:.6;cursor:progress}
@media(max-width:600px){
 .workspace-settings .value-mode-option{padding:14px 16px}
 .workspace-settings .value-mode-confirm{padding:14px 16px}
 .workspace-settings .value-mode-actions{width:100%}
 .workspace-settings .value-mode-actions button{flex:1}
}

/* ===== B4-UNIFY: Legacy surface unification, compact desktop controls, flat 2D buttons & aligned Pārlūks bar ===== */
:root{
 --lmf-control-ink:#1c2420;
 --lmf-control-muted:#525b56;
 --lmf-control-line:#c4c7bf;
 --lmf-control-surface:#ffffff;
 --lmf-control-hover:#f5f4ef;
 --lmf-control-selected:#e2ede5;
 --lmf-control-radius:8px;
}

/* 0. Flat 2D controls everywhere + compact desktop button & input sizes (keeps 44px on phone/touch) */
input:where(:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color]):not([type=file])),
select,textarea{
 background-color:#ffffff;
 border-color:var(--v31-ctl-line,#c4c7bf);
 border-radius:var(--lmf-r-ctl,8px);
 box-shadow:none;
}
@media(min-width:701px) and (pointer:fine){
 button:where(:not(.check-task):not(.planner-complete):not(.table-resize-handle):not([role=tab]):not(.table-mark):not(.shortlist-bookmark):not(.cadastre-toggle):not(.dense-facts-trigger):not(.mobile-species-cell):not(.v31-pa-row):not(.v31-td2-open):not(.v31-td2-stop):not(.v31-td2-check):not(.v31-db-open):not(.v31-pw-row):not(.v31-pk-row):not(.v31-pk-more):not(.pl-ring):not(.pl-mv):not(.pl-add):not(.pl-cnum):not(.property-owner-others-toggle):not(.property-owner-property):not(.b3-star):not(.close-dialog)){
  min-height:32px;height:32px;padding:0 10px;font-size:13px;line-height:1.25;
 }
 input:where(:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color]):not([type=file])),
 select:not([multiple]):not([size]){
  min-height:32px;height:32px;padding:0 10px;font-size:13px;line-height:1.25;
 }
 select:not([multiple]):not([size]){
  padding-right:26px;background-image:var(--lmf-chevron);background-repeat:no-repeat;background-position:right 8px center;background-size:14px 14px;
 }
 textarea{font-size:13px;padding:6px 10px}
 .accounts-user-tools>button{min-height:32px;height:32px}
}

/* 1. Pārlūks: keep comfortable work-view tabs; tuck Main species, Min. score & source checks under More filters; razor-aligned row */
#content .catalogue-search-row{display:flex;align-items:center;gap:10px;margin:0 0 8px}
#content .catalogue-search-row #land-search,
#content #land-filters .catalogue-location-filters select{
 border:1px solid var(--v31-ctl-line,#c4c7bf);
 border-radius:var(--lmf-r-ctl,8px);
 background-color:#ffffff;
 color:var(--ink,#1c2420);
 box-shadow:none;
}
#content .catalogue-search-row #land-search:hover,
#content #land-filters .catalogue-location-filters select:hover{border-color:#8d968f}
#content #land-filters .catalogue-location-filters select{
 background-image:var(--lmf-chevron);
 background-repeat:no-repeat;
 background-position:right 8px center;
 background-size:14px 14px;
 padding:0 26px 0 8px;
}
#content .catalogue-controls-row :is(button,.table-columns>summary){
 border-radius:var(--lmf-r-ctl,8px);
 border-color:var(--v31-ctl-line,#c4c7bf);
 background-color:#ffffff;
 color:var(--ink,#1c2420);
 box-shadow:none;
}
#content .catalogue-controls-row :is(button,.table-columns>summary):hover:not(:disabled){
 background-color:#f5f4ef;
 border-color:#8d968f;
 color:var(--ink,#1c2420);
}
@media(min-width:1001px){
 /* Work-view tabs stay comfortable & readable (do NOT reduce tab size) */
 /* B4 OF2 p3: the work-view tabs are the family's .seg (its look and size); only their place stays */
 .catalogue-search-row>.search-work-views{flex:0 1 auto;margin:0}
 #content .catalogue-search-row .search-work-views [data-qualification-toggle]{margin-left:2px}
 #content .catalogue-search-row .searchbox{margin:0;flex:0 1 320px;min-width:220px}
 #content .catalogue-search-row #land-search{height:34px;min-height:34px;font-size:13px}

 /* Tuck Main species, Min. source score, and source checks under More filters when closed */
 #content #land-filters{padding:8px 10px;margin-bottom:8px;border-radius:10px}
 #content #land-filters:not(.is-open)>.search-core-filters,
 #content #land-filters:not(.is-open)>.search-source-checks{display:none}
 #content #land-filters.is-open>.search-core-filters{margin-top:10px;padding-top:10px;border-top:1px solid var(--v31-line,#e0dfd7);grid-template-columns:repeat(auto-fit,minmax(160px,220px));gap:10px}
 #content #land-filters.is-open>.search-source-checks{padding-top:8px;gap:4px 16px}

 /* Single razor-aligned baseline for Region, Municipality, Parish, Deal + More filters, Sort, Columns, Hide map, Expand, Reset */
 #content #land-filters .catalogue-controls-row{
  display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px 8px;margin:0;
 }
 #content #land-filters .catalogue-location-filters{
  display:flex;flex-wrap:nowrap;align-items:flex-end;gap:6px;flex:0 1 auto;min-width:0;
 }
 #content #land-filters .catalogue-location-filters>label{
  display:flex;flex-direction:column;gap:2px;margin:0;font-size:var(--ui-fs-micro);line-height:1.2;font-weight:600;color:var(--v31-muted,#656e69);
  flex:0 1 142px;min-width:112px;max-width:156px;
 }
 #content #land-filters .catalogue-location-filters.v31-bdeal-box{flex:0 0 132px;max-width:132px;min-width:116px}
 #content #land-filters .catalogue-location-filters.v31-bdeal-box>label{flex:1 1 auto;max-width:none;min-width:0}
 #content #land-filters .catalogue-location-filters select{height:32px;min-height:32px;margin:0;width:100%;font-size:13px}
 #content #land-filters #catalogue-sort-slot,
 #content #land-filters #catalogue-presentation-slot{display:inline-flex;align-items:flex-end;gap:6px;margin:0}
 #content #land-filters #table-presentation-controls{display:inline-flex;align-items:flex-end;gap:6px;margin:0}
 #content #land-filters .catalogue-right-controls{display:inline-flex;align-items:flex-end;gap:6px;margin:0 0 0 auto}
 #content #land-filters .catalogue-controls-row :is(>button,#catalogue-sort-slot button,#catalogue-presentation-slot button,#table-presentation-controls>button,.table-columns>summary,.catalogue-right-controls :is(button,a)){
  height:32px;min-height:32px;margin:0;padding:0 10px;font-size:12px;line-height:1;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;
 }
 #content #land-filters .catalogue-controls-row .value-mode-chip{
  height:32px;min-height:32px;display:inline-flex;align-items:center;padding:0 9px;font-size:12px;margin:0;
 }
}

/* 2. Calm Forestry Ledger: unified warm-stone headers & subtle hairlines across Pārlūks desktop, Pārlūks phone */
@media(min-width:700px){
 .catalogue-dense .database-panel{border:1px solid var(--v31-line,#e0dfd7);border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(28,36,32,.04)}
 .catalogue-dense .dense-property-table thead th{background:#f1f0ea;color:#525b56;border-bottom:1px solid var(--v31-line,#e0dfd7);font-weight:620}
 .catalogue-dense .dense-property-table th,.catalogue-dense .dense-property-table td{border-bottom:1px solid #ecebe4}
 .catalogue-dense .dense-property-table tbody tr:nth-child(even)>*{background:#faf9f6}
 .catalogue-dense .dense-property-table tbody tr:hover>*{background:#f1f6f2}
 .catalogue-dense .dense-property-table tbody tr.is-selected>*{background:#e2ede5}
 .catalogue-dense .dense-property-table .identity-cell,
 .catalogue-dense .dense-property-table thead th[data-table-column=parcelCode]{border-right:1px solid #d5d4cc}
 .catalogue-dense .dense-property-table .table-row-menu-cell,
 .catalogue-dense .dense-property-table thead th:last-child{border-left:1px solid #d5d4cc}
}
@media(max-width:1000px){
 .mobile-register.database-panel{border:1px solid var(--v31-line,#e0dfd7);border-radius:12px}
 .mobile-register thead th{background:#f1f0ea;color:#525b56;border-bottom:1px solid var(--v31-line,#e0dfd7)}
 .mobile-register :is(th,td){border-bottom:1px solid #ecebe4}
 .mobile-register tbody button{border:0;background:transparent;box-shadow:none}
 .mobile-register .mobile-identity button:hover,.mobile-register tr:hover>.mobile-identity{background:#f1f6f2}
}

/* Meža dati stand ledger: preserve familiar soft-sage stand bands & crisp controls from live LMF */
#detail-dialog .property-forest-ledger-wrap{border:1px solid var(--v31-line,#e0dfd7);border-radius:10px;overflow:hidden}
#detail-dialog .property-forest-ledger>thead th,
#detail-dialog [data-forest-sticky-header],
#detail-dialog .property-forest-sticky-table>thead th:first-child{
 text-transform:none;letter-spacing:0;
}
#detail-dialog .property-forest-ledger .property-stand-actions :is(summary,[data-map-stand]){
 border-color:#c4c7bf;border-radius:6px;background:#ffffff;color:var(--ink,#1c2420);box-shadow:none;
}
#detail-dialog .property-forest-ledger .property-stand-actions :is(summary,[data-map-stand]):hover{background:#eeede6;border-color:#8d968f}

/* 3. Kontakti: Mineral Slate accents, unified segmented pill track, compact 32px desktop toolbar & Calm Forestry Ledger */
@media screen{
 #content>.contacts-views{
  display:inline-flex;flex-wrap:wrap;gap:2px;padding:3px;margin:0 0 12px;border:0;border-radius:var(--lmf-r-ctl,8px);background:var(--v31-surface-2,#eeede6);
 }
 #content>.contacts-views button{
  height:32px;min-height:32px;padding:0 12px;border:0;border-radius:6px;background:transparent;color:var(--v31-text-2,#525b56);font-weight:620;box-shadow:none;
 }
 #content>.contacts-views button:hover{background:rgba(255,255,255,.65);color:var(--ink,#1c2420)}
 #content>.contacts-views button[aria-pressed=true]{background:#ffffff;color:var(--lmf-slate-ink,#333e40);font-weight:700;box-shadow:0 1px 2px rgba(28,36,32,.07)}
 #app #content #contacts-filters :is(input,select){
  min-height:32px;height:32px;border:1px solid var(--v31-ctl-line,#c4c7bf);border-radius:var(--lmf-r-ctl,8px);background-color:#ffffff;font-size:13px;box-shadow:none;
 }
 #content .contacts-register{border:1px solid var(--v31-line,#e0dfd7);border-radius:12px;box-shadow:0 1px 2px rgba(28,36,32,.04)}
 #content .contacts-table th{background:#f1f0ea;color:#525b56;font-weight:620;text-transform:none;letter-spacing:0;padding:10px 12px;border-bottom:1px solid var(--v31-line,#e0dfd7)}
 #content .contacts-table td{padding:10px 12px;border-bottom:1px solid #ecebe4}
 #content .contacts-table tbody tr:hover{background:var(--lmf-slate-soft,#f3f5f5)}
 #content .contacts-table tbody tr:focus-within{background:var(--lmf-slate-tint,#e7ebeb)}
 #content .contacts-table .contacts-set-next{color:var(--lmf-slate-ink,#333e40)}
}
@media screen and (max-width:600px){
 #content>.contacts-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:3px;padding:3px}
 #content>.contacts-views button{min-height:40px;height:auto;padding:8px 10px}
 #app #content #contacts-filters :is(input,select){min-height:44px;height:44px;font-size:16px}
}

/* 4. Unified Dialogs & Close buttons across old LMF and v3.1 */
dialog{border:1px solid var(--v31-line,#e0dfd7);border-radius:14px;box-shadow:var(--v31-sh-overlay,0 16px 36px -8px rgba(28,36,32,.20),0 4px 12px -2px rgba(28,36,32,.08))}
dialog::backdrop{background:rgba(28,36,32,.40);backdrop-filter:blur(2px)}

dialog>.close-dialog{
 display:inline-flex;align-items:center;justify-content:center;top:12px;right:12px;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;
 border:1px solid transparent;border-radius:8px;background:transparent;color:var(--v31-text-2,#525b56);box-shadow:none;
}
dialog>.close-dialog:hover{background:var(--v31-surface-2,#eeede6);color:var(--ink,#1c2420)}
dialog>.close-dialog:focus{outline:none}
dialog>.close-dialog:focus-visible{outline:2px solid var(--focus,#24543d);outline-offset:2px}
#detail-dialog .property-focus-forest .lmf-map-tools :is(a,button,summary){
 min-height:30px;height:30px;padding:0 10px;border:1px solid var(--v31-ctl-line,#c4c7bf);border-radius:8px;background:#ffffff;color:var(--ink,#1c2420);font-size:12px;font-weight:620;box-shadow:none;
}
#detail-dialog .property-focus-forest .lmf-map-tools :is(a,button,summary):hover{background:#f5f4ef;border-color:#8d968f}
@media(max-width:699px),(pointer:coarse){
 #detail-dialog .property-focus-forest .lmf-map-tools :is(a,button,summary){min-height:44px;height:auto}
}
@media(max-width:640px){
 dialog>.close-dialog{width:44px;min-width:44px;height:44px;min-height:44px}
}
}

/* /forest/lmf-species-settings.css */
@layer legacy{/* LMF Settings species register: one inline editor, existing workspace tokens. */
.lmf-species-settings{--species-muted:#52675c;--species-error:#8c302b;--species-input-line:#768b7d;color:var(--ink,#20362c);font-size:14px;line-height:1.5}
.lmf-species-settings,.lmf-species-settings *{box-sizing:border-box}
.lmf-species-settings [hidden]{display:none!important}
.lmf-species-heading{margin:0 0 8px}.lmf-species-heading h2{margin:0;font-size:18px;font-weight:620;line-height:1.4;letter-spacing:-.015em}
.lmf-species-intro{max-width:72ch;margin:0 0 20px}
.lmf-species-settings :is(input,select,textarea,button,summary){min-height:44px}
.lmf-species-settings :is(input,select,textarea){width:100%;min-width:0;border:1px solid var(--species-input-line);border-radius:6px;background:var(--white,#fff);color:var(--ink,#20362c);padding:10px;caret-color:var(--forest,#285c43);font:inherit;font-variant-numeric:tabular-nums;scroll-margin-block:130px 24px}
.lmf-species-settings :is(input,textarea)::placeholder{color:var(--species-muted);opacity:1}
.lmf-species-settings :is(input,select,textarea):hover:not(:disabled){border-color:#647e6d}
.lmf-species-settings :is(input,select,textarea):disabled{background:var(--paper,#f4f6f2);color:var(--species-muted);opacity:1;cursor:default}
.lmf-species-settings :is(input,select,textarea)[aria-invalid=true]{border-color:var(--species-error)}
.lmf-species-settings :is(button,input,select,textarea,summary,a,[tabindex]):focus-visible{outline:2px solid var(--forest,#285c43);outline-offset:3px}
.lmf-species-settings ::selection{background:var(--mint,#e3eee4);color:var(--forest,#285c43)}
.lmf-species-settings button{border-radius:7px;font-size:13px;line-height:1.35;padding:10px 12px}
.lmf-species-settings button:disabled{cursor:default;opacity:.55}
.lmf-species-settings a{color:var(--forest,#285c43);text-underline-offset:3px}
.lmf-species-settings summary{font-family:inherit;cursor:pointer;color:var(--forest,#285c43);font-weight:400}.lmf-species-settings summary:hover{background:var(--soft,#edf1eb)}
.lmf-species-group>h3{font-size:14px;font-weight:620;margin:0 0 8px}
.lmf-species-register{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums}
.lmf-species-register>thead th{color:var(--species-muted);text-align:left;font-weight:400;font-size:12px;line-height:1.35;padding:8px 12px;background:var(--soft,#edf1eb);border-bottom:1px solid var(--line,#d8e0d6)}
.lmf-species-register>thead th:first-child{width:31%}.lmf-species-register>thead th:last-child{width:88px}
.lmf-species-register>thead small{display:block;font-size:inherit;font-weight:400;margin-top:2px}
.lmf-species-register>tbody>tr[data-species-code]>:is(th,td){padding:4px 12px;border-bottom:1px solid var(--line,#d8e0d6);text-align:left;vertical-align:middle;font-size:13px;overflow-wrap:anywhere}
.lmf-species-register>tbody>tr[data-species-code]>th{font-size:14px;font-weight:620}
.lmf-species-register>tbody>tr[data-species-code]>th small{display:block;font-size:12px;font-weight:400;color:var(--forest,#285c43)}
.lmf-species-register>tbody>tr[data-species-code]>td:last-child{text-align:right;padding-inline:4px}
.lmf-species-register>tbody>tr[data-species-code] button{border-color:transparent;background:transparent;color:var(--forest,#285c43);font-weight:400;width:100%}
.lmf-species-register>tbody>tr[data-species-code] button:hover:not(:disabled){background:var(--soft,#edf1eb)}
.lmf-species-register>tbody>tr.is-selected{background:var(--mint,#e3eee4)}
.lmf-species-editor-row>td{padding:0;border-bottom:1px solid var(--line,#d8e0d6)}
.lmf-species-editor{padding:20px 24px 24px;background:var(--paper,#f4f6f2)}
.lmf-species-guideline h4{font-size:16px;font-weight:620;margin:0 0 4px}
.lmf-species-class-label,.lmf-species-class-help,.lmf-species-explanation{font-size:13px;color:var(--species-muted);max-width:72ch;margin:0 0 12px}
.lmf-species-guideline-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:12px 0}
.lmf-species-guideline-table{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:13px}
.lmf-species-guideline-table caption{text-align:left;font-weight:400;margin:0 0 8px;color:var(--ink,#20362c)}
.lmf-species-guideline-table :is(th,td){padding:8px 4px;text-align:center;border-bottom:1px solid var(--line,#d8e0d6);vertical-align:middle;overflow-wrap:anywhere}
.lmf-species-guideline-table th{font-size:12px;font-weight:400;color:var(--species-muted)}.lmf-species-guideline-table td{font-weight:620}
.lmf-species-guideline-missing{font-size:13px;color:var(--species-muted);margin:0;align-self:center;max-width:36ch}
.lmf-species-restriction{font-size:13px;font-weight:400;margin:12px 0;color:#815000}
.lmf-species-guideline>.lmf-species-explanation{margin-bottom:16px}
.lmf-species-personal{border:0;border-top:1px solid var(--line,#d8e0d6);padding:16px 0 0;margin:20px 0 0;min-width:0}
.lmf-species-personal legend{font-weight:620;font-size:16px;padding:0 8px 0 0}
.lmf-species-personal>p{font-size:13px;color:var(--species-muted);max-width:72ch;margin:0 0 14px}
.lmf-species-minimums{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:600px}
.lmf-species-personal label,.lmf-species-reconciliation label{display:block;min-width:0;font-size:13px;font-weight:400}
.lmf-species-personal label>small{font-weight:400;color:var(--species-muted)}
.lmf-species-personal :is(input,select,textarea),.lmf-species-reconciliation select{display:block;margin-top:6px}
.lmf-species-field-error{display:block;color:var(--species-error);font-size:12px;font-weight:400;line-height:1.4;margin-top:5px;overflow-wrap:anywhere}.lmf-species-field-error:empty{display:none}
.lmf-species-advanced{margin-top:16px}.lmf-species-advanced>summary{padding:12px 0;font-size:13px}
.lmf-species-advanced>summary>small{margin-left:10px;font-size:12px;font-weight:400;color:var(--species-muted)}
.lmf-species-provenance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border-top:1px solid var(--line,#d8e0d6);padding-top:16px}
.lmf-species-provenance>label:first-child{grid-column:1/-1;max-width:360px}
.lmf-species-provenance>p{grid-column:1/-1;max-width:72ch;font-size:13px;color:var(--species-muted);margin:0}.lmf-species-provenance textarea{resize:vertical;min-height:80px}
.lmf-species-secondary{margin-top:20px;border-block:1px solid var(--line,#d8e0d6)}
.lmf-species-secondary>summary{padding:12px 4px;font-size:13px}
.lmf-species-secondary>summary>span{font-size:13px;font-weight:400;color:var(--species-muted);margin-left:10px}
.lmf-species-reference{margin-top:20px}.lmf-species-reference>summary{padding:12px 4px;font-size:13px}
.lmf-species-reference>p{font-size:13px;color:var(--species-muted);max-width:72ch;margin:8px 4px 12px}
.lmf-species-reference-links{display:flex;flex-wrap:wrap;gap:4px 16px;margin:8px 4px}.lmf-species-reference-links a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
.lmf-species-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 20px;padding:12px;background:var(--paper,#f4f6f2);border-block:1px solid var(--line,#d8e0d6);position:sticky;top:8px;z-index:4}
.lmf-species-actions p{font-size:13px;max-width:68ch;margin:0}
.lmf-species-editing-context{display:block;font-size:14px;line-height:1.4;font-weight:620;margin-bottom:3px}
.lmf-species-action-buttons,.lmf-species-reconcile-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex-shrink:0}
.lmf-species-errors{color:var(--species-error);margin:0 0 16px}.lmf-species-errors p{font-size:13px;max-width:72ch;margin:0 0 6px}
.lmf-species-errors button{display:block;max-width:72ch;padding:6px 0;text-align:left;background:transparent;border:0;color:var(--species-error);text-decoration:underline;text-underline-offset:3px}
.lmf-species-settings:is([data-species-state=unavailable],[data-species-state=conflict],[data-species-state=save-error]) [data-species-status]{color:var(--species-error)}
.lmf-species-reconciliation{background:var(--mint,#e3eee4);padding:16px;margin:0 0 20px}
.lmf-species-reconciliation p{max-width:72ch;margin:0 0 12px}.lmf-species-reconciliation ul{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:12px}
.lmf-species-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Match the existing Overview disclosure primitive: inherited family, 13px, weight 500, 14px chevron. */
.lmf-species-settings details>summary{display:flex;align-items:center;gap:8px;list-style:none;line-height:1.4;font-size:13px;font-weight:400}
.lmf-species-settings details>summary::-webkit-details-marker{display:none}
.lmf-species-settings details>summary::before{content:"";display:block;width:14px;height:14px;flex:0 0 14px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;transform:rotate(-90deg)}
.lmf-species-settings details[open]>summary::before{transform:rotate(0)}
.lmf-species-settings button{font-family:inherit}
.lmf-species-register>tbody>tr[data-species-code]>th small.lmf-species-weight{color:var(--species-muted);font-variant-numeric:tabular-nums}
.lmf-species-age-guidance{margin:20px 0;padding-top:16px;border-top:1px solid var(--line,#d8e0d6)}
.lmf-species-age-guidance h4,.lmf-species-rule-group h5{font-size:14px;line-height:1.4;font-weight:620;margin:0 0 6px}
.lmf-species-age-guidance>p,.lmf-species-rule-group>p{font-size:13px;max-width:72ch;margin:0 0 10px}
.lmf-species-research-links{display:flex;flex-wrap:wrap;gap:0 20px;margin:0 0 8px}
.lmf-species-research-links>a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;overflow-wrap:anywhere}
.lmf-species-age-guidance>.lmf-species-explanation:last-child{margin-bottom:0}
.lmf-species-rule-group{margin:16px 0 24px;min-width:0}
.lmf-species-rule-group>p{color:var(--species-muted)}
.lmf-species-target-fields,.lmf-species-legacy-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:600px}
.lmf-species-reduction-fields{display:grid;gap:16px;max-width:600px}
.lmf-species-reduction-fields>label{max-width:290px}
.lmf-species-amount-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.lmf-species-rule-group>p.lmf-species-decline-summary{margin:12px 0 16px;padding:12px 0;border-block:1px solid var(--line,#d8e0d6);color:var(--ink,#20362c)}
.lmf-species-legacy{margin:0 0 20px}.lmf-species-legacy>summary{padding:10px 0}.lmf-species-legacy>.lmf-species-explanation{margin:8px 0 16px}
@media(forced-colors:active){.lmf-species-settings details>summary::before{background:CanvasText}}
@media(max-width:760px){.lmf-species-actions{align-items:flex-start;flex-direction:column;gap:12px}.lmf-species-guideline-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){
 .lmf-species-register,.lmf-species-register>tbody{display:block;table-layout:auto}.lmf-species-register>thead{display:none}
 .lmf-species-register>tbody>tr[data-species-code]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 88px;padding:8px 0;gap:2px 12px;border-bottom:1px solid var(--line,#d8e0d6)}
 .lmf-species-register>tbody>tr[data-species-code]>:is(th,td){display:block;border:0;padding:4px 0;min-width:0;font-size:13px}
 .lmf-species-register>tbody>tr[data-species-code]>th{grid-column:1/3;grid-row:1;align-self:center;font-size:15px}
 .lmf-species-register>tbody>tr[data-species-code]>td[data-label]{grid-row:2}
 .lmf-species-register>tbody>tr[data-species-code]>td[data-label]:before{content:attr(data-label);display:block;color:var(--species-muted);font-size:12px;margin-bottom:2px}
 .lmf-species-register>tbody>tr[data-species-code]>td:last-child{grid-column:3;grid-row:1;padding:0}.lmf-species-register>tbody>tr.is-selected{padding-inline:8px}
 .lmf-species-editor-row,.lmf-species-editor-row>td{display:block;width:100%}.lmf-species-editor{padding:16px 12px 20px}
 .lmf-species-minimums,.lmf-species-provenance,.lmf-species-target-fields,.lmf-species-legacy-fields{grid-template-columns:minmax(0,1fr)}.lmf-species-provenance>label:first-child{max-width:none}
 .lmf-species-reduction-fields>label{max-width:none}.lmf-species-amount-fields{grid-template-columns:minmax(0,1fr)}
 .lmf-species-settings :is(input,select,textarea){font-size:16px}
 .lmf-species-action-buttons{width:100%;gap:8px}.lmf-species-action-buttons button{flex:1 1 auto}
 .lmf-species-reconcile-actions{align-items:stretch;flex-direction:column}.lmf-species-reconcile-actions button{text-align:left;width:100%}
}
/* Batch B: statutory minimums per site class (three age groups, five diameter classes) instead of a min-max range. */
.lmf-species-register-classes>thead th.lmf-species-group-head{text-align:center;border-bottom:1px solid var(--line,#d8e0d6);padding-bottom:6px}
.lmf-species-register-classes>thead th.lmf-species-class-head{text-align:center;font-size:var(--ui-fs-micro);line-height:1.25;padding:6px 4px;overflow-wrap:normal;hyphens:manual}
/* Site-class notation keeps its case (Ia, II-III) under the global uppercase table headings. */
:is(.lmf-species-register-classes>thead th.lmf-species-class-head,.lmf-species-guideline-table th){text-transform:none;letter-spacing:0}
.lmf-species-register-classes>thead tr:first-child th:first-child{width:24%}
.lmf-species-register-classes>thead tr:first-child th:last-child{width:88px}
.lmf-species-register-classes>tbody>tr[data-species-code]>td:is([data-age-class],[data-diameter-class]){text-align:center;padding-inline:4px;font-weight:620}
.lmf-species-register-classes>tbody>tr[data-species-code]>td[data-age-class="IV_or_lower"]{border-right:1px solid var(--line,#d8e0d6)}
.lmf-species-register-classes>thead th[data-age-class-head="IV_or_lower"],.lmf-species-register-classes>thead th.lmf-species-group-head:nth-child(2){border-right:1px solid var(--line,#d8e0d6)}
.lmf-species-register-classes>tbody>tr[data-species-code]>td.lmf-species-no-minimum{text-align:center;color:var(--species-muted);font-weight:400}
@media(max-width:560px){
 .lmf-species-register-classes>tbody>tr[data-species-code]{grid-template-columns:repeat(15,minmax(0,1fr));gap:2px 0}
 .lmf-species-register-classes>tbody>tr[data-species-code]>th{grid-column:1/11;grid-row:1}
 .lmf-species-register-classes>tbody>tr[data-species-code]>td:last-child{grid-column:11/16;grid-row:1}
 .lmf-species-register-classes>tbody>tr[data-species-code]::before,.lmf-species-register-classes>tbody>tr[data-species-code]::after{grid-column:1/-1;font-size:12px;color:var(--species-muted);padding-top:4px}
 .lmf-species-register-classes>tbody>tr[data-species-code][data-age-title]::before{content:attr(data-age-title);grid-row:2}
 .lmf-species-register-classes>tbody>tr[data-species-code][data-diameter-title]::after{content:attr(data-diameter-title);grid-row:4}
 .lmf-species-register-classes>tbody>tr[data-species-code]>td[data-age-class]{grid-row:3;grid-column:span 5}
 .lmf-species-register-classes>tbody>tr[data-species-code]>td[data-diameter-class]{grid-row:5;grid-column:span 3}
 .lmf-species-register-classes>tbody>tr[data-species-code]>td.lmf-species-no-minimum[data-group=age]{grid-row:3;grid-column:1/-1}
 .lmf-species-register-classes>tbody>tr[data-species-code]>td.lmf-species-no-minimum[data-group=diameter]{grid-row:5;grid-column:1/-1}
 .lmf-species-register-classes>tbody>tr[data-species-code]>td.lmf-species-no-minimum[data-group=all]{grid-row:2;grid-column:1/-1;text-align:left}
 .lmf-species-register-classes>tbody>tr[data-species-code]>td:is([data-age-class],[data-diameter-class]){text-align:center;padding:4px 2px;border:1px solid var(--line,#d8e0d6);border-width:0 0 0 1px;font-variant-numeric:tabular-nums}
 .lmf-species-register-classes>tbody>tr[data-species-code]>td:is([data-age-class="I_or_higher"],[data-diameter-class="Ia"]){border-left:0}
 .lmf-species-register-classes>tbody>tr[data-species-code]>td:is([data-age-class],[data-diameter-class])::before{content:attr(data-label);display:block;color:var(--species-muted);font-size:12px;font-weight:400;line-height:1.2;margin-bottom:2px}
 .lmf-species-register-classes>tbody>tr[data-species-code]>td[data-age-class="IV_or_lower"]{border-right:0}
}
}

/* /forest/workspace-planning-print.css */
@layer legacy{.lmf-planning-print-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem 1rem;margin-top:1rem;padding-top:.75rem;border-top:1px solid #bcc9c0}
.lmf-planning-print-actions>button{min-height:44px}
.lmf-planning-print-actions>p{flex-basis:100%;margin:0;overflow-wrap:anywhere}
.lmf-planning-print-actions .lmf-planning-print-revision{font-size:13px}
.lmf-print-options{box-sizing:border-box;width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 36px);margin:auto;padding:20px;border:1px solid var(--line,#c9d2c8);border-radius:14px;background:var(--surface,#fff);color:var(--ink,#24382c);box-shadow:0 18px 64px #102b2433;font:inherit;font-size:14px;line-height:1.4;overflow:auto;overscroll-behavior:contain}
.lmf-print-options *{box-sizing:border-box}
.lmf-print-options::backdrop{background:#102b2461}
.lmf-print-options header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.lmf-print-options h2{margin:0;font-size:18px;line-height:1.3;font-weight:700;letter-spacing:-.02em}
.lmf-print-options fieldset{min-width:0;margin:0 0 16px;padding:0;border:0}
.lmf-print-options legend{padding:0;margin-bottom:7px;font-size:12px;font-weight:700;color:var(--muted,#536458)}
.lmf-print-options label{display:flex;align-items:center;gap:8px;min-height:36px;cursor:pointer}
.lmf-print-options input{width:16px;height:16px;margin:0;flex:none;accent-color:var(--accent,#2b6751)}
.lmf-print-options-choices{display:flex;flex-wrap:wrap;gap:4px 20px}
.lmf-print-options [data-print-stand-list]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px;max-height:184px;margin-top:8px;padding:7px 10px;border:1px solid var(--line,#c9d2c8);border-radius:8px;background:var(--quiet,#f4f6f1);overflow:auto;scrollbar-color:#aebdaf transparent}
.lmf-print-options [hidden]{display:none!important}
.lmf-print-options-map{margin-bottom:16px}
.lmf-print-options-map small{display:block;color:var(--muted,#536458);font-size:12px}
.lmf-print-options [data-print-map-retry]{margin-top:6px;min-height:30px;padding:4px 9px;font-size:12px}
.lmf-print-capture{position:fixed!important;left:-20000px!important;top:0!important;width:720px;height:180px;pointer-events:none!important;contain:strict;overflow:hidden;background:#fff}
.lmf-print-options select[name="print-scope"]{width:100%;min-width:0;min-height:38px;padding:8px 30px 8px 10px;border:1px solid var(--line,#c9d2c8);border-radius:8px;background:var(--surface,#fff);color:inherit;font:inherit;font-size:13px;line-height:1.35}
.lmf-print-options-hint{min-height:18px;margin:0 0 10px;font-size:12px;color:var(--muted,#536458)}
.lmf-print-options footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.lmf-print-options button{min-height:36px;padding:7px 12px;border:1px solid var(--line,#c9d2c8);border-radius:8px;background:var(--surface,#fff);color:inherit;font:inherit;font-size:12px;font-weight:620;cursor:pointer}
.lmf-print-options button:hover{background:var(--quiet,#edf2ec)}
.lmf-print-options [data-print-confirm]{border-color:var(--accent,#2b6751);background:var(--accent,#2b6751);color:#fff}
.lmf-print-options [data-print-confirm]:hover{background:#21523f}
.lmf-print-options button:disabled{opacity:.5;cursor:default}
.lmf-print-options :focus-visible{outline:2px solid var(--accent,#2b6751);outline-offset:3px}
.lmf-print-options .lmf-print-options-close{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:5px;border:0;background:transparent}
.lmf-print-options-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.lmf-print-options::selection,.lmf-print-options *::selection{background:#d8e9db;color:#173d2c}
@media(max-width:440px){.lmf-print-options{padding:16px}.lmf-print-options-choices{gap:2px 14px}.lmf-print-options footer [data-print-confirm]{flex:1}.lmf-print-options footer{flex-wrap:nowrap}}
}

/* /forest/workspace-qualification.css */
@layer legacy{.search-source-checks .lmf-reference-qualification {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  max-width: 28rem;
}
.lmf-reference-qualification .search-quick-filter {
  cursor: pointer;
  min-height: 44px;
}
.lmf-reference-qualification small {
  color: var(--muted, #4b5563);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
}

/* /forest/workspace-v31-shell.css */
@layer legacy{/* LMF v3.1 shell (lane B4-UNIFY): unified visual identity, Nordic forestry multi-shade palette,
   calm control system, icons, navigation and page frame.
   Tokens only in every module stylesheet loaded after this file (M7). No blue anywhere. */

/* ===== tokens: Nordic Forestry multi-shade palette (B4-UNIFY) =====
   Warm Stone/Linen neutral chrome lets functional areas separate naturally without visual clash:
   - Deep Pine Green (--lmf-green*): Land, Forestry (Pārlūks, Meža dati, Izbraukumi) and the single primary CTA.
   - Warm Timber Ochre (--v31-crm*): Deals & Pipeline (Darījumi, Šodien deal strip, Darījums now band, Kas notika?).
   - Muted Mineral Slate (--lmf-slate*): People & Partners (Partneri, Kontakti, Cilvēki).
   - Terracotta Clay (--v31-late*): Overdue, refusal, Nezvanīt.
   - Warm Amber (--v31-warn*): Waiting on others, partial data. */
:root{
  /* Primary CTA & Forestry: Deep Pine */
  --lmf-green-fill:#356c4c;      /* filled primary button; white text 5.8:1 */
  --lmf-green-fill-hover:#2b5c40;
  --lmf-green-fill-press:#234c35;
  --lmf-green-fill-line:#28573c;
  --lmf-green-fill-sh:22,52,36;
  --lmf-green:#24543d;           /* forestry text, links, icons, focus; 8.6:1 on white */
  --lmf-green-hover:#1a412e;
  --lmf-tint:#e2ede5;            /* forestry active pill, chip, empty-state disc */
  --lmf-tint-hover:#d3e3d7;
  --lmf-soft:#f1f6f2;            /* forestry soft surface, row hover, tonal fill */
  --lmf-band-line:#cce0d2;

  /* People & Partners: Muted Mineral Slate (neutral cool-stone, zero blue) */
  --lmf-slate:#485354;           /* partner/people icons, selected outlines */
  --lmf-slate-hover:#384243;
  --lmf-slate-ink:#333e40;       /* 10.9:1 on white, 9.2:1 on tint */
  --lmf-slate-tint:#e7ebeb;      /* active filter pill, selected state */
  --lmf-slate-soft:#f3f5f5;      /* row hover, icon disc */

  --lmf-focus:var(--lmf-green);  /* one focus colour, 2 px outline everywhere */
  --lmf-on-fill:#ffffff;
  --lmf-refused:#5d2622;
  --lmf-r-ctl:8px;               /* one unified corner radius for every control */
  --lmf-field-line:var(--v31-ctl-line);
  --lmf-disabled-text:#78817b;
  --lmf-fill-disabled:#d4dfd7;
  --lmf-fill-disabled-text:#546f5e;
  --lmf-field-focus:inset 0 1px 2px rgba(28,36,32,.04),0 0 0 1px var(--lmf-focus),0 0 0 3px rgba(36,84,61,.18);
  --lmf-ring-halo:0 0 0 3px rgba(36,84,61,.15);
  --lmf-drop-line:#97b8a1;
  --v31-on-fill-muted:#d2e4d7;
  --v31-on-fill-veil:rgba(255,255,255,.16);
  --v31-on-fill-veil-hover:rgba(255,255,255,.28);
  --v31-on-fill-veil-line:rgba(255,255,255,.22);
  --v31-surface-veil:rgba(255,255,255,.76);
  --v31-sh-0:0 1px 2px rgba(28,36,32,.04);
  --v31-sh-in-sm:inset 0 1px 1px rgba(28,36,32,.07);
  --v31-mask-solid:#000;
  --lmf-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23525b56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");

  /* the ink wash of a flat control on hover and press */
  --lmf-btn-ghost-hover:rgba(28,36,32,.06);
  --lmf-btn-ghost-press:rgba(28,36,32,.11);
}
:root{
  /* Neutral Warm Stone / Linen foundation */
  --v31-bg:#f6f5f0;              /* warm linen page canvas */
  --v31-surface:#ffffff;         /* cards, sheets, property window */
  --v31-surface-2:#eeede6;       /* tracks, columns, table headers, disabled fill */
  --v31-line:#e0dfd7;            /* subtle hairlines between things */
  --v31-line-strong:#c8c7be;     /* structural dividers */
  --v31-text:#1c2420;            /* crisp deep pine-charcoal ink */
  --v31-text-2:#525b56;          /* secondary ink */
  --v31-muted:#656e69;           /* hints, dates, counts (4.7:1 on white) */
  --v31-home:#1c2420;            /* Šodien, Plānotājs */

  /* Forestry & Land: Deep Pine */
  --v31-forest:var(--lmf-green);
  --v31-forest-tint:var(--lmf-tint);
  --v31-forest-soft:var(--lmf-soft);

  /* Deals & Pipeline: Warm Timber / Birch Ochre (zero blue, 5.6:1 white-on-fill, 8.1:1 ink-on-white) */
  --v31-crm:#8f5718;
  --v31-crm-tint:#f5e7d0;
  --v31-crm-soft:#fbf6ee;
  --v31-crm-ink:#6e410d;
  --v31-crm-line:#e4d1b1;

  /* Status tones */
  --v31-late:#a33832;            /* overdue, refusal, Nezvanīt */
  --v31-late-bg:#f9e5e3;
  --v31-late-line:#ecc8c4;
  --v31-warn:#7a4d00;            /* waiting, needs a look */
  --v31-warn-bg:#fcefd3;
  --v31-warn-line:#ecd9ab;
  --v31-ok:var(--lmf-green);     /* done */
  --v31-ok-bg:var(--lmf-tint);
  --v31-focus:var(--lmf-focus);
  --v31-on-fill:var(--lmf-on-fill);

  /* shape and grounded depth */
  --v31-r-ctl:var(--lmf-r-ctl);
  --v31-r:12px;
  --v31-r-lg:14px;
  --v31-sh-1:0 1px 2px rgba(28,36,32,.05);
  --v31-sh-2:0 2px 6px -1px rgba(28,36,32,.10);
  --v31-sh-in:inset 0 1px 2px rgba(28,36,32,.12);
  --v31-sh-pop:0 10px 24px -6px rgba(28,36,32,.16),0 2px 6px -1px rgba(28,36,32,.08);
  --v31-sh-overlay:0 16px 36px -8px rgba(28,36,32,.20),0 4px 12px -2px rgba(28,36,32,.08);
  --v31-ease:cubic-bezier(.16,1,.3,1);
  --v31-t-ctl:.14s var(--v31-ease);

  /* spacing: multiples of 4 */
  --v31-s-1:4px; --v31-s-2:8px; --v31-s-3:12px; --v31-s-4:16px; --v31-s-5:20px; --v31-s-6:24px; --v31-s-8:32px; 

  /* card grid */
  --v31-pad:20px;
  --v31-gut:40px;
  --v31-gap:12px;
  --v31-tx:72px;
  --v31-row:56px;
  --v31-act:160px;

  /* controls: compact desktop density (phone/coarse stays touch-sized below) */
  --v31-btn:32px;
  --v31-ctl:32px;
  --v31-min-target:30px;

  /* type scale */
  --v31-font:Manrope,"Segoe UI",system-ui,sans-serif;
  --v31-fs-xs:12px; --v31-fs-sm:13px; --v31-fs:14px; --v31-fs-md:16px; --v31-fs-lg:18px; --v31-fs-xl:22px;
  --v31-fw:400; --v31-fw-bold:620; --v31-fw-heavy:700;   /* B4 DS4: 620, the family label weight */
  --v31-lh-head:1.25; --v31-lh-row:1.3; --v31-lh:1.4;
}
@media (max-width:700px),(pointer:coarse){
  :root{--v31-btn:40px;--v31-ctl:40px;--v31-min-target:36px;--v31-fs:15px;--v31-fs-xl:20px}   /* B4 DS4: the touch scale (12 13 15 16 18 20) */
}

/* ===== icons ===== */
.v31-i{display:inline-block;width:18px;height:18px;flex:none;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.v31-i--sm{width:15px;height:15px}
.v31-i--lg{width:20px;height:20px}

/* ===== BEGIN buttons ===== */
:root{
  --v31-ctl-line:#c4c7bf;
  --v31-ctl-line-hover:#8d968f;
  --v31-ctl-fill:#ffffff;
  --v31-ctl-fill-hover:#f5f4ef;
  --v31-ctl-fill-press:#eae8e0;
}



/* Tonal: Warm Timber surface for deal capture CTA (Kas notika?) */


@media (prefers-reduced-motion:reduce){}
@media (forced-colors:active){}
/* ===== END buttons ===== */

/* ===== fields ===== */
.v31-input:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:block;box-sizing:border-box;margin:0;min-height:var(--v31-ctl);padding:6px 10px;border:1px solid var(--v31-ctl-line);border-radius:var(--v31-r-ctl);
  background-color:var(--v31-surface);background-image:none;color:var(--v31-text);
  font:var(--v31-fw) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font);letter-spacing:0;text-transform:none;text-align:start;text-shadow:none;vertical-align:middle;
  align-items:center;gap:0;opacity:1;filter:none;outline-offset:2px;
  box-shadow:none;caret-color:var(--lmf-green);
  transition:border-color var(--v31-t-ctl),box-shadow var(--v31-t-ctl)}
.v31-input:not(#v31-kit#v31-kit#v31-kit#v31-kit):not(textarea):not([type=checkbox]):not([type=radio]){height:var(--v31-ctl);max-height:var(--v31-ctl);padding-top:0;padding-bottom:0}
select.v31-input:not(#v31-kit#v31-kit#v31-kit#v31-kit){appearance:none;-webkit-appearance:none;padding-right:28px;cursor:pointer;
  background-image:var(--lmf-chevron);
  background-repeat:no-repeat;background-position:right 8px center;background-size:14px 14px}
textarea.v31-input:not(#v31-kit#v31-kit#v31-kit#v31-kit){min-height:calc(var(--v31-ctl) * 2);resize:vertical}
.v31-input:not(#v31-kit#v31-kit#v31-kit#v31-kit)::placeholder{color:var(--v31-muted);opacity:1}
.v31-input:not(#v31-kit#v31-kit#v31-kit#v31-kit):hover{border-color:var(--v31-ctl-line-hover)}
.v31-input:not(#v31-kit#v31-kit#v31-kit#v31-kit):focus,.v31-input:not(#v31-kit#v31-kit#v31-kit#v31-kit):focus-visible{outline:2px solid transparent;border-color:var(--lmf-focus);box-shadow:var(--lmf-field-focus)}
.v31-input:not(#v31-kit#v31-kit#v31-kit#v31-kit):disabled{background-color:var(--v31-surface-2);border-color:var(--v31-line-strong);color:var(--lmf-disabled-text);box-shadow:none;cursor:not-allowed}
@media (forced-colors:active){.v31-input:not(#v31-kit#v31-kit#v31-kit#v31-kit){border-color:FieldText}}


/* ===== BEGIN state kit ===== */
.v31-notice:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:flex;align-items:center;gap:var(--v31-gap);box-sizing:border-box;min-height:var(--v31-row);padding:8px var(--v31-pad);
  background:var(--lmf-soft);border:1px solid var(--lmf-band-line);border-radius:var(--v31-r-ctl);color:var(--v31-text);
  font:var(--v31-fw) var(--v31-fs)/var(--v31-lh) var(--v31-font);text-align:start}
.v31-notice:not(#v31-kit#v31-kit#v31-kit#v31-kit)>.v31-i{flex:none;width:20px;height:20px;margin:0 10px;color:var(--lmf-green)}
.v31-notice:not(#v31-kit#v31-kit#v31-kit#v31-kit)>.v31-notice-tx{flex:1;min-width:0;margin:0;text-wrap:pretty}
.v31-notice:not(#v31-kit#v31-kit#v31-kit#v31-kit)>.v31-notice-tx b{font-weight:var(--v31-fw-bold)}
.v31-notice-sub:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:block;color:var(--v31-text-2);font-size:var(--v31-fs-sm)}
.v31-notice--warn:not(#v31-kit#v31-kit#v31-kit#v31-kit){background:var(--v31-warn-bg);border-color:var(--v31-warn-line)}
.v31-notice--warn:not(#v31-kit#v31-kit#v31-kit#v31-kit)>.v31-i{color:var(--v31-warn)}
.v31-notice--late:not(#v31-kit#v31-kit#v31-kit#v31-kit){background:var(--v31-late-bg);border-color:var(--v31-late-line)}
.v31-notice--late:not(#v31-kit#v31-kit#v31-kit#v31-kit)>.v31-i{color:var(--v31-late)}
.v31-notice--flat:not(#v31-kit#v31-kit#v31-kit#v31-kit){border-radius:0;border-width:1px 0}
.v31-notice--sm:not(#v31-kit#v31-kit#v31-kit#v31-kit){min-height:var(--v31-btn);padding:6px 12px;font-size:var(--v31-fs-sm)}
.v31-notice--sm:not(#v31-kit#v31-kit#v31-kit#v31-kit)>.v31-i{width:16px;height:16px;margin:0}

.v31-empty:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:grid;grid-template-columns:var(--v31-gut) minmax(0,1fr) auto;gap:4px var(--v31-gap);align-items:center;box-sizing:border-box;
  padding:var(--v31-pad);background:var(--v31-surface);border:1px solid var(--v31-line);border-radius:var(--v31-r);text-align:start}
.v31-empty:not(#v31-kit#v31-kit#v31-kit#v31-kit)>.v31-empty-i{grid-row:1 / span 2;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--v31-surface-2);color:var(--v31-text-2)}
.v31-empty:not(#v31-kit#v31-kit#v31-kit#v31-kit)>.v31-empty-i .v31-i{width:20px;height:20px}
.v31-empty-t:not(#v31-kit#v31-kit#v31-kit#v31-kit){margin:0;grid-column:2;font:var(--v31-fw-heavy) var(--v31-fs-lg)/var(--v31-lh-head) var(--v31-font);letter-spacing:-.01em;color:var(--v31-text)}
.v31-empty-s:not(#v31-kit#v31-kit#v31-kit#v31-kit){margin:0;grid-column:2;max-width:64ch;color:var(--v31-text-2);font:var(--v31-fw) var(--v31-fs)/var(--v31-lh) var(--v31-font);text-wrap:pretty}
.v31-empty-line:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:flex;align-items:center;gap:var(--v31-gap);min-height:var(--v31-row);padding:0 var(--v31-pad) 0 16px;color:var(--v31-text-2);font:var(--v31-fw) var(--v31-fs)/var(--v31-lh-row) var(--v31-font)}
.v31-empty-line:not(#v31-kit#v31-kit#v31-kit#v31-kit)>.v31-i{flex:none;width:20px;height:20px;margin:0 6px;color:var(--v31-forest)}

.v31-skel-row:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:flex;align-items:center;gap:var(--v31-gap);min-height:var(--v31-row);padding:0 var(--v31-pad) 0 16px;border-bottom:1px solid var(--v31-line)}
.v31-skel-row:not(#v31-kit#v31-kit#v31-kit#v31-kit):last-child{border-bottom:0}
.v31-skel:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:block;height:12px;border-radius:6px;background:linear-gradient(90deg,#e9e8e1 0%,#f4f3ee 45%,#e9e8e1 90%);background-size:220% 100%;animation:v31-skel 1.4s linear infinite}
.v31-skel--dot:not(#v31-kit#v31-kit#v31-kit#v31-kit){flex:none;width:22px;height:22px;border-radius:50%;margin:0 5px}
@keyframes v31-skel{from{background-position:120% 0}to{background-position:-100% 0}}

.v31-busy:not(#v31-kit#v31-kit#v31-kit#v31-kit){flex:none;display:inline-block;box-sizing:border-box;width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;opacity:.9;animation:v31-busy .7s linear infinite}
@keyframes v31-busy{to{transform:rotate(360deg)}}

.v31-toast:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:flex;align-items:center;gap:12px;box-sizing:border-box;min-height:44px;max-width:min(720px,calc(100vw - 48px));padding:6px 6px 6px 16px;border-radius:12px;
  background:var(--v31-text);color:#fff;box-shadow:var(--v31-sh-overlay);font:var(--v31-fw-bold) var(--v31-fs)/var(--v31-lh-row) var(--v31-font)}
.v31-toast:not(#v31-kit#v31-kit#v31-kit#v31-kit)>.v31-toast-tx{flex:1;min-width:0;padding:4px 0;text-wrap:pretty}
.v31-toast:not(#v31-kit#v31-kit#v31-kit#v31-kit)>button{flex:none;box-sizing:border-box;height:auto;min-height:32px;margin:0;padding:0 12px;border:0;border-radius:8px;background:rgba(255,255,255,.18);color:#fff;
  font:var(--v31-fw-heavy) var(--v31-fs)/1 var(--v31-font);letter-spacing:0;box-shadow:none;cursor:pointer}
.v31-toast:not(#v31-kit#v31-kit#v31-kit#v31-kit)>button:hover{background:rgba(255,255,255,.28)}
.v31-toast:not(#v31-kit#v31-kit#v31-kit#v31-kit)>button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.v31-toast--refused:not(#v31-kit#v31-kit#v31-kit#v31-kit){background:var(--lmf-refused)}
.v31-toast:not(#v31-kit#v31-kit#v31-kit#v31-kit)>.v31-i{flex:none;color:#fff}
.v31-toast-region:not(#v31-kit#v31-kit#v31-kit#v31-kit){position:fixed;left:50%;bottom:24px;z-index:2147483000;transform:translateX(-50%);display:flex;justify-content:center;pointer-events:none;width:max-content;max-width:calc(100vw - 32px)}
.v31-toast-region.is-top:not(#v31-kit#v31-kit#v31-kit#v31-kit){bottom:auto;top:8px}
.v31-toast-region:not(#v31-kit#v31-kit#v31-kit#v31-kit)>.v31-toast{pointer-events:auto}
@media (prefers-reduced-motion:no-preference){.v31-toast-region:not(#v31-kit#v31-kit#v31-kit#v31-kit)>.v31-toast{animation:v31-toast-in .22s var(--v31-ease)}}
@keyframes v31-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.v31-dnc:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:inline-flex;align-items:center;gap:5px;box-sizing:border-box;min-height:22px;padding:2px 9px 2px 7px;border-radius:999px;background:var(--v31-late-bg);color:var(--v31-late);
  font:var(--v31-fw-bold) var(--v31-fs-xs)/18px var(--v31-font);white-space:nowrap;vertical-align:middle}
.v31-dnc:not(#v31-kit#v31-kit#v31-kit#v31-kit) .v31-i{width:13px;height:13px;stroke-width:2.2}

@media (prefers-reduced-motion:reduce){
  .v31-skel:not(#v31-kit#v31-kit#v31-kit#v31-kit){animation:none}
  .v31-busy:not(#v31-kit#v31-kit#v31-kit#v31-kit){animation:none;border-right-color:currentColor;border-style:dotted}
}
@media (forced-colors:active){.v31-notice:not(#v31-kit#v31-kit#v31-kit#v31-kit),.v31-empty:not(#v31-kit#v31-kit#v31-kit#v31-kit){border-color:CanvasText}.v31-dnc:not(#v31-kit#v31-kit#v31-kit#v31-kit){border:1px solid CanvasText}}
/* ===== END state kit ===== */

/* ===== page frame ===== */
#content.v31-content{background:var(--v31-bg)}
.v31-page{box-sizing:border-box;min-height:calc(100vh - 64px);padding:0 0 var(--v31-s-8);background:var(--v31-bg);color:var(--v31-text);
  font:var(--v31-fw) var(--v31-fs)/var(--v31-lh) var(--v31-font);font-variant-numeric:tabular-nums}
.v31-page *,.v31-page *::before,.v31-page *::after{box-sizing:border-box}
.v31-page-head{display:flex;align-items:center;flex-wrap:wrap;gap:var(--v31-s-3);min-height:var(--v31-btn);margin:0 0 var(--v31-s-5)}
.v31-page-title{margin:0;margin-right:auto;color:var(--v31-text);font:var(--v31-fw-heavy) var(--v31-fs-xl)/var(--v31-lh-head) var(--v31-font);letter-spacing:-.015em}
.v31-page-title:focus{outline:none}
.v31-page-title:focus-visible{outline:2px solid var(--v31-focus);outline-offset:4px;border-radius:4px}
.v31-page-body{min-width:0}
.v31-page-empty,.v31-page-error{margin:0;padding:var(--v31-s-5) var(--v31-pad);border:1px solid var(--v31-line);border-radius:var(--v31-r);background:var(--v31-surface);color:var(--v31-text-2)}
.v31-page-error{border-color:var(--v31-late-bg);color:var(--v31-late)}
.v31-page :focus-visible{outline:2px solid var(--v31-focus);outline-offset:2px}
@media (max-width:900px){.v31-page{padding:0 0 var(--v31-s-4)}}

/* ===== navigation visibility rules ===== */
#workspace-navigation [data-v31-off],#more-dialog [data-v31-off]{display:none!important}
#more-dialog nav>a.lmf-more-compact{display:none}
@media (min-width:901px){
  #workspace-navigation>nav>#nav-more[type]{display:none}
  #workspace-navigation>nav>a.nav-secondary[href]{display:inline-flex}
}
@media (min-width:901px) and (max-width:1100px){
  #workspace-navigation>nav>a[href],#workspace-navigation>nav #browse-toggle[type]{padding-inline:7px;gap:6px}
}
@media (max-width:900px){
  #workspace-navigation>nav>a.lmf-nav-v31{display:none}
  #more-dialog nav>a.lmf-more-compact{display:flex}
}
}

/* /forest/workspace-property-window.css */
@layer legacy{/* LMF v3.1 property window frame (B4-UNIFY): single-line desktop header sized for 13-inch MacBook (1280-1440 px),
 * clean card framing for Sarunas un piezīmes and Mežs īsumā, crisp sidebar controls, zero stray empty buttons.
 * Tokens only (M7): zero colour literals, weights/sizes from --v31-* scale, zero !important. */
#detail-dialog .parcel-layout[data-v31-tab=deal] .v31-deal-mount{display:grid;gap:var(--v31-s-4);min-width:0;font-family:var(--v31-font);color:var(--v31-text)}
#detail-dialog .parcel-layout[data-v31-tab=deal] .v31-deal-placeholder{margin:0;padding:var(--v31-s-5);border:1px dashed var(--v31-line-strong);border-radius:var(--v31-r);color:var(--v31-text-2);font-size:var(--v31-fs);line-height:var(--v31-lh)}
#detail-dialog .parcel-layout[data-v31-tab=deal] .v31-deal-failed{margin:0;color:var(--v31-late);font-weight:var(--v31-fw-bold)}

#detail-dialog .parcel-layout[data-v31-tab=deal] #parcel-next{display:none}

/* Hide merged tabs and stray empty map toggle */
#detail-dialog.property-focus-dialog #detail-body .detail-tabs>[data-detail-tab][hidden]{display:none}
#detail-dialog #detail-body[data-b3] [data-toggle-priority]{display:none}
#detail-dialog #detail-body:is([data-b3=page],[data-b3=people]) [data-property-map-toggle]:not(#b3-kit){display:none}
#detail-dialog .property-forest-map-toggle:empty,
#detail-dialog [data-property-map-toggle]:empty,
#detail-dialog.property-focus-dialog .property-phone-header .property-focus-markers>[data-property-map-toggle]:empty{display:none}
#detail-dialog .parcel-layout[data-b3] .property-aside-markers>[data-planning-print]{
 display:inline-flex;align-items:center;justify-content:center;width:100%;height:var(--v31-ctl);min-height:var(--v31-ctl);
 padding:0 var(--v31-s-3);border:1px solid var(--v31-ctl-line);border-radius:var(--v31-r-ctl);
 background:var(--v31-surface);color:var(--v31-text);font-size:var(--v31-fs-sm);font-weight:var(--v31-fw-bold);box-shadow:none;cursor:pointer
}
#detail-dialog .parcel-layout[data-b3] .property-aside-markers>[data-planning-print]:hover:not(:disabled){
 background:var(--v31-ctl-fill-hover);border-color:var(--v31-ctl-line-hover);color:var(--v31-text)
}

/* Header identity, star & quiet compact facts */
#detail-body[data-b3] .property-heading-identity .parcel-subline>span{display:none}
#detail-body[data-b3] .property-heading-identity .parcel-subline:not(:has(>:not(span):not([hidden]))){display:none}
#detail-body .b3-title-row{display:flex;align-items:center;gap:var(--v31-s-2);min-width:0}
#detail-body .b3-title-row h2{min-width:0;margin:0;color:var(--v31-text)}
#detail-body .b3-title-row .shortlist-bookmark.b3-star{position:relative;flex:none;display:inline-grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;margin:0;border:1px solid var(--v31-ctl-line);border-radius:var(--v31-r-ctl);background:var(--v31-surface);color:var(--v31-text-2);box-shadow:none;cursor:pointer;transition:background-color var(--v31-t-ctl),border-color var(--v31-t-ctl),color var(--v31-t-ctl)}
#detail-body .b3-title-row .shortlist-bookmark.b3-star>:not(.b3-i){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#detail-body .b3-title-row .shortlist-bookmark.b3-star .b3-i{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
#detail-body .b3-title-row .shortlist-bookmark.b3-star:hover{background:var(--v31-surface-2);border-color:var(--v31-ctl-line-hover);color:var(--v31-text)}
#detail-body .b3-title-row .shortlist-bookmark.b3-star.is-saved,#detail-body .b3-title-row .shortlist-bookmark.b3-star[aria-pressed=true]{background:var(--v31-crm-soft);border-color:var(--v31-crm);color:var(--v31-crm)}
#detail-body .b3-title-row .shortlist-bookmark.b3-star.is-saved .b3-i,#detail-body .b3-title-row .shortlist-bookmark.b3-star[aria-pressed=true] .b3-i{fill:currentColor}
#detail-body .b3-facts{margin:2px 0 0;font-size:var(--v31-fs-xs);line-height:var(--v31-lh-row);color:var(--v31-muted);font-variant-numeric:tabular-nums}
#detail-body .b3-facts:empty{display:none}
#detail-body .b3-fact{white-space:nowrap}
#detail-body .b3-fact-place{color:var(--v31-text-2)}
#detail-body .b3-fact-sep{color:var(--v31-line-strong)}

/* Desktop single-line header (1024px+ fits 13-inch MacBook 1280x800 and 1440x900 on ONE crisp row) */
@media(min-width:1024px){
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header){
  display:flex;align-items:center;flex-wrap:nowrap;gap:var(--v31-s-3);min-height:54px;
  padding:var(--v31-s-2) 56px var(--v31-s-2) var(--v31-s-5);background:var(--v31-surface);border-bottom:1px solid var(--v31-line)
 }
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) :is(.property-heading-row,.parcel-title-line){display:contents}
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .property-heading-identity{
  display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--v31-s-3);flex:1 1 auto;min-width:0;max-width:none;white-space:nowrap;overflow:hidden
 }
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .b3-title-row{flex:0 1 auto;min-width:0}
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .b3-title-row .shortlist-bookmark.b3-star{order:-1}
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .b3-title-row h2{
  font-size:var(--v31-fs-lg);font-weight:var(--v31-fw-heavy);line-height:var(--v31-lh-head);letter-spacing:-.015em;
  max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
 }
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .b3-facts{
  margin:0;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--v31-fs-xs)
 }
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .property-heading-sections{
  flex:none;display:inline-flex;align-items:center;gap:var(--v31-s-2);margin:0;padding:0 0 0 var(--v31-s-3);border-left:1px solid var(--v31-line)
 }
 /* Segmented pill track for Darījums / Meža dati */
 #detail-dialog.property-focus-dialog #detail-body[data-b3] .property-heading-sections>.detail-tabs{
  display:inline-flex;align-items:center;gap:2px;padding:3px;border:0;border-radius:var(--v31-r-ctl);background:var(--v31-surface-2)
 }
 #detail-dialog.property-focus-dialog #detail-body[data-b3] .property-heading-sections>.detail-tabs>button{
  height:30px;min-height:30px;padding:0 var(--v31-s-3);border:0;border-radius:6px;background:transparent;color:var(--v31-text-2);
  font-size:var(--v31-fs-sm);font-weight:var(--v31-fw-bold);box-shadow:none
 }
 #detail-dialog.property-focus-dialog #detail-body[data-b3] .property-heading-sections>.detail-tabs>button:hover{color:var(--v31-text);background:transparent}
 #detail-dialog.property-focus-dialog #detail-body[data-b3] .property-heading-sections>.detail-tabs>button.active,
 #detail-dialog.property-focus-dialog #detail-body[data-b3] .property-heading-sections>.detail-tabs>button[aria-selected=true]{
  background:var(--v31-surface);color:var(--v31-text);box-shadow:var(--v31-sh-1)
 }
 #detail-dialog.property-focus-dialog #detail-body[data-b3] .property-heading-sections>.detail-tabs>button[data-detail-tab="deal"].active{color:var(--v31-crm-ink)}
 #detail-dialog.property-focus-dialog #detail-body[data-b3] .property-heading-sections>.detail-tabs>button[data-detail-tab="forest"].active{color:var(--v31-forest)}
 #detail-dialog .parcel-title.property-title-compact[data-b3-head] .property-forest-map-toggle{
  height:32px;min-height:32px;padding:0 var(--v31-s-3);border:1px solid var(--v31-ctl-line);border-radius:var(--v31-r-ctl);
  background:var(--v31-surface);color:var(--v31-text);font-size:var(--v31-fs-xs);font-weight:var(--v31-fw-bold);box-shadow:none
 }
 #detail-dialog .parcel-title.property-title-compact[data-b3-head] .property-forest-map-toggle:hover{background:var(--v31-surface-2);border-color:var(--v31-ctl-line-hover)}

 /* Compact aligned Nearby + Navigation right cluster */
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .property-focus-nearby{
  flex:none;display:inline-flex;align-items:center;gap:var(--v31-s-2);margin:0 0 0 auto;padding:0;font-size:var(--v31-fs-xs)
 }
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .property-focus-nearby label{
  display:inline-flex;align-items:center;gap:var(--v31-s-2);font-size:var(--v31-fs-xs);font-weight:var(--v31-fw-bold);color:var(--v31-text-2)
 }
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .property-focus-nearby :is(select,button){
  height:32px;min-height:32px;border:1px solid var(--v31-ctl-line);border-radius:var(--v31-r-ctl);background-color:var(--v31-surface);color:var(--v31-text);
  font-size:var(--v31-fs-xs);font-weight:var(--v31-fw-bold);box-shadow:none
 }
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .property-focus-nearby select{padding:0 28px 0 var(--v31-s-2)}
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .property-focus-nearby button{padding:0 var(--v31-s-3)}
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .property-focus-nearby button:hover:not(:disabled){background-color:var(--v31-surface-2);border-color:var(--v31-ctl-line-hover)}
 #detail-dialog#detail-dialog.property-focus-dialog.pw-b3>.close-dialog{
  top:11px;right:12px;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;
  border:1px solid transparent;border-radius:var(--v31-r-ctl);background:transparent;color:var(--v31-text-2);box-shadow:none
 }
 #detail-dialog#detail-dialog.property-focus-dialog.pw-b3>.close-dialog:hover{background:var(--v31-surface-2);color:var(--v31-text)}
}

/* Tablet (700-1023px): clean two-row header */
@media(min-width:700px) and (max-width:1023.99px){
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header){
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"id id id" "tabs near nav";
  align-items:center;column-gap:var(--v31-s-3);row-gap:var(--v31-s-2);padding:var(--v31-s-3) 56px var(--v31-s-3) var(--v31-s-4);
  background:var(--v31-surface);border-bottom:1px solid var(--v31-line)
 }
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) :is(.property-heading-row,.parcel-title-line){display:contents}
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .property-heading-identity{grid-area:id;min-width:0}
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .property-heading-sections{grid-area:tabs;justify-self:start;padding:0;border:0;margin:0}
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .property-focus-nearby{grid-area:near;justify-self:end;margin:0}
 #detail-dialog .parcel-title.property-title-compact[data-b3-head]:not(.property-phone-header) .b3-title-row h2{font-size:var(--v31-fs-lg);font-weight:var(--v31-fw-heavy)}
}

/* Side column: slim neutral surface, compact secondary controls */
#detail-dialog .parcel-layout[data-b3] #parcel-actions .detail-actions,
#detail-dialog .parcel-layout[data-b3] #parcel-actions #parcel-next,
#detail-dialog .parcel-layout[data-b3] #parcel-actions .next-edit-disclosure,
#detail-dialog .parcel-layout[data-b3] #parcel-actions [data-toggle-priority],
#detail-dialog .parcel-layout[data-b3] #parcel-actions .shortlist-bookmark{display:none}
#detail-dialog .parcel-layout[data-b3] .property-owner-land>.property-owner-row:not(.property-owner-description){display:none}
#detail-dialog .parcel-layout[data-b3] .property-aside-markers{grid-template-columns:1fr}
#detail-dialog .parcel-layout[data-b3] .property-aside-markers:not(:has(>:not([data-toggle-priority]):not(.shortlist-bookmark))){display:none}
#detail-dialog .parcel-layout[data-b3] .parcel-aside{background:var(--v31-bg);border-left:1px solid var(--v31-line)}
#detail-dialog .b3-code{font-variant-numeric:tabular-nums;letter-spacing:.02em}
#detail-dialog .b3-code-show{margin-left:var(--v31-s-1);font-size:var(--v31-fs-sm)}

/* Small map card & compact map actions */
#detail-dialog .b3-map{display:grid;gap:var(--v31-s-2);margin-top:var(--v31-s-3);padding:var(--v31-s-3);border:1px solid var(--v31-line);border-radius:var(--v31-r);background:var(--v31-surface);min-width:0;overflow:hidden}
#detail-dialog .b3-map-t{flex:1;font-size:var(--v31-fs-sm);font-weight:var(--v31-fw-bold);color:var(--v31-text)}
#detail-dialog .b3-add .b3-i,#detail-dialog .b3-back .b3-i{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#detail-dialog .b3-map-body{display:grid;gap:var(--v31-s-2);min-width:0}
#detail-dialog .b3-map-body #parcel-map{height:196px;min-height:0;margin:0;border-radius:var(--v31-r-ctl)}
#detail-dialog .b3-map[data-b3-map=short] .b3-map-body #parcel-map{height:84px}
#detail-dialog .b3-map[data-b3-map=short] .b3-map-body>:not(#parcel-map):not(.next-overview-map),
#detail-dialog .b3-map[data-b3-map=short] .b3-map-body .next-overview-map>:not(#parcel-map){display:none}
#detail-dialog .b3-map-body .next-overview-map{position:static;display:flex;flex-direction:column;gap:var(--v31-s-2);height:auto;min-height:0;margin:0;min-width:0}
#detail-dialog .b3-map-body .next-overview-map>.source-note,#detail-dialog .b3-map-body .next-overview-map>.next-selected-stand{margin:0;font-size:var(--v31-fs-xs)}
#detail-dialog .b3-map-body .next-overview-map>.next-selected-stand:empty{display:none}
#detail-dialog .b3-map-body .lmf-map-tools{order:-1;position:static;margin:0;display:flex;flex-wrap:wrap;gap:var(--v31-s-1)}
#detail-dialog .b3-map-body .lmf-map-tools :is(a,button,summary),
#detail-dialog .b3-map-body .property-location-actions :is(a,button){
 min-height:32px;height:auto;padding:4px var(--v31-s-2);border:1px solid var(--v31-ctl-line);border-radius:var(--v31-r-ctl);
 background:var(--v31-surface);color:var(--v31-text);font-size:var(--v31-fs-xs);font-weight:var(--v31-fw-bold);box-shadow:none
}
#detail-dialog .b3-map-body .lmf-map-tools :is(a,button,summary):hover,
#detail-dialog .b3-map-body .property-location-actions :is(a,button):hover{background:var(--v31-surface-2);border-color:var(--v31-ctl-line-hover)}
#detail-dialog .b3-map-body .next-overview-map>.property-location-actions,
#detail-dialog .b3-map-body .property-location-actions{display:grid;grid-template-columns:1fr;gap:var(--v31-s-1);margin:0}
#detail-dialog .b3-map-body .lmf-map-status{margin:0;font-size:var(--v31-fs-xs)}

/* Large map pop-up */
#detail-body dialog.b3-map-pop{width:min(1100px,calc(100vw - 32px));max-width:none;height:min(760px,calc(100dvh - 32px));max-height:none;padding:var(--v31-s-4);border:1px solid var(--v31-line);border-radius:var(--v31-r-lg);background:var(--v31-surface);box-shadow:var(--v31-sh-pop)}
#detail-body dialog.b3-map-pop[open]{display:grid;grid-template-rows:auto minmax(0,1fr);gap:var(--v31-s-3)}
#detail-body .b3-map-pop-head{display:flex;align-items:center;gap:var(--v31-s-2)}
#detail-body .b3-map-pop-t{flex:1;margin:0;font-size:var(--v31-fs-md);font-weight:var(--v31-fw-bold)}
#detail-body .b3-map-pop-body{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:var(--v31-s-2);min-height:0}
#detail-body .b3-map-pop-body #parcel-map,#detail-body .b3-map-pop-body .next-overview-map{height:100%;min-height:240px;margin:0}
#detail-body .b3-map-pop-body:has(>.next-overview-map){grid-template-rows:minmax(0,1fr) auto}
#detail-body .b3-map-pop-body .next-overview-map{position:static;display:flex;flex-direction:column;gap:var(--v31-s-2);min-height:0}
#detail-body .b3-map-pop-body .next-overview-map>#parcel-map{flex:1 1 auto;height:auto;min-height:240px}
#detail-body .b3-map-pop-body .next-overview-map>.lmf-map-tools{order:-1;position:static;margin:0}
#detail-body .b3-map-pop-body .next-overview-map>.property-location-actions,
#detail-body .b3-map-pop-body .property-location-actions{display:flex;flex-wrap:wrap;gap:var(--v31-s-2);margin:0}
#detail-body .b3-map-pop-body .next-overview-map>.source-note{margin:0}

/* Darījums page: calm canvas behind crisp white cards */
#detail-dialog .parcel-layout[data-b3=page] .b3-page{display:grid;align-content:start;gap:var(--v31-s-5);min-width:0;background:var(--v31-bg)}
#detail-dialog .b3-sec{display:grid;gap:var(--v31-s-2);min-width:0}
#detail-dialog .b3-sec-head{display:flex;align-items:center;justify-content:space-between;gap:var(--v31-s-3)}
#detail-dialog .b3-sec-t{margin:0;font-size:var(--v31-fs);font-weight:var(--v31-fw-heavy);line-height:var(--v31-lh-head);color:var(--v31-text)}
#detail-dialog .b3-sec-deal>.v31-deal-mount{display:grid;gap:var(--v31-s-4);min-width:0}
#detail-dialog .b3-add,#detail-dialog .b3-all,#detail-dialog .b3-more,#detail-dialog .b3-back{display:inline-flex;align-items:center;gap:var(--v31-s-1);justify-self:start;font-size:var(--v31-fs-sm);color:var(--lmf-slate-ink)}
#detail-dialog .b3-back{margin-bottom:var(--v31-s-3)}

/* People card: Mineral Slate accents */
#detail-dialog #v31-people-panel.b3-people-slot{gap:0;padding:var(--v31-s-1) var(--v31-s-4);border:1px solid var(--v31-line);border-radius:var(--v31-r);background:var(--v31-surface)}
#detail-dialog #v31-people-panel.b3-people-slot .v31-pp-person{margin:0;padding:var(--v31-s-3) 0;border-bottom:1px solid var(--v31-line)}
#detail-dialog #v31-people-panel.b3-people-slot .v31-pp-person:last-child{border-bottom:0}
#detail-dialog #v31-people-panel.b3-people-slot .v31-pp-acts>a[data-v31-call]:not(#v31-kit#v31-kit#v31-kit#v31-kit#b3){width:auto;min-width:0;max-width:none;padding:0 var(--v31-s-3);gap:var(--v31-s-2)}
#detail-dialog #v31-people-panel.b3-people-slot .v31-pp-acts>a[data-v31-call]::after{content:attr(title);font-size:var(--v31-fs-sm);font-weight:var(--v31-fw-bold)}

/* Notes: wrapped in matching white card */

/* Forest summary: wrapped in matching white card (preserves B3-FIX contract :not(.parcel-stats):not(.property-focus-facts)) */
#detail-dialog .b3-forest{display:grid;gap:var(--v31-s-4);min-width:0;padding:var(--v31-s-4) var(--v31-pad);border:1px solid var(--v31-line);border-radius:var(--v31-r);background:var(--v31-surface);overflow:visible}
#detail-dialog .b3-forest:not([data-b3-more])>:not(.parcel-stats):not(.property-focus-facts){display:none}
#detail-dialog .b3-forest>.parcel-stats,#detail-dialog .b3-forest>.property-focus-facts{margin:0;padding-bottom:0;border-bottom:0}
#detail-dialog .b3-forest>.property-focus-facts>h3{margin:0 0 var(--v31-s-2);font-size:var(--v31-fs-sm);font-weight:var(--v31-fw-bold);color:var(--v31-text-2)}
#detail-dialog .b3-forest .property-focus-map-toolbar,#detail-dialog .b3-forest>[data-b3-relink]{display:none}

@media(max-width:1000px){
 #detail-dialog .parcel-layout[data-b3] .b3-map{margin-top:0}
 #detail-dialog .parcel-layout[data-b3] .b3-map-body #parcel-map{height:180px}
 #detail-dialog .parcel-layout[data-b3] .b3-map[data-b3-map=short] .b3-map-body #parcel-map{height:84px}
 #detail-dialog .parcel-layout[data-b3] .parcel-aside{border-left:0;border-top:1px solid var(--v31-line)}
 #detail-dialog .parcel-layout[data-b3=page]>#property-owner-box{order:1}
 #detail-dialog .parcel-layout[data-b3=page]>.parcel-aside{order:2}
}

/* Phone header */
@media(max-width:699px),(max-height:500px) and (pointer:coarse){
 #detail-dialog .property-phone-header[data-b3-head] .property-heading-identity{grid-column:1/-1;grid-row:1;padding-right:48px}
 #detail-dialog.property-focus-dialog .property-phone-header[data-b3-head] .detail-tabs{grid-column:1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr))}
 #detail-body[data-b3] .b3-facts{font-size:var(--v31-fs-xs)}
 #detail-dialog .property-phone-header[data-b3-head] .b3-title-row h2{font-size:var(--v31-fs-lg)}
}
@media(max-width:640px){
 #detail-body .b3-facts,#detail-body .b3-fact{white-space:normal}
 #detail-body dialog.b3-map-pop{width:calc(100vw - 16px);height:calc(100dvh - 16px);padding:var(--v31-s-3)}
 #detail-dialog .b3-forest{padding:var(--v31-s-3) var(--v31-s-4)}
}
#detail-dialog .b3-sec-people>.v31-dt-side-qc{justify-self:start;width:auto;margin:0}
#detail-dialog .b3-sec-people>.v31-dt-side-qc:not(#b3-kit#b3-kit#b3-kit#b3-kit#b3-kit){justify-self:start;width:auto;min-width:0;max-width:none}
#detail-dialog .b3-map[data-b3-map=short] .leaflet-control-zoom,#detail-dialog .b3-map[data-b3-map=short] .lmf-map-wheel-hint{display:none}

/* Full height on PC in all views; edge-to-edge on phone */
@media(min-width:700px){
 #detail-dialog#detail-dialog.property-focus-dialog[open].pw-b3{height:calc(100dvh - 24px)}
 #detail-dialog.property-focus-dialog[open]>#detail-body[data-b3=people]{display:flex;flex-direction:column;min-height:100%}
 #detail-dialog.property-focus-dialog[open]>#detail-body[data-b3=people]>.parcel-layout{flex:1 0 auto}
}
@media(max-width:699px){#detail-dialog#detail-dialog.property-focus-dialog[open].pw-b3{width:auto;max-width:none;margin:0;inset-inline:0}}
@media(max-width:699px),(pointer:coarse){
 #detail-body .b3-title-row .shortlist-bookmark.b3-star{width:44px;height:44px;min-height:44px}
 #detail-dialog .b3-map-body .lmf-map-tools :is(a,button,summary),
 #detail-dialog .b3-map-body .property-location-actions :is(a,button){min-height:44px}
}
}

/* /forest/workspace-people-panel.css */
@layer legacy{/* LMF v3.1 people panel (B4-UNIFY): Muted Mineral Slate accents (--lmf-slate*) separating People from
   Deals (Warm Timber) and Forestry (Deep Pine). Tokens only (M7). */

#detail-dialog .property-owner-box[data-v31-people=mounted]>.property-owner-people{display:none}

#detail-dialog #v31-people-panel{grid-column:1/-1;display:grid;gap:var(--v31-s-2);padding:var(--v31-s-3) 0;border-bottom:1px solid var(--v31-line);font-family:var(--v31-font);color:var(--v31-text)}

#detail-dialog #v31-people-panel .v31-pp-person{display:grid;gap:4px;min-width:0;margin:0 -8px;padding:8px;border-radius:var(--v31-r-ctl)}
#detail-dialog #v31-people-panel .v31-pp-person+.v31-pp-person{margin-top:4px}
#detail-dialog #v31-people-panel .v31-pp-person.is-dnc{background:color-mix(in srgb,var(--v31-late-bg) 55%,var(--v31-surface))}
#detail-dialog #v31-people-panel .v31-pp-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
#detail-dialog #v31-people-panel .v31-pp-name{min-width:0;font-size:var(--v31-fs-md);font-weight:var(--v31-fw-heavy);line-height:var(--v31-lh-head);overflow-wrap:anywhere}
#detail-dialog #v31-people-panel .v31-pp-role{color:var(--v31-text-2);font-size:var(--v31-fs-sm);font-weight:var(--v31-fw);line-height:var(--v31-lh-row)}

#detail-dialog #v31-people-panel .v31-pp-fact{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;gap:8px;font-size:var(--v31-fs-sm);font-weight:var(--v31-fw);line-height:var(--v31-lh-row)}
#detail-dialog #v31-people-panel .v31-pp-ic{display:inline-flex;align-items:center;justify-content:center;height:17px;color:var(--lmf-slate)}
#detail-dialog #v31-people-panel .v31-pp-ic .v31-i{width:15px;height:15px}
#detail-dialog #v31-people-panel .v31-pp-tx{min-width:0;overflow-wrap:anywhere}

#detail-dialog #v31-people-panel .v31-pp-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px;min-height:var(--v31-ctl)}
#detail-dialog #v31-people-panel .v31-pp-since{flex:1 1 auto;min-width:0;color:var(--v31-text-2);font-size:var(--v31-fs-xs);font-weight:var(--v31-fw);line-height:var(--v31-lh-row)}
#detail-dialog #v31-people-panel .v31-pp-tick{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:var(--v31-ctl);margin-left:auto;padding:0 8px;border-radius:var(--v31-r-ctl);font-size:var(--v31-fs-sm);font-weight:var(--v31-fw-bold);color:var(--v31-text);cursor:pointer}
#detail-dialog #v31-people-panel .v31-pp-tick:hover{background:var(--v31-ctl-fill-hover)}
#detail-dialog #v31-people-panel .v31-pp-tick input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
#detail-dialog #v31-people-panel .v31-pp-box{display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:20px;height:20px;border:1.8px solid var(--v31-ctl-line);border-radius:6px;background:var(--v31-surface);color:var(--v31-surface)}
#detail-dialog #v31-people-panel .v31-pp-box .v31-i{width:15px;height:15px;stroke-width:2.6;opacity:0}
#detail-dialog #v31-people-panel .v31-pp-tick input:checked+.v31-pp-box{border-color:var(--v31-late);background:var(--v31-late)}
#detail-dialog #v31-people-panel .v31-pp-tick input:checked+.v31-pp-box .v31-i{opacity:1}
#detail-dialog #v31-people-panel .v31-pp-tick input:focus-visible+.v31-pp-box{outline:2px solid var(--v31-focus);outline-offset:2px}
#detail-dialog #v31-people-panel .v31-pp-tick:has(input:disabled){cursor:default}
#detail-dialog #v31-people-panel .v31-pp-tick:has(input:disabled):hover{background:transparent}
#detail-dialog #v31-people-panel .v31-pp-tick:not([aria-busy]) input:disabled+.v31-pp-box{opacity:.55}
#detail-dialog #v31-people-panel .v31-pp-tick[aria-busy] .v31-pp-box{border-color:transparent;background:transparent;color:var(--v31-text-2)}
#detail-dialog #v31-people-panel .v31-pp-tick[aria-busy] .v31-busy{width:16px;height:16px}

#detail-dialog #v31-people-panel .v31-pp-person>.v31-notice{margin-top:4px}

#detail-dialog #v31-people-panel .v31-pp-fold>summary{display:flex;align-items:center;gap:8px;min-height:var(--v31-ctl);margin:0 -8px;padding:0 8px;border-radius:var(--v31-r-ctl);color:var(--lmf-slate-ink);font-size:var(--v31-fs-sm);font-weight:var(--v31-fw-bold);list-style:none;cursor:pointer}
#detail-dialog #v31-people-panel .v31-pp-fold>summary::-webkit-details-marker{display:none}
#detail-dialog #v31-people-panel .v31-pp-fold>summary:hover{background:var(--lmf-slate-soft)}
#detail-dialog #v31-people-panel .v31-pp-fold>summary:focus-visible,#detail-dialog #v31-people-panel .v31-pp-map:focus-visible{outline:2px solid var(--v31-focus);outline-offset:2px}
#detail-dialog #v31-people-panel .v31-pp-chev{display:inline-flex;width:16px;justify-content:center;transition:transform var(--v31-t-ctl)}
#detail-dialog #v31-people-panel .v31-pp-chev .v31-i{width:15px;height:15px}
#detail-dialog #v31-people-panel .v31-pp-fold[open]>summary .v31-pp-chev{transform:rotate(90deg)}
#detail-dialog #v31-people-panel .v31-pp-fold-body{display:grid;gap:4px;padding-top:4px}
#detail-dialog #v31-people-panel .v31-empty-line{min-height:var(--v31-btn);padding:0}
#detail-dialog #v31-people-panel .v31-pp-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

@media (max-width:720px){
  #detail-dialog #v31-people-panel .v31-pp-acts{min-height:44px}
  #detail-dialog #v31-people-panel .v31-pp-tick,#detail-dialog #v31-people-panel .v31-pp-fold>summary{min-height:44px}
  
}
@media (prefers-reduced-motion:reduce){#detail-dialog #v31-people-panel .v31-pp-chev{transition:none}}
@media (forced-colors:active){
  #detail-dialog #v31-people-panel .v31-pp-box{border-color:ButtonText}
  #detail-dialog #v31-people-panel .v31-pp-tick input:checked+.v31-pp-box{background:Highlight;border-color:Highlight}
  #detail-dialog #v31-people-panel .v31-pp-person.is-dnc{outline:1px solid CanvasText}
}
}

/* /forest/workspace-deal-tab.css */
@layer legacy{/* LMF v3.1 walking skeleton (lane SK-UI, gate zero fixes lane SKF-UI): the Darījums tab content.
   Kit controls (v31-btn, v31-notice, v31-empty, v31-skel) come from workspace-v31-shell.css and keep their own look;
   this file only places them and draws the deal card. Own controls repeat the kit's guard (lane K2) so the property
   window's id rules (#detail-dialog .parcel-aside button and friends) cannot restyle them. Tokens only (gate zero rule 2).
   The card has two left edges: the card edge (--v31-pad) and the text column (--v31-tx = pad + 40 px gutter + gap);
   a leading icon sits centred in the gutter; every button in the action column is exactly --v31-act wide. */

#detail-dialog .v31-dt{display:flex;flex-direction:column;gap:var(--v31-s-3);min-width:0;color:var(--v31-text);font:var(--v31-fw) var(--v31-fs)/var(--v31-lh) var(--v31-font)}
#detail-dialog .v31-dt *,#detail-dialog .v31-dt *::before,#detail-dialog .v31-dt *::after{box-sizing:border-box}
#detail-dialog .v31-dt-slot:empty{display:none}
#detail-dialog .v31-dt-skel{border:1px solid var(--v31-line);border-radius:var(--v31-r);background:var(--v31-surface)}

/* the empty block: its one button sits in the action column, as wide as every other */

/* several deals on one property: B4 OF2-P2 (decisions 195, 196) the family's tool capsule (.b.t) in the deals area, the shown one "on" */
#detail-dialog .v31-dt-pills{display:flex;flex-wrap:wrap;gap:var(--v31-s-2)}
#detail-dialog .v31-dt-pill.is-closed .dp-pill-t{color:var(--ui-ink-2)}   /* a closed deal's name reads quieter; the capsule is the family's */

/* the deal card fills its column; sentences keep their own 68ch limit */
#detail-dialog .v31-dt-card{display:flex;flex-direction:column;overflow:hidden;background:var(--v31-surface);border:1px solid var(--v31-line);border-radius:var(--v31-r)}
#detail-dialog .v31-dt-top{display:flex;flex-direction:column;gap:var(--v31-s-3);padding:var(--v31-s-4) var(--v31-pad)}
#detail-dialog .v31-dt-h{display:flex;flex-wrap:wrap;align-items:center;gap:var(--v31-s-2) var(--v31-s-3);min-height:var(--v31-ctl)}
#detail-dialog .v31-dt-t{margin:0;color:var(--v31-text);font:var(--v31-fw-heavy) var(--v31-fs-md)/var(--v31-lh-head) var(--v31-font);letter-spacing:-.005em}
#detail-dialog .v31-dt-t:focus{outline:none}
#detail-dialog .v31-dt-svcs{display:flex;flex-wrap:wrap;gap:var(--v31-s-2);align-items:center}
#detail-dialog .v31-dt-svc-none{color:var(--v31-muted);font-size:var(--v31-fs-sm)}

/* what the last press did, with Atsaukt while it is current: the tick in the gutter, the words on the text column */
#detail-dialog .v31-dt-said{display:grid;grid-template-columns:var(--v31-gut) minmax(0,1fr) auto;column-gap:var(--v31-gap);align-items:center;
  color:var(--v31-text-2);font-size:var(--v31-fs-sm);line-height:var(--v31-lh-row)}
#detail-dialog .v31-dt-said>.v31-i{justify-self:center;width:18px;height:18px;color:var(--v31-forest);stroke-width:2.4}
#detail-dialog .v31-dt-said-tx{min-width:0;max-width:68ch;text-wrap:pretty}

/* the one thing to do now: icon in the gutter, words on the text column, one button in the action column */
#detail-dialog .v31-dt-now{display:grid;grid-template-columns:var(--v31-gut) minmax(0,1fr) var(--v31-act);gap:var(--v31-s-3) var(--v31-gap);align-items:center;
  padding:var(--v31-pad);background:var(--v31-crm-soft);border-top:1px solid var(--v31-crm-line)}
#detail-dialog .v31-dt-now.is-wait{background:var(--v31-warn-bg);border-top-color:var(--v31-warn-line)}
#detail-dialog .v31-dt-now-i{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--v31-surface);color:var(--v31-crm);box-shadow:inset 0 0 0 1px var(--v31-crm-line)}
#detail-dialog .v31-dt-now.is-wait .v31-dt-now-i{color:var(--v31-warn);box-shadow:inset 0 0 0 1px var(--v31-warn-line)}
#detail-dialog .v31-dt-now-i .v31-i{width:20px;height:20px}
#detail-dialog .v31-dt-now-tx{min-width:0}
#detail-dialog .v31-dt-now-t{display:flex;flex-wrap:wrap;align-items:center;gap:var(--v31-s-2) var(--v31-s-3);color:var(--v31-text);font:var(--v31-fw-heavy) var(--v31-fs-lg)/var(--v31-lh-head) var(--v31-font);letter-spacing:-.01em;text-wrap:balance}
#detail-dialog .v31-dt-now-x{margin:var(--v31-s-2) 0 0;max-width:68ch;color:var(--v31-text-2);font:var(--v31-fw) var(--v31-fs-sm)/var(--v31-lh) var(--v31-font);text-wrap:pretty}
#detail-dialog .v31-dt-now-btn{width:var(--v31-act);min-width:var(--v31-act)}

/* the waiting rows under the band */
#detail-dialog .v31-dt-rows{border-top:1px solid var(--v31-crm-line)}
#detail-dialog .v31-dt-row{display:grid;grid-template-columns:var(--v31-gut) minmax(0,1fr) var(--v31-act);gap:var(--v31-gap);align-items:center;min-height:var(--v31-row);padding:var(--v31-s-2) var(--v31-pad);border-top:1px solid var(--v31-line)}
#detail-dialog .v31-dt-row:first-child{border-top:0}
#detail-dialog .v31-dt-row-i{display:grid;place-items:center;width:40px;height:32px;color:var(--v31-crm)}
#detail-dialog .v31-dt-row-i.is-wait{color:var(--v31-warn)}
#detail-dialog .v31-dt-row-i .v31-i{width:18px;height:18px}
#detail-dialog .v31-dt-row-tx{display:flex;flex-wrap:wrap;align-items:center;gap:var(--v31-s-1) var(--v31-s-3);min-width:0}
#detail-dialog .v31-dt-row-t{font:var(--v31-fw-bold) var(--v31-fs)/var(--v31-lh-row) var(--v31-font)}
#detail-dialog .v31-dt-row-s{color:var(--v31-text-2);font-size:var(--v31-fs-sm)}

/* a closed deal under the empty block */
#detail-dialog .v31-dt-closed-list{display:flex;flex-direction:column;gap:var(--v31-s-2)}

/* "Kas notika?" in the side column, directly under the people panel: tonal, full width, 40 high (gate zero M3) */
#detail-dialog .v31-dt-side-qc:not(#v31-kit#v31-kit#v31-kit#v31-kit){grid-column:1 / -1;width:100%;min-height:var(--v31-btn);margin:var(--v31-s-3) 0 var(--v31-s-1)}

/* phone and narrow windows: the button goes under the words, full width */
@media (max-width:720px){
  #detail-dialog .v31-dt-now{grid-template-columns:var(--v31-gut) minmax(0,1fr)}
  #detail-dialog .v31-dt-now-btn{grid-column:1 / -1;width:100%}
  #detail-dialog .v31-dt-row{grid-template-columns:var(--v31-gut) minmax(0,1fr)}
  #detail-dialog .v31-dt .v31-empty{grid-template-columns:var(--v31-gut) minmax(0,1fr)}
  #detail-dialog .v31-dt-side-qc:not(#v31-kit#v31-kit#v31-kit#v31-kit){min-height:44px}
}

.v31-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- lane U-T (contract v1.1) ---------- */
/* the band's second line: who (LMF's suggestion, or the partner who has the job), the reason in words, the quiet link */
#detail-dialog .v31-dt-now-s{display:flex;flex-wrap:wrap;align-items:center;gap:var(--v31-s-1) var(--v31-s-2);margin-top:var(--v31-s-1);color:var(--v31-text);font:var(--v31-fw-bold) var(--v31-fs)/var(--v31-lh-row) var(--v31-font)}
#detail-dialog .v31-dt-now-s>.v31-i,#detail-dialog .v31-dt-row-s>.v31-i{flex:none;color:var(--v31-crm)}
#detail-dialog .v31-dt-who{min-width:0;overflow-wrap:anywhere}
#detail-dialog .v31-dt-why{color:var(--v31-text-2);font:var(--v31-fw) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font)}
#detail-dialog .v31-dt-row-s{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--v31-text-2);font-size:var(--v31-fs-sm)}
#detail-dialog .v31-dt-link:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:inline-flex;align-items:center;gap:var(--v31-s-1);box-sizing:border-box;height:auto;margin:0;padding:0 var(--v31-s-2);
  border:0;border-radius:var(--v31-r-ctl);background:transparent;color:var(--v31-crm-ink);box-shadow:none;cursor:pointer;font:var(--v31-fw-bold) var(--v31-fs-sm)/16px var(--v31-font);letter-spacing:0;text-transform:none;white-space:nowrap}
#detail-dialog .v31-dt-link:not(#v31-kit#v31-kit#v31-kit#v31-kit):hover{background:var(--v31-crm-tint);text-decoration:underline;text-underline-offset:2px}
#detail-dialog .v31-dt-link:not(#v31-kit#v31-kit#v31-kit#v31-kit):focus-visible{outline:2px solid var(--v31-focus);outline-offset:0}
#detail-dialog .v31-dt-link:not(#v31-kit#v31-kit#v31-kit#v31-kit):disabled{cursor:default;opacity:.5}
#detail-dialog .v31-dt-link .v31-i{color:var(--v31-crm)}

/* the property's open Tasks under the empty block: real rows, the ring in the gutter */
#detail-dialog .v31-dt-tasks{display:flex;flex-direction:column;background:var(--v31-surface);border:1px solid var(--v31-line);border-radius:var(--v31-r)}
#detail-dialog .v31-dt-sub{display:flex;align-items:center;gap:var(--v31-s-2);margin:0;padding:var(--v31-s-3) var(--v31-pad) 0;color:var(--v31-text-2);font:var(--v31-fw-bold) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font)}
#detail-dialog .v31-dt-rows--plain{border-top:0}
/* the ring: a 32 px pressable square (gate zero rule 4) with the 24 px circle drawn inside it */
#detail-dialog .v31-dt-ring:not(#v31-kit#v31-kit#v31-kit#v31-kit){justify-self:center;display:grid;place-items:center;box-sizing:border-box;width:32px;min-width:32px;height:32px;min-height:32px;margin:0;padding:0;border:0;border-radius:50%;
  background:transparent;box-shadow:none;cursor:pointer}
#detail-dialog .v31-dt-ring:not(#v31-kit#v31-kit#v31-kit#v31-kit)::before{content:"";box-sizing:border-box;width:24px;height:24px;border:2px solid var(--v31-line-strong);border-radius:50%;background:var(--v31-surface)}
#detail-dialog .v31-dt-ring:not(#v31-kit#v31-kit#v31-kit#v31-kit):hover::before{border-color:var(--v31-forest)}
#detail-dialog .v31-dt-ring:not(#v31-kit#v31-kit#v31-kit#v31-kit):focus-visible{outline:2px solid var(--v31-focus);outline-offset:0}
#detail-dialog .v31-dt-ring[aria-busy="true"]:not(#v31-kit#v31-kit#v31-kit#v31-kit)::before{border-color:var(--v31-crm);border-right-color:transparent;animation:v31-busy .7s linear infinite}
#detail-dialog .v31-dt-tasklink:not(#v31-kit#v31-kit#v31-kit#v31-kit){min-height:32px;height:auto;margin:0;padding:0;border:0;background:transparent;box-shadow:none;color:var(--v31-text);cursor:pointer;text-align:left;
  font:var(--v31-fw-bold) var(--v31-fs)/var(--v31-lh-row) var(--v31-font);letter-spacing:0;text-transform:none}
#detail-dialog .v31-dt-tasklink:not(#v31-kit#v31-kit#v31-kit#v31-kit):hover{text-decoration:underline;text-underline-offset:2px}
#detail-dialog .v31-dt-tasklink:not(#v31-kit#v31-kit#v31-kit#v31-kit):focus-visible{outline:2px solid var(--v31-focus);outline-offset:2px}

/* "Vēsture": a closed fold with its last date; open, one list newest first */
#detail-dialog .v31-dt-hist{background:var(--v31-surface);border:1px solid var(--v31-line);border-radius:var(--v31-r)}
#detail-dialog .v31-dt-hist-s{display:grid;grid-template-columns:var(--v31-gut) auto minmax(0,1fr) auto;column-gap:var(--v31-gap);align-items:center;min-height:var(--v31-row);padding:0 var(--v31-pad);
  list-style:none;cursor:pointer;color:var(--v31-text);border-radius:var(--v31-r)}
#detail-dialog .v31-dt-hist-s::-webkit-details-marker{display:none}
#detail-dialog .v31-dt-hist-s>.v31-i:first-child{justify-self:center;color:var(--v31-text-2)}
#detail-dialog .v31-dt-hist-s:focus-visible{outline:2px solid var(--v31-focus);outline-offset:-2px}
#detail-dialog .v31-dt-hist-t{font:var(--v31-fw-bold) var(--v31-fs)/var(--v31-lh-row) var(--v31-font)}
#detail-dialog .v31-dt-hist-last{color:var(--v31-text-2);font-size:var(--v31-fs-sm)}
#detail-dialog .v31-dt-hist-chev{color:var(--v31-text-2);transition:transform .16s var(--v31-ease)}
#detail-dialog .v31-dt-hist[open] .v31-dt-hist-chev{transform:rotate(90deg)}
#detail-dialog .v31-dt-hist-list{margin:0;padding:0 0 var(--v31-s-2);list-style:none;border-top:1px solid var(--v31-line)}
#detail-dialog .v31-dt-hist-row{display:grid;grid-template-columns:var(--v31-gut) minmax(0,1fr) auto;column-gap:var(--v31-gap);align-items:baseline;padding:var(--v31-s-2) var(--v31-pad)}
#detail-dialog .v31-dt-hist-i{justify-self:center;align-self:center;color:var(--v31-text-2)}
#detail-dialog .v31-dt-hist-tx{min-width:0;max-width:68ch;color:var(--v31-text);font-size:var(--v31-fs-sm);line-height:var(--v31-lh);overflow-wrap:anywhere;text-wrap:pretty}
#detail-dialog .v31-dt-hist-who{margin-left:var(--v31-s-2);color:var(--v31-text-2)}
/* Lane UF-T (G1 LOOP-CHECK M8, 4.9): one row per press, the typed note as its quieter second line; the summary's date slot is
   always drawn, so the chevron keeps the far right whether or not there is a last date. */
#detail-dialog .v31-dt-hist-sub{display:block;margin-top:2px;color:var(--v31-text-2);overflow-wrap:anywhere}
#detail-dialog .v31-dt-hist-last:empty{display:block}
#detail-dialog .v31-dt-hist-d{color:var(--v31-text-2);font-size:var(--v31-fs-sm);font-variant-numeric:tabular-nums;white-space:nowrap}
#detail-dialog .v31-dt-hist .v31-empty-line{margin:0 var(--v31-pad) var(--v31-s-3)}
#detail-dialog .v31-dt-hist-more:not(#v31-kit#v31-kit#v31-kit#v31-kit){margin:0 var(--v31-pad) var(--v31-s-3) var(--v31-tx)}
@media (prefers-reduced-motion:reduce){#detail-dialog .v31-dt-hist-chev{transition:none}#detail-dialog .v31-dt-ring[aria-busy="true"]:not(#v31-kit#v31-kit#v31-kit#v31-kit)::before{animation:none;border-style:dotted}}
@media (max-width:720px){
  #detail-dialog .v31-dt-hist-row{grid-template-columns:var(--v31-gut) minmax(0,1fr)}
  #detail-dialog .v31-dt-hist-d{grid-column:2}
  #detail-dialog .v31-dt-hist-more:not(#v31-kit#v31-kit#v31-kit#v31-kit){margin-left:var(--v31-pad)}
}
/* B4 W2: the "Darījuma apjoms" tab's v31 inputs (the shell sets their width with the #v31-kit specificity; the family sheet
   lmf-page-property.css may not use id selectors) */
.pw-sc .pw-sc-pin:not(#v31-kit#v31-kit#v31-kit#v31-kit),.pw-sc .pw-sc-num:not(#v31-kit#v31-kit#v31-kit#v31-kit){width:5.5em;text-align:right;font-variant-numeric:tabular-nums}
.pw-sc .pw-sc-q:not(#v31-kit#v31-kit#v31-kit#v31-kit){width:4.5em}
.pw-sc .pw-sc-in:not(#v31-kit#v31-kit#v31-kit#v31-kit){max-width:100%}
.pw-sc .pw-sc-cw>select.pw-sc-sm:not(#v31-kit#v31-kit#v31-kit#v31-kit){flex:1 1 0;width:auto;min-width:0}

/* B4 DP1 to DP3 (plan-deals-per-property 2.1 to 2.4, renders 01 to 06): the deal row over the band, the new-deal band, the pencil,
   the tab count, the phone's choice sheet (decision 22) and "Labot darījumu". Family tokens only; the pills keep the kit's guard. */
#detail-dialog .dp-row{align-items:center}
#detail-dialog .dp-pill{max-width:100%}
#detail-dialog .dp-pill .dp-pill-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#detail-dialog .dp-pill .dp-pill-w{color:var(--ui-ink-2);white-space:nowrap}
#detail-dialog .dp-pill[aria-pressed="true"] .dp-pill-w{color:inherit}
#detail-dialog .dp-pill-late{flex:none;width:8px;height:8px;border-radius:50%;background:var(--v31-late);box-shadow:0 0 0 2px var(--ui-surface)}
#detail-dialog .dp-row>.dp-add{flex:none}
.dp-title-row{display:inline-flex;align-items:center;gap:2px;min-width:0;max-width:100%}
.dp-title-row>.pw-now-dt{min-width:0}
.dp-title-row>.dp-pen{flex:none}
#parcel-tab-deal>.dp-tab-n{display:inline-grid;place-items:center;min-width:20px;height:18px;margin-left:6px;padding:0 5px;border-radius:9px;background:var(--ui-well-bg,var(--ui-wash));box-shadow:var(--ui-well-sh,none);font:var(--ui-t-meta);font-variant-numeric:tabular-nums;line-height:18px}
.dp-newband .pw-now-x{margin:2px 0 0;color:var(--ui-ink-2)}
.pw-sc-party{display:inline-flex;align-items:center;gap:8px;font:var(--ui-t-meta);color:var(--ui-ink-2)}
.pw-sc-party>select{width:auto;min-width:12em}
.pw-sc-way{margin:8px 0 0}

/* the choice sheet (phone). B4 OF2-P2 (decisions 195, 196): the family's phone sheet (.psh) and row buttons (.rowb) draw it; the dialog
   only places it at the bottom, and a separator is a gap before the next row */
dialog.dp-sheet{box-sizing:border-box;width:100%;max-width:100%;max-height:min(80dvh,100%);margin:auto 0 0;padding:0;border:0;background:none;overflow:hidden}
dialog.dp-sheet[open]{display:flex}
dialog.dp-sheet::backdrop{background:color-mix(in srgb,var(--ui-ink) 40%,transparent)}
dialog.dp-sheet .dp-sep{margin-top:8px}

/* "Labot darījumu": a window on a PC, a sheet on the phone */
dialog.dp-edit{box-sizing:border-box;width:460px;max-width:calc(100vw - 32px)}
dialog.dp-edit::backdrop{background:color-mix(in srgb,var(--ui-ink) 40%,transparent)}
dialog.dp-edit .dp-edit-f{display:flex;flex-direction:column;gap:12px;margin:0;padding:0}
dialog.dp-edit .dp-edit-hd{display:flex;align-items:center;justify-content:space-between;gap:8px}
dialog.dp-edit .dp-edit-hd h2{margin:0;font:var(--ui-t-win)}
dialog.dp-edit .dp-fld{display:flex;flex-direction:column;gap:6px}
dialog.dp-edit .dp-fld>label{font:var(--ui-t-meta);font-weight:620;color:var(--ui-ink)}
dialog.dp-edit .dp-name{display:flex;gap:8px;align-items:center}
dialog.dp-edit .dp-name>input{flex:1 1 auto;min-width:0}
dialog.dp-edit .dp-hint{margin:0;font:var(--ui-t-meta);color:var(--ui-ink-2)}
dialog.dp-edit .dp-box{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--ui-r);background:var(--ui-stone-2,var(--ui-wash))}
dialog.dp-edit .dp-box>svg{flex:none;width:16px;height:16px;color:var(--ui-ink-2)}
dialog.dp-edit .dp-box>p{flex:1 1 auto;margin:0;font:var(--ui-t-body);color:var(--ui-ink)}
dialog.dp-edit .dp-box>button{flex:none}
dialog.dp-edit .dp-note:empty{display:none}
@media (max-width:700px),(pointer:coarse){
  dialog.dp-edit{width:100%;max-width:100%;max-height:calc(100dvh - 24px);margin:auto 0 0;border:0;border-radius:var(--ui-sheet-r) var(--ui-sheet-r) 0 0;overflow:auto}
  dialog.dp-edit .dp-box{flex-wrap:wrap}
  dialog.dp-edit .dp-box>p{flex-basis:calc(100% - 30px)}
  dialog.dp-edit .ui-dlg-foot{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  dialog.dp-edit .ui-dlg-pair{display:grid;width:100%}
}
/* the phone: pills and the button 40 high, the row wraps (the band's "..." sheet is in lmf-page-property.css, whose layer wins) */
@media (max-width:699px){
  .pw-sc-party{flex:1 1 100%;flex-wrap:wrap}
  .pw-sc-party>select{min-width:0;flex:1 1 12em}
}
/* B4 DP3: the window sits inside the property window's dialog, whose legacy id rules space headings and fields: undo that here */
dialog.dp-edit .dp-edit-hd>h2:not(#v31-kit#v31-kit#v31-kit#v31-kit){margin:0;padding:0;font:var(--ui-t-win)}
dialog.dp-edit .dp-fld>select:not(#v31-kit#v31-kit#v31-kit#v31-kit),dialog.dp-edit .dp-name>input:not(#v31-kit#v31-kit#v31-kit#v31-kit){margin:0}
dialog.dp-edit .dp-fld>label:not(#v31-kit#v31-kit#v31-kit#v31-kit){margin:0;padding:0}
dialog.dp-edit .dp-edit-hd>.dp-x{flex:none;margin:0}
}

/* /forest/workspace-capture.css */
@layer legacy{/* LMF v3.1 walking skeleton (lane SK-UI, gate zero fixes lane SKF-UI): the "Kas notika?" sheet. A modal <dialog> on body.
   Gate zero M1: at most 680 px wide and 640 px high; header (title, place, person) and footer fixed, only the middle scrolls;
   result tiles are an icon and one word, 152 px wide in one row of four (two built in v1); service tiles an icon and a name,
   one row of five, one height; four equal day chips (the date field is the fourth); the note is one line that grows to three.
   Own controls repeat the kit's guard so the app's global button and field rules cannot reach them. Tokens only.
   Lane U-C (contract v1.1): the four tiles of the concept, the refusal reasons (one size, three to a row), the review chips, the
   partner row of a partner step, and "Pastāstīju jaunumus" as a toggle beside the note.
   Lane UF-C (G1 M7, M2, 4.7): the sheet's top is pinned (about 40 px at 720 high, 72 px at 790) and it grows downward only, so a
   pressed tile never moves under the pointer; the quiet "Zvans / Vizīte" pair and the Nezvanīt chip on the person line. */

dialog.v31-qc{--v31-qc-top:clamp(16px,calc((100vh - 640px) / 2),72px);box-sizing:border-box;width:680px;max-width:calc(100vw - 32px);max-height:min(640px,calc(100vh - var(--v31-qc-top) - 16px));margin:var(--v31-qc-top) auto auto;padding:0;overflow:hidden;
  border:0;border-radius:var(--v31-r-lg);background:var(--v31-surface);color:var(--v31-text);box-shadow:var(--v31-sh-overlay);
  font:var(--v31-fw) var(--v31-fs)/var(--v31-lh) var(--v31-font)}
dialog.v31-qc[open]{display:flex;flex-direction:column}
dialog.v31-qc::backdrop{background:color-mix(in srgb,var(--v31-text) 40%,transparent)}
dialog.v31-qc *,dialog.v31-qc *::before,dialog.v31-qc *::after{box-sizing:border-box}

/* header: fixed */
dialog.v31-qc .v31-qc-h{flex:none;display:flex;align-items:flex-start;gap:var(--v31-s-3);padding:var(--v31-s-5) var(--v31-s-4) var(--v31-s-3) var(--v31-s-6)}
dialog.v31-qc .v31-qc-title{margin:0;color:var(--v31-text);font:var(--v31-fw-heavy) var(--v31-fs-xl)/var(--v31-lh-head) var(--v31-font);letter-spacing:-.01em}

/* the middle: the only part that scrolls */
dialog.v31-qc .v31-qc-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 0 var(--v31-s-3)}

/* result tiles: an icon and one word, 152 px, one row; service tiles: an icon and a name, five in a row, one height */
/* lane UF-C3: opened from a callback the row has five tiles ("Izdarīts" second): five columns, as the service tiles */


/* day chips: four in a row, one size; the date field is the fourth, same height and baseline */

/* the note: one line that grows to three */
dialog.v31-qc .v31-qc-note:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:block;width:100%;height:var(--v31-ctl);min-height:var(--v31-ctl);max-height:84px;padding:var(--v31-s-2) var(--v31-s-3);resize:none;overflow-y:auto;line-height:var(--v31-lh-row)}

/* what LMF will do */

/* footer: fixed; both buttons one fixed width, so "Saglabāt vēlreiz" moves nothing */
dialog.v31-qc .v31-qc-why{flex:1;min-width:0;margin:0;color:var(--v31-text-2);font-size:var(--v31-fs-sm);line-height:var(--v31-lh-row);text-wrap:pretty}

/* lane U-C: "Atteikums" reasons, one size, three to a row; "Lūdza nezvanīt" carries the ban icon (colour is never the only signal) */
dialog.v31-qc .v31-qc-review{margin-top:var(--v31-s-3)}
dialog.v31-qc .v31-qc-review[hidden]{display:none}

/* lane U-C: the partner row of a partner step: who gets the job, and one quiet "Mainīt" */

/* lane U-C: the note and "Pastāstīju jaunumus" share one line; the toggle keeps its width whatever its state */
dialog.v31-qc [aria-disabled="true"]{cursor:default}

/* lane UF-C: the talk's channel, a quiet pair on the person line (G1 M2): icon and word, one size, the chosen one tinted */
/* Two joined 36 px pills (each a full-size target): one outline, the chosen half tinted. */
/* lane UF-C: the Nezvanīt chip beside the person (the kit's .v31-dnc) */

@media (max-width:640px){
  dialog.v31-qc{width:100vw;max-width:100vw;max-height:calc(100dvh - 16px);border-radius:var(--v31-r-lg) var(--v31-r-lg) 0 0;margin:auto 0 0}
  dialog.v31-qc .v31-qc-h{padding:var(--v31-s-4) var(--v31-s-3) var(--v31-s-3) var(--v31-s-4)}
  
  
  /* 16 px text in fields on a phone: no zoom on focus */
  dialog.v31-qc .v31-qc-note:not(#v31-kit#v31-kit#v31-kit#v31-kit){font-size:var(--v31-fs-md)}
  dialog.v31-qc .v31-qc-note:not(#v31-kit#v31-kit#v31-kit#v31-kit){height:44px;min-height:44px;max-height:96px;padding:var(--v31-s-3)}
  dialog.v31-qc .v31-qc-why{flex-basis:100%}
  dialog.v31-qc .v31-qc-why:empty{display:none}
}
}

/* /forest/workspace-partners.css */
@layer legacy{/* LMF v3.1 Partneri (B4-UNIFY): Muted Mineral Slate accents (--lmf-slate*) separating People & Partners
   from Deals (Warm Timber) and Forestry (Deep Pine), plus a unified segmented filter track. Tokens only (M7). */

/* ===== the page ===== */
.v31-pa{display:flex;flex-direction:column;gap:var(--v31-s-4)}
.v31-pa-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.v31-pa-tools{display:flex;flex-wrap:wrap;align-items:center;gap:var(--v31-s-3)}
.v31-pa-search{position:relative;display:block;flex:0 1 340px;min-width:200px}
.v31-pa-search>.v31-i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--v31-muted);pointer-events:none}

/* Unified segmented filter track */

.v31-pa-card{position:relative;margin:0;padding:0;list-style:none;border:1px solid var(--v31-line);border-radius:var(--v31-r);background:var(--v31-surface);box-shadow:var(--v31-sh-0);overflow:hidden}
.v31-pa-list>li{margin:0;padding:0;border-bottom:1px solid var(--v31-line)}
.v31-pa-list>li:last-child{border-bottom:0}

/* one row: Mineral Slate icon disc and soft row hover */
.v31-pa-ic{display:grid;place-items:center;width:var(--v31-gut);height:var(--v31-gut);border-radius:50%;background:var(--lmf-slate-soft);color:var(--lmf-slate)}
.v31-pa-nm{overflow:hidden;color:var(--v31-text);font:var(--v31-fw-bold) var(--v31-fs)/var(--v31-lh-row) var(--v31-font);white-space:nowrap;text-overflow:ellipsis}
.v31-pa-chips{display:flex;gap:var(--v31-s-1);justify-content:flex-end}
.v31-pa-ph{color:var(--v31-text-2);font:var(--v31-fw) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.v31-pa-chev{color:var(--v31-muted);transition:transform var(--v31-t-ctl),color var(--v31-t-ctl)}
.v31-pa-row:hover .v31-pa-chev{color:var(--lmf-slate);transform:translateX(2px)}
.v31-pa-row.is-off .v31-pa-nm,.v31-pa-row.is-off .v31-pa-ic{color:var(--v31-muted)}
.v31-pa-row.is-off .v31-pa-ic{background:var(--v31-surface-2)}

@media (max-width:900px){
  .v31-pa-ph{display:none}
}
@media (max-width:600px){
  .v31-pa-search{flex:1 1 100%;min-width:0}
  .v31-pa-seg{flex-wrap:nowrap;overflow-x:auto;max-width:100%}
}

/* ===== partner window and picker sheets ===== */
dialog.v31-pw,dialog.v31-pk{box-sizing:border-box;width:680px;max-width:calc(100vw - 32px);max-height:min(720px,calc(100vh - 32px));margin:auto;padding:0;overflow:hidden;
  border:0;border-radius:var(--v31-r-lg);background:var(--v31-surface);color:var(--v31-text);box-shadow:var(--v31-sh-overlay);
  font:var(--v31-fw) var(--v31-fs)/var(--v31-lh) var(--v31-font)}
dialog.v31-pk{width:560px}
dialog.v31-pw[open],dialog.v31-pk[open]{display:flex;flex-direction:column}
dialog.v31-pw::backdrop,dialog.v31-pk::backdrop{background:color-mix(in srgb,var(--v31-text) 40%,transparent)}
dialog.v31-pw *,dialog.v31-pk *,dialog.v31-pw *::before,dialog.v31-pk *::before,dialog.v31-pw *::after,dialog.v31-pk *::after{box-sizing:border-box}
.v31-pw-h,.v31-pk-h{flex:none;display:flex;align-items:flex-start;gap:var(--v31-s-3);padding:var(--v31-s-5) var(--v31-s-4) var(--v31-s-3) var(--v31-s-6);border-bottom:1px solid var(--v31-line)}
.v31-pw-htx,.v31-pk-htx{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--v31-s-1)}
.v31-pw-title,.v31-pk-title{margin:0;color:var(--v31-text);font:var(--v31-fw-heavy) var(--v31-fs-xl)/var(--v31-lh-head) var(--v31-font);letter-spacing:-.01em;overflow-wrap:anywhere}
.v31-pw-title:focus,.v31-pk-title:focus{outline:none}
.v31-pw-kind{display:flex;align-items:center;gap:var(--v31-s-2);min-height:20px;color:var(--v31-text-2);font:var(--v31-fw-bold) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font)}
.v31-pw-kind .v31-i{color:var(--lmf-slate)}
.v31-pk-ctx{color:var(--v31-text-2);font:var(--v31-fw-bold) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font)}
.v31-pw-body,.v31-pk-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
.v31-pw-slot,.v31-pk-slot{flex:none;padding:var(--v31-s-3) var(--v31-s-6) 0}
.v31-pw-slot:empty,.v31-pk-slot:empty{display:none}
.v31-pw-f,.v31-pk-f{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:var(--v31-s-2);padding:var(--v31-s-3) var(--v31-s-6) var(--v31-s-5);border-top:1px solid var(--v31-line)}
.v31-pw-f:empty{display:none}
.v31-pw-why,.v31-pk-why,.v31-pk-cnt{margin-right:auto;color:var(--v31-text-2);font:var(--v31-fw) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font);text-wrap:pretty}
.v31-pk-cnt{margin-right:0;color:var(--v31-text);font-weight:var(--v31-fw-bold)}
.v31-pk-cnt+.v31-pk-why{margin-left:var(--v31-s-2)}
.v31-pk-cnt+.v31-pk-why:empty{margin-right:auto}

/* ===== partner window body ===== */
.v31-pw-load{padding:var(--v31-s-4) 0}
.v31-pw-grid{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:var(--v31-s-5);padding:var(--v31-s-4) var(--v31-s-6) var(--v31-s-5)}
.v31-pw-sh{margin:var(--v31-s-2) 0 var(--v31-s-2);color:var(--v31-text-2);font:var(--v31-fw-bold) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font)}
.v31-pw-sh:first-child{margin-top:0}
.v31-pw-list{margin:0 0 var(--v31-s-3);padding:0;list-style:none;border:1px solid var(--v31-line);border-radius:var(--v31-r);overflow:hidden}
.v31-pw-list>li{margin:0;border-bottom:1px solid var(--v31-line)}
.v31-pw-list>li:last-child{border-bottom:0}
.v31-pw-none{margin:0;max-width:68ch;color:var(--v31-text-2);text-wrap:pretty}
.v31-pw-side{display:flex;flex-direction:column;align-items:flex-start;gap:var(--v31-s-3);min-width:0}
.v31-pw-fact{display:grid;grid-template-columns:20px minmax(0,1fr);gap:var(--v31-s-2);align-items:start;width:100%;overflow-wrap:anywhere}
.v31-pw-fic{display:inline-grid;place-items:center;width:20px;height:20px;color:var(--lmf-slate)}
.v31-pw-link:not(#v31-kit#v31-kit#v31-kit#v31-kit){color:var(--lmf-slate-ink);font-weight:var(--v31-fw-bold);text-decoration:none}
.v31-pw-link:not(#v31-kit#v31-kit#v31-kit#v31-kit):hover{text-decoration:underline}
.v31-pw-note{margin:0;padding:var(--v31-s-3);border-radius:var(--v31-r-ctl);background:var(--v31-surface-2);color:var(--v31-text-2);font:var(--v31-fw) var(--v31-fs-sm)/var(--v31-lh) var(--v31-font);white-space:pre-wrap}

/* form */
.v31-pw-form{display:flex;flex-direction:column;gap:var(--v31-s-3);margin:0;padding:var(--v31-s-4) var(--v31-s-6) var(--v31-s-3)}
.v31-pw-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--v31-s-3)}
.v31-pw-fl{display:flex;flex-direction:column;gap:var(--v31-s-1);min-width:0;margin:0}
.v31-pw-fl[hidden]{display:none}
.v31-pw-lbl{color:var(--v31-text-2);font:var(--v31-fw-bold) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font)}
.v31-pw-lbl i{color:var(--v31-muted);font-style:normal;font-weight:var(--v31-fw)}
.v31-pw-sp{display:flex;flex-wrap:wrap;gap:var(--v31-s-2)}
.v31-pw-check{display:flex;align-items:center;gap:var(--v31-s-2);min-height:var(--v31-ctl);margin:0;color:var(--v31-text);font:var(--v31-fw-bold) var(--v31-fs)/var(--v31-lh-row) var(--v31-font);cursor:pointer}
.v31-pw-check>.ck{margin:0}

/* ===== picker ===== */
.v31-pk-list{display:flex;flex-direction:column;margin:0;padding:var(--v31-s-2) 0}
.v31-pk-row:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;column-gap:var(--v31-gap);
  box-sizing:border-box;width:100%;min-height:var(--v31-row);height:auto;margin:0;padding:8px var(--v31-s-6);border:0;border-radius:0;background:var(--v31-surface);color:var(--v31-text);
  text-align:left;box-shadow:none;cursor:pointer;font:var(--v31-fw) var(--v31-fs)/var(--v31-lh-row) var(--v31-font);letter-spacing:0;text-transform:none;transition:background-color var(--v31-t-ctl)}
.v31-pk-row:not(#v31-kit#v31-kit#v31-kit#v31-kit):hover:not([disabled]){background:var(--lmf-slate-soft)}
.v31-pk-row:not(#v31-kit#v31-kit#v31-kit#v31-kit)[aria-checked="true"]{background:var(--lmf-slate-soft)}
.v31-pk-row:not(#v31-kit#v31-kit#v31-kit#v31-kit)[disabled]{cursor:not-allowed;color:var(--v31-text-2)}
.v31-pk-row:not(#v31-kit#v31-kit#v31-kit#v31-kit):focus{outline:none}
.v31-pk-row:not(#v31-kit#v31-kit#v31-kit#v31-kit):focus-visible{outline:2px solid var(--v31-focus);outline-offset:-2px}
.v31-pk-mark{display:grid;place-items:center;width:22px;height:22px;border:2px solid var(--v31-ctl-line);border-radius:50%;background:var(--v31-surface);color:transparent}
.v31-pk-mark.is-sq{border-radius:6px}
.v31-pk-row[aria-checked="true"] .v31-pk-mark{border-color:var(--lmf-slate);background:var(--lmf-slate);color:var(--v31-surface)}
.v31-pk-row[disabled] .v31-pk-mark{border-color:var(--v31-line-strong);background:var(--v31-surface-2)}
.v31-pk-mark .v31-i{width:14px;height:14px;stroke-width:3}
.v31-pk-tx{display:flex;flex-direction:column;gap:0;min-width:0}
.v31-pk-nm{display:flex;flex-wrap:wrap;align-items:center;gap:var(--v31-s-1) var(--v31-s-2);min-width:0}
.v31-pk-n{font-weight:var(--v31-fw-bold);overflow-wrap:anywhere}
.v31-pk-sub{color:var(--v31-text-2);font:var(--v31-fw) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font);font-variant-numeric:tabular-nums}
.v31-pk-more:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:flex;align-items:center;gap:var(--v31-gap);box-sizing:border-box;width:100%;min-height:44px;height:auto;margin:0;padding:8px var(--v31-s-6);
  border:0;border-top:1px solid var(--v31-line);border-radius:0;background:var(--v31-surface);color:var(--lmf-slate-ink);text-align:left;box-shadow:none;cursor:pointer;
  font:var(--v31-fw-bold) var(--v31-fs)/var(--v31-lh-row) var(--v31-font);letter-spacing:0;text-transform:none}
.v31-pk-more:not(#v31-kit#v31-kit#v31-kit#v31-kit):hover{background:var(--lmf-slate-soft);text-decoration:underline}
.v31-pk-more:not(#v31-kit#v31-kit#v31-kit#v31-kit):focus-visible{outline:2px solid var(--v31-focus);outline-offset:-2px}
.v31-pk-more>.v31-i{width:24px;color:var(--lmf-slate)}
.v31-pk-search{position:relative;display:block;padding:var(--v31-s-3) var(--v31-s-6) 0}
.v31-pk-new{display:grid;grid-template-columns:minmax(0,1fr) 160px auto;gap:var(--v31-s-2);padding:var(--v31-s-3) var(--v31-s-6);border-top:1px solid var(--v31-line)}
.v31-pk-empty{margin:0;padding:var(--v31-s-4) var(--v31-s-6) var(--v31-s-1);max-width:68ch;color:var(--v31-text);text-wrap:pretty}
.v31-pk-auto{margin:var(--v31-s-3) var(--v31-s-6) 0;padding:var(--v31-s-3) var(--v31-s-4);border-radius:var(--v31-r-ctl);background:var(--lmf-slate-soft);color:var(--v31-text-2);font:var(--v31-fw) var(--v31-fs-sm)/var(--v31-lh) var(--v31-font)}
.v31-pk-auto b{display:block;color:var(--lmf-slate-ink);font-weight:var(--v31-fw-bold)}
.v31-pk-auto p{margin:0}
.v31-pk-body>.v31-notice,.v31-pk-body>.v31-empty-line{margin:var(--v31-s-3) var(--v31-s-6)}
.v31-pk-ok:not(#v31-kit#v31-kit#v31-kit#v31-kit){min-width:var(--v31-act)}
.v31-pw-save:not(#v31-kit#v31-kit#v31-kit#v31-kit){width:calc(var(--v31-act) + var(--v31-s-8))}

@media (max-width:640px){
  dialog.v31-pw,dialog.v31-pk{width:100vw;max-width:100vw;max-height:calc(100dvh - 24px);margin:auto 0 0;border-radius:var(--v31-r-lg) var(--v31-r-lg) 0 0}
  .v31-pw-h,.v31-pk-h{padding:var(--v31-s-4) var(--v31-s-3) var(--v31-s-3) var(--v31-s-4)}
  .v31-pw-grid{grid-template-columns:minmax(0,1fr);gap:var(--v31-s-4);padding:var(--v31-s-3) var(--v31-s-4) var(--v31-s-4)}
  .v31-pw-side{order:-1}
  .v31-pw-form{padding:var(--v31-s-3) var(--v31-s-4)}
  .v31-pw-two{grid-template-columns:minmax(0,1fr)}
  .v31-pw-slot,.v31-pk-slot{padding:var(--v31-s-3) var(--v31-s-4) 0}
  .v31-pw-f,.v31-pk-f{flex-wrap:wrap;padding:var(--v31-s-3) var(--v31-s-4) var(--v31-s-4)}
  .v31-pw-why,.v31-pk-why{flex:1 1 100%;margin:0}
  .v31-pk-cnt{flex:1 1 auto}
  .v31-pk-ok:not(#v31-kit#v31-kit#v31-kit#v31-kit),.v31-pw-save:not(#v31-kit#v31-kit#v31-kit#v31-kit){flex:1 1 auto;min-width:0}
  .v31-pk-row:not(#v31-kit#v31-kit#v31-kit#v31-kit),.v31-pk-more:not(#v31-kit#v31-kit#v31-kit#v31-kit){padding-left:var(--v31-s-4);padding-right:var(--v31-s-4)}
  .v31-pk-new{grid-template-columns:minmax(0,1fr);padding:var(--v31-s-3) var(--v31-s-4)}
  .v31-pk-search{padding:var(--v31-s-3) var(--v31-s-4) 0}
  .v31-pk-auto{margin:var(--v31-s-3) var(--v31-s-4) 0}
}
@media (prefers-reduced-motion:reduce){.v31-pa-chev,.v31-pk-row{transition:none}.v31-pa-row:hover .v31-pa-chev{transform:none}}
@media (forced-colors:active){.v31-pk-mark{border-color:ButtonText}.v31-pk-row[aria-checked="true"] .v31-pk-mark{background:Highlight;color:HighlightText}}
}

/* /forest/workspace-today-v31.css */
@layer legacy{/* LMF v3.1 Šodien (B4-UNIFY): full-width balanced 1440px grid, Warm Timber deal pipeline strip and deal rows,
   Deep Pine Izbraukums trip card, Terracotta overdue marks, crisp warm-stone card borders. Tokens only (M7). */
.v31-td2{display:flex;flex-direction:column;gap:18px;max-width:1392px;margin:0;padding:0 0 28px;color:var(--v31-text);font-family:var(--v31-font)}

/* Deal pipeline strip: Warm Timber accent separating Deals from Forestry */
.v31-td2-strip{display:grid;grid-template-columns:132px repeat(8,minmax(0,1fr));gap:4px;padding:8px;background:var(--v31-surface);border:1px solid var(--v31-line);border-radius:var(--v31-r-lg);box-shadow:var(--v31-sh-0)}
.v31-td2-strip a{display:flex;flex-direction:column;gap:7px;min-width:0;padding:8px 8px 9px;border-radius:var(--v31-r-ctl);color:inherit;text-decoration:none;transition:background-color var(--v31-t-ctl)}
.v31-td2-strip a:hover{background:var(--v31-crm-soft)}
.v31-td2-strip a:active{background:var(--v31-crm-tint)}
.v31-td2-strip a:focus-visible{outline:2px solid var(--v31-focus);outline-offset:-2px}
.v31-td2 .v31-td2-all{justify-content:center;gap:2px;margin-right:4px;border-right:1px solid var(--v31-line);border-radius:var(--v31-r-ctl) 0 0 var(--v31-r-ctl)}
.v31-td2-a{display:flex;align-items:center;gap:8px;font-size:var(--v31-fs);font-weight:var(--v31-fw-heavy)}
.v31-td2-a .v31-i{color:var(--v31-crm)}
.v31-td2-b{padding-left:26px;color:var(--v31-text-2);font-size:var(--v31-fs-sm);font-weight:var(--v31-fw)}
.v31-td2-n{display:flex;align-items:center;gap:6px;height:24px}
.v31-td2-n>.v31-i{width:17px;height:17px;color:var(--v31-crm)}
.v31-td2-num{color:var(--v31-crm-ink);font-size:var(--v31-fs-xl);font-weight:var(--v31-fw-heavy);line-height:1}
.v31-td2-bar{height:5px;border-radius:5px;background:var(--v31-crm);opacity:.65}
.v31-td2-lb{color:var(--v31-text-2);font-size:var(--v31-fs-sm);font-weight:var(--v31-fw-bold);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v31-td2-st.is-zero .v31-td2-num{color:var(--v31-muted);font-weight:var(--v31-fw)}
.v31-td2-st.is-zero .v31-td2-n>.v31-i{color:var(--v31-muted)}
.v31-td2-st.is-zero .v31-td2-bar{background:var(--v31-surface-2);opacity:1}

/* Two columns */
.v31-td2-cols{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,1fr);gap:24px 28px;align-items:start}
.v31-td2-col{display:flex;flex-direction:column;gap:24px;min-width:0}
.v31-td2-h{display:flex;align-items:center;gap:10px;min-height:30px;padding:0 12px 8px 14px}
.v31-td2-h>.v31-i{width:18px;height:18px;margin-right:4px;color:var(--v31-text-2)}
.v31-td2-h h2{margin:0;font-size:var(--v31-fs);font-weight:var(--v31-fw-heavy);line-height:1.25;letter-spacing:0}
.v31-td2-c{display:inline-flex;align-items:center;gap:5px;color:var(--v31-text-2);font-size:var(--v31-fs-sm);font-weight:var(--v31-fw)}
.v31-td2-c .v31-i{width:14px;height:14px}
.v31-td2-r{margin-left:auto}
.v31-td2 .v31-td2-ok{display:inline-flex;align-items:center;gap:5px;min-height:32px;margin:-6px -8px -6px 0;padding:0 8px;border:0;border-radius:var(--v31-r-ctl);background:none;box-shadow:none;color:var(--v31-text-2);font:var(--v31-fw) var(--v31-fs-sm)/1 var(--v31-font);cursor:pointer;transition:background-color var(--v31-t-ctl),color var(--v31-t-ctl)}
.v31-td2 .v31-td2-ok:hover{background:var(--v31-crm-soft);color:var(--v31-crm-ink)}
.v31-td2 .v31-td2-ok[aria-expanded="true"]{background:var(--v31-crm-tint);color:var(--v31-crm-ink)}
.v31-td2 .v31-td2-ok:focus-visible{outline:2px solid var(--v31-focus);outline-offset:0}

/* List card */
.v31-td2-list{overflow:hidden;background:var(--v31-surface);border:1px solid var(--v31-line);border-radius:var(--v31-r-lg);box-shadow:var(--v31-sh-0)}
.v31-td2-row{display:flex;align-items:center;min-height:60px;padding-left:6px;border-bottom:1px solid var(--v31-line);transition:background-color var(--v31-t-ctl)}
.v31-td2-row:last-child,.v31-td2-row:has(+ .v31-td2-more:last-child){border-bottom:0}
.v31-td2-row:has(+ .v31-td2-more){border-bottom:0}
.v31-td2-row:hover{background:var(--v31-crm-soft)}
.v31-td2 .v31-td2-check{flex:none;display:grid;place-items:center;width:40px;height:44px;margin:0;padding:0;border:0;border-radius:var(--v31-r-ctl);background:none;box-shadow:none;cursor:pointer}
.v31-td2 .v31-td2-check:focus-visible{outline:2px solid var(--v31-focus);outline-offset:-2px}
.v31-td2 .v31-td2-check[disabled]{cursor:default}
.v31-td2 .v31-td2-open{flex:1;display:flex;align-items:center;gap:12px;min-width:0;min-height:60px;margin:0;padding:7px 12px 7px 4px;border:0;border-radius:var(--v31-r-ctl);background:none;box-shadow:none;color:var(--v31-text);font:var(--v31-fw) var(--v31-fs)/var(--v31-lh) var(--v31-font);text-align:left;cursor:pointer}
.v31-td2 .v31-td2-open:active{background:var(--v31-crm-tint)}
.v31-td2 .v31-td2-open:focus-visible{outline:2px solid var(--v31-focus);outline-offset:-2px}
.v31-td2-tx{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}
.v31-td2-t{display:flex;align-items:center;gap:8px;min-width:0;font-size:var(--v31-fs);font-weight:var(--v31-fw-bold);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v31-td2-tt{min-width:0;overflow:hidden;text-overflow:ellipsis}
.v31-td2-s{display:flex;align-items:center;gap:5px;min-width:0;color:var(--v31-text-2);font-size:var(--v31-fs-sm);font-weight:var(--v31-fw);white-space:nowrap;overflow:hidden}
.v31-td2-s>span{overflow:hidden;text-overflow:ellipsis}
.v31-td2-s .v31-i{flex:none;order:1;width:13px;height:13px;color:var(--v31-crm)}
.v31-td2-row.is-done .v31-td2-t{color:var(--v31-muted);font-weight:var(--v31-fw);text-decoration:line-through}
.v31-td2-row.is-done .v31-td2-s,.v31-td2-row.is-done .v31-td2-s .v31-i{color:var(--v31-muted)}
.v31-td2-ph{display:inline-flex;align-items:center;gap:6px;color:var(--lmf-slate-ink);font-size:var(--v31-fs-sm);font-weight:var(--v31-fw-bold);white-space:nowrap}
.v31-td2-ph .v31-i{color:var(--lmf-slate)}
.v31-td2-sample{flex:none;padding:1px 7px;border-radius:999px;background:var(--v31-warn-bg);color:var(--v31-warn);font-size:var(--v31-fs-xs);font-weight:var(--v31-fw-bold);line-height:16px;letter-spacing:0}
.v31-td2 .v31-td2-dnc{flex:none}
.v31-td2-chev{flex:none;color:var(--v31-muted);transition:transform var(--v31-t-ctl),color var(--v31-t-ctl)}
.v31-td2-row:hover .v31-td2-chev{transform:translateX(2px);color:var(--v31-crm)}
.v31-td2-empty{display:flex;align-items:center;gap:15px;padding:16px 16px 16px 17px;color:var(--v31-text-2);font-weight:var(--v31-fw)}
.v31-td2-empty>.v31-i{color:var(--v31-forest)}
.v31-td2-notice{padding:0 12px 10px 50px}
.v31-td2-load{margin:0}

/* Trip card: Deep Pine Forestry accent */
.v31-td2-trip{display:grid;grid-template-columns:minmax(0,1fr) 46%;min-height:286px;overflow:hidden;background:var(--v31-surface);border:1px solid var(--v31-line);border-radius:var(--v31-r-lg);box-shadow:var(--v31-sh-0)}
.v31-td2-trip.is-nomap{grid-template-columns:minmax(0,1fr);min-height:0}
.v31-td2-trip-l{display:flex;flex-direction:column;min-width:0;padding:8px 8px 12px}
.v31-td2 .v31-td2-stop{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;margin:0;padding:11px 8px 11px 6px;border:0;border-radius:var(--v31-r-ctl);background:none;box-shadow:none;color:var(--v31-text);font:var(--v31-fw) var(--v31-fs)/var(--v31-lh) var(--v31-font);text-align:left;cursor:pointer;transition:background-color var(--v31-t-ctl)}
.v31-td2 .v31-td2-stop:hover:not([disabled]){background:var(--v31-forest-soft)}
.v31-td2 .v31-td2-stop[disabled]{cursor:default;opacity:1}
.v31-td2 .v31-td2-stop:focus-visible{outline:2px solid var(--v31-focus);outline-offset:-2px}
.v31-td2-k{position:relative;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--v31-forest);color:var(--v31-surface);font-size:var(--v31-fs-sm);font-weight:var(--v31-fw-heavy)}
.v31-td2-stop+.v31-td2-stop .v31-td2-k::before{content:"";position:absolute;left:11px;bottom:100%;height:30px;border-left:2px dotted var(--v31-line-strong)}
.v31-td2-nm{font-size:var(--v31-fs);font-weight:var(--v31-fw-bold);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v31-td2-tm{font-size:var(--v31-fs);font-weight:var(--v31-fw-heavy);font-variant-numeric:tabular-nums}
.v31-td2-trip-more{padding:2px 8px 0 50px;color:var(--v31-text-2);font-size:var(--v31-fs-sm)}
.v31-td2-trip-f{margin-top:auto;padding:12px 6px 0}
.v31-td2-map{position:relative;isolation:isolate;min-height:200px;background:var(--v31-surface-2);border-left:1px solid var(--v31-line)}
.v31-td2-map>div{position:absolute;inset:0}
.v31-td2-map .leaflet-tile-pane{filter:grayscale(.75) brightness(1.06) contrast(.92)}
.v31-td2 .v31-td2-map-btn{position:absolute;inset:0;z-index:800;width:100%;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;cursor:pointer}
.v31-td2 .v31-td2-map-btn:focus-visible{outline:2px solid var(--v31-focus);outline-offset:-2px}
.v31-td2-mnum{display:grid;place-items:center;width:26px;height:26px;box-sizing:border-box;border:2px solid var(--v31-surface);border-radius:50%;background:var(--v31-forest);box-shadow:var(--v31-sh-1);color:var(--v31-surface);font:var(--v31-fw-heavy) var(--v31-fs-sm)/1 var(--v31-font)}
.v31-td2-mnum.is-start{background:var(--v31-home)}

@media (max-height:860px) and (min-width:1001px){
  .v31-td2{gap:14px}
  .v31-td2-col{gap:16px}
  .v31-td2-row,.v31-td2 .v31-td2-open{min-height:54px}
  .v31-td2-trip{min-height:216px}
  .v31-td2 .v31-td2-stop{padding-top:7px;padding-bottom:7px}
  .v31-td2-stop+.v31-td2-stop .v31-td2-k::before{height:22px}
  .v31-td2-strip a{padding-top:6px;padding-bottom:7px}
}
/* B4 DFC (audit r2 N1): up to 1360 px (a laptop) the two columns stand under each other, so every list gets the page width and
   the titles and names are not cut to a letter. */
/* B4 AD1 (decision 185, audit C04 A): Oskars's 1280 px laptop keeps the two columns, down to 1200 px. There the phone number leaves
   the task row (it is one press away, in the task, as below 1001 px), a long title takes two lines, and the row's figures sit closer. */
@media (max-width:1199px){.v31-td2-cols{grid-template-columns:minmax(0,1fr)}}
@media (min-width:1200px) and (max-width:1360px){
  .v31-td2-cols{gap:20px 16px}
  .v31-td2-ph{display:none}   /* the row's own slots: lmf-page-deals.css (B4 AD1) */
  .v31-td2-t{white-space:normal}   /* a long title takes two lines (the clamp: lmf-page-help.css) */
}
@media (max-width:1000px){
  .v31-td2-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
  .v31-td2 .v31-td2-all{grid-column:1/-1;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:10px;margin-right:0;border-right:0;border-radius:var(--v31-r-ctl)}
  .v31-td2-b{padding-left:0}
  .v31-td2-ph{display:none}
  .v31-td2-trip{grid-template-columns:minmax(0,1fr)}
  .v31-td2-map{min-height:180px;border-top:1px solid var(--v31-line);border-left:0}
}
@media (max-width:600px){
  .v31-td2{gap:16px;padding-bottom:20px}
  .v31-td2-strip{gap:2px;padding:6px}
  .v31-td2-strip a{padding:6px 6px 7px;gap:5px}
  .v31-td2-num{font-size:var(--v31-fs-lg)}
  .v31-td2-h{padding-left:10px;padding-right:6px}
  .v31-td2 .v31-td2-open{gap:8px;padding-right:8px}
  .v31-td2-t{flex-wrap:wrap;row-gap:2px;white-space:normal}
  .v31-td2-tt{white-space:nowrap}
  .v31-td2-lb{font-size:var(--v31-fs-xs)}
  .v31-td2-row,.v31-td2 .v31-td2-open{min-height:54px}
  .v31-td2 .v31-td2-dnc>span{display:none}
}
@media (prefers-reduced-motion:reduce){
  
  .v31-td2-row:hover .v31-td2-chev{transform:none}
}
/* B4 SC1: after "Mazāk" the list head comes back into view with a little room above it, not flush with the screen edge. */
.v31-td2-h{scroll-margin-top:12px}
}

/* /forest/workspace-planner-v31.css */
@layer legacy{/* LMF v3.1 Plānotājs (B4-UNIFY): Warm Stone day columns, Deep Pine Today & Izbraukumi trips,
   Warm Timber calls and deal steps so activity types read at a glance. Tokens only (M7). */

.pl-page{--pl-gap:8px;--pl-cols:repeat(7,minmax(0,1fr));padding-top:var(--v31-s-2);padding-bottom:var(--v31-s-4)}
.pl-page .pl-pagehead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;min-height:0}
.pl-page .pl-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pl-page .pl-body{position:relative}
.pl-page .pl-board{position:relative;display:flex;flex-direction:column;font-family:var(--v31-font);color:var(--v31-text)}
.pl-page .v31-i{width:16px;height:16px}

/* heading row */
.pl-page .pl-bar{display:flex;align-items:center;gap:14px;padding:0 0 6px;flex:none;flex-wrap:wrap}
.pl-page .pl-ttl{display:flex;align-items:baseline;gap:12px;min-width:0}
.pl-page .pl-h{margin:0;font:var(--v31-fw-heavy) var(--v31-fs-xl)/var(--v31-lh-head) var(--v31-font);letter-spacing:-.015em;white-space:nowrap;color:var(--v31-text)}
.pl-page .pl-range{font-size:var(--v31-fs);font-weight:var(--v31-fw);color:var(--v31-text-2);white-space:nowrap}
.pl-page .pl-nav{display:flex;gap:4px;align-items:center}
.pl-page .pl-grow{flex:1}
.pl-page .pl-sum{list-style:none;margin:0;padding:0;display:flex;gap:16px;font-size:var(--v31-fs-sm);font-weight:var(--v31-fw);color:var(--v31-text-2);white-space:nowrap}
.pl-page .pl-sum li{display:flex;align-items:center;gap:5px}
.pl-page .pl-sum b{color:var(--v31-text);font-weight:var(--v31-fw-heavy)}

/* kind marks: calls and deal steps in Warm Timber; trips in Deep Pine; waits muted */
.pl-page .pl-k{width:18px;height:18px;flex:none;display:grid;place-items:center;color:var(--v31-crm)}
.pl-page .pl-k .v31-i{width:15px;height:15px}
.pl-page .pl-k.call{background:var(--v31-crm);color:var(--v31-on-fill);border-radius:50%}
.pl-page .pl-k.call .v31-i{width:11px;height:11px;stroke-width:2}
.pl-page .pl-k.trip,.pl-page .pl-k.visit{color:var(--v31-forest)}
.pl-page .pl-k.wait{color:var(--v31-warn)}

/* second row: undated tray + quiet subtle hint */
.pl-page .pl-sub{display:flex;align-items:center;gap:12px;padding:0 2px 8px;min-height:32px;flex:none}
.pl-page .pl-hint{font-size:var(--v31-fs-xs);color:var(--v31-muted);margin:0;flex:1 1 260px;min-width:200px}
.pl-page .pl-tray{display:flex;align-items:center;gap:6px;min-width:0;max-width:62%;padding:3px 4px 3px 10px;border:1.5px dashed var(--v31-line-strong);border-radius:var(--v31-r-ctl);transition:border-color .16s var(--v31-ease),background .16s var(--v31-ease)}
.pl-page .pl-pills{display:flex;align-items:center;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:thin;padding:2px 0}
.pl-page .pl-tl{font-size:var(--v31-fs-sm);font-weight:var(--v31-fw-bold);color:var(--v31-text-2);white-space:nowrap;margin-right:2px}
.pl-page .pl-pill{position:relative;flex:none;display:flex;align-items:center;gap:6px;max-width:300px;background:var(--v31-surface);border:1px solid var(--v31-line);border-radius:var(--v31-r-ctl);padding:3px 4px 3px 8px;font-size:var(--v31-fs-sm);font-weight:var(--v31-fw);cursor:grab;box-shadow:var(--v31-sh-0);transition:box-shadow .16s var(--v31-ease)}
.pl-page .pl-pill[draggable="false"]{cursor:pointer}
.pl-page .pl-pill:hover{box-shadow:var(--v31-sh-1)}
.pl-page .pl-pill .t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* B4 DFA (audit a4): the place gives way, the status stays whole */
.pl-page .pl-pill .pl-pt{display:flex;gap:.3em;min-width:0}
.pl-page .pl-pill .pl-pn{min-width:3ch;overflow:hidden;text-overflow:ellipsis}
.pl-page .pl-pill .pl-ps{flex:none}
.pl-page .pl-pill .pl-mv{position:static;opacity:1;background:none;width:28px;height:28px}
.pl-page .pl-lift{flex:1;display:flex;align-items:center;gap:12px;min-width:0;background:var(--v31-forest-tint);color:var(--v31-text);border-radius:var(--v31-r-ctl);padding:5px 6px 5px 14px;font-weight:var(--v31-fw);font-size:var(--v31-fs)}
.pl-page .pl-lift .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* the week: warm stone columns, soft pine Today */
.pl-page .pl-week{flex:1;min-height:0;display:grid;grid-template-columns:var(--pl-cols);gap:var(--pl-gap)}
.pl-page .pl-day{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--v31-surface-2);border:1.5px solid transparent;border-radius:var(--v31-r);transition:border-color .16s var(--v31-ease),background .16s var(--v31-ease)}
.pl-page .pl-day.today{background:var(--v31-forest-soft);border-color:var(--lmf-band-line)}
.pl-page .pl-day.past{opacity:.58}
.pl-page .pl-dh{position:relative;display:flex;align-items:center;gap:8px;padding:8px 8px 6px 10px;flex:none}
.pl-page .pl-num{min-width:30px;height:30px;display:grid;place-items:center;border-radius:50%;font-size:var(--v31-fs-lg);font-weight:var(--v31-fw-heavy);letter-spacing:-.02em}
.pl-page .pl-day.today .pl-num{background:var(--v31-forest);color:var(--v31-on-fill);font-size:var(--v31-fs);letter-spacing:0}
.pl-page .pl-wd{flex:1;min-width:0;font-size:var(--v31-fs-sm);font-weight:var(--v31-fw-bold);color:var(--v31-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-page .pl-day.today .pl-wd{color:var(--v31-forest)}
.pl-page .pl-add{position:absolute;top:8px;right:6px;width:28px;height:28px;padding:0;border:1px solid var(--v31-ctl-line);border-radius:var(--v31-r-ctl);background:var(--v31-ctl-fill);color:var(--v31-text-2);display:grid;place-items:center;cursor:pointer;opacity:0;box-shadow:var(--v31-sh-0);transition:opacity .16s var(--v31-ease),background .16s var(--v31-ease),border-color .16s var(--v31-ease)}
.pl-page .pl-day:hover .pl-add,.pl-page .pl-add:focus-visible,.pl-page .pl-add[aria-expanded="true"]{opacity:1}
.pl-page .pl-add:hover{border-color:var(--v31-forest);background:var(--v31-forest-soft);color:var(--v31-forest)}
.pl-page .pl-add:active{background:var(--v31-forest-tint);box-shadow:var(--v31-sh-in)}
.pl-page .pl-list{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;padding:0 5px 8px;display:flex;flex-direction:column;gap:6px}
.pl-page .pl-list.more{-webkit-mask-image:linear-gradient(var(--v31-mask-solid) calc(100% - 26px),transparent);mask-image:linear-gradient(var(--v31-mask-solid) calc(100% - 26px),transparent)}
.pl-page .pl-addf{display:flex;flex-direction:column;gap:6px;background:var(--v31-surface);border:1px solid var(--v31-line-strong);border-radius:var(--v31-r-ctl);padding:6px;flex:none}
.pl-page .pl-addf .v31-input{min-height:36px;font-size:var(--v31-fs);padding:5px 8px;width:100%;caret-color:var(--v31-forest)}

/* cards */
.pl-page .pl-card{position:relative;flex:none;display:flex;flex-direction:column;gap:2px;background:var(--v31-surface);border:1px solid var(--v31-line);border-radius:var(--v31-r-ctl);padding:8px 10px;cursor:grab;box-shadow:var(--v31-sh-0);transition:box-shadow .16s var(--v31-ease),border-color .16s var(--v31-ease),opacity .16s var(--v31-ease)}
.pl-page .pl-card[draggable="false"]{cursor:pointer}
.pl-page .pl-card:hover{box-shadow:var(--v31-sh-2)}
.pl-page .pl-nm{display:flex;align-items:flex-start;gap:7px;min-width:0;font-size:var(--v31-fs);font-weight:var(--v31-fw-bold);line-height:var(--v31-lh-row)}
.pl-page .pl-nm .t{min-width:0;white-space:normal;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.pl-page .pl-card.solo .pl-nm .t{font-weight:var(--v31-fw)}
.pl-page .pl-nm .pl-k,.pl-page .pl-nm .pl-ring{margin-top:1px}
.pl-page .pl-me{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:var(--v31-fs-sm);font-weight:var(--v31-fw);color:var(--v31-text-2);line-height:var(--v31-lh-row);padding-left:25px;padding-right:22px}
.pl-page .pl-me>.pl-place{min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pl-page .pl-card.late{border-color:var(--v31-late-line)}
.pl-page .pl-card.done{opacity:.55;cursor:default;box-shadow:none}
.pl-page .pl-card.done .pl-nm .t{text-decoration:line-through}
.pl-page .dragging{opacity:.4}
.pl-page .pl-card.lifted,.pl-page .pl-pill.lifted{border-color:var(--v31-forest);background:var(--v31-forest-tint);color:var(--v31-text)}
.pl-page .flash{animation:pl-settle 1.1s var(--v31-ease)}
@keyframes pl-settle{from{background:var(--v31-forest-tint);border-color:var(--v31-forest)}}

/* move button and tick ring */
.pl-page .pl-mv{position:absolute;bottom:4px;right:4px;width:28px;height:28px;padding:0;border:0;border-radius:var(--v31-r-ctl);background:var(--v31-surface-2);color:var(--v31-text-2);display:grid;place-items:center;cursor:pointer;opacity:0;transition:opacity .16s var(--v31-ease),background .16s var(--v31-ease),color .16s var(--v31-ease)}
.pl-page .pl-mv:hover{background:var(--v31-forest-tint);color:var(--v31-forest)}
.pl-page .pl-mv:active{background:var(--lmf-tint-hover)}
.pl-page [data-id]:hover>.pl-mv,.pl-page [data-id]:focus-visible>.pl-mv,.pl-page .pl-mv:focus-visible{opacity:1}
.pl-page .pl-ring{position:relative;width:18px;height:18px;flex:none;padding:0;border:1.6px solid var(--lmf-field-line);border-radius:50%;background:var(--v31-surface);color:var(--v31-on-fill);display:grid;place-items:center;cursor:pointer;box-shadow:var(--v31-sh-in-sm);transition:background-color .16s,border-color .16s,box-shadow .16s}
button.pl-ring::after{content:"";position:absolute;inset:-9px}
.pl-page .pl-ring:hover{border-color:var(--v31-forest);box-shadow:var(--lmf-ring-halo)}
.pl-page .pl-ring[aria-pressed="true"],.pl-page .pl-ring.on{background:var(--v31-forest);border-color:var(--v31-forest)}
.pl-page .pl-ring .v31-i{width:11px;height:11px;stroke-width:2.4}
.pl-page .pl-ring[disabled]{cursor:default;opacity:.6}

/* waits */
.pl-page .pl-wh{flex:none;height:1px;background:var(--v31-line);margin:6px 6px 0}
.pl-page .pl-wpin{flex:none;margin:0 6px;border-top:1px solid var(--lmf-band-line);font-size:var(--v31-fs-sm)}
.pl-page .pl-wpin summary{display:flex;align-items:center;gap:6px;padding:8px 6px;cursor:pointer;list-style:none;font-weight:var(--v31-fw-bold);color:var(--v31-text-2);border-radius:var(--v31-r-ctl)}
.pl-page .pl-wpin summary::-webkit-details-marker{display:none}
.pl-page .pl-wpin summary:hover{background:var(--v31-surface-veil)}
.pl-page .pl-wpin .bad{display:inline-flex;align-items:center;gap:3px;color:var(--v31-late)}
.pl-page .pl-wpin .v31-i{width:14px;height:14px}
.pl-page .pl-wlist{display:flex;flex-direction:column;gap:2px;padding:0 0 6px;max-height:180px;overflow-y:auto}

/* later strip */
.pl-page .pl-later{flex:none;padding:10px 0 0}
.pl-page .pl-lh{font-size:var(--v31-fs-sm);font-weight:var(--v31-fw-bold);color:var(--v31-text-2);padding:0 4px 6px}
.pl-page .pl-lgrid{display:grid;grid-template-columns:var(--pl-cols);gap:var(--pl-gap)}
.pl-page .pl-cell{min-width:0;min-height:66px;display:flex;flex-direction:column;gap:1px;padding:4px 5px 6px;background:var(--v31-surface);border:1px solid var(--v31-line);border-radius:var(--v31-r-ctl);transition:border-color .16s var(--v31-ease),background .16s var(--v31-ease)}
.pl-page .pl-cnum{align-self:flex-start;border:0;background:none;border-radius:6px;padding:2px 5px;font:var(--v31-fw-bold) var(--v31-fs-sm)/1.3 var(--v31-font);color:var(--v31-text-2);cursor:pointer;transition:background .16s var(--v31-ease),color .16s var(--v31-ease)}
.pl-page .pl-cwd{font-weight:var(--v31-fw)}
.pl-page .pl-cnum:hover{background:var(--v31-surface-2);color:var(--v31-text)}
.pl-page .pl-cnum:active{background:var(--v31-line)}
.pl-page .pl-mi{display:flex;align-items:center;gap:6px;min-width:0;padding:1px 5px;border:1px solid transparent;border-radius:6px;font-size:var(--v31-fs-sm);font-weight:var(--v31-fw);cursor:grab;transition:background .16s var(--v31-ease)}
.pl-page .pl-mi[draggable="false"]{cursor:pointer}
.pl-page .pl-mi:hover{background:var(--v31-surface-2)}
.pl-page .pl-mi .t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-page .pl-mi .pl-k,.pl-page .pl-mi .pl-ring{width:16px;height:16px}
.pl-page .pl-mi .pl-k .v31-i{width:13px;height:13px}
.pl-page .pl-mi .pl-k.call .v31-i{width:10px;height:10px}
.pl-page .pl-mi.k-wait{color:var(--v31-text-2)}
.pl-page .pl-mi.done .t{text-decoration:line-through;opacity:.6}
.pl-page .pl-more{font-size:var(--v31-fs-xs);font-weight:var(--v31-fw);color:var(--v31-text-2);padding:0 5px}

/* drag landing */
.pl-page .over.over.over{border-color:var(--v31-forest);background:var(--v31-forest-soft)}
.pl-page.pl-lifting .pl-drop{cursor:pointer;border-color:var(--lmf-drop-line);border-style:dashed}
.pl-page.pl-lifting .pl-drop:hover,.pl-page.pl-lifting .pl-drop:focus-visible{border-style:solid;border-color:var(--v31-forest);background:var(--v31-forest-soft)}
.pl-page.pl-lifting .pl-drop *{pointer-events:none}

/* snackbar */
.pl-page .pl-snack{position:fixed;left:50%;bottom:22px;z-index:40;display:flex;align-items:center;gap:12px;max-width:calc(100% - 48px);padding:6px 6px 6px 16px;border-radius:12px;background:var(--v31-text);color:var(--v31-on-fill);font-size:var(--v31-fs);font-weight:var(--v31-fw-bold);box-shadow:var(--v31-sh-overlay);opacity:0;pointer-events:none;transform:translate(-50%,16px);transition:opacity .2s var(--v31-ease),transform .2s var(--v31-ease)}
.pl-page .pl-snack:empty{display:none}
.pl-page .pl-snack.on{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.pl-page .pl-snack .t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-page .pl-snack button{flex:none;border:0;border-radius:8px;background:var(--v31-on-fill-veil);box-shadow:inset 0 0 0 1px var(--v31-on-fill-veil-line);color:var(--v31-on-fill);font:var(--v31-fw-bold) var(--v31-fs-sm)/1 var(--v31-font);padding:8px 12px;min-height:32px;cursor:pointer}
.pl-page .pl-snack button:hover{background:var(--v31-on-fill-veil-hover)}
.pl-page .pl-snack button:focus-visible{outline:2px solid var(--v31-on-fill);outline-offset:2px}

@media (hover:none){
  .pl-page .pl-add,.pl-page .pl-mv{opacity:1}
  .pl-page .pl-mv{width:34px;height:34px}
  .pl-page .pl-me{padding-right:36px}
}
@media (prefers-reduced-motion:reduce){.pl-page .flash{animation:none}.pl-page *:not(#v31-kit#v31-kit){transition:none}}
@media (max-height:780px){
  .pl-page .pl-cell{min-height:54px}
}
@media (max-width:1000px){
  .pl-page{--pl-cols:repeat(7,minmax(150px,1fr))}
  .pl-page .pl-week,.pl-page .pl-lgrid{overflow-x:auto}
  .pl-page .pl-tray{max-width:100%}
  .pl-page .pl-sub{flex-wrap:wrap}
}
@media (max-width:700px){
  .pl-page{padding-left:0;padding-right:0}
  .pl-page .pl-board{height:auto;min-height:0}
  .pl-page .pl-bar{gap:8px 10px}
  .pl-page .pl-ttl{flex-wrap:wrap;gap:2px 10px}
  .pl-page .pl-grow{display:none}
  .pl-page .pl-sum{order:3;width:100%;gap:14px}
  .pl-page .pl-hint{display:none}
  .pl-page .pl-week{grid-template-columns:minmax(0,1fr);overflow:visible}
  .pl-page .pl-day{min-height:0}
  .pl-page .pl-day.past{display:none}
  .pl-page .pl-list{overflow:visible;flex:none}
  .pl-page .pl-list.more{-webkit-mask-image:none;mask-image:none}
  .pl-page .pl-dh{min-height:46px}
  .pl-page .pl-add{opacity:1;width:36px;height:36px;top:5px}
  /* B4 DFA (audit M7): "Tālāk" two days per row on the phone instead of seven cut cards running off the edge */
  .pl-page .pl-lgrid{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;padding-bottom:4px}
  .pl-page .pl-pband-later{display:none}
  .pl-page .pl-snack{bottom:calc(16px + env(safe-area-inset-bottom));max-width:calc(100% - 24px)}
  .pl-page .pl-sub{min-height:0;padding-bottom:8px}
  .pl-page .pl-sub:not(:has(.pl-tray,.pl-lift)){display:none}
}

.pl-page button.pl-ring,.pl-page button.pl-add,.pl-page button.pl-mv,.pl-page button.pl-cnum,.pl-page .pl-snack button,.pl-page .pl-wpin summary{min-width:0;min-height:0;margin:0;letter-spacing:normal;text-transform:none;font-family:var(--v31-font)}
.pl-page button.pl-ring{width:18px;height:18px;padding:0;border-radius:50%;background-image:none}
.pl-page button.pl-ring[aria-pressed="true"]{background-color:var(--v31-forest)}
.pl-page button.pl-add{width:28px;height:28px;padding:0}
.pl-page button.pl-mv{width:28px;height:28px;padding:0;box-shadow:none}
.pl-page button.pl-cnum{height:auto;box-shadow:none}
.pl-page .pl-card.solo .pl-nm{padding-right:26px}
@media (hover:none){.pl-page button.pl-mv{width:34px;height:34px}.pl-page .pl-card.solo .pl-nm{padding-right:36px}}
@media (max-width:700px){.pl-page button.pl-add{width:36px;height:36px}}
#content .pl-page button.pl-ring{width:18px;height:18px;min-width:18px;min-height:18px;max-width:18px;max-height:18px;flex:0 0 18px}
#content .pl-page button.pl-mv{min-width:28px;min-height:28px}
}

/* /forest/workspace-trips.css */
@layer pages{
/* LMF Izbraukumi: the trips page at #trips (B4 V2, plan-visits/BUILD-PLAN.md revision 2; drawing proposal-visits/visits.html).
   One layout: a 420 px panel and the map. Lists are hairline rows, not cards. Controls come from the family (lmf-controls.css);
   this sheet holds only layout and the page's own marks. Colours and sizes are the family's tokens: pine for the page
   (data-area="forest"), slate for people things, ochre for deal things. Never named here: [hidden].
   The old page's sheet (workspace-visits.css) is not touched. */

/* ---------- the frame: the page fills the window under the top bar ---------- */
.page-trips{padding:0;max-width:none}
.v31-page[data-v31-page="trips"]{display:block;margin:0;padding:0;max-width:none}
.v31-page[data-v31-page="trips"]>.v31-page-body{margin:0;padding:0}
.tr-page{display:grid;grid-template-columns:420px minmax(0,1fr);height:calc(100vh - var(--ui-bar-h));height:calc(100dvh - var(--ui-bar-h));min-height:420px;background:var(--ui-canvas);color:var(--ui-ink);font:var(--ui-t-body);font-variant-numeric:tabular-nums}
.tr-panel{position:relative;z-index:2;display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid var(--ui-line-2);background:var(--ui-surface);box-shadow:var(--ui-map-on-drop)}
.tr-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column}
.tr-sp{flex:1}

/* the head: the page title, or the back arrow, the trip's name and its menu */
.tr-ph.v31-page-head{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;box-sizing:border-box;min-height:58px;margin:0;padding:14px 16px 10px;border:0;background:none}
.tr-ph .v31-page-title{flex:0 1 auto;min-width:0;margin:0;overflow:hidden;color:var(--ui-ink);font:var(--ui-t-page);letter-spacing:-.016em;text-overflow:ellipsis;white-space:nowrap}
.tr-ph [data-tr-back]{margin-left:-6px}
.tr-ph [data-tr-back]+.v31-page-title{font:var(--ui-t-win);letter-spacing:-.012em}
/* B4 DFA (audit M12): the head buttons keep their words ("Būšu tur…" was cut); the title is the one that gives way */
.tr-ph>:is([data-tr-there],[data-tr-listmenu],[data-tr-new],[data-tr-gmaps],[data-tr-menu],.tr-sugtag){flex:none}

/* ---------- section headings and counts ---------- */
.tr-sec{padding:0 0 4px}
.tr-sh{display:flex;align-items:center;gap:6px;margin:0;padding:14px 16px 6px;color:var(--ui-ink);font:620 13px/1.3 var(--ui-f)}
.tr-n{color:var(--ui-muted);font-weight:400}
.tr-sh>[data-tr-fold],.tr-sh>[data-tr-noaddr]{margin-left:-10px}
.tr-none{margin:8px 16px;color:var(--ui-ink-2);font:var(--ui-t-body)}

/* ---------- the list of trips: hairline rows ---------- */
.tr-rows{border-top:1px solid var(--ui-line)}
/* B4 OF2-P5: a trip is the family's row button (.rowb): its divider, wash, press and focus; the page keeps the row's height */
.tr-row{gap:12px;min-height:56px;padding:8px 12px 8px 16px}
.tr-row>svg{flex:none;width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-muted)}
.tr-day{display:grid;flex:none;justify-items:center;width:40px;line-height:1.05}
.tr-day b{font:700 var(--v31-fs-lg)/1.1 var(--ui-f);letter-spacing:-.02em}
.tr-day small{color:var(--ui-muted);font:var(--ui-t-meta);line-height:1.15}
.tr-day.none{place-items:center;height:40px;border:1px dashed var(--ui-line-2);border-radius:8px;color:var(--ui-muted)}
.tr-day.none svg{width:var(--ui-ic);height:var(--ui-ic)}
.tr-rowm{display:grid;flex:1;min-width:0}
.tr-rowm b{overflow:hidden;font:620 var(--v31-fs)/1.3 var(--ui-f);text-overflow:ellipsis;white-space:nowrap}
.tr-rowm small{overflow:hidden;color:var(--ui-muted);font:var(--ui-t-meta);text-overflow:ellipsis;white-space:nowrap}

/* ---------- the place mark: round pine = forest, slate square = the owner's home, both = round with a slate corner ---------- */
.tr-num{position:relative;display:grid;flex:none;place-items:center;box-sizing:border-box;width:24px;height:24px;margin-right:5px;border-radius:50%;background:var(--ui-pine);box-shadow:0 0 0 2px var(--ui-surface),var(--ui-map-on-drop);color:var(--ui-on-fill);font:700 12px/1 var(--ui-f)}
.tr-num svg{width:13px;height:13px;stroke-width:2.6}
.tr-num.kh{border-radius:7px;background:var(--ui-slate)}
.tr-num.kn{background:var(--ui-ink-2)}
.tr-num.kp::after{content:"";position:absolute;right:-5px;bottom:-4px;width:11px;height:11px;border-radius:3.5px;background:var(--ui-slate);box-shadow:0 0 0 1.5px var(--ui-surface)}
.tr-num.s{background:var(--ui-surface);box-shadow:0 0 0 1.5px var(--ui-line-2);color:var(--ui-ink-2)}
.tr-num.done{background:var(--ui-surface);box-shadow:0 0 0 1.5px var(--ui-on-line);color:var(--ui-pine)}
.tr-num.kh.done{box-shadow:0 0 0 1.5px var(--ui-line-2);color:var(--ui-slate-ink)}
.tr-num.skip{background:var(--ui-surface);box-shadow:0 0 0 1.5px var(--ui-line-2);color:var(--ui-muted)}
.tr-num.done::after,.tr-num.skip::after{display:none}
/* offered, not in a day: hollow */
.tr-num.off{width:16px;height:16px;margin:0 9px 0 4px;background:var(--ui-surface);box-shadow:0 0 0 2px var(--ui-pine)}
.tr-num.off.kh{border-radius:5px;box-shadow:0 0 0 2px var(--ui-slate)}
.tr-num.off.kn{box-shadow:0 0 0 2px var(--ui-ink-2)}
.tr-num.off.kp::after{right:-6px;bottom:-5px;width:9px;height:9px;border-radius:3px}
/* an "on the way" fill-in: in the day, but visibly not a stop with a reason of its own */
.tr-num.fill{background:var(--ui-surface);box-shadow:none;outline:1.5px dashed var(--ui-pine);outline-offset:1px;color:var(--ui-pine)}

/* ---------- names, the score, the purpose ---------- */
.tr-l1{display:flex;align-items:baseline;gap:10px;min-width:0}
.tr-l1>.ui-figs,.tr-l1>.ui-score{flex:none;margin-left:auto}
.tr-l2{display:block;overflow:hidden;color:var(--ui-muted);font:var(--ui-t-meta);text-overflow:ellipsis;white-space:nowrap}
.tr-name{min-width:0;overflow:hidden;font:620 var(--ui-fs-l)/1.3 var(--ui-f);text-overflow:ellipsis;white-space:nowrap}
.tr-name:not(.lk){color:var(--ui-ink)}   /* B4 OF2-P5: a name that opens something keeps the family link's pine and underline */
.tr-pur{font-style:normal;font-weight:620}
.tr-pur.f{color:var(--ui-pine)}
.tr-pur.p{color:var(--ui-slate-ink)}
.tr-pur.d{color:var(--ui-ochre-ink)}
.tr-pur.n{color:var(--ui-ink-2)}

/* ---------- "Gaida braucienu": one list, grouped by area ---------- */
.tr-wg{display:flex;align-items:center;gap:8px;min-height:30px;padding:0 16px;border-top:1px solid var(--ui-line);font:var(--ui-t-data)}
.tr-wg b{font-weight:620}
.tr-wl{margin:0;padding:0 8px 4px 16px;list-style:none}
.tr-wr{display:flex;align-items:center;gap:6px;min-height:42px;padding:4px 0;border-top:1px solid var(--ui-line)}
.tr-wr:first-child{border-top:0}
.tr-wm{display:grid;flex:1;min-width:0}
.tr-wr>[data-tr-take]{margin-right:8px}
.tr-wmore{margin:4px 0 8px 16px;align-self:flex-start;max-width:calc(100% - 12px)}  /* VF1: its own width; stretched to the edge on the phone its raised edge made a 2 px sideways scroll */

/* ---------- one trip ---------- */
.tr-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0 16px 10px}
.tr-sum{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding:9px 16px;border-top:1px solid var(--ui-line);border-bottom:1px solid var(--ui-line);background:var(--ui-canvas);color:var(--ui-ink-2);font:var(--ui-t-body)}
.tr-sum b{color:var(--ui-ink);font-weight:700;font-size:var(--v31-fs)}
.tr-sum span+span{padding-left:14px;border-left:1px solid var(--ui-line-2)}
/* B4 GH1: the OpenStreetMap credit under the summary, only when road times are shown */
.tr-sum .tr-osm{flex-basis:100%;font:var(--ui-t-meta);color:var(--ui-ink-2)}
.tr-sum .tr-osm a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.tr-ex{display:flex;align-items:center;gap:8px;min-height:36px;margin:8px 16px 0;padding:5px 6px 5px 10px;border-radius:8px;background:var(--ui-warn-tint);color:var(--ui-ink);font:var(--ui-t-body)}
.tr-ex>svg{flex:none;width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-warn-ink)}
.tr-ex>span{flex:1;min-width:0}
.tr-ex.pick{background:var(--ui-a-soft);box-shadow:inset 0 0 0 1px var(--ui-a-line)}
.tr-ex.pick>svg{color:var(--ui-a)}
.tr-note{display:flex;align-items:center;gap:8px;min-height:38px;margin:0 16px 8px;padding:5px 4px 5px 10px;border-radius:8px;background:var(--ui-a-soft);box-shadow:inset 0 0 0 1px var(--ui-a-line);font:var(--ui-t-body)}
.tr-note>svg{flex:none;width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-a)}
.tr-note>span{flex:1;min-width:0}
.tr-note.warn{background:var(--ui-warn-tint);box-shadow:none}
.tr-note.warn>svg{color:var(--ui-warn-ink)}

.tr-stops{margin:0;padding:6px 8px;list-style:none}
.tr-st,.tr-end{position:relative;border-radius:8px}
.tr-sth,.tr-end{display:flex;align-items:center;gap:8px;min-height:42px;padding:4px 6px 4px 2px}
.tr-end{min-height:32px;padding-left:30px;color:var(--ui-ink-2)}
.tr-endm{flex:1;min-width:0;overflow:hidden;font:var(--ui-t-data);text-overflow:ellipsis;white-space:nowrap}
.tr-end .tr-num svg{width:13px;height:13px;stroke-width:1.9}
.tr-sth{cursor:pointer}
.tr-st:hover{background:var(--ui-canvas)}
.tr-st.open{background:var(--ui-canvas);box-shadow:inset 0 0 0 1px var(--ui-line)}
.tr-st.is-done .tr-name,.tr-st.is-skipped .tr-name{color:var(--ui-ink-2)}
.tr-stm{display:grid;flex:1;min-width:0}
/* the stop's name opens it: a plain text button, the row's own size */
/* B4 OF2-P5: a name that opens something is the family's link (.lk); a name keeps the row's name size so names line up. The grip
   is the family's quiet round icon tool (.b.s.q.ic); it only says it is dragged. */
.tr-name.lk{flex:0 1 auto;text-align:left}
.tr-grip{flex:none;cursor:grab;touch-action:none}
.tr-rm{opacity:0}
.tr-st:hover .tr-rm,.tr-st:focus-within .tr-rm,.tr-rm:focus-visible{opacity:1}
.tr-leg{position:relative;height:15px;margin-left:42px;list-style:none}
.tr-leg::before{content:"";position:absolute;left:-1px;top:-6px;bottom:-6px;border-left:2px dotted var(--ui-line-2)}
.tr-leg span{position:absolute;left:14px;top:0;color:var(--ui-muted);font:400 12px/15px var(--ui-f)}
.tr-leg.none{height:6px}
.tr-leg.none::before{display:none}
.tr-dragging{opacity:.45}
.tr-drop-before{box-shadow:inset 0 2px 0 var(--ui-a)}
.tr-drop-after{box-shadow:inset 0 -2px 0 var(--ui-a)}

/* an open stop: its places as plain rows under a hairline, then its few controls */
.tr-stb{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:0 10px 10px 62px}
.tr-plc{display:flex;align-items:center;gap:10px;min-height:40px;padding:4px 0;border-top:1px solid var(--ui-line)}
.tr-plc:first-child{border-top:0}
.tr-plc>svg{flex:none;width:16px;height:16px;color:var(--ui-pine)}
.tr-plc.h>svg{color:var(--ui-slate)}
.tr-plcm{display:grid;flex:1;min-width:0}
.tr-plc b{overflow:hidden;font:620 13px/1.3 var(--ui-f);text-overflow:ellipsis;white-space:nowrap}
.tr-plc small{color:var(--ui-muted);font:var(--ui-t-meta);line-height:1.3}
.tr-know{display:flex;align-items:baseline;gap:6px;margin:0;color:var(--ui-ink);font:var(--ui-t-body)}
.tr-know svg{flex:none;align-self:center;width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-ink-2)}
.tr-know b{font-weight:700}
.tr-ctl,.tr-act{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px}
/* B4 GF1 (decision 47): "Braukt" Google Maps / Waze by the exact point; a stop without one says so, quietly */
.tr-nav{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;color:var(--ui-muted);font:var(--ui-t-meta)}
.tr-nav.none{color:var(--ui-warn-ink)}

.tr-add{padding:6px 16px 12px}
.tr-foot{display:flex;align-items:center;gap:8px;margin-top:auto;padding:11px 16px;border-top:1px solid var(--ui-line);background:var(--ui-surface)}
.tr-saved{display:inline-flex;align-items:center;gap:5px;color:var(--ui-muted);font:400 12px/1 var(--ui-f)}
.tr-saved svg{width:13px;height:13px;color:var(--ui-pine)}
.tr-saved.bad{color:var(--ui-clay)}

/* ---------- the map ---------- */
.tr-mapw{position:relative;min-width:0;min-height:0;overflow:hidden;background:var(--ui-stone-2)}
.tr-map{position:absolute;inset:0;z-index:0}
.tr-maptools{position:absolute;top:12px;right:12px;z-index:3;display:flex;gap:6px}
.tr-maptools .lmf-map-tools{display:flex;flex-direction:row;align-items:flex-start;gap:6px;margin:0}
.tr-mapw .lmf-map-status{position:absolute;right:12px;bottom:28px;z-index:3;max-width:320px;margin:0;padding:4px 8px;border-radius:7px;background:var(--ui-surface);box-shadow:var(--ui-map-on-drop);color:var(--ui-ink-2);font:var(--ui-t-meta)}
.tr-legend{position:absolute;left:12px;bottom:30px;z-index:3;display:flex;flex-wrap:wrap;gap:4px 14px;max-width:calc(100% - 24px);margin:0;padding:6px 10px;border-radius:7px;background:var(--ui-surface);box-shadow:var(--ui-map-on-drop);color:var(--ui-ink-2);font:400 12px/1 var(--ui-f)}
.tr-legend span{display:flex;align-items:center;gap:6px}
.tr-k{display:block;box-sizing:border-box;width:10px;height:10px;border-radius:50%;background:var(--ui-pine)}
.tr-k.kh{border-radius:3px;background:var(--ui-slate)}
.tr-k.off{border:2px solid var(--ui-pine);background:var(--ui-surface)}
.tr-k.line{width:18px;height:0;border-radius:0;border-top:2px dashed var(--ui-pine);background:none}
.tr-k:not(.off,.line){width:12px;height:12px;border:2px solid var(--ui-pine);background:var(--ui-pine-tint)}
.tr-k.kh:not(.off,.line){border-color:var(--ui-slate);background:var(--ui-slate-tint)}
.tr-k.off{width:9px;height:9px}
/* B4 GH2 (decision 157): a leg on its road, solid on a light casing as the map draws it (.tr-road) */
.tr-k.road{width:18px;height:4px;border:0;border-radius:2px;background:var(--ui-pine);box-shadow:0 0 0 1.5px var(--ui-surface)}
/* pins on the map: the same marks as in the list */
.tr-pin{display:grid;place-items:center;border:0;background:none}
.tr-pin>span{display:grid;place-items:center;box-sizing:border-box;width:24px;height:24px;border:2px solid var(--ui-surface);border-radius:50%;background:var(--ui-pine);box-shadow:var(--ui-over-sh);color:var(--ui-on-fill);font:700 12px/1 var(--ui-f)}
.tr-pin svg{width:13px;height:13px;stroke-width:2.4}
.tr-pin.kh>span{border-radius:7px;background:var(--ui-slate)}
.tr-pin.kn>span{background:var(--ui-ink-2)}
/* B4 DFA (audit a2): calmer pins, a light fill with the colour in the ring and the number (they were dark filled discs) */
.tr-pin:not(.start,.done,.skip,.fill,.off)>span{border:2px solid var(--ui-pine);background:var(--ui-pine-tint);color:var(--ui-pine)}
.tr-pin.kh:not(.start,.done,.skip,.fill,.off)>span{border-color:var(--ui-slate);background:var(--ui-slate-tint);color:var(--ui-slate-ink)}
.tr-pin.kn:not(.start,.done,.skip,.fill,.off)>span{border-color:var(--ui-ink-2);background:var(--ui-stone-2);color:var(--ui-ink)}
.tr-pin.start>span{border-radius:7px}
.tr-pin.start>span{border:1.8px solid var(--ui-ink-2);background:var(--ui-surface);color:var(--ui-ink-2)}
.tr-pin.done>span,.tr-pin.skip>span{border-color:var(--ui-line-2);background:var(--ui-surface);color:var(--ui-pine)}
.tr-pin.skip>span{color:var(--ui-muted)}
.tr-pin.fill>span{border:2px dashed var(--ui-pine);background:var(--ui-surface);color:var(--ui-pine)}
.tr-pin.off>span{width:14px;height:14px;border:2.5px solid var(--ui-pine);background:var(--ui-surface);box-shadow:var(--ui-map-on-drop)}
.tr-pin.off.kh>span{border-color:var(--ui-slate);border-radius:4px}
.tr-pin.is-sel>span{outline:3px solid var(--ui-a-line);outline-offset:1px}
/* straight segments between stops, dashed to show they are not roads */
.tr-line{fill:none;stroke:var(--ui-pine);stroke-width:3;stroke-dasharray:2 7;stroke-linecap:round;stroke-opacity:.85}
/* B4 GH2: the road a leg takes (LMF's own GraphHopper): one solid pine line on a light casing, readable over any tiles */
.tr-road-case{fill:none;stroke:var(--ui-surface);stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:.9}
.tr-road{fill:none;stroke:var(--ui-pine);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:.9}
.tr-stand{fill:var(--ui-pine);fill-opacity:.12;stroke:var(--ui-pine);stroke-width:1.2;stroke-opacity:.8}

/* ---------- V3: the proposed day ---------- */
/* the kind of day: one control, remembered */
.tr-kind{display:flex;align-items:center;gap:8px;padding:0 16px 10px}
.tr-lbl{color:var(--ui-ink-2);font:620 12px/1 var(--ui-f);white-space:nowrap}
.tr-kind>[role="group"]{margin-left:auto}
.tr-kind svg,.tr-meta [data-tr-kind] svg{width:13px;height:13px}
.tr-meta>[role="group"]{margin-left:auto}
.tr-meta.tune{padding-bottom:12px}
.tr-meta.tune>[role="group"]{margin-left:0}
.tr-min{display:inline-flex;align-items:center;gap:6px;margin-left:auto}
/* the suggestion on top of the list: a quiet pine block, the one filled button of the page */
.tr-sug{display:grid;gap:8px;margin:2px 16px 6px;padding:12px 12px 10px 14px;border-radius:var(--ui-r-pop);background:var(--ui-a-soft);box-shadow:inset 0 0 0 1px var(--ui-a-line)}
.tr-sugh{display:flex;align-items:center;gap:7px;margin:0;color:var(--ui-pine);font:var(--ui-t-body)}
.tr-sugh b{font-weight:700}
.tr-sugh svg{width:15px;height:15px}
.tr-sugh span{margin-left:auto;color:var(--ui-ink-2)}
.tr-sugt{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:0;color:var(--ui-ink)}
.tr-sugt b{font:var(--ui-t-win);letter-spacing:-.014em}
.tr-sugt span{color:var(--ui-ink-2);font:var(--ui-t-body)}
.tr-sugl{display:grid;gap:3px;margin:0;padding:0;list-style:none;font:var(--ui-t-body)}
.tr-sugl li{display:flex;align-items:baseline;gap:8px;min-width:0}
.tr-sugl .tr-pur{flex:none;min-width:116px}
.tr-sugn{flex:1;min-width:0;overflow:hidden;color:var(--ui-ink);font-weight:620;text-overflow:ellipsis;white-space:nowrap}
.tr-sugm{color:var(--ui-ink-2)}
.tr-sugb{display:flex;align-items:center;gap:8px;margin-top:4px}
.tr-sugtag{flex:none}
.tr-sugtag svg{width:12px;height:12px;margin-right:4px}
/* nothing to suggest: one line, no box to press */
.tr-empty{margin:2px 16px 10px;padding:10px 12px;border-radius:var(--ui-r-pop);box-shadow:inset 0 0 0 1px var(--ui-line-2);color:var(--ui-ink-2);font:var(--ui-t-body)}
/* a fill-in on the way: marked, and visibly not a stop with a reason of its own */
.tr-fillt{flex:none;background:none;box-shadow:inset 0 0 0 1px var(--ui-a-line);color:var(--ui-pine)}
.tr-pinm{display:grid;flex:none;place-items:center;width:20px;height:20px;color:var(--ui-pine)}
.tr-pinm svg{width:var(--ui-ic);height:var(--ui-ic)}
.tr-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tr-out{padding-bottom:8px}
.tr-saved.none{color:var(--ui-ink-2)}

/* ---------- H2: owners' homes (LMFHome.draw), the hand pin, "Adreses bez punkta" ---------- */
/* an exact or hand-placed home: a small slate rounded square. A home known only to the village or parish: a ring with the
   word "aptuveni", never a pin, so it cannot be read as a house */
.tr-home{display:grid;place-items:center;border:0;background:none}
.tr-home.exact>span{display:grid;place-items:center;box-sizing:border-box;width:20px;height:20px;border:2px solid var(--ui-surface);border-radius:6px;background:var(--ui-slate);box-shadow:var(--ui-map-on-drop);color:var(--ui-on-fill)}
.tr-home.exact svg{width:11px;height:11px;stroke-width:2.4}
.tr-home.approx{pointer-events:none}
.tr-home-ring{display:block;box-sizing:border-box;width:44px;height:44px;border:2px dashed var(--ui-slate);border-radius:50%;background:var(--ui-slate-tint);opacity:.72}
.tr-home.approx>b{position:absolute;left:50%;top:100%;transform:translate(-50%,-7px);padding:1px 5px;border-radius:5px;background:var(--ui-surface);box-shadow:var(--ui-map-on-drop);color:var(--ui-slate-ink);font:620 12px/1.3 var(--ui-f);white-space:nowrap}
/* B4 PA1b: several homes at one point are one pin with their count (co-owners at a joint row's address), and a shared address
   carries the quiet "kopīga adrese" mark in the rows */
.tr-home>b.tr-home-n,.tr-home.approx>b.tr-home-n{position:absolute;left:auto;top:-7px;right:-9px;transform:none;box-sizing:border-box;min-width:18px;height:18px;padding:0 4px;border:1.5px solid var(--ui-surface);border-radius:9px;background:var(--ui-slate-ink);box-shadow:var(--ui-map-on-drop);color:var(--ui-on-fill);font:700 12px/15px var(--ui-f);text-align:center}
.tr-home.approx>b.tr-home-n{top:2px;right:2px}
.tr-shared{color:var(--ui-muted);font-style:italic;text-decoration:underline dotted;text-underline-offset:2px;cursor:help;white-space:nowrap}
.tr-hline{fill:none;stroke:var(--ui-slate);stroke-width:1.6;stroke-dasharray:1 5;stroke-linecap:round;stroke-opacity:.9}
.tr-pin.new>span{outline:3px solid var(--ui-slate-tint);outline-offset:1px;cursor:grab}
.tr-k.ring{border:1.5px dashed var(--ui-slate);background:var(--ui-slate-tint)}
.tr-plc .tr-lvl{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;color:var(--ui-warn-ink)}
.tr-homes>.tr-wr>svg{flex:none;width:16px;height:16px;margin:0 6px 0 2px;color:var(--ui-slate)}
.tr-homes .tr-l1{align-items:center;gap:6px}
.tr-homes .tr-l2{overflow:visible;text-overflow:clip;white-space:normal}
/* the map's own wheel hint sits above this page's legend, not under it */
.tr-map .lmf-map-wheel-hint{bottom:46px}
.tr-homes>.tr-wr>button{margin-right:8px}
/* B4 AB1: people with no address at all: a quiet folded group under the list, apart from the rows that need a point */
.tr-homesq{margin-top:6px;border-top:1px solid var(--ui-line)}
.tr-homesq .tr-sh>[data-tr-noaddr]{color:var(--ui-ink-2);font-weight:400}
.tr-pinp{display:flex;flex:1;flex-direction:column;min-height:0}
.tr-pinp>.tr-plc{margin:0 16px;border-top:0}
.tr-pinp>.tr-ex{margin-bottom:10px}

/* ---------- V4: "Būšu tur" ---------- */
/* the question: a small panel over the top of the list (the family's pop look), not a page of its own */
.tr-ask{position:absolute;top:54px;left:12px;right:12px;z-index:6;box-sizing:border-box;padding:12px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh);color:var(--ui-ink);font:var(--ui-t-body)}
.tr-askin{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.tr-askf{position:relative;display:flex;align-items:center}
.tr-askf>svg{position:absolute;left:9px;width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-muted);pointer-events:none}
.tr-askf>input{flex:1;min-width:0;padding-left:30px}
.tr-askr{display:grid;gap:1px;margin:0;padding:0;list-style:none}
/* B4 OF2-P5: a found place is the family's row button (.rowb); "pick on the map" while on is the family's pressed row (aria-pressed) */
.tr-askrow{gap:8px;padding:0 8px}
.tr-askrow>svg{flex:none;width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-muted)}
.tr-askrow>b{flex:none;max-width:62%;overflow:hidden;font-weight:620;text-overflow:ellipsis;white-space:nowrap}
.tr-askrow>small{flex:1;min-width:0;overflow:hidden;color:var(--ui-muted);font:var(--ui-t-meta);text-overflow:ellipsis;white-space:nowrap}
.tr-asknone{padding:6px 8px;color:var(--ui-muted)}
.tr-askfix{display:flex;align-items:baseline;gap:8px;margin:0;min-width:0}
.tr-askfix>svg{flex:none;align-self:center;width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-a)}
.tr-askfix>b{flex:none;max-width:60%;overflow:hidden;font:var(--ui-t-data);text-overflow:ellipsis;white-space:nowrap}
.tr-askfix>small{flex:1;min-width:0;overflow:hidden;color:var(--ui-muted);font:var(--ui-t-meta);text-overflow:ellipsis;white-space:nowrap}
.tr-askd{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tr-askb{display:flex;align-items:center;gap:8px;margin-top:2px}
.tr-askfrom{min-width:0;overflow:hidden;color:var(--ui-muted);font:var(--ui-t-meta);text-overflow:ellipsis;white-space:nowrap}
.tr-ask>.tr-askin>.tr-ex{margin:0}
/* the answer: grouped along the road, each stop with what it adds to the road */
.tr-grp{margin:0;padding:8px 6px 2px 30px;color:var(--ui-ink-2);font:620 12px/1.3 var(--ui-f);list-style:none}
.tr-addm{flex:none;color:var(--ui-ink-2);font:400 12px/1 var(--ui-f);white-space:nowrap}
.tr-wr>.tr-addm{margin-right:4px}
.tr-grip.off{cursor:default;pointer-events:none}
.tr-num.dest{border-radius:50%;background:var(--ui-ink);color:var(--ui-on-fill)}
.tr-via .tr-endm b{color:var(--ui-ink);font-weight:620}
.tr-via .tr-endm small{color:var(--ui-muted);font:var(--ui-t-meta)}
.tr-pin.dest>span{background:var(--ui-ink);color:var(--ui-on-fill)}
.tr-corr{fill:var(--ui-pine);fill-opacity:.09;stroke:none}
.tr-k.corr{width:18px;border-radius:3px;background:var(--ui-pine);opacity:.22}
.tr-tip.leaflet-tooltip{padding:2px 6px;border:0;border-radius:6px;background:var(--ui-surface);box-shadow:var(--ui-map-on-drop);color:var(--ui-ink);font:620 12px/1.3 var(--ui-f)}
.tr-tip.leaflet-tooltip::before{display:none}
/* B4 PL1 (owner's decisions 108, 115): "Ievadīt adresi…": a box under the start row; its answers are register addresses (approximate
   ones marked), one press sets the start; the status line says what is happening */
.tr-startq{display:flex;flex-direction:column;gap:6px;margin:8px 16px 0;padding:10px;border-radius:8px;background:var(--ui-a-soft);box-shadow:inset 0 0 0 1px var(--ui-a-line)}
.tr-startq-l{display:flex;flex-direction:column;gap:4px;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.tr-startq-l>input{width:100%}
.tr-startq-list{display:flex;flex-direction:column;gap:2px}
.tr-startq-pick{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;margin:0;padding:6px 8px;border:0;border-radius:6px;background:var(--ui-surface);box-shadow:none;color:var(--ui-ink);font:var(--ui-t-body);text-align:left;cursor:pointer}
.tr-startq-pick>svg{flex:none;width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-muted)}
.tr-startq-pick>span{flex:1;min-width:0;overflow-wrap:anywhere}
.tr-startq-pick>.tr-lvl{flex:none;color:var(--ui-warn-ink);font:var(--ui-t-meta);font-style:italic}
@media (hover:hover){.tr-startq-pick:hover{background:var(--ui-stone-2)}}
.tr-startq-pick:focus-visible{outline:2px solid var(--ui-a);outline-offset:1px}
.tr-startq-s{margin:0;color:var(--ui-muted);font:var(--ui-t-meta)}
.tr-startq-f{display:flex;justify-content:flex-end;gap:8px}
.tr-basedef{margin:2px 0 0;color:var(--ui-ink);font:var(--ui-t-body)}   /* B4 TP1: "Jauniem izbraukumiem sākt šeit" (family .cl row) */

/* ---------- the printout: its own sheet of paper; the app is put away while printing ---------- */
.tr-paper{display:none}
@media print{
  .tr-printing body>*{display:none}
  .tr-printing body>.tr-paper{display:block;padding:0;background:var(--ui-surface);color:var(--ui-ink);font:500 12px/1.4 var(--ui-f)}
  .tr-pp1{display:flex;justify-content:space-between;gap:20px;margin-bottom:12px}
  .tr-pp1 h2{margin:0 0 4px;font:var(--ui-t-win)}
  .tr-pp1 p{margin:0}
  .tr-pmap{flex:none;width:250px;height:150px;border:1px solid var(--ui-line-2)}
  .tr-pland{fill:var(--ui-canvas)}
  .tr-ppin{fill:var(--ui-ink);stroke:var(--ui-surface);stroke-width:2}
  .tr-ppin.start{fill:var(--ui-surface);stroke:var(--ui-ink)}
  .tr-ptext{fill:var(--ui-on-fill);font:700 12px var(--ui-f);text-anchor:middle}
  .tr-paper table{width:100%;border-collapse:collapse;table-layout:fixed}
  .tr-paper th:nth-child(2){width:17%}
  .tr-paper th:nth-child(3),.tr-paper th:nth-child(4),.tr-paper th:nth-child(5){width:23%}
  .tr-paper th{padding:5px 6px;border-bottom:1.5px solid var(--ui-ink);font:700 12px/1.2 var(--ui-f);text-align:left}
  .tr-paper td{padding:7px 6px;border-bottom:1px solid var(--ui-line-2);vertical-align:top;line-height:1.4}
  .tr-paper th:first-child{width:26px}
  .tr-pn{font:700 var(--v31-fs)/1.2 var(--ui-f)}
}

/* ---------- VM1: every mark opens a card; the list and the map follow each other (the owner's decision 43) ---------- */
/* a row's mark is the press that shows the place on the map (26 px, on the control scale) */
.tr-loc{flex:none;margin:0 3px 0 0}   /* B4 OF2-P5: the family's quiet round icon tool around the place mark */
.tr-loc>.tr-num,.tr-loc>.tr-num.off{margin:0}
.tr-loc:hover>.tr-num{box-shadow:0 0 0 2px var(--ui-surface),0 0 0 4px var(--ui-a-line)}
.tr-loc:hover>.tr-num.off{box-shadow:0 0 0 2px var(--ui-a),0 0 0 5px var(--ui-a-line)}
.tr-end>.tr-loc{margin-right:3px}
/* a place's name opens its property window: a quiet link */

/* the row of the selected mark */
.tr-wr.tr-rsel,.tr-st.tr-rsel>.tr-sth,.tr-row.tr-rsel{background:color-mix(in srgb,var(--ui-a) 10%,transparent)}
/* the selected mark: a stronger ring, in front; a lit mark (the row under the pointer) */
.tr-pin.is-sel>span,.tr-home.is-sel>span{outline:3px solid var(--ui-a);outline-offset:1.5px}
.tr-pin.is-sel.off>span{transform:scale(1.25)}
.tr-home.is-sel .tr-home-ring{border-style:solid;opacity:1}
.tr-pin.is-hot>span,.tr-home.is-hot>span,.tr-pin.is-pair>span,.tr-home.is-pair>span{outline:2px solid var(--ui-a-line);outline-offset:1.5px}
.tr-map.leaflet-container.tr-hit{cursor:pointer}
/* a property with no value shows nothing in the page's short lists (decision 78 c, text audit T1): stop rows, waiting rows,
   left-out rows, the proposal card's lines and the card's list; the dash stays in tables and on the card's own figure */
.tr-l1 [data-score-missing],.tr-sugl [data-score-missing],.tr-cardrow [data-score-missing]{display:none}
/* the card: the family's raised surface over the map (PM1's see-through map tokens replace it when they land) */
.tr-card{position:absolute;left:8px;top:8px;z-index:5;box-sizing:border-box;width:272px;max-width:calc(100% - 16px);max-height:calc(100% - 16px);overflow:auto;padding:8px 8px 8px 12px;contain:layout style}
/* PM1 (decision 45): on the map's canvas the card is slightly see-through, with the reading-surface value (a card is read,
   not pressed); solid for less transparency and in forced colours; on the phone it is a bottom card over the page: solid */
@media screen and (min-width:701px){.tr-mapw>.tr-card{background:var(--ui-map-glass-read)}}
@media (prefers-reduced-transparency:reduce){.tr-mapw>.tr-card{background:var(--ui-surface)}}
@media (forced-colors:active){.tr-mapw>.tr-card{background:Canvas}}
.tr-cardin{display:flex;flex-direction:column;gap:2px}
.tr-cardh{display:flex;align-items:flex-start;gap:6px}
.tr-cardt{flex:1;min-width:0;padding-top:4px;color:var(--ui-ink);font:620 var(--ui-fs-l)/1.3 var(--ui-f);overflow-wrap:anywhere}
.tr-cardf{margin:2px 0 1px}
.tr-cardm,.tr-cardw{margin:0;padding-right:4px;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.tr-cardw{margin-top:3px}
.tr-cardm>span{margin-top:3px}
.tr-cardl{max-height:216px;margin:2px 0;padding:0 4px 0 0;overflow:auto;list-style:none}
.tr-cardrow{gap:8px;margin:0 0 0 -6px;padding:0 6px}   /* B4 OF2-P5: the family's row button, in the small card's tight inset */
.tr-cardrow>svg{flex:none;width:14px;height:14px;color:var(--ui-slate)}
.tr-cardrow>svg:last-child:not(:first-child){color:var(--ui-ink-2)}
.tr-cardrow>b{flex:1;min-width:0;overflow:hidden;font-weight:620;text-overflow:ellipsis;white-space:nowrap}
.tr-cardb{display:flex;align-items:center;gap:6px;margin-top:6px}
.tr-cardb>.link{margin-left:-6px}

/* PHONE-SEAM: the phone has its own build (plan-mobile). Here the page only has to stay usable at 390 wide: the panel
   first, the map under it. */
@media (max-width:700px){
  /* VM1: the card is a bottom card over the screen's foot, with 44 px targets */
  .tr-card{position:fixed;left:8px;right:8px;top:auto;bottom:calc(8px + max(var(--tab-bar-h),env(safe-area-inset-bottom,0px)));z-index:1060;width:auto;max-width:none;padding:10px 10px 10px 14px}
  .tr-cardl{max-height:40vh}
  .tr-cardb{gap:8px}
  .tr-loc{margin-right:0}
  .tr-page{display:block;height:auto;min-height:0}
  .tr-kind,.tr-meta{flex-wrap:wrap}
  .tr-kind>[role="group"],.tr-meta>[role="group"]{margin-left:0;max-width:100%}
  .tr-panel{border-right:0;box-shadow:none}
  .tr-scroll{overflow:visible}
  .tr-mapw{height:320px}
  .tr-stb{padding-left:12px}
  .tr-rm{opacity:1}
  .tr-foot{position:sticky;bottom:0}
  /* B4 DFA (integration audit #11): in the suggestion card the name keeps the row (it was cut to "M…"); the purpose goes under it */
  .tr-sugl li{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:0;align-items:baseline}
  .tr-sugl li>.tr-sugn{grid-row:1;grid-column:1}
  .tr-sugl li>.tr-pur{grid-row:2;grid-column:1 / -1;min-width:0;margin-bottom:4px;font:var(--ui-t-meta);font-style:normal}
  .tr-sugl li>.tr-sugm,.tr-sugl li.tr-sugm{grid-column:1 / -1}
  /* B4 DFA (audit M12): Google Maps is a 44 px icon button here (its name stays in aria-label), so the trip title gets the row */
  .tr-ph [data-tr-gmaps]>.l{display:none}
}
/* B4 BV2 (decisions 129, 131): "Gaida braucienu" in two groups; a deal visit is an ochre ring, a suggestion a pine one */
.tr-wcount{margin:0;padding:0 16px 8px;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.tr-wgrp{border-top:1px solid var(--ui-line)}
.tr-wgrp.dv{background:var(--ui-stone-foot)}
.tr-wh{display:flex;align-items:center;gap:6px;margin:0;padding:12px 16px 2px;color:var(--ui-ink);font:620 13px/1.3 var(--ui-f)}
.tr-wh>svg{flex:none;width:15px;height:15px}
.tr-wgrp.dv .tr-wh>svg{color:var(--ui-ochre-ink)}
.tr-wgrp.sg .tr-wh>svg{color:var(--ui-pine)}
.tr-wsub,.tr-wline{margin:0;padding:2px 16px 8px;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.tr-wline b{color:var(--ui-ink);font-weight:620}
.tr-wset{margin-left:auto}   /* B4 OF2-P5: the family's quiet S button */
.tr-wgrp.dv .tr-wl{padding-bottom:6px}
.tr-wgrp.dv>.tr-wmore{margin:4px 0 8px 16px}
.tr-wempty{padding:4px 16px 12px}
.tr-num.off.dv{box-shadow:0 0 0 2px var(--ui-ochre)}
.tr-pin.off.dv>span{border-color:var(--ui-ochre)}
.tr-k.off.dv{border-color:var(--ui-ochre)}
/* B4 BV3: removing a suggestion, "Noņemtie" */
.tr-wr>.tr-sugm{margin-right:2px;color:var(--ui-ink-2)}
.tr-rmform{flex-wrap:wrap;gap:6px 8px;padding:8px 0}
.tr-rmf{display:grid;flex:1 1 220px;gap:4px;min-width:0}
.tr-rmfl{color:var(--ui-ink);font:620 12px/1.3 var(--ui-f)}
.tr-rmin{width:100%}
.tr-rmb{display:inline-flex;gap:6px;align-self:flex-end;margin-right:8px}
.tr-rmlink{margin:2px 0 10px 16px}   /* B4 OF2-P5: the family's quiet S button */
.tr-rmintro{margin:0;padding:12px 16px 4px;color:var(--ui-ink-2);font:var(--ui-t-body)}
.tr-rmbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:6px 16px 8px}
.tr-wr>.tr-again{flex:none;margin-right:8px}
[data-tr-rmrow] .tr-l2{overflow:visible;text-overflow:clip;white-space:normal}
.tr-num.off.rm{box-shadow:0 0 0 2px var(--ui-ink-2)}
.tr-pin.off.rm>span{border-color:var(--ui-ink-2)}
.tr-k.off.rm{border-color:var(--ui-ink-2)}
@media (max-width:700px){
  .tr-wr>.tr-again>.l{display:none}
}
/* B4 TE1 (decision 138): the trip's name is the press that renames it; renaming, a field with a tick and a cross */
.tr-ph .v31-page-title:has(>.tr-title){flex:1 1 auto;margin:0 -4px;padding:0 4px}
.tr-ph:has(>.v31-page-title>.tr-title)>.tr-sp{display:none}
/* B4 OF2-P5: the name is the family's quiet L button; its words keep the window title's size (they are the page's title) */
.tr-title{max-width:calc(100% + 8px);min-width:0;margin-left:-8px;cursor:text}
.tr-title>span{min-width:0;overflow:hidden;font:var(--ui-t-win);letter-spacing:-.012em;text-overflow:ellipsis;white-space:nowrap}
.tr-ren{display:flex;flex:1;align-items:center;gap:6px;min-width:0}
.tr-ren>input{flex:1;min-width:0;font:var(--ui-t-step)}
.tr-ren>input[aria-invalid="true"]{border-color:var(--ui-clay)}
.tr-renh{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;margin:0 0 6px;padding:0 16px 0 52px;color:var(--ui-muted);font:var(--ui-t-meta)}
.tr-renerr{flex-basis:100%;color:var(--ui-clay);font-weight:620}
@media (max-width:700px){
  .tr-title>svg{display:none}
  .tr-renh{padding-left:16px}
}
/* B4 TS1 (decisions 140, 143): the three marks with their icons, the kind word, the four-way "Ko apmeklēt" */
.tr-num.off.ic{width:22px;height:22px;margin:0 7px 0 1px;color:var(--ui-pine)}
.tr-num.off.ic.kh{border-radius:6px;color:var(--ui-slate-ink)}
.tr-num.off.ic svg{width:12px;height:12px;stroke-width:2}
.tr-num.off.ic.kp::after{right:-5px;bottom:-4px}
.tr-kw{white-space:nowrap}
.tr-kw>svg{width:12px;height:12px;margin:0 1px 0 2px;vertical-align:-1px;color:var(--ui-ink-2)}
.tr-kseg>button{gap:4px}
.tr-kseg>button>svg{width:13px;height:13px}
.tr-kseg>button>svg+svg{margin-left:-2px}
.tr-ksub{margin:0;padding:0 16px 8px;color:var(--ui-muted);font:var(--ui-t-meta)}
.tr-k.kp{position:relative}
.tr-k.kp::after{content:"";position:absolute;right:-5px;bottom:-4px;width:7px;height:7px;border-radius:2px;background:var(--ui-slate);box-shadow:0 0 0 1px var(--ui-surface)}
/* B4 TS1: on the map a "mežs + saimnieks" stop carries the slate corner too (as in the list) */
.tr-pin.kp>span{position:relative}
.tr-pin.kp>span::after{content:"";position:absolute;right:-6px;bottom:-5px;width:10px;height:10px;border-radius:3px;background:var(--ui-slate);box-shadow:0 0 0 1.5px var(--ui-surface)}
.tr-pin.kp.off>span::after{right:-6px;bottom:-6px;width:7px;height:7px;border-radius:2px}
/* B4 TS3 (decisions 138, 143; plan-trips-simple 3.5): "Pielikt pieturas": one button on a trip, one sheet with search on top
   and LMF's places below, nothing ticked; the trip's panel on the PC, a full-height sheet on the phone */
.tp-badge{margin-left:6px}
.tp-hsub{min-width:0;color:var(--ui-muted);font:var(--ui-t-meta);overflow-wrap:anywhere}
/* B4 AU1 (audit B18): the heading is whole; the trip's name and day stand on the line under it */
.tr-ph.v31-page-head:has(>.tp-hsub){display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 8px}
.tr-ph:has(>.tp-hsub)>.v31-page-title{grid-column:2;grid-row:1}
.tr-ph:has(>.tp-hsub)>.tp-hsub{grid-column:2;grid-row:2}
.tr-ph:has(>.tp-hsub)>.tr-sp{display:none}
.tp-add{display:flex;flex-direction:column;padding:2px 0 8px}
.tp-q{position:relative;display:flex;align-items:center;margin:0 16px 10px}
.tp-q>svg{position:absolute;left:10px;width:15px;height:15px;color:var(--ui-muted);pointer-events:none}
.tp-q>input{flex:1;min-width:0;padding-left:32px}
.tp-kinds{padding:0 16px 4px}
.tp-kinds>[role="group"]{display:flex;width:100%}
.tp-kinds>[role="group"]>button{flex:1;min-width:0}
.tp-tune{justify-content:flex-start;gap:6px 8px;padding:4px 16px 8px}
.tp-sec{margin-top:4px}
.tp-rows{margin:0;padding:0;list-style:none;border-top:1px solid var(--ui-line)}
.tp-row{display:block;border-bottom:1px solid var(--ui-line)}
.tp-rowl{display:flex;box-sizing:border-box;width:100%;align-items:center;gap:6px;min-height:52px;padding:6px 12px 6px 14px;cursor:pointer}
.tp-row.on{background:var(--ui-a-soft)}
.tp-rowl .tr-wm{flex:1;min-width:0}
.tp-rowl .tr-l2{white-space:normal}
.tp-rowl .tr-addm{flex:none;min-width:48px;text-align:right}
.tp-rowl>input{flex:none;margin:0 0 0 4px}
@media (hover:hover){.tp-row:not(.on):hover{background:var(--ui-stone-2)}}
.tp-more{margin:6px 0 4px 8px}
.tp-foot{flex-wrap:wrap;gap:6px 8px}
.tp-sum{flex:1 1 100%;margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.tp-sum b{color:var(--ui-ink);font-weight:620}
.tp-acts{display:flex;justify-content:flex-end;gap:8px;width:100%}
.tr-pin.tp-on>span{border:2px solid var(--ui-pine);background:var(--ui-pine);color:var(--ui-on-fill)}
@media (max-width:700px){
  .tr-page.tp-adding .tr-panel{position:fixed;left:0;right:0;bottom:var(--tab-bar-h);top:calc(var(--ui-bar-h) + var(--ui-env-offset) + 8px);z-index:1040;border-radius:var(--ui-sheet-r) var(--ui-sheet-r) 0 0;box-shadow:var(--ui-pop-sh)}
  .tr-page.tp-adding .tr-panel::before{content:"";flex:none;align-self:center;width:36px;height:4px;margin:8px 0 0;border-radius:2px;background:var(--ui-line-2)}
  .tr-page.tp-adding .tr-scroll{overflow-y:auto}
  .tr-page.tp-adding .tr-mapw{visibility:hidden}
  .tp-rowl{min-height:56px;padding-right:8px}
  .tp-rowl>input{width:24px;height:24px}
  .tp-acts>[data-ts-go]{flex:1}
  .tr-add{position:sticky;bottom:0;z-index:2;padding-top:8px;background:var(--ui-surface)}
}
/* B4 TS4 (decision 141): three figures, driving-only legs, the "aptuveni" mark (a word, a sign and the warning ink) */
.tr-figs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0}
.tr-fig{display:grid;align-content:start;gap:1px;min-width:0;padding:9px 12px 10px 16px;border-left:1px solid var(--ui-line)}
.tr-fig:first-child{border-left:0}
.tr-fig>small{overflow:hidden;color:var(--ui-muted);font:var(--ui-t-meta);text-overflow:ellipsis;white-space:nowrap}
.tr-fig>b{color:var(--ui-ink);font:var(--ui-t-data);white-space:nowrap}
.tr-approx{display:inline-flex;align-items:center;gap:4px;justify-self:start;min-height:24px;margin:2px 0 0 -6px;padding:0 6px;border:0;border-radius:var(--ui-r-in);background:var(--ui-warn-tint);color:var(--ui-warn-ink);font:var(--ui-t-meta);cursor:pointer}
.tr-approx>svg{width:13px;height:13px}
.tr-approx:focus-visible{outline:2px solid var(--ui-a);outline-offset:1px}
.tr-approxwhy{color:var(--ui-warn-ink)}
.tr-leg.approx>span{color:var(--ui-warn-ink)}
.tr-sumx{display:flex;flex-wrap:wrap;gap:2px 10px;margin:0;padding:6px 16px;color:var(--ui-muted);font:var(--ui-t-meta)}
@media (max-width:700px){
  .tr-fig{padding:8px 8px 9px 12px}
  .tr-approx{min-height:32px}
}
/* B4 TS5 (plan-trips-simple 3.3, 3.6; renders 07, 08): on the road: the next stop, the three presses, "Piezīme", "Vairāk" */
.tp-visited{color:var(--ui-ink-2);font:var(--ui-t-meta);white-space:nowrap}
.tp-visited b{color:var(--ui-ink);font-weight:620}
.tp-next{margin:4px 16px 10px;border-radius:10px;background:var(--ui-surface);box-shadow:inset 0 0 0 1px var(--ui-a-line),var(--ui-map-on-drop);overflow:hidden}
.tp-nexth{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--ui-a-soft);color:var(--ui-pine);font:620 13px/1.3 var(--ui-f)}
.tp-nexth>svg{width:15px;height:15px}
.tp-nextr{color:var(--ui-ink);font:var(--ui-t-data)}
.tp-nextb{display:grid;gap:4px;padding:10px 12px 12px}
.tp-nextb>.tr-l1{align-items:center}
.tp-nextb>.tr-l1>.tr-num{margin-right:4px}
.tp-nextb .tr-name{font:var(--ui-t-step)}
.tp-nextb>.tr-l2{white-space:normal}
.tp-nextn{display:flex;align-items:flex-start;gap:6px;margin:2px 0 0;color:var(--ui-ink);font:var(--ui-t-body)}
.tp-nextn>svg{flex:none;width:15px;height:15px;margin-top:2px;color:var(--ui-ink-2)}
.tp-next.done{display:flex;align-items:center;gap:8px;padding:10px 12px;color:var(--ui-pine);font:var(--ui-t-body);box-shadow:inset 0 0 0 1px var(--ui-a-line)}
.tp-next.done>svg{width:16px;height:16px}
.tp-road{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:6px}
.tp-road>a,.tp-road>button{justify-content:center;min-width:0}
.tp-note{display:flex;align-items:center;gap:8px;min-height:40px;padding:6px 0;border-top:1px solid var(--ui-line)}
.tp-notel{display:inline-flex;flex:none;align-items:center;gap:6px;color:var(--ui-ink)}
.tp-notel>svg{width:15px;height:15px;color:var(--ui-ink-2)}
.tp-notel>b{font:620 13px/1.3 var(--ui-f)}
.tp-note>input{flex:1;min-width:0}
.tp-more{display:flex;align-items:center;gap:10px;margin-top:6px}
.tp-more>small{color:var(--ui-muted);font:var(--ui-t-meta)}
.tr-st.is-next>.tr-sth{background:var(--ui-a-soft);box-shadow:inset 0 0 0 1px var(--ui-a-line);border-radius:8px}
@media (hover:hover){.tr-st:not(:hover):not(:focus-within) .tr-rm.pc{opacity:0}}
@media (max-width:700px){
  .tr-rm.pc{display:none}
  .tp-next:not(.done){position:fixed;left:0;right:0;bottom:var(--tab-bar-h);z-index:1100;margin:0;border-radius:var(--ui-sheet-r) var(--ui-sheet-r) 0 0;box-shadow:var(--ui-pop-sh)}
  .tp-note{flex-wrap:wrap}
  .tp-note>input{flex:1 1 100%}
}
/* B4 TS5: on the phone the road card is the foot of the screen; the page keeps room for it so nothing hides under it */
@media (max-width:700px){
  .tr-page:has(.tp-next:not(.done)){padding-bottom:calc(236px + max(var(--tab-bar-h),env(safe-area-inset-bottom,0px)))}   /* B4 DS6: the next stop stands on the place bar */
  .tp-next:not(.done) .tp-nextb{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
}
/* B4 TS5: the panel is its own layer (z-index 2), so the fixed road card takes the panel above the map's controls with it */
@media (max-width:700px){
  .tr-page:has(.tp-next:not(.done)) .tr-panel{z-index:1100}
}
/* B4 TS6 (decision 22, plan-trips-simple 3.4): the page's sheet: a bottom sheet on the phone (44 px rows, a handle, the scrim
   closes it), a panel under the head on the PC; the after-trip line */
.tp-scrim{position:absolute;inset:0;z-index:20;background:transparent}
/* B4 review fix 6: a sheet opened from "Jauns izbraukums" (its "Mainīt") stands above the panel, not below it */
.tr-page:has(.tr-ask) .tp-scrim{z-index:1102}
.tr-page:has(.tr-ask) .tp-sheet{z-index:1103}
.tp-sheet{position:absolute;top:56px;right:12px;left:12px;z-index:21;display:grid;gap:4px;max-height:calc(100% - 72px);padding:8px 14px 14px;overflow:auto;border-radius:var(--ui-r-pop);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh)}
.tp-handle{display:none}
.tp-sheeth{display:flex;align-items:center;gap:8px}
.tp-sheeth>h2{flex:1;min-width:0;margin:0;overflow:hidden;color:var(--ui-ink);font:var(--ui-t-step);text-overflow:ellipsis;white-space:nowrap}
/* B4 OF2-P5 (Sol review 4): the sheet's menu is the family's menu (.menu, its rows .menu>button with their wash, focus, danger and
   off states); the page only lets the label take the row and puts a tick at its end */
.tp-mrows{display:grid;min-width:0;padding:0}
.tp-mrow>span{flex:1;min-width:0}
.tp-form{display:grid;gap:12px;margin:6px 0 4px}
.tp-field{display:grid;gap:5px}
.tp-field>span{color:var(--ui-ink);font:620 13px/1.3 var(--ui-f)}
.tp-field>[role="group"]{display:flex}
.tp-field>[role="group"]>button{flex:1;min-width:0}
.tp-sheetf{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}
.tp-after{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 16px 10px;padding:7px 7px 7px 10px;border-radius:8px;background:var(--ui-a-soft);box-shadow:inset 0 0 0 1px var(--ui-a-line);color:var(--ui-ink-2);font:var(--ui-t-body)}
.tp-after>svg{width:15px;height:15px;color:var(--ui-pine)}
.tp-after>span{flex:1 1 180px;min-width:0}
.tp-after b{color:var(--ui-ink);font-weight:620}
.tp-next.done>button{margin-left:auto}
@media (max-width:700px){
  .tr-page.tp-sheeted .tr-panel{z-index:1100}
  .tp-scrim{position:fixed;background:color-mix(in srgb,var(--ui-ink) 32%,transparent)}
  .tp-sheet{position:fixed;top:auto;left:0;right:0;bottom:var(--tab-bar-h);max-height:min(85vh,calc(100dvh - var(--tab-bar-h) - var(--ui-env-offset) - 8px));overflow:auto;padding:6px 14px calc(16px + env(safe-area-inset-bottom,0px));border-radius:var(--ui-sheet-r) var(--ui-sheet-r) 0 0}
  .tp-handle{display:block;justify-self:center;width:36px;height:4px;margin:2px 0 6px;border-radius:2px;background:var(--ui-line-2)}
  .tp-sheetf>[data-tp-dupgo]{flex:1}
}
/* B4 TS7 (plan-trips-simple 3.2, render 02): "Jauns izbraukums": a popover under the head on the PC, a bottom sheet on the phone */
.tp-newt{margin:0 0 2px;color:var(--ui-ink);font:var(--ui-t-step)}
.tp-new>.tr-lbl{margin-top:4px;color:var(--ui-ink);font:620 13px/1.3 var(--ui-f)}
.tp-new .tr-askd>[role="group"]{display:flex;flex:1 1 100%}
.tp-new .tr-askd>[role="group"]>button{flex:1;min-width:0}
.tp-newh{margin:-2px 0 0;color:var(--ui-muted);font:var(--ui-t-meta)}
.tp-newk>[role="group"]{display:flex;width:100%}
.tp-newk>[role="group"]>button{flex:1;min-width:0}
.tp-newk>.tr-ksub{padding:4px 0 0}
.tp-news{display:flex;align-items:center;gap:8px;margin:4px 0 0;padding-top:8px;border-top:1px solid var(--ui-line);color:var(--ui-ink-2);font:var(--ui-t-meta)}
.tp-news>svg{flex:none;width:14px;height:14px;color:var(--ui-muted)}
.tp-news>span{flex:1;min-width:0}
.tp-new>.tr-askb>button{flex:1}
.tr-askfix>button{margin-left:auto;align-self:center}
.tr-ask{max-height:calc(100% - 66px);overflow:auto}
@media (max-width:700px){
  .tr-page:has(.tr-ask) .tr-panel{z-index:1100}
  .tr-ask{position:fixed;top:auto;left:0;right:0;bottom:var(--tab-bar-h);z-index:1101;max-height:min(88vh,calc(100dvh - var(--tab-bar-h) - var(--ui-env-offset) - 8px));overflow:auto;padding:14px 14px calc(16px + env(safe-area-inset-bottom,0px));border-radius:var(--ui-sheet-r) var(--ui-sheet-r) 0 0;border-width:0;box-shadow:var(--ui-pop-sh)}
}
/* B4 TS7: the phone sheet of "Jauns izbraukums" has a handle and a scrim (a press on it closes the panel, as outside it) */
@media (max-width:700px){
  .tr-ask::before{content:"";display:block;width:36px;height:4px;margin:-6px auto 8px;border-radius:2px;background:var(--ui-line-2)}
  .tr-page:has(.tr-ask) .tr-panel::after{content:"";position:fixed;inset:0;z-index:1100;background:color-mix(in srgb,var(--ui-ink) 32%,transparent)}
  /* B4 TP1 fix (Sol P1): while the panel's start is picked on the map, no scrim, and the sheet folds to its one bar
     ("Norādi kartē, kur sāksies brauciens." and "Atcelt"); the pick puts the whole panel back */
  .tr-page:has(.tr-ask.is-picking) .tr-panel::after{content:none}
  .tr-ask.is-picking{padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px))}
  .tr-ask.is-picking::before{content:none}
  .tr-ask.is-picking>.tr-askin>:not(.tr-ex.pick){display:none}
  .tr-ask.is-picking>.tr-askin>.tr-ex.pick{margin:0}
}
/* B4 TS8 (plan-trips-simple 3.1, 3.7; renders 01, 09): the short page; "Gaida braucienu" as two rows; LMF's lists opened */
.tr-pastb{margin-right:-6px}
/* B4 OF2-P5: a list is the family's row button (.rowb); the page keeps the row's height */
.tr-listrow{gap:12px;min-height:56px;padding:8px 16px}
.tr-listrow>svg{flex:none;width:16px;height:16px;color:var(--ui-muted)}
.tr-listrow .tr-rowm{flex:1;min-width:0}
.tr-listrow .tr-rowm>b .tr-n{font-weight:400}
.tr-listic{display:grid;flex:none;place-items:center;width:40px;height:40px;border-radius:8px;background:var(--ui-pine-tint);color:var(--ui-pine)}
.tr-listrow.deals .tr-listic{background:var(--ui-ochre-tint);color:var(--ui-ochre-ink)}
.tr-listic>svg{width:18px;height:18px}
.tr-sugh>[data-tr-notnow]{margin:-6px -6px -6px 4px}
.tr-sugmore{color:var(--ui-ink-2);font:var(--ui-t-meta)}
.tr-sugb{align-items:center}
.tr-wkinds{padding:0 16px 6px}
.tr-wkinds>[role="group"]{display:flex;width:100%}
.tr-wkinds>[role="group"]>button{flex:1;min-width:0}
.tr-wlead{margin:0;padding:2px 16px 8px}
.tr-wline>.tr-wset{margin-left:6px}
@media (max-width:700px){
  .tr-listrow{min-height:60px}
}
/* B4 TS4 + GH1: the OpenStreetMap credit under the three figures, across them */
.tr-figs>.tr-osm{grid-column:1 / -1;padding:0 16px 8px}

/* B4 TH1 (decision 187): the mark of the row under the pointer or focus (and the row of the mark under the pointer): bigger,
   a solid ring in the area's colour on a surface gap, its own colour's tint inside, above the others, one pulse (none under reduced
   motion). The row: the family's calm "on" (tint and an edge bar). A mark out of view: an arrow on the map's edge (a mouse helper). */
.tr-pin.is-hot>span,.tr-pin.is-pair>span{position:relative;transform:scale(1.3);border-style:solid;box-shadow:0 0 0 2px var(--ui-surface),0 0 0 4.5px var(--ui-a),var(--ui-over-sh);transition:transform .18s cubic-bezier(.22,1,.36,1)}
.tr-pin.is-hot:not(.is-sel)>span,.tr-pin.is-pair:not(.is-sel)>span{outline:0}
.tr-pin.off.is-hot>span,.tr-pin.off.is-pair>span{transform:scale(1.6);background:var(--ui-pine-tint)}
.tr-pin.fill.is-hot>span,.tr-pin.fill.is-pair>span{background:var(--ui-pine-tint)}
.tr-pin.kh.fill.is-hot>span,.tr-pin.kh.off.is-hot>span,.tr-pin.kh.fill.is-pair>span,.tr-pin.kh.off.is-pair>span{background:var(--ui-slate-tint)}
.tr-pin.off.dv.is-hot>span{background:var(--ui-ochre-tint)}
.tr-pin.is-hot>span::before{content:"";position:absolute;inset:-4px;border:2px solid var(--ui-a);border-radius:inherit;opacity:0;pointer-events:none;animation:tr-pulse .75s cubic-bezier(.22,1,.36,1) 1}
.tr-pin.is-hot.tr-still>span::before{animation:none}
/* B4 TR3 (decision 241): a lit home looks lit as plainly as a lit forest (the TH1 look: bigger, a solid ring in the area's colour,
   one pulse); the 2px outline alone did not show on the map, so an owner's name seemed to light nothing but the property. */
.tr-home.exact.is-hot>span,.tr-home.exact.is-pair>span{position:relative;transform:scale(1.35);outline:0;box-shadow:0 0 0 2px var(--ui-surface),0 0 0 4.5px var(--ui-a),var(--ui-over-sh);transition:transform .18s cubic-bezier(.22,1,.36,1)}
.tr-home.exact.is-hot>span::before{content:"";position:absolute;inset:-5px;border:2px solid var(--ui-a);border-radius:9px;opacity:0;pointer-events:none;animation:tr-pulse .75s cubic-bezier(.22,1,.36,1) 1}
.tr-home.exact.is-hot.tr-still>span::before{animation:none}
.tr-home.approx.is-hot>.tr-home-ring,.tr-home.approx.is-pair>.tr-home-ring{outline:0;border:2.5px solid var(--ui-a);opacity:1;box-shadow:0 0 0 2px var(--ui-surface)}
@keyframes tr-pulse{from{opacity:.75;transform:scale(1)}to{opacity:0;transform:scale(2.1)}}
.tr-rhot{background:color-mix(in srgb,var(--ui-a) 8%,var(--ui-surface));box-shadow:inset 3px 0 0 var(--ui-a)}
.tp-row.on.tr-rhot{background:color-mix(in srgb,var(--ui-a) 14%,var(--ui-surface))}
.tr-edge{position:absolute;z-index:4;display:grid;place-items:center;width:32px;height:32px;margin:-16px 0 0 -16px;padding:0;border:2px solid var(--ui-surface);border-radius:50%;background:var(--ui-a);box-shadow:var(--ui-over-sh);color:var(--ui-on-fill);cursor:pointer}
.tr-edge[hidden]{display:none}
.tr-edge>svg{width:16px;height:16px;stroke-width:2.6;transform:rotate(var(--tr-edge-deg,0deg))}
/* B4 TR3 (decision 241): the arrow to a lit pin off the view is lit like the pin: a ring in the area colour and one pulse */
.tr-edge.is-lit{box-shadow:0 0 0 2px var(--ui-surface),0 0 0 4.5px var(--ui-a),var(--ui-over-sh)}
.tr-edge.is-lit::before{content:"";position:absolute;inset:-6px;border:2px solid var(--ui-a);border-radius:50%;opacity:0;pointer-events:none;animation:tr-pulse .75s cubic-bezier(.22,1,.36,1) 1}
@media (prefers-reduced-motion:reduce){.tr-edge.is-lit::before{animation:none}}
@media (prefers-reduced-motion:reduce){.tr-pin.is-hot>span{transition:none}.tr-pin.is-hot>span::before{animation:none}
.tr-home.exact.is-hot>span{transition:none}
.tr-home.exact.is-hot>span::before{animation:none}}
/* ==== B4 OS1 (decision 238: one page scrollbar): on a wide screen the panel's lists grow to their full height and scroll with the
   page; the map stays in view beside them (sticky under the pinned top bar, the window's height) and the panel's foot (Saglabāt and
   the like) sticks to the window's foot. The phone already flows as one page. */
@media (min-width:701px){
.tr-page{align-items:start;height:auto;min-height:calc(100dvh - var(--ui-bar-h))}
.tr-panel{min-height:calc(100dvh - var(--ui-bar-h))}
.tr-scroll{flex:1 0 auto;overflow:visible}
.tr-foot{position:sticky;bottom:0;z-index:3}
.tr-mapw{position:sticky;top:calc(var(--ui-bar-h) + var(--ui-env-offset));height:calc(100dvh - var(--ui-bar-h) - var(--ui-env-offset))}
}
}

/* /forest/workspace-visit-lists.css */
@layer pages{
/* LMF visit lists (B4 BV4 to BV6, plan-visits/PLAN.md part 3, renders 03 to 07). The rows, groups, counts and marks are the
   Izbraukumi page's own (workspace-trips.css: .tr-row, .tr-wg, .tr-wl, .tr-wr, .tr-num); this sheet holds only what lists add:
   the list icon box, the opened list's lead line, tabs and buttons, the day form, the list-as-a-day fields and the
   "Pievienot sarakstam" panel (a sheet on the phone). Family tokens only. */

/* the "Saraksti" section. B4 TL1 (decision 214, option A "Tīras rindas", plan-lists render A1): each list is the family's row button
   (.rowb.tr-listrow, as "Gaida braucienu"): icon, name and count, what it holds and where, a thin bar of visited / on a trip /
   waiting with the same words under it, the list's day as a tag, the chevron. More than four lists fold behind "Visi saraksti". */
.tr-listic.vl-star{background:var(--ui-pine-tint);color:var(--ui-pine)}
.tr-listic.vl-lic{background:var(--ui-stone-2);color:var(--ui-ink-2)}
.vl-row .tr-rowm{gap:1px}
.vl-row.empty .tr-rowm>small{white-space:normal}
.vl-prog{display:flex;gap:2px;width:100%;max-width:220px;height:4px;margin:6px 0 3px;border-radius:2px;overflow:hidden}
.vl-prog>i{min-width:3px;background:var(--ui-line-2)}
.vl-prog>i.v{background:var(--ui-pine)}
.vl-prog>i.t{background:var(--ui-slate)}
.vl-row .tr-rowm>small.vl-stat,.vl-stat{display:flex;flex-wrap:wrap;gap:2px 10px;overflow:visible;white-space:normal}
.vl-stat .v{color:var(--ui-pine);font-weight:620}
.vl-stat .t{color:var(--ui-slate-ink);font-weight:620}
.vl-daytag{flex:none;gap:5px}
.vl-dayin{display:none}
.vl-all{gap:10px;min-height:44px;padding:6px 12px 6px 16px;color:var(--ui-ink-2);font-weight:540}
.vl-all>svg{color:var(--ui-muted)}
.vl-allchev{display:grid;place-items:center;color:var(--ui-muted);transform:rotate(90deg);transition:transform var(--ui-t)}
.vl-all[aria-expanded="true"] .vl-allchev{transform:rotate(-90deg)}
.vl-allchev svg{width:16px;height:16px}
/* the help's pictures (B4 TL1): a row and the bar drawn by the list's own functions, fitted to the help's picture column (34vw on a phone) */
.vl-hrow{display:block;width:100%;border-top:0}
.vl-hrow>.rowb{padding:4px 0}
.vl-hrow .tr-rowm>b,.vl-hrow .tr-rowm>small{white-space:normal}
.vl-selbar.vl-hbar{position:static;flex-wrap:wrap;gap:4px;max-width:min(100%,300px);padding:6px 8px;border:1px solid var(--ui-line);border-radius:var(--ui-r);box-shadow:none}
.vl-hbar>.tr-sp{display:none}
.vl-hbar>b{flex-basis:100%}
.vl-hprog{display:inline-flex;flex-direction:column;width:200px;font:var(--ui-t-meta);color:var(--ui-muted)}
.vl-pic.star svg,.vl-titlestar svg,.tr-listic.vl-star svg{fill:currentColor}
.tr-sh>.vl-new{margin-right:0}
.vl-name{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:4px 16px 10px}
.vl-name input{flex:1 1 180px;min-width:0}
.vl-quiet{margin:4px 0;color:var(--ui-muted);font:var(--ui-t-meta)}
.tr-sec[data-tr-sec="lists"] .vl-quiet{margin:0 16px 8px}

/* an opened list */
.vl-panel{display:flex;flex-direction:column;gap:10px;padding:0 0 16px}
.vl-panel:focus{outline:none}
.vl-sub{margin:0;padding:0 16px;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.vl-titlestar{display:inline-grid;flex:none;place-items:center;color:var(--ui-a)}
.vl-titlestar svg{width:18px;height:18px}
.vl-seg{align-self:flex-start;margin:0 16px}
.vl-seg .n{margin-left:2px}
.vl-day{align-self:flex-start;margin:0 16px}
.vl-acts{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 4px;border-bottom:1px solid var(--ui-line)}
.vl-acts{padding-bottom:12px}
.vl-body{display:flex;flex-direction:column}
.vl-body .tr-wg:first-child{padding-top:4px}
.vl-item .tr-l2{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.vl-item .vl-mark{flex:none}
.vl-person.lk{color:var(--ui-ink-2);font:var(--ui-t-meta)}
.vl-tag{margin-right:4px}
.vl-pur{color:var(--ui-ink);font-weight:540}
.vl-x-gap{flex:none;width:var(--ui-h-s)}
.vl-empty{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px 16px}
.vl-empty p{margin:0}
.vl-visited{border-top:1px solid var(--ui-line)}
.vl-dayform{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin:0 16px;padding:10px;border:1px solid var(--ui-line);border-radius:var(--ui-r)}
.vl-dayform>label{display:flex;flex-direction:column;gap:4px;flex:1 1 130px;min-width:0}
.vl-formact{display:flex;flex-wrap:wrap;gap:6px}

/* B4 TL1 (plan-lists render A2): an opened list. The day as a button beside the counts; tick boxes choose rows (the chosen row has the
   page's selected wash); the bar at the panel's foot acts on them; "Pielikt" opens a search field in place. */
.vl-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:0 16px}
.vl-meta .vl-sub{padding:0}
.vl-meta .vl-day{margin:0}
.vl-item{gap:2px;padding-right:12px}
.vl-ckw{display:grid;flex:none;place-items:center;width:40px;min-height:40px;margin-left:4px;cursor:pointer}
.vl-item .tr-l2 .tag{margin-right:6px;vertical-align:1px}
.vl-item.vl-was .tr-name{color:var(--ui-ink-2)}
.vl-panel.has-sel{padding-bottom:0}
.vl-selbar{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;gap:6px;margin-top:auto;padding:10px 12px 10px 16px;border-top:1px solid var(--ui-line);background:var(--ui-surface);box-shadow:var(--ui-float-sh)}
.vl-selbar>b{margin-right:4px;font:620 var(--ui-fs-m)/1.2 var(--ui-f);white-space:nowrap}
.vl-search{display:flex;flex-direction:column;gap:6px;margin:0 16px;padding:10px;border:1px solid var(--ui-line);border-radius:var(--ui-r);background:var(--ui-canvas)}
.vl-sfield{display:flex;align-items:center;gap:6px}
.vl-sfield>svg{flex:none;width:16px;height:16px;margin-left:4px;color:var(--ui-muted)}
.vl-sfield>input{flex:1;min-width:0}
.vl-shint{margin:2px 4px}
.vl-found{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.vl-fbtn.rowb{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:4px 8px;border:0;border-radius:var(--ui-r-in);background:none;color:var(--ui-ink);font:var(--ui-t-body);text-align:left;cursor:pointer}
.vl-fbtn:hover:not(:disabled){background:var(--ui-wash)}
.vl-fbtn:focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
.vl-fbtn:disabled{cursor:default}
.vl-fic{display:grid;flex:none;place-items:center;width:28px;height:28px;border-radius:7px;background:var(--ui-pine-tint);color:var(--ui-pine)}
.vl-fic svg{width:15px;height:15px}
.vl-fm{display:grid;flex:1;min-width:0}
.vl-fm b{overflow:hidden;font-weight:620;text-overflow:ellipsis;white-space:nowrap}
.vl-fm small{overflow:hidden;color:var(--ui-muted);font:var(--ui-t-meta);text-overflow:ellipsis;white-space:nowrap}
.vl-fadd,.vl-fon{display:inline-flex;flex:none;align-items:center;gap:4px;font:var(--ui-t-meta);font-weight:620}
.vl-fadd{color:var(--ui-a-ink)}
.vl-fon{color:var(--ui-muted)}
.vl-fadd svg,.vl-fon svg{width:14px;height:14px}

/* B4 TL2 (decision 220): an opened list's row is a small section: the property, then its owners on their own line after a home sign;
   pointing at the section lights its forest on the map, pointing at an owner lights the home (workspace-trips.js TH1, the same
   lit mark as "Ieteikumi"). "Rādīt kopā kartē" (route icon) lights both and draws the line between them with its km. */
.vl-sec{align-items:flex-start;padding:6px 0}
.vl-sec>.vl-ckw{min-height:32px}
.vl-sec .tr-l2{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;white-space:normal}
.vl-owners{display:inline-flex;flex-wrap:wrap;align-items:center;gap:2px 4px}
.vl-owners>svg{flex:none;width:13px;height:13px;color:var(--ui-slate)}
/* B4 TR3 (decision 241): the route button sits in the top line after the value and area, centred on them (its tap area is the
   control family's own ::after); with no figures it still keeps to the right. An owner with no home address gets a quiet crossed
   house after the name, the size of the line's own house sign. */
.vl-sec .tr-l1{align-items:center}
.vl-sec .tr-l1>.vl-pair{flex:none;margin-block:-5px;margin-left:auto}
.vl-sec .tr-l1>.ui-figs~.vl-pair{margin-left:-4px}
/* TR3 fix (Sol review): the tap area stays at least 40px square whatever the button's own size (it overhangs the gap, not a chip) */
.vl-sec .tr-l1>.vl-pair::after{inset:min(-7px,calc((var(--_h) - 42px) / 2))}
/* TR3 fix (Sol review): an owner's name and its no-address mark are one piece: the mark never wraps onto a line alone */
.vl-own{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.vl-nohome{position:relative;display:inline-flex;flex:none;width:13px;height:13px;color:var(--ui-ico-mute)}
.vl-nohome>svg{width:13px;height:13px}
.vl-nohome::after{content:"";position:absolute;left:50%;top:-1px;bottom:-1px;width:1.5px;margin-left:-.75px;border-radius:1px;background:currentColor;transform:rotate(-45deg)}
.tr-l1>.vl-nohome{align-self:center;margin-left:-6px}
.vl-pair[aria-pressed="true"]{background:var(--ui-on-bg);box-shadow:var(--ui-on-sh),inset 0 0 0 1px var(--ui-on-line);color:var(--ui-a-ink)}
.tr-line.tr-pair{stroke:var(--ui-slate);stroke-dasharray:6 6}
.tr-pairkm>span{display:inline-block;padding:2px 8px;border-radius:10px;background:var(--ui-map-glass-read);box-shadow:var(--ui-map-on-drop);color:var(--ui-ink);font:var(--ui-t-meta);font-weight:620;white-space:nowrap}
.leaflet-marker-icon.tr-pairkm>span{transform:translate(-50%,-50%)}

/* BV6: the list as one day */
.vl-tripf{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px;padding:0 16px}
.vl-tripf>label,.vl-tripf>.vl-lenf{display:flex;flex-direction:column;gap:4px;min-width:0}
.vl-tripf .vl-lenf{grid-column:1/-1}
.vl-tripf select,.vl-tripf input{width:100%;min-width:0}
.vl-len{display:flex}
.vl-len>button{flex:1}
.vl-sum{display:flex;flex-wrap:wrap;gap:0;margin:0;padding:10px 16px;border-block:1px solid var(--ui-line);background:var(--ui-canvas);color:var(--ui-ink-2);font:var(--ui-t-body)}
.vl-sum>*{padding-right:12px;margin-right:12px;border-right:1px solid var(--ui-line-2)}
.vl-sum>:last-child{border-right:0;margin-right:0;padding-right:0}
.vl-sum b{color:var(--ui-ink);font-weight:620}
.vl-stops{margin:0;padding:0}
.vl-left{margin:0 16px}
.vl-foot{position:sticky;bottom:0;display:flex;gap:8px;margin-top:auto;padding:12px 16px;border-top:1px solid var(--ui-line);background:var(--ui-surface)}
.vl-foot>[data-vl-tripgo]{flex:1}

/* BV5: "Pievienot sarakstam" (a panel by its button; a sheet on the phone) */
.vl-pick{position:fixed;z-index:1200;box-sizing:border-box;width:340px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;padding:14px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh);color:var(--ui-ink);font:var(--ui-t-body)}
.vl-pick h2{margin:0 0 4px;font:620 var(--ui-fs-m)/1.35 var(--ui-f)}
.vl-pnote{margin:0 0 10px;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.vl-popts{display:flex;flex-direction:column;gap:2px;margin:6px 0 12px}
.vl-popt{display:flex;align-items:center;gap:10px;min-height:var(--ui-h-m);padding:4px 8px;border-radius:var(--ui-r-in);cursor:pointer}
.vl-popt:hover{background:var(--ui-off-bg)}
.vl-popt.on{background:var(--ui-a-soft)}
.vl-popt>.rd{flex:none;margin:0}
.vl-pic{display:grid;flex:none;place-items:center;color:var(--ui-ink-2)}
.vl-pic.star{color:var(--ui-a)}
.vl-pic svg{width:16px;height:16px}
.vl-pname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vl-pn{color:var(--ui-muted);font-variant-numeric:tabular-nums}
.vl-pnew input[type=text]{flex:1;min-width:0}
.vl-pact{display:flex;gap:8px}
.vl-pact>button{flex:1;justify-content:center}
.vl-pick.sheet{left:0;right:0;bottom:0;top:auto;width:auto;max-width:none;max-height:85vh;padding:16px 16px calc(16px + env(safe-area-inset-bottom));border-radius:var(--ui-r-pop) var(--ui-r-pop) 0 0}
.vl-pick.sheet .vl-popt{min-height:var(--ui-hit)}

/* the "Saimnieki" line under "Gaida braucienu": its link is underlined, not told apart by colour alone */
.tr-owncount a{color:inherit;text-decoration:underline;text-decoration-color:var(--ui-line-2);text-underline-offset:2px}
.tr-owncount a:hover{text-decoration-color:currentColor}
.tr-owncount a:focus-visible{outline:2px solid var(--ui-a);outline-offset:1px;border-radius:2px}

/* BV5 buttons on other pages */
.vl-bulk .n:empty{display:none}
.record-actions [data-vl-add-parcel] svg,.vl-marker svg{width:16px;height:16px}

@media (max-width:700px){
  .vl-tripf{grid-template-columns:minmax(0,1fr)}
  .vl-acts>*{flex:1 1 auto}
  .vl-x-gap{width:40px}
  /* B4 TL1: on the phone the bar stays above the place bar at the screen's foot */
  .vl-selbar{position:sticky;bottom:var(--tab-bar-h,0px);padding:10px 8px 10px 12px}
  .vl-selbar .b.s:not(.ic) .l{white-space:nowrap}
  .vl-search{margin:0 12px}
  /* the day goes under the bar on the phone, so the name and its line keep the row width */
  .vl-row>.vl-daytag{display:none}
  .vl-dayin{display:flex;margin-top:4px}
}

/* B4 TL3 (decision 257): beside the counts, how many properties the trip rules hide, in the counts' own quiet type, and a small
   quiet "Rādīt" / "Slēpt" (the control family's own 40 px tap area). It wraps under the counts on a phone. */
.vl-ruled{color:var(--ui-muted);font:var(--ui-t-meta)}
.vl-meta .vl-ruledbtn{margin:0 0 0 -4px}
}

/* /forest/workspace-deals-board.css */
@layer legacy{/* LMF v3.1 Darījumi board (B4-UNIFY): Warm Timber pipeline accents, unified segmented switch,
   stable column widths while dragging, crisp neutral card borders. Tokens only (M7). */

.v31-db-page{min-width:0}
.v31-db{display:flex;flex-direction:column;gap:var(--v31-s-3);min-width:0;color:var(--v31-text);font:var(--v31-fw) var(--v31-fs)/var(--v31-lh) var(--v31-font)}
.v31-db-slot{display:flex;flex-direction:column;gap:var(--v31-s-2)}
.v31-db-slot:empty{display:none}
.v31-db-skel{border:1px solid var(--v31-line);border-radius:var(--v31-r);background:var(--v31-surface)}

/* Unified segmented switch: Aktīvie / Kavēti / Noslēgti */
.v31-db-seg{display:inline-flex;gap:2px;margin-inline-start:var(--v31-s-4);padding:3px;border-radius:var(--v31-r-ctl);background:var(--v31-surface-2)}

.v31-db-none:not(#v31-kit#v31-kit#v31-kit#v31-kit){justify-content:center;background:var(--v31-surface);border:1px dashed var(--v31-line-strong);border-radius:var(--v31-r)}

/* columns: stable balanced widths so columns do not jump while dragging */
.v31-db-cols{display:flex;gap:var(--v31-s-2);align-items:flex-start;min-width:0}
.v31-db-col{flex:1 1 0;display:flex;flex-direction:column;min-width:140px;min-height:160px;background:var(--v31-surface-2);border-radius:var(--v31-r)}
.v31-db-col-h{display:flex;flex-direction:column;gap:var(--v31-s-2);padding:var(--v31-s-3) var(--v31-s-3) var(--v31-s-2)}
.v31-db-col-n{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--v31-s-2);min-height:28px}
.v31-db-col-n b{font:var(--v31-fw-heavy) var(--v31-fs-xl)/1 var(--v31-font);font-variant-numeric:tabular-nums;color:var(--v31-text)}
.v31-db-bar{height:4px;border-radius:4px;background:color-mix(in srgb,var(--v31-crm) 65%,var(--v31-surface))}
.v31-db-bar.is-zero{background:var(--v31-line)}
.v31-db-col.is-empty{flex-grow:.78}
.v31-db-cols.is-closed .v31-db-col{flex:0 1 360px}
.v31-db-col.is-closed .v31-db-bar{background:var(--v31-line-strong)}
.v31-db-col-t{display:flex;align-items:center;gap:var(--v31-s-2);min-width:max-content;margin:0;color:var(--v31-text-2);font:var(--v31-fw-bold) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font)}
.v31-db-col-t .v31-i{flex:none;width:15px;height:15px;color:var(--v31-crm)}
.v31-db-col-t span{min-width:max-content;white-space:nowrap}
.v31-db-col-b{display:flex;flex-direction:column;gap:var(--v31-s-2);padding:0 var(--v31-s-2) var(--v31-s-2);min-width:0}

/* deal card: clean neutral border, warm timber accents inside, soft terracotta border on overdue */
.v31-db-card{position:relative;display:flex;flex-direction:column;gap:var(--v31-s-1);min-width:0;padding:var(--v31-s-3);background:var(--v31-surface);border:1px solid var(--v31-line);border-radius:var(--v31-r-ctl);
  box-shadow:var(--v31-sh-0);transition:box-shadow var(--v31-t-ctl),border-color var(--v31-t-ctl),opacity var(--v31-t-ctl)}
.v31-db-card:hover{border-color:var(--v31-crm-line);box-shadow:var(--v31-sh-2)}
.v31-db-card.is-late{border-color:var(--v31-late-line)}
.v31-db-card.is-closed{box-shadow:none}
.v31-db-card-h{display:flex;align-items:flex-start;gap:var(--v31-s-1);min-width:0}
.v31-db-open:not(#v31-kit#v31-kit#v31-kit#v31-kit){flex:1;min-width:0;min-height:var(--v31-min-target);height:auto;margin:0;padding:var(--v31-s-1) 0;display:block;appearance:none;-webkit-appearance:none;
  border:0;border-radius:var(--v31-s-1);background:none;box-shadow:none;color:var(--v31-text);text-align:start;cursor:pointer;
  font:var(--v31-fw-bold) var(--v31-fs)/var(--v31-lh-head) var(--v31-font);overflow-wrap:break-word}
.v31-db-open:not(#v31-kit#v31-kit#v31-kit#v31-kit)::after{content:"";position:absolute;inset:0;border-radius:var(--v31-r-ctl)}
.v31-db-open:not(#v31-kit#v31-kit#v31-kit#v31-kit):hover{color:var(--v31-crm-ink);text-decoration:underline;text-underline-offset:3px}
.v31-db-open:not(#v31-kit#v31-kit#v31-kit#v31-kit):focus-visible{outline:none}
.v31-db-open:not(#v31-kit#v31-kit#v31-kit#v31-kit):focus-visible::after{outline:2px solid var(--v31-focus);outline-offset:2px}
.v31-db-more:not(#v31-kit#v31-kit#v31-kit#v31-kit){position:relative;z-index:1;flex:none;margin:calc(var(--v31-s-1) * -1) calc(var(--v31-s-1) * -1) 0 0}
.v31-db-sub{min-width:0;color:var(--v31-text-2);font:var(--v31-fw) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font);overflow-wrap:break-word}
.v31-db-who{color:var(--v31-muted)}
.v31-db-line,.v31-db-kept{display:flex;align-items:flex-start;gap:var(--v31-s-2);min-width:0;color:var(--v31-text);font:var(--v31-fw) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font)}
.v31-db-line .v31-i,.v31-db-kept .v31-i{flex:none;width:15px;height:15px;margin-top:1px;color:var(--v31-crm)}
.v31-db-line.is-wait .v31-i{color:var(--v31-warn)}
.v31-db-line>span,.v31-db-kept>span{min-width:0;overflow-wrap:break-word}
.v31-db-kept{color:var(--v31-text-2)}
.v31-db-card.is-closed .v31-db-line{color:var(--v31-text-2)}
.v31-db-card.is-closed .v31-db-line .v31-i{color:var(--v31-muted)}
.v31-db-foot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--v31-s-1) var(--v31-s-2);min-width:0;margin-top:var(--v31-s-1)}
.v31-db-inform{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--v31-warn-bg);color:var(--v31-warn)}
.v31-db-inform .v31-i{width:15px;height:15px}
.v31-db-svcs{display:inline-flex;flex-wrap:wrap;gap:var(--v31-s-1);margin-inline-start:auto}
.v31-db-svc{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--v31-surface-2);color:var(--v31-muted);font-style:normal}
.v31-db-svc .v31-i{width:15px;height:15px}
.v31-db-svc.is-now{background:var(--v31-crm);color:var(--v31-surface)}
.v31-db-svc.is-done{background:var(--v31-ok-bg);color:var(--v31-ok)}

/* menu */
.v31-db-menu{position:absolute;z-index:20;top:44px;left:0;width:248px;max-width:calc(100vw - 32px);display:flex;flex-direction:column;gap:var(--v31-s-1);padding:var(--v31-s-2);
  background:var(--v31-surface);border:1px solid var(--v31-line-strong);border-radius:var(--v31-r);box-shadow:var(--v31-sh-pop)}
.v31-db-menu.is-left{left:auto;right:0}
.v31-db-menu.is-up{top:auto;bottom:calc(100% - 40px)}
.v31-db-menu-h{padding:var(--v31-s-1) var(--v31-s-2);color:var(--v31-muted);font:var(--v31-fw) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font)}
.v31-db-menu-l{display:flex;flex-direction:column;gap:var(--v31-s-1)}
.v31-db-item:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:flex;align-items:center;gap:var(--v31-s-2);width:100%;min-height:var(--v31-ctl);height:auto;margin:0;padding:0 var(--v31-s-2);appearance:none;-webkit-appearance:none;
  border:0;border-radius:var(--v31-s-2);background:none;box-shadow:none;color:var(--v31-text);text-align:start;cursor:pointer;font:var(--v31-fw-bold) var(--v31-fs-sm)/var(--v31-lh-row) var(--v31-font)}
.v31-db-item:not(#v31-kit#v31-kit#v31-kit#v31-kit) .v31-i{flex:none;width:15px;height:15px;color:var(--v31-crm)}
.v31-db-item:not(#v31-kit#v31-kit#v31-kit#v31-kit):hover,.v31-db-item:not(#v31-kit#v31-kit#v31-kit#v31-kit):focus-visible{background:var(--v31-crm-soft);outline:none}
.v31-db-item:not(#v31-kit#v31-kit#v31-kit#v31-kit):focus-visible{box-shadow:inset 0 0 0 2px var(--v31-focus)}
.v31-db-item:not(#v31-kit#v31-kit#v31-kit#v31-kit):disabled{color:var(--v31-muted);cursor:not-allowed}
.v31-db-item:not(#v31-kit#v31-kit#v31-kit#v31-kit)[aria-busy="true"]{cursor:progress;background:var(--v31-crm-soft)}
.v31-db-item-t{flex:1;min-width:0}
.v31-db-item-b{display:inline-flex;align-items:center;gap:var(--v31-s-1);color:var(--v31-muted);font:var(--v31-fw) var(--v31-fs-xs)/1 var(--v31-font)}
.v31-db-item-b .v31-i{color:var(--v31-muted)}
.v31-db-menu-pre{margin:0;padding:var(--v31-s-2);border-top:1px solid var(--v31-line);color:var(--v31-text-2);font:var(--v31-fw) var(--v31-fs-sm)/var(--v31-lh) var(--v31-font);text-wrap:pretty}
.v31-db-menu-pre:empty{display:none}
.v31-db-menu-pre.is-wait{color:var(--v31-muted)}
.v31-db-menu-pre.is-refused{color:var(--v31-late)}
.v31-db-menu-slot:empty{display:none}

.v31-db-more-row{display:flex;justify-content:center}

/* drag states */
.v31-db-card.is-drag .v31-db-open:not(#v31-kit#v31-kit#v31-kit#v31-kit){cursor:grab}
.v31-db-card.is-drag:active .v31-db-open:not(#v31-kit#v31-kit#v31-kit#v31-kit){cursor:grabbing}
.v31-db-card.is-dragging{opacity:.4}
.v31-db-card.is-moving{opacity:.6;pointer-events:none}
.v31-db-col.is-over{outline:2px dashed var(--v31-crm);outline-offset:-2px;background:var(--v31-crm-tint)}

/* drag switch */

@media (prefers-reduced-motion:reduce){.v31-db-card,.v31-db-drag-track,.v31-db-drag-knob{transition:none}}

@media (max-width:1179px){.v31-db-cols{flex-wrap:wrap}.v31-db-col,.v31-db-col.is-empty{flex:1 1 calc(25% - var(--v31-s-2));min-width:160px}}

@media (max-width:720px){
  .v31-db-seg{margin-inline-start:0}
  .v31-db-cols{flex-direction:column;align-items:stretch}
  .v31-db-col,.v31-db-col.is-empty,.v31-db-cols.is-closed .v31-db-col{flex:none;min-width:0;min-height:0}
  .v31-db-col-h{flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--v31-s-2) var(--v31-s-3)}
  .v31-db-col-h .v31-db-bar{order:3;flex-basis:100%}
  .v31-db-col-n{order:2;margin-inline-start:auto;min-height:0}
  .v31-db-col-n b{font-size:var(--v31-fs-md)}
  .v31-db-col-t{order:1;font-size:var(--v31-fs)}
  .v31-db-col.is-empty .v31-db-col-b{display:none}
  .v31-db-more:not(#v31-kit#v31-kit#v31-kit#v31-kit){min-width:44px;min-height:44px}
  .v31-db-item:not(#v31-kit#v31-kit#v31-kit#v31-kit){min-height:44px;font-size:var(--v31-fs)}
  .v31-db-menu{width:auto;left:0;right:0}
  .v31-db-empty:not(#v31-kit#v31-kit#v31-kit#v31-kit){grid-template-columns:var(--v31-gut) minmax(0,1fr)}
}
/* B4 DP2 (plan-deals-per-property 2.8): "vel 1" after the deal words, small, never pushing the head row */
.v31-db-sub>.v31-db-also{margin-left:var(--v31-s-2);vertical-align:baseline;white-space:nowrap}
}

/* /forest/workspace-catalogue-deals.css */
@layer legacy{/* LMF v3.1 lane U-R: the Pārlūks deal filter and Darījums column (workspace-catalogue-deals.js).
   Loaded by the module only for users who see deals, so the Browser of everyone else is untouched.
   Tokens only (GATE-ZERO rule 2): no colour values, weights or font sizes outside the kit's tokens, spacing in
   multiples of 4, no !important. Kit controls keep the kit's look; rules that must beat the app's id selectors
   repeat the kit guard. */

/* The filter (M9, lane UF-R): inside an existing toolbar a new control takes that toolbar's control size. The select is
   built like Reģions, Novads and Pagasts (a labelled select in a .catalogue-location-filters box), so the app's own
   rules size it: the same height, type, border, radius and label position, and the row keeps its height. Only the box's
   width is set here, so it does not stretch like the three-filter box on a wide screen; at 1000 px and below it takes a
   full row like the location filters. The wrapper adds no box, so the status line can take a row of its own. */
.v31-bdeal-filter{display:contents}
@media (min-width:1001px){
  #land-filters .catalogue-location-filters.v31-bdeal-box{flex:0 0 160px;max-width:160px}
}

/* A failed read: one slim line under the filter row (STATES 4), the row itself does not move. */
.v31-bdeal-status{order:99;flex:1 1 100%;min-width:0}
.v31-bdeal-status:empty{display:none}
.v31-bdeal-notice:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:inline-flex;align-items:center;gap:var(--v31-s-2);margin:0;padding:var(--v31-s-1) var(--v31-s-2) var(--v31-s-1) var(--v31-s-3)}

/* The column (B4 DI1, decision 142): no names. One small quiet icon per active deal, the kind's icon (the set the deal pills
   use), every icon in the same 24 px box at 16 px, so different glyphs read as one size and one style; up to four side by
   side, then a quiet "+N" ("9+" above nine). Flat until hovered or focused (the soft CRM fill). The name and the current step are each button's
   label and show in one tip on the body (hover or focus on PC, a tap on the phone). A refusal: the ban sign in the same box,
   in the quiet text colour. It fits the table's densest row (rule 6: never changes the row height). */
td[data-table-column="deal"]:not(#v31-kit#v31-kit#v31-kit#v31-kit){text-align:left}
.v31-bdeal:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:inline-flex;align-items:center;gap:var(--v31-s-1);max-width:100%;min-width:0;margin:0;padding:0;border:0;background:transparent;
  color:var(--v31-crm-ink);font:var(--v31-fw) var(--v31-fs-xs)/16px var(--v31-font);letter-spacing:0;vertical-align:middle;white-space:nowrap}
.v31-bdeal-ic:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:inline-grid;place-items:center;flex:none;box-sizing:border-box;width:24px;height:24px;min-width:0;min-height:0;margin:0;padding:0;
  border:0;border-radius:var(--v31-r-ctl);background:transparent;color:var(--v31-crm);box-shadow:none;cursor:pointer;line-height:0}
.v31-bdeal-ic .v31-i:not(#v31-kit#v31-kit#v31-kit#v31-kit){width:16px;height:16px;stroke-width:1.8;color:inherit}
/* The service wrench fills about 14 of its 24 units where the axe and the house fill about 19: drawn at 20 px with a thinner
   stroke (1.8 x 16 / 20) it reads as the same size and the same line weight as its neighbours. */
.v31-bdeal-ic .v31-i:not(#v31-kit#v31-kit#v31-kit#v31-kit):has(use[href="#v31-i-tool"]){width:20px;height:20px;stroke-width:1.44}
.v31-bdeal-ic:not(#v31-kit#v31-kit#v31-kit#v31-kit):hover{background:var(--v31-crm-soft);color:var(--v31-crm-ink)}
.v31-bdeal-ic:not(#v31-kit#v31-kit#v31-kit#v31-kit):focus-visible{outline:2px solid var(--v31-focus);outline-offset:0;background:var(--v31-crm-soft)}
span.v31-bdeal-ic:not(#v31-kit#v31-kit#v31-kit#v31-kit){cursor:default}
.v31-bdeal--refused .v31-bdeal-ic:not(#v31-kit#v31-kit#v31-kit#v31-kit){color:var(--v31-text-2)}
.v31-bdeal-more{flex:none;padding-inline:var(--v31-s-1);font-size:var(--v31-fs-xs);font-weight:var(--v31-fw);color:var(--v31-text-2)}

/* The tip: the family's popover (white, soft shadow, 10 px corner), the name in lake ink, the step quiet under it. On the
   phone a tap pins it with "Atvērt darījumu" (a 32 px button). */
.v31-bdeal-tip{position:fixed;z-index:1200;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:min(280px,calc(100vw - 16px));
  padding:var(--v31-s-2) var(--v31-s-3);border:1px solid var(--v31-line);border-radius:var(--ui-r-pop,10px);background:var(--ui-pop-bg,var(--v31-surface));
  box-shadow:var(--ui-pop-sh,none);font:var(--v31-fw) var(--v31-fs-xs)/16px var(--v31-font);color:var(--v31-text-2);pointer-events:none}
.v31-bdeal-tip[hidden]{display:none}
.v31-bdeal-tip.is-pinned{pointer-events:auto;gap:var(--v31-s-1)}
.v31-bdeal-tip-name{font-weight:var(--v31-fw-bold);font-size:var(--v31-fs-sm);color:var(--v31-crm-ink);overflow-wrap:anywhere}
.v31-bdeal-tip-step{overflow-wrap:anywhere}
.v31-bdeal-tip-open:not(#v31-kit#v31-kit#v31-kit#v31-kit){min-height:32px;margin-top:var(--v31-s-1);gap:var(--v31-s-1)}
@media (forced-colors:active){.v31-bdeal-tip{outline:1px solid CanvasText}}

/* Touch screens and the phone: each icon a 32 px target (the lane's 32 px minimum), the glyph unchanged. */
@media (pointer:coarse),(max-width:640px){
  .v31-bdeal-ic:not(#v31-kit#v31-kit#v31-kit#v31-kit){width:32px;height:32px}
}

/* Phone (lane rule 24): the app's location-filter rules apply to the deal box as to Reģions (44 px controls). */
}

/* /forest/lmf-property-out.css */
@layer legacy{
.lmf-out-sheet{width:min(38rem,calc(100vw - 2rem));max-height:85dvh;overflow:auto;padding:1rem;border:1px solid var(--ui-line);border-radius:12px;color:var(--ui-ink);background:var(--ui-surface)}
.lmf-out-areas summary{cursor:pointer}.lmf-out-areas[open]{grid-column:1/-1}.lmf-out-areas[open]>div{display:flex;flex-wrap:wrap;gap:.35rem .85rem}.lmf-out-areas input[type=text]{width:8rem}.lmf-out-rules{display:grid;gap:.25rem}.lmf-out-rules>div{display:grid;grid-template-columns:minmax(10rem,1fr) minmax(4rem,9rem) 3rem;gap:.5rem;align-items:center;border-bottom:1px solid var(--ui-line);padding:.45rem 0}.lmf-out-rules label{display:flex;align-items:center;gap:.5rem}.lmf-out-rules input[type=number],.lmf-out-rules select{min-width:0;width:100%}.lmf-out-rules output{text-align:right}.lmf-out-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-block:.75rem}#settings-rules-panel label input[type=search]{display:block;width:min(100%,24rem)}
@media(max-width:540px){.lmf-out-rules>div{grid-template-columns:minmax(0,1fr) 4.5rem 2rem}.lmf-out-rules label,.lmf-out-actions button{min-height:44px}}
.lmf-out-sheet header,.lmf-out-sheet .out-line{display:flex;align-items:center;justify-content:space-between;gap:.65rem}.lmf-out-sheet header h2{margin:0}.lmf-out-sheet label{display:grid;gap:.25rem;margin:.75rem 0}.lmf-out-sheet .out-line{display:grid;grid-template-columns:1.5fr 1fr 1fr auto;margin-block:.4rem}.lmf-out-sheet button{min-height:30px}.lmf-out-sheet::backdrop{background:color-mix(in srgb,var(--ui-ink) 46%,transparent)}.lmf-out-sheet .out-name{justify-self:start;min-height:30px;padding:0;border:0;background:none;color:var(--ui-lk);font:620 var(--ui-fs-m)/1.3 var(--ui-f);text-align:left;text-decoration:underline;text-decoration-color:var(--ui-lk-line);text-underline-offset:2px;cursor:pointer}.lmf-out-sheet .out-line>span{color:var(--ui-ink-2);font:var(--ui-t-body)}.lmf-out-sheet .out-empty{margin:.75rem 0;color:var(--ui-muted);font:var(--ui-t-body)}@media(max-width:540px){.lmf-out-sheet{margin:auto 0 0;width:100%;max-width:100%;box-sizing:border-box}.lmf-out-sheet button{min-height:44px}.lmf-out-sheet .out-line{grid-template-columns:1fr 1fr}}
}

/* /forest/workspace-processing-progress.css */
@layer legacy{/* Compact, non-modal feedback stays visible without interrupting other work. */
.next-processing-progress{
 position:fixed;inset:auto 20px 20px auto;z-index:1500;box-sizing:border-box;
 width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 120px);overflow:auto;
 margin:0;padding:14px 16px;border:0;border-radius:12px;background:var(--surface,#fff);
 color:var(--ink,#20362c);box-shadow:0 8px 32px #20362c30;
 font-family:inherit;font-size:13px;line-height:1.45;text-align:left;
}
.next-processing-progress:not(:popover-open){display:block}
.next-progress-head{display:flex;align-items:center;gap:12px;justify-content:space-between}
.next-progress-title{font-size:14px;line-height:1.35;font-weight:620;color:var(--forest,#285c43)}
.next-processing-progress .next-progress-head button{
 display:grid;place-items:center;flex:none;min-width:32px;min-height:32px;padding:4px;
 border:0;border-radius:var(--control-radius,6px);background:transparent;color:var(--forest,#285c43);box-shadow:none;
}
.next-processing-progress .next-progress-head button:hover{background:var(--mint,#e3eee4)}
.next-processing-progress button:focus-visible{outline:2px solid var(--forest,#285c43);outline-offset:2px}
.next-progress-head svg{width:18px;height:18px}
.next-progress-body{margin-top:4px}
.next-progress-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.next-processing-progress p{margin:0;overflow-wrap:anywhere}
.next-processing-progress .next-progress-phase{font-size:13px;line-height:1.4;font-weight:400}
.next-progress-track{height:4px;overflow:hidden;border-radius:2px;background:var(--mint,#e3eee4);margin:12px 0}
.next-progress-track span{display:block;height:100%;width:34%;border-radius:inherit;background:var(--forest,#285c43)}
.next-processing-progress[data-moving=true] .next-progress-track span{animation:next-processing-travel 1.6s ease-in-out infinite}
@keyframes next-processing-travel{from{transform:translateX(-100%)}to{transform:translateX(300%)}}
.next-processing-progress .next-progress-counter{font-size:12px;font-variant-numeric:tabular-nums;margin-bottom:8px}
.next-processing-progress .next-progress-help{font-size:12px;line-height:1.45;color:var(--muted,#536257)}
.next-processing-progress .next-progress-note{font-size:12px;line-height:1.45;color:var(--muted,#536257);margin-top:4px}
.next-processing-progress[data-tone=error] .next-progress-title{color:var(--danger,#a33832)}
.next-processing-progress[data-tone=waiting] .next-progress-title{color:#815000}
.next-processing-progress[data-tone=waiting] .next-progress-track span{background:#815000;transform:translateX(100%)}
.next-processing-progress[data-compact=true]{width:240px;padding:8px 12px}
.next-processing-progress[data-compact=true] .next-progress-body{display:none}
.next-processing-progress[data-page-hidden=true] .next-progress-track span{animation-play-state:paused}
@media(max-width:560px),(pointer:coarse){
 .next-processing-progress{inset:auto 12px max(12px,env(safe-area-inset-bottom)) auto;width:360px;padding:12px 14px}
 .next-processing-progress .next-progress-head button{min-width:44px;min-height:44px}
 .next-processing-progress[data-compact=true]{width:240px;padding:4px 10px}
}
@media(prefers-reduced-motion:reduce){.next-processing-progress[data-moving=true] .next-progress-track span{animation:none;transform:translateX(100%)}}
@media(forced-colors:active){.next-processing-progress{border:1px solid CanvasText}.next-progress-track{background:Canvas}.next-progress-track span{background:Highlight}}
@media print{.next-processing-progress{display:none!important}}
}

/* /forest/workspace-navigation-one.css */
@layer legacy{/* Navigation bar (B4-UNIFY): calm deep forest-charcoal frame, crisp 64px desktop rhythm, refined attention pill. */
#workspace-navigation{
 --navigation-one-green:#2f4739;--navigation-one-text:#f6f5f0;
 --navigation-one-secondary:#dce4dd;--navigation-one-hover:rgba(255,255,255,.08);--navigation-one-active:#f6f5f0;
 position:relative;top:auto;z-index:900;display:grid;grid-template-columns:auto minmax(0,1fr) auto;
 align-items:center;gap:20px;min-width:0;min-height:64px;margin:0;padding:0 24px;
 background:var(--navigation-one-green);color:var(--navigation-one-text);border:0;border-radius:0;
 font-family:Manrope,"Segoe UI",sans-serif;
}
#workspace-navigation .brand{display:flex;align-items:center;justify-content:center;width:104px;min-width:104px;height:52px;margin:0;padding:0;flex:none}
#workspace-navigation .brand img{width:104px;height:52px;object-fit:contain;filter:brightness(0) invert(1);opacity:.96}
#workspace-navigation>nav{display:flex;align-items:stretch;justify-content:flex-start;min-width:0;gap:4px;width:100%}
#workspace-navigation>nav>a,#workspace-navigation #browse-toggle,#workspace-navigation #nav-more{
 position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;
 min-height:64px;height:auto;margin:0;padding:8px 11px;border:0;border-radius:0;box-shadow:none;
 background:transparent;color:var(--navigation-one-secondary);font-size:14px;font-weight:620;line-height:1.35;
 letter-spacing:0;white-space:nowrap;overflow-wrap:normal;word-break:normal;text-decoration:none;
 transition:background-color 160ms cubic-bezier(.16,1,.3,1),color 160ms cubic-bezier(.16,1,.3,1);
}
#workspace-navigation>nav>a:hover,#workspace-navigation #browse-toggle:hover,#workspace-navigation #nav-more:hover,
#workspace-navigation #account-menu-toggle:hover{background:var(--navigation-one-hover);color:var(--navigation-one-text);text-decoration:none}
#workspace-navigation>nav>a.active,#workspace-navigation #browse-toggle.search-parent-current,#workspace-navigation #nav-more.active{
 background:transparent;color:var(--navigation-one-text);font-weight:700;
}
#workspace-navigation>nav>a.active::after,#workspace-navigation #browse-toggle.search-parent-current::after,#workspace-navigation #nav-more.active::after{
 content:"";position:absolute;left:11px;right:11px;bottom:0;height:2.5px;border-radius:2px 2px 0 0;background:var(--navigation-one-active);
}
#workspace-navigation .icon{display:block;flex:none;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#workspace-navigation>nav>a>.icon,
#workspace-navigation #browse-toggle>[data-icon]>.icon,
#workspace-navigation #browse-toggle>.icon,
#workspace-navigation #nav-more>.icon,
#workspace-navigation #account-menu-toggle>.icon{stroke-width:1.9}
#workspace-navigation button>[data-icon]{display:flex;align-items:center;flex:none}
#workspace-navigation .nav-chevron{width:12px;height:12px;transition:transform 160ms cubic-bezier(.16,1,.3,1)}
#workspace-navigation .workspace-nav-tools{display:flex;align-items:center;gap:6px;flex:none}
#workspace-navigation .header-language{margin:0;min-width:0}
#workspace-navigation .header-language select{
 appearance:auto;width:58px;min-width:58px;min-height:38px;height:38px;margin:0;padding:6px 4px;
 border:0;border-radius:8px;box-shadow:none;background:transparent;background-image:none;
 color:var(--navigation-one-secondary);font-size:13px;font-weight:620;line-height:1.4;letter-spacing:0;
}
#workspace-navigation .header-language select:hover{background:var(--navigation-one-hover);color:var(--navigation-one-text)}
#workspace-navigation .header-language option{background:#fff;color:#1c2420}
#workspace-navigation #quick-add,#workspace-navigation #account-menu-toggle{
 display:inline-flex;align-items:center;justify-content:center;gap:6px;width:38px;min-width:38px;min-height:38px;height:38px;
 margin:0;padding:8px;border:0;border-radius:8px;box-shadow:none;background:transparent;color:var(--navigation-one-text);
}
#workspace-navigation #quick-add{background:var(--navigation-one-active);color:#1c2420}
#workspace-navigation #quick-add:hover{background:#ffffff;color:#1c2420}
#workspace-navigation #account-menu-toggle{width:46px;min-width:46px;padding:8px;color:var(--navigation-one-secondary)}
#workspace-navigation #account-menu-toggle .nav-chevron{width:11px;height:11px}
#workspace-navigation .account-navigation:has(.workspace-nav-menu>a.active) #account-menu-toggle{background:var(--navigation-one-hover);color:var(--navigation-one-text)}
#workspace-navigation .browse-navigation,#workspace-navigation .account-navigation{position:relative;min-width:0;display:flex;flex:none}
#workspace-navigation .workspace-nav-menu{
 position:absolute;top:calc(100% + 6px);left:0;z-index:1200;display:grid;gap:2px;width:248px;max-width:calc(100vw - 24px);
 margin:0;padding:7px;border:1px solid var(--v31-line);border-radius:12px;box-shadow:var(--v31-sh-pop);background:#fff;color:#1c2420;
 max-height:calc(100dvh - 152px);overflow:auto;overscroll-behavior:contain;
}
#workspace-navigation .workspace-nav-menu[hidden]{display:none}
#workspace-navigation .account-navigation>.workspace-nav-menu{left:auto;right:0}
#workspace-navigation .workspace-nav-menu>a,#workspace-navigation .workspace-nav-menu>button{
 display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:40px;height:auto;
 margin:0;padding:8px 10px;border:0;border-radius:8px;box-shadow:none;background:transparent;color:#1c2420;
 font-size:14px;font-weight:400;line-height:1.4;letter-spacing:0;white-space:normal;text-align:left;text-decoration:none;
}
#workspace-navigation .workspace-nav-menu>a:hover,#workspace-navigation .workspace-nav-menu>button:hover{background:#f1f0ea;color:#1c2420}
#workspace-navigation .workspace-nav-menu>a.active{background:var(--lmf-tint);color:var(--lmf-green);font-weight:700}
#workspace-navigation .workspace-nav-menu .icon{width:17px;height:17px}
#workspace-navigation .account-link-copy{min-width:0;overflow-wrap:anywhere}
#workspace-navigation .account-link-copy strong{font-size:14px;font-weight:700}
#workspace-navigation .account-link-copy small{font-size:12px;line-height:1.4;color:#525b56}
#workspace-navigation #logout{margin-top:4px;padding-top:10px;border-top:1px solid var(--v31-line);border-radius:0}
#workspace-navigation :is(a,button,select):focus-visible{outline:2px solid var(--navigation-one-text);outline-offset:-3px}
#workspace-navigation .workspace-nav-menu :is(a,button):focus-visible{outline-color:var(--lmf-focus);outline-offset:-2px}
#workspace-navigation #nav-more{display:none}
#workspace-navigation>nav>a.nav-secondary{display:inline-flex}
#more-dialog nav>a,#more-dialog .mobile-menu-actions>button{min-height:44px;font-family:Manrope,"Segoe UI",sans-serif}
#more-dialog nav>a{font-size:var(--ui-fs-row);line-height:1.4;white-space:normal;overflow-wrap:anywhere}
#more-dialog .icon{width:18px;height:18px;stroke-width:1.75}

@media(min-width:1001px){
 #workspace-navigation{position:sticky;top:var(--ui-env-offset)}
 html:has(#workspace-navigation){scroll-padding-top:80px}
}
@media(max-width:1399px){
 #workspace-navigation>nav>a.nav-secondary{display:none}
 #workspace-navigation #nav-more{display:inline-flex}
}
@media(max-width:1320px){
 #workspace-navigation{gap:12px;padding-inline:18px}
 #workspace-navigation .brand,#workspace-navigation .brand img{width:96px;min-width:96px}
 #workspace-navigation>nav>a,#workspace-navigation #browse-toggle,#workspace-navigation #nav-more{gap:7px;padding-inline:9px;font-size:13px}
}
@media(max-width:900px){
 #workspace-navigation{grid-template-columns:minmax(0,1fr) auto;gap:0 12px;min-height:112px;padding:0 16px}
 #workspace-navigation .brand{grid-column:1;grid-row:1;justify-content:flex-start;width:100px;min-width:100px;height:52px}
 #workspace-navigation .brand img{width:100px;min-width:0;height:52px}
 #workspace-navigation .workspace-nav-tools{grid-column:2;grid-row:1;justify-self:end}
 #workspace-navigation .header-language select,#workspace-navigation #account-menu-toggle{min-height:44px;height:44px}
 #workspace-navigation #quick-add{display:none}
 #workspace-navigation>nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;min-height:58px;align-items:stretch}
 #workspace-navigation .browse-navigation{width:100%}
 #workspace-navigation>nav>a,#workspace-navigation #browse-toggle,#workspace-navigation #nav-more{
  width:100%;min-width:0;min-height:58px;height:auto;padding:6px 3px;flex-direction:column;gap:4px;
  font-size:12px;line-height:1.3;white-space:normal;text-align:center;overflow-wrap:normal;word-break:normal;
 }
 #workspace-navigation :is(.sidebar-item-label,.nav-label-full){min-width:0;max-width:100%;white-space:normal;overflow-wrap:normal;word-break:normal}
 #workspace-navigation>nav>a.active::after,#workspace-navigation #browse-toggle.search-parent-current::after,#workspace-navigation #nav-more.active::after{left:10px;right:10px;bottom:0}
 #workspace-navigation>nav>a>.icon,#workspace-navigation #browse-toggle>[data-icon]>.icon,#workspace-navigation #nav-more>.icon{width:19px;height:19px}
 #workspace-navigation #browse-toggle>.nav-chevron{position:absolute;right:6px;top:7px;width:11px;height:11px}
 #workspace-navigation .workspace-nav-menu{top:calc(100% + 5px)}
}
@media(max-width:600px){
 #workspace-navigation{padding-inline:12px}
 #workspace-navigation .brand,#workspace-navigation .brand img{width:92px;min-width:92px}
 #workspace-navigation .workspace-nav-tools{gap:3px}
 #workspace-navigation #account-menu-toggle{width:46px;min-width:46px}
 #workspace-navigation>nav>a,#workspace-navigation #browse-toggle,#workspace-navigation #nav-more{font-size:12px}
 #workspace-navigation #browse-toggle>.nav-chevron{right:2px}
}
@media(max-width:360px){
 #workspace-navigation>nav{gap:0}
 #workspace-navigation>nav>a,#workspace-navigation #browse-toggle,#workspace-navigation #nav-more{padding-inline:0}
}
@media(prefers-reduced-motion:reduce){#workspace-navigation :is(a,button,select),#workspace-navigation .nav-chevron{transition:none}}
@media(forced-colors:active){
 #workspace-navigation,#workspace-navigation .workspace-nav-menu{background:Canvas;color:CanvasText;outline:1px solid CanvasText;box-shadow:none}
 #workspace-navigation .brand img{filter:none}
 #workspace-navigation :is(a,button,select){color:LinkText}
 #workspace-navigation>nav>a.active::after,#workspace-navigation #browse-toggle.search-parent-current::after,#workspace-navigation #nav-more.active::after{background:Highlight}
 #workspace-navigation :is(a,button,select):focus-visible{outline-color:Highlight}
}
/* Overdue and urgent-today count on Today link: calm terracotta pill without jarring white halo */
#workspace-navigation .nav-attention{
 display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:19px;height:19px;padding:0 6px;
 border-radius:999px;background:#b8453e;color:#fff;box-shadow:none;
 font-size:var(--ui-fs-micro);font-weight:600;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;
}
@media(max-width:900px){
 #workspace-navigation>nav>a>.nav-attention{position:absolute;top:4px;left:calc(50% + 7px);min-width:17px;height:17px;padding:0 5px;font-size:var(--ui-fs-micro)}
}
@media(forced-colors:active){#workspace-navigation .nav-attention{forced-color-adjust:none;background:CanvasText;color:Canvas;box-shadow:none}}

/* Workspace account menu */
#workspace-navigation #account-menu.workspace-menu{
 width:272px;gap:0;padding:8px;border:1px solid var(--v31-line);border-radius:12px;box-shadow:var(--v31-sh-pop);
 color:var(--ink);scrollbar-gutter:stable;
}
#workspace-navigation #account-menu.workspace-menu>a,
#workspace-navigation #account-menu.workspace-menu>button{
 position:relative;display:flex;align-items:center;gap:10px;min-height:34px;height:auto;
 margin:0;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:var(--ink);
 font-size:13px;font-weight:400;line-height:1.4;overflow-wrap:anywhere;
}
#workspace-navigation #account-menu.workspace-menu>[hidden]{display:none}
#workspace-navigation #account-menu.workspace-menu>.workspace-menu-group-start{margin-top:8px}
#workspace-navigation #account-menu.workspace-menu>.workspace-menu-group-start::before{
 content:"";position:absolute;top:-5px;left:10px;right:10px;height:1px;background:var(--line);
}
#workspace-navigation #account-menu.workspace-menu :is(a,button):hover{background:var(--v31-surface-2);color:var(--ink)}
#workspace-navigation #account-menu.workspace-menu>a.active{background:var(--mint);color:var(--forest);font-weight:700}
#workspace-navigation #account-menu.workspace-menu .icon{width:17px;height:17px;flex:none;color:var(--v31-text-2)}
#workspace-navigation #account-menu.workspace-menu .account-link-copy{display:contents}
#workspace-navigation #account-menu.workspace-menu [data-account-name]{display:none}
#workspace-navigation #account-menu.workspace-menu [data-workspace-account-label]{font:inherit;color:inherit}
#workspace-navigation #account-menu.workspace-menu>#logout{color:var(--muted)}
#workspace-navigation #account-menu.workspace-menu>#logout .icon{color:inherit}
#workspace-navigation #account-menu.workspace-menu :is(a,button):focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
@media(max-width:900px),(pointer:coarse){
 #workspace-navigation #account-menu.workspace-menu>a,
 #workspace-navigation #account-menu.workspace-menu>button{min-height:44px;padding-block:10px;font-size:15px}
}
@media(forced-colors:active){
 #workspace-navigation #account-menu.workspace-menu,
 #workspace-navigation #account-menu.workspace-menu :is(a,button),
 #workspace-navigation #account-menu.workspace-menu .icon{background:Canvas;color:CanvasText}
 #workspace-navigation #account-menu.workspace-menu>.workspace-menu-group-start::before{background:CanvasText}
 #workspace-navigation #account-menu.workspace-menu :is(a,button):focus-visible{outline-color:Highlight}
}
}

/* /forest/lmf-tokens.css */
@layer tokens{
/* LMF control family: tokens (B4 P2, from lanes/B4-UNIFY/proposal/src/family.css, proposal version 3, approved by Janis 21 Nov 2026).
   The one place in the family for a colour value: lmf-controls.css, lmf-menu.css and lmf-page-*.css read only these tokens.
   Names: family.css's custom properties with the prefix --ui- (no clash with any legacy name; FACTS.md item 49). Where family.css
   wrote ".lmf" this sheet writes ":root"; ".lmf.phone" becomes the touch media query below. The raw colours family.css wrote
   inside its rules and the page values of page.css (dark bar, stone surfaces, table rows, dialog) are tokens here too.
   The legacy palette block in workspace-v31-shell.css is not edited; family.test.cjs asserts the shared values are equal. */
:root{
  --ui-f:Manrope,"Segoe UI",system-ui,sans-serif;
  /* sizes: S inside rows, cards, cells, popovers; M default; L page main action and dialog footer */
  --ui-h-s:26px;--ui-h-m:30px;--ui-h-l:34px;
  --ui-h-xs:24px;--ui-h-xl:64px;                                        /* B4 OF2: only for an icon inside a tag (the cross of a chosen filter) */
  --ui-r:7px;--ui-r-in:5px;
  /* B4 OF2 (decisions 195, 196: one family, "Viena kapsula"): everything you press or type into has round ends. A control's corner
     is its own token; --ui-r stays 7 for what is not a control (cards, plates, a row's icon plate, menu rows). A text area's corner
     is 16: a capsule of that height would eat its first and last line. A tab track's corner is half the height of one line of tabs,
     so a track that wraps to two lines keeps a calm corner */
  --ui-r-ctl:999px;--ui-r-field:999px;--ui-r-ta:16px;--ui-r-seg:15px;
  --ui-px-s:12px;--ui-px-m:14px;--ui-px-l:17px;          /* button, tab and dropdown side padding = 0.47 x height: a round end holds less than a square one */
  --ui-px-in-s:11px;--ui-px-in-m:14px;                   /* text fields: the same room at a round end */
  --ui-fs-s:12px;--ui-fs-m:13px;--ui-fs-l:14px;--ui-fs-field:13px;--ui-fs-label:12px;
  --ui-fw:620;--ui-ls:.004em;                            /* one weight and one tracking for every label */
  --ui-fw-sel:540;                                       /* a dropdown shows a value, not an act: lighter than a button word */
  --ui-ic:14px;--ui-box:18px;--ui-hit:0px;--ui-gap:8px;
  /* palette: stone, pine = forest, ochre = deals, slate = people, terracotta = late and refusal. Zero blue. */
  --ui-canvas:#f6f5f0;--ui-surface:#fff;--ui-stone-2:#eeede6;--ui-stone-3:#e9e8e0;--ui-line:#e0dfd7;--ui-line-2:#c8c7be;
  --ui-ink:#1c2420;--ui-ink-2:#525b56;--ui-muted:#5c6560;
  --ui-pine:#24543d;--ui-pine-tint:#e2ede5;--ui-pine-soft:#f1f6f2;
  --ui-ochre:#8f5718;--ui-ochre-ink:#6e410d;--ui-ochre-tint:#f5e7d0;--ui-ochre-soft:#fbf6ee;--ui-ochre-line:#e4d1b1;
  --ui-slate:#485354;--ui-slate-ink:#333e40;--ui-slate-tint:#e7ebeb;
  --ui-clay:#a33832;--ui-clay-tint:#f9e5e3;--ui-clay-line:#ecc8c4;
  --ui-warn-ink:#7a4d00;--ui-warn-tint:#fcefd3;
  /* NX B4 (Pārskats month chart): two series, money in (pine) and money out (ochre), one step brighter than the inks so a thin bar
     still reads as its hue. dataviz validator on #fff: lightness band, chroma >= 0.10, colour-blind separation dE >= 8 and
     contrast >= 3:1 all pass. For a dark theme the validated pair is #34a877 / #c28636 on #1c2420 (LMF has no dark theme today) */
  --ui-chart-in:#12784e;--ui-chart-out:#c1802e;
  --ui-on-fill:#fff;                                     /* words and icons on a filled button */
  /* B4 IF1 (decision 233, Janis 26 Nov 2026: "same color as rest, same as details and map button next to it"): the info button is
     painted as the tool button (the values of --ui-tl-*, copied so the contrast gate still measures them), with the tool's icon ink
     for the letter «i». The letter on the face 6.2 : 1 or more; the edge is the tool's own, lighter than the sage disc's was */
  --ui-info-bg:linear-gradient(180deg,#ffffff 0%,#f7f6f1 52%,#ecebe3 100%);
  --ui-info-bg-h:linear-gradient(180deg,#ffffff 0%,#f1f0e9 52%,#e4e3da 100%);
  --ui-info-bg-p:#e5e3d9;--ui-info-line:#a9b7af;--ui-info-line-h:#84938b;--ui-info-ink:#45524b;
  --ui-info-sh:inset 0 1px 0 rgba(255,255,255,.8),inset 0 0 0 1px rgba(255,255,255,.34),0 1px 1.5px rgba(28,36,32,.10);
  --ui-info-sh-h:inset 0 1px 0 rgba(255,255,255,.8),inset 0 0 0 1px rgba(255,255,255,.34),0 1px 2px rgba(28,36,32,.12),0 2px 5px -2px rgba(28,36,32,.16);
  --ui-info-sh-p:inset 0 1px 2px rgba(28,36,32,.18);
  --ui-info-i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12.2' cy='6.1' r='2.3'/%3E%3Cpath d='M8.8 9.6h5v7.9h1.8v2.2H8.5v-2.2h2v-5.7H8.8z'/%3E%3C/svg%3E");
  /* raised (press). B4 OF2 (decision 196, finish "Satīns"): satin, never gloss. A soft fall of light in three steps, a darker bottom
     edge, a light lip at the top and a small soft drop (the tool and the two fills also carry a fine light rim just inside the edge; the white button's shadows keep exactly the three layers they had before, because a depth setting saved in the design library stores whole layers and must still fit rest, hover and pressed); hover lifts a hair (a second, wider drop), press sinks. No
     sheen band, no glare stripe. The edge is one step firmer than before (the bottom edge 2.9 : 1 on the page): on a round end the
     edge alone draws the shape */
  --ui-raise-bg:linear-gradient(180deg,#fff 0%,#f7f6f1 52%,#ecebe3 100%);
  --ui-raise-bg-h:linear-gradient(180deg,#fff 0%,#f1f0e9 52%,#e4e3da 100%);
  --ui-raise-bg-p:#e5e3d9;
  --ui-raise-line:#adb4aa;--ui-raise-line-b:#8f988d;--ui-raise-line-h:#868f84;
  --ui-raise-sh:inset 0 1px 0 #fff,0 1px 0 rgba(28,36,32,.05),0 1px 3px rgba(28,36,32,.13);
  --ui-raise-sh-h:inset 0 1px 0 #fff,0 1px 0 rgba(28,36,32,.06),0 2px 5px -1px rgba(28,36,32,.19);
  --ui-raise-sh-p:inset 0 1px 2px rgba(28,36,32,.18);
  /* B4 OF2: the two marks in a button's silhouette. Adding: the plus stands in a small green coin at the capsule's end. The deal's
     step: an arrow in a darker coin at its far end ("forward"). White on the coin 8.7 : 1; the arrow on the timber coin 9 : 1 or more */
  --ui-coin-bg:var(--ui-pine);--ui-coin-sh:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(8,26,16,.32);
  --ui-deal-coin:rgba(40,22,2,.30);--ui-deal-coin-sh:inset 0 1px 2px rgba(40,22,2,.45),0 1px 0 rgba(255,255,255,.14);
  --ui-go:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8h9M8.8 4.2 12.6 8l-3.8 3.8'/%3E%3C/svg%3E");
  /* type scale (B4 DS4, decision 168 Q5): nine roles, seven sizes on a PC (11 12 13 14 16 18 22), six on touch (12 13 15 16 18 20);
     weights 400 reading, 540 a value in a field, 620 labels, data and names, 700 titles, 750 the score; 600 only for micro.
     Every text on the site takes one of these roles; there is no size outside them (print sheets aside). */
  --ui-t-page:700 22px/1.2 var(--ui-f);--ui-t-win:700 18px/1.2 var(--ui-f);--ui-t-step:700 16px/1.25 var(--ui-f);
  --ui-t-head:620 12px/1.3 var(--ui-f);--ui-t-body:400 13px/1.4 var(--ui-f);--ui-t-data:620 13px/1.4 var(--ui-f);--ui-t-meta:400 12px/1.35 var(--ui-f);
  /* B4 DS0 (decision 168, plan-design-system PLAN.md 2.6, 2.10): the two roles the scale lacked. row: the name on a row or card.
     micro: the floor (a count in a well, a table head's second line, a map credit); nothing smaller */
  --ui-t-row:620 14px/1.3 var(--ui-f);--ui-t-micro:600 11px/1.3 var(--ui-f);
  --ui-fs-micro:11px;--ui-fs-row:14px;   /* B4 DS4: two roles' sizes alone: micro (a count in a well, a unit after digits), row (a name set by size only) */
  --ui-fs-micro:11px;--ui-fs-row:14px;   /* B4 DS4: two roles' sizes alone: micro (a count in a well, a unit after digits), row (a name set by size only) */
  --ui-fs-micro:11px;--ui-fs-row:14px;   /* B4 DS4: two roles' sizes alone: micro (a count in a well, a unit after digits), row (a name set by size only) */
  --ui-fs-micro:11px;--ui-fs-row:14px;   /* B4 DS4: two roles' sizes alone: micro (a count in a well, a unit after digits), row (a name set by size only) */
  /* B4 DS0: corners by name: plate (mark, badge, well, tab thumb), --ui-r (control), card (card, panel, choice tile), --ui-dlg-r (window).
     Space 4 8 12 16 24 32. gut: a page's side gutter; gut-in: inside a panel, a window column, a card with rows.
     card-sh: the only drop a card may carry, and only on stone (a board column) */
  --ui-r-plate:var(--ui-r-in);--ui-r-card:var(--ui-r-pop);
  --ui-sp-1:4px;--ui-sp-2:8px;--ui-sp-3:12px;--ui-sp-4:16px;--ui-sp-5:24px;--ui-sp-6:32px;
  --ui-gut:28px;--ui-gut-in:16px;--ui-card-sh:0 1px 2px rgba(28,36,32,.05);
  /* letterpress edge: on a light surface a 1 px white edge under the letters and icons; "on" and "set" carry a softer one */
  --ui-edge:0 1px 0 rgba(255,255,255,.9);--ui-edge-ic:drop-shadow(0 1px 0 rgba(255,255,255,.85));--ui-edge-on:0 1px 0 rgba(255,255,255,.6);
  /* number well inside a button or tab */
  --ui-well-bg:rgba(28,36,32,.065);--ui-well-sh:inset 0 1px 1px rgba(28,36,32,.14),0 1px 0 rgba(255,255,255,.8);
  /* quiet: an ink wash instead of a box */
  --ui-wash:rgba(28,36,32,.06);--ui-wash-open:rgba(28,36,32,.08);--ui-wash-p:rgba(28,36,32,.11);--ui-wash-p-sh:inset 0 1px 2px rgba(28,36,32,.10);
  /* destructive: terracotta words on a raised button; filled only on the confirm step */
  --ui-dng-bg-h:linear-gradient(180deg,#fff 0%,#fbefed 100%);--ui-dng-line-h:#d9a19b;
  --ui-dng-bg:linear-gradient(180deg,#b3423b 0%,#96312b 100%);--ui-dng-line:#822924;--ui-dng-line-b:#6d211d;
  --ui-dng-sh:inset 0 1px 0 rgba(255,255,255,.18),0 1px 2px rgba(102,28,24,.26);
  --ui-dng-edge:0 -1px 0 rgba(70,16,12,.42);--ui-dng-edge-ic:drop-shadow(0 -1px 0 rgba(70,16,12,.42));
  --ui-dng-fill-h:linear-gradient(180deg,#a63a33 0%,#892b26 100%);--ui-dng-fill-p:#7d2621;--ui-dng-sh-p:inset 0 1px 3px rgba(70,16,12,.42);   /* the filled confirm, hovered and pressed */
  /* segmented tabs: sunk track, raised thumb */
  --ui-track-sh:inset 0 1px 2px rgba(28,36,32,.13),inset 0 0 0 1px rgba(28,36,32,.06);
  --ui-rng-sh:inset 0 2.5px 2.5px -1px rgba(28,36,32,.13);   /* B4 OF2: the dash between No and Līdz lies in the field's own sunk surface */
  --ui-float-sh:0 6px 16px -4px rgba(28,36,32,.34);   /* B4 OF2: under a button that floats over a picture or a video */
  --ui-track-bg:#eeede6;                                 /* B4 BT1 (decision 222): the track is warm stone, sunk, no grey-green; words on it 6.0 : 1 */
  --ui-track-hover:rgba(255,255,255,.55);
  --ui-thumb-sh:inset 0 1px 0 #fff,0 1px 2px rgba(28,36,32,.14),0 0 0 1px rgba(28,36,32,.07);
  /* sunk (type) */
  /* B4 DS0 (decision 168): a field is known by its edge alone, so the edge reaches 3:1 (WCAG 1.4.11) on every ground a field lies on:
     3.77 on white, 3.45 on the canvas, 3.07 on the darkest stone (it was 1.86 on white). The tick box's rim (--ui-cke-line) has the
     same two values. Hover is one step darker: 4.73, 4.33, 3.85 */
  --ui-selection:#cfe3d5;--ui-scroll:#c8c7be;   /* B4 DS2: the parts the browser draws: text selection, scrollbars (PLAN.md 2.5 rule 15) */
  --ui-sink-bg:#fff;--ui-sink-line:#80857d;--ui-sink-line-t:#787d75;--ui-sink-line-h:#6f756d;
  --ui-sink-sh:inset 0 1.5px 2.5px rgba(28,36,32,.13);--ui-sink-sh-f:inset 0 1px 2px rgba(28,36,32,.05);   /* B4 OF2: sunk a little deeper, so a white field never reads as a white button */
  --ui-sink-error:inset 0 1px 2px rgba(28,36,32,.05),0 0 0 3px rgba(163,56,50,.18);
  /* tick box and radio */
  --ui-box-bg:#fff;--ui-box-line:#8f948c;--ui-box-line-t:#7f857c;--ui-box-sh:inset 0 1px 2px rgba(28,36,32,.12);
  --ui-box-on-sh:inset 0 1px 0 rgba(255,255,255,.22),0 1px 1px rgba(28,36,32,.22);--ui-box-dot:#fff;
  /* B4 TD3: the engraved tick box (.ck--engraved): a pressed-in round mark, its rim, its lip, and its pressed fill */
  --ui-cke-bg:#f3f1eb;--ui-cke-line:#80857d;--ui-cke-line-t:#787d75;   /* B4 CB1: the rim at 3:1 or more on the card, canvas, stone and its own ground */
  
  --ui-cke-sh:inset 0 1.5px 2.5px rgba(28,36,32,.16),inset 0 -1px 0 rgba(255,255,255,.7),0 1px 0 rgba(255,255,255,.95);
  --ui-cke-on-sh:inset 0 1px 2px rgba(0,0,0,.24),0 1px 0 rgba(255,255,255,.95);
  --ui-cke-off-sh:inset 0 1px 1.5px rgba(28,36,32,.08);--ui-cke-offon-sh:inset 0 1px 1.5px rgba(0,0,0,.14);
  /* B4 CB1 (decision 147): every tick box takes the engraved look. Task rows: the round 20 px mark (.ck--engraved); compact lists
     (column choices, filters, settings, forms): the same engraving at the family box size, a soft square so a many-of-many tick
     never reads as a radio; the tick settles in at this share of the box */
  --ui-ck-r:7px;--ui-ck-tick:66%;   /* B4 OF2 (decision 196): a soft square, corner 7 on 18 px; never round, so it is never taken for a radio button */
  --ui-ck-dash:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4.2 8h7.6'/%3E%3C/svg%3E");
  /* over a map. PM1 (decision 45, Janis 22 Nov 2026: controls covering a map are slightly see-through), made 50 percent by MB1
     (decision 106, Janis 22 Nov 2026: "50% see-through so the map shows through") and a 78 percent plate by DS3 (decision 168,
     24 Nov 2026: on real tiles road and place names mixed with a button's word at 50): the surface of a button on a map's canvas is
     that plate, its edge is see-through too; the icon and the words stay crisp: ink, with a thin white halo that keeps every letter on
     a light ground whatever the photo under it. Solid on hover, keyboard focus and press. A reading variant (86 percent) stays for
     legends, hints, status lines and credits (read, not pressed). No backdrop blur: in Chrome any backdrop-filter in the page turns
     the whole page's text from LCD to greyscale smoothing (PM1 tour compare), so the glass is plain translucency.
     B4 MH1 (decision 184, Janis 24 Nov 2026: "about 60 % visible, 40 % transparent"): the plate is 60 percent (62 to 58 down the
     button), and the halo is one step firmer (a third, wider ring) so a road or place name under the plate does not run into a word.
     Contrast of the ink on the bare plate (before the halo): 4.6 over pure black at its thinnest, 5.7 over a dark forest photo (#1e2a1a), 14.6 over white; reading text 5.1 over black
     (map-glass.test.cjs and mb1-map-line.test.cjs recompute them). */
  --ui-map-glass:linear-gradient(180deg,rgba(255,255,255,.62) 0%,rgba(240,239,232,.58) 100%);
  --ui-map-glass-h:linear-gradient(180deg,rgba(255,255,255,1) 0%,rgba(232,231,222,1) 100%);
  --ui-map-glass-line:rgba(28,36,32,.20);--ui-map-glass-line-b:rgba(28,36,32,.28);
  --ui-map-glass-halo:0 0 1px rgba(255,255,255,1),0 0 2px rgba(255,255,255,.95),0 0 4px rgba(255,255,255,.85);
  --ui-map-glass-ic:drop-shadow(0 0 1px rgba(255,255,255,1)) drop-shadow(0 0 2px rgba(255,255,255,.9));
  --ui-map-glass-read:rgba(255,255,255,.86);
  /* B4 MH1 (decision 184, Sol's review): the "on" state over a map (open "Slāņi", shown "Numuri") is glass too: the forest on-tint
     (--ui-on-bg's two stops) at 60 percent, its words and icon in a darker pine with the white halo. The pine is the lightest that keeps
     4.5:1 on the bare plate: 4.64 over pure black, 5.6 over a dark forest photo, 15.5 over white (the area's own ink, #24543d, had 2.5 at
     60 percent). Map tools always carry the forest area (lmf-page-map.css), so the values are the forest set. */
  --ui-map-on-glass:linear-gradient(180deg,rgba(217,231,221,.62) 0%,rgba(228,238,231,.58) 100%);
  --ui-map-on-ink:#0e2419;
  /* B4 DS3 (Sol): keyboard focus over a map is two rings, white inside and ink outside, so one of them is 3:1 or more against any
     tile (4.0 at the worst grey; 15.9 against each other). The area's green alone was 1.05 over a dark aerial photo. */
  --ui-map-focus:var(--ui-ink);--ui-map-focus-in:0 0 0 2px var(--ui-surface);
  --ui-over-sh:inset 0 1px 0 #fff,0 1px 2px rgba(28,36,32,.16),0 3px 8px -2px rgba(28,36,32,.24);
  --ui-map-line:rgba(28,36,32,.26);--ui-map-line-b:rgba(28,36,32,.36);--ui-map-on-drop:0 1px 2px rgba(28,36,32,.16);
  /* disabled: flat */
  --ui-off-bg:#f1f0ea;--ui-off-line:#dcdbd3;--ui-off-ink:#666e69;
  /* popover and menu panel (the dropdown's opened list and every action menu, decision 22) */
  --ui-pop-bg:#fff;--ui-r-pop:10px;--ui-pop-sh:0 10px 24px -6px rgba(28,36,32,.18),0 2px 6px -1px rgba(28,36,32,.08);
  --ui-t:.13s cubic-bezier(.16,1,.3,1);
  --ui-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23525b56' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10.7 6 6 6-6' stroke='%23fff' stroke-opacity='.85'/%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --ui-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.4 8.4 6.6 11.4 12.6 4.8'/%3E%3C/svg%3E");

  /* ---- page values (proposal/src/page.css), for the page packages ---- */
  /* top bar: B4 NAV2 (decisions 204-206, option B Patina, replaces decision 21's dark neutral): weathered bronze-green, 66 px on a PC with the
     group names above the pages, a brass hairline on its edge and a brass line under the current page (plan-nav/src/options.css "B PATINA").
     --ui-bar-bg is the patina's solid middle (pictures of the bar, anything that needs one colour); --ui-bar-patina is the bar's own fill */
  --ui-bar-bg:#2b4a40;--ui-bar-h:66px;--ui-bar-ink:#c9d9cf;--ui-bar-ink-on:#fbfaf2;--ui-bar-brand:#e8ebe7;--ui-bar-badge:#a33832;
  --ui-bar-patina:radial-gradient(70% 140% at 12% 0%,rgba(140,190,160,.16),transparent 60%),radial-gradient(60% 160% at 88% 120%,rgba(193,208,103,.08),transparent 60%),linear-gradient(180deg,#2f4f45 0%,#26443b 100%);
  --ui-bar-hair:rgba(201,212,122,.32);--ui-bar-brass:#c9d47a;--ui-bar-brass-2:#e4ebad;--ui-bar-group:#cbded2;
  --ui-bar-count:#dfe5a8;--ui-bar-late:#eb9a89;--ui-bar-pop:#26443b;--ui-bar-pop-ink:#e6eee8;--ui-bar-pop-line:rgba(201,212,122,.3);
  --ui-bar-pop-h:rgba(201,212,122,.12);--ui-sheet-group:#5c6c4f;--ui-sheet-on:#eef1dc;--ui-sheet-count:#5d6a1f;
  /* controls on the dark bar (language, account, size S): a faint light wash instead of the raised light surface; P4 may tune */
  --ui-bar-ctl-bg-h:rgba(255,255,255,.12);--ui-bar-ctl-bg-p:rgba(255,255,255,.18);
  --ui-bar-ctl-ink:#e8ebe7;--ui-bar-focus:#c1d067;
  /* B4 VP2 (decisions 234, 237): the Video page's player on the patina: the time bar's track and loaded part, its brass thumb's shadow,
     and the captions LMF draws (ivory on a soft ink plate, 9.0 : 1 even over a white picture; the word being said in --ui-bar-brass, 5.9 : 1 there) */
  --ui-vid-track:rgba(251,250,242,.22);--ui-vid-buffer:rgba(251,250,242,.38);--ui-vid-thumb-sh:0 1px 3px rgba(8,26,16,.5);
  --ui-vid-cap-bg:rgba(16,26,21,.8);--ui-vid-cap-ink:var(--ui-bar-ink-on);
  --ui-fs-vcap:18px;--ui-fs-vcap-full:22px;   /* the captions' size in the player and in full screen (touch: 16 px, below) */
  /* P4: the bar's two type sizes as drawn (page.css .nav a 14 px, .brand 11 px); the tools use --ui-fs-m like any control */
  --ui-fs-bar:14px;
  --ui-bar-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c5ccc7' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  /* the stone alternative bar and stone surfaces: window column, table head, past day; dialog footer; hairlines on stone */
  --ui-stone-col:#f1f0ea;--ui-stone-foot:#faf9f5;--ui-hair-stone:#d9d7cd;
  /* tables: 28 px rows, 48 px two-line rows, 40 px on touch */
  --ui-row-h:28px;--ui-row-h-2:48px;--ui-th-bg:#f1f0ea;--ui-td-line:#ecebe4;--ui-ico-mute:#8b928c;
  /* dialogs and sheets */
  --ui-dlg-r:14px;--ui-sheet-r:16px;--ui-dlg-bg:#fff;
  --ui-dlg-sh:0 16px 36px -8px rgba(28,36,32,.3),0 4px 12px -2px rgba(28,36,32,.12);
  /* the property score: the strongest figure in a row, card or header (decision 19) */
  --ui-t-score:750 14px/1.2 var(--ui-f);--ui-fs-score-lead:20px;
  /* B4 DM1 (decision 156): the date mark (.dm), an engraved plate in the tick box's family. Colour lives only in its dot and words:
     terracotta words and a solid dot when late, timber words and a half dot today, grey otherwise. Contrast on the plate: words
     6.2 / 6.4 / 7.7 / 5.3, dots 5.9 / 4.0 (plan-dates PLAN.md). */
  --ui-dm-h:18px;--ui-fs-dm:12px;--ui-dm-px:6px;--ui-dm-r:5px;--ui-dm-gap:5px;--ui-dm-dot:8px;--ui-dm-ic:11px;
  --ui-dm-bg:#f3f1eb;--ui-dm-line:#d3d1c7;--ui-dm-line-t:#c6c4ba;
  --ui-dm-sh:inset 0 1px 1.5px rgba(28,36,32,.09),0 1px 0 rgba(255,255,255,.95);
  --ui-dm-ink:#525b56;--ui-dm-mute:#5c6560;
  --ui-dm-late:#9a332d;--ui-dm-late-dot:#a33832;
  --ui-dm-now:#6e410d;--ui-dm-now-dot:#a9661a;
  --ui-dm-dot-sh:inset 0 1px 1px rgba(0,0,0,.22),0 1px 0 rgba(255,255,255,.9);
  --ui-dm-bar-bg:rgba(255,255,255,.55);   /* the mark at a planner bar's end: a lighter plate on the bar's own colour */
  /* B4 PL2 (decision 221, "Patina"): the satin card and its column, the ribbon, the sorting sidebar, the scrim, the brass line */
  --ui-rx:0deg;--ui-ry:0deg;   /* a satin card's lean, set per card by LMFUI.lean */
  --ui-sat-card-bg:linear-gradient(180deg,#fff 0%,#faf9f5 100%);
  --ui-sat-card-sh:inset 0 1px 0 #fff,0 1px 2px rgba(28,36,32,.07);
  --ui-sat-card-sh-h:inset 0 1px 0 #fff,0 8px 18px -8px rgba(28,36,32,.3);
  --ui-sat-lift-sh:0 12px 20px -10px rgba(28,36,32,.4);
  --ui-sat-drop-sh:inset 0 0 0 1px var(--ui-pine),0 12px 26px -14px rgba(36,84,61,.45);
  --ui-sat-tray:rgba(28,36,32,.035);--ui-sat-tray-line:rgba(28,36,32,.045);
  --ui-rib-sh:inset 0 1px 0 rgba(255,255,255,.7),0 1px 2px rgba(28,36,32,.14);
  --ui-rib-sh-h:inset 0 1px 0 rgba(255,255,255,.7),0 5px 12px -5px rgba(28,36,32,.35);
  --ui-tri-sh:inset -1px 0 0 var(--ui-bar-hair),8px 0 20px -14px rgba(28,36,32,.4);   /* the hairline turns the corner; the shadow falls inward */
  --ui-tri-card-sh:0 1px 0 rgba(255,255,255,.06),0 3px 8px -3px rgba(0,0,0,.35);
  --ui-tri-pan-sh:16px 0 32px -16px rgba(28,36,32,.4);
  --ui-tri-scroll:rgba(255,255,255,.25);
  --ui-scrim:rgba(28,36,32,.22);
  --ui-fab-sh:inset 0 1px 0 rgba(255,255,255,.12),0 12px 26px -8px rgba(28,36,32,.5);
  --ui-bar-side:linear-gradient(180deg,#26443b 0%,#24413a 40%,#223d36 100%);   /* the top bar's patina continued down the left edge (decision 226) */
  --ui-bar-side-up:linear-gradient(0deg,#26443b 0%,#284740 100%);              /* the phone's sheet, rising from the bottom bar */
  --ui-pr-high:#6e410d;--ui-pr-low:#8a6f52;--ui-pr-low-ink:#5e5347;   /* B4 PL2 priority: timber up; a muted warm ink down (decision 222: no grey) */
  --ui-brass-line:linear-gradient(90deg,transparent,#c9d47a 20%,#c9d47a 80%,transparent);
  /* NX N0: the "not live" bar above the top bar (lmf-environment.js): terracotta = refusal, a faint diagonal hatch so it never
     reads as an ordinary notice; on the lighter hatch stripe the name is 5.5:1 and the line 4.8:1 (6.3:1 and 5.5:1 between) */
  /* --ui-env-offset (Sol UI review 2, 3): how far the strip pushes down everything pinned to the top of the window. 0 on live (no
     strip). Every fixed or sticky top offset in next/web adds it (lmf-page-env.css lists them); lmf-environment.js writes the
     strip's measured height while it is shown (two lines on a phone) */
  --ui-env-offset:0px;
  --ui-env-h:28px;--ui-env-bg:#a33832;--ui-env-ink:#fff8f6;--ui-env-ink-2:#fbe6e3;--ui-env-rule:#7e2722;
  --ui-env-hatch:repeating-linear-gradient(135deg,rgba(255,255,255,.07) 0 8px,transparent 8px 16px);
  /* D1 Skatīt kā: the red "viewing as" bar under the strip (lmf-see-as.js); a deeper, solid red so it never reads as the copy's
     strip; the name 10:1, the line 8:1 on it. Counted in --ui-env-offset (lmf-environment.js measures both) */
  --ui-seeas-h:32px;--ui-seeas-bg:#7d1a2b;--ui-seeas-ink:#fff5f6;--ui-seeas-ink-2:#f7d9de;--ui-seeas-hover:#8f3a49;
  --ui-env-strip-h:0px;   /* the strip alone (lmf-environment.js writes it while shown): where the see-as bar sticks */
}
/* touch (phone and tablet). B4 OF2 1c (decision 198, Janis: "on mobile the button size is way too large, most of the screen is taken
   up by buttons ... just large enough to see and easily click; no massive buttons"): the compact phone scale.
     drawn        buttons 32 / 34 / 36 (S in content, M the default, L where you decide: a window's foot, the deal's step), their
                  words 13 / 14; fields and dropdowns 36 with 16 px text in a field (below 16 px iOS zooms the page when a field
                  takes the focus), 14 px in a dropdown button; a tag's cross 28; side padding 12 / 13 / 15
     answers on   40 px (--ui-hit): a button's invisible box reaches 3 px past its edge, so with the family's 8 px between controls
                  two boxes never meet (the DS2 lesson: no overlapping invisible targets). A field answers on its own 36 px.
   Why these: WCAG 2.2 asks 24 x 24 CSS px (2.5.8, AA) and 44 only at AAA (2.5.5); Apple's guideline is 44 pt and Material's 48 dp
   with 8 dp between targets, both as defaults, and Material's own dense button is drawn 32 dp. 34 px drawn on a 40 px target with
   8 px between is above the AA floor, a little under the two platform defaults, and a fifth less screen than the 40 / 44 before.
   Rows of a list (.rowb) keep 44 px: a row is a whole line, not a button beside another. */
@media (max-width:700px),(pointer:coarse){
  :root{
    --ui-h-s:32px;--ui-h-m:34px;--ui-h-l:36px;--ui-h-xs:28px;--ui-h-xl:56px;--ui-h-field:36px;--ui-r:8px;--ui-r-in:6px;--ui-r-seg:20px;
    --ui-px-s:12px;--ui-px-m:13px;--ui-px-l:15px;--ui-px-in-s:12px;--ui-px-in-m:13px;
    --ui-fs-s:13px;--ui-fs-m:14px;--ui-fs-l:14px;--ui-fs-field:16px;--ui-fs-label:13px;
    --ui-ic:15px;--ui-box:20px;--ui-hit:40px;
    --ui-t-page:700 20px/1.2 var(--ui-f);--ui-t-step:700 18px/1.25 var(--ui-f);--ui-t-head:620 13px/1.3 var(--ui-f);--ui-t-body:400 15px/1.4 var(--ui-f);--ui-t-data:620 15px/1.4 var(--ui-f);--ui-t-meta:400 13px/1.35 var(--ui-f);
    --ui-row-h:40px;
    --ui-t-row:620 16px/1.3 var(--ui-f);--ui-t-micro:600 12px/1.3 var(--ui-f);--ui-fs-micro:12px;--ui-fs-row:16px;--ui-fs-micro:12px;--ui-fs-row:16px;--ui-fs-micro:12px;--ui-fs-row:16px;--ui-fs-micro:12px;--ui-fs-row:16px;--ui-gut:16px;--ui-r-card:12px;   /* B4 DS0 */
    --ui-fs-vcap:16px;   /* B4 VP2: captions on a phone */
    --ui-dm-h:22px;--ui-fs-dm:13px;--ui-dm-px:8px;--ui-dm-dot:9px;--ui-dm-ic:12px;
  }
}

/* ---- the main button: one colour on every page (B4 DS3, decision 168; for this button it replaces decision 5) ----------------
   Pine green, declared once, so no area changes it. The one named exception: the deal's own step (.b.pri.deal, LMFUI.btn kind
   'deal') is timber wherever a deal is shown. B4 OF2 (decision 196): the satin finish, three steps of light and a fine inner rim.
   White words on the fill, rest state, top to bottom of the gradient: pine 4.95 to 8.4, timber 5.03 to 8.0 (4.5 needed); hover and
   pressed are darker, so higher. Disabled words 5.0 and 5.5. */
:root{
  --ui-pri-bg:linear-gradient(180deg,#3f7c59 0%,#306647 52%,#28563b 100%);
  --ui-pri-bg-h:linear-gradient(180deg,#397250 0%,#2b5c40 52%,#234d35 100%);
  --ui-pri-bg-p:#224a33;--ui-pri-line:#1f4731;--ui-pri-line-h:#173a27;
  --ui-pri-sh:inset 0 1px 0 rgba(255,255,255,.30),inset 0 0 0 1px rgba(255,255,255,.08),inset 0 -1px 0 rgba(8,26,16,.34),0 1px 2px rgba(22,52,36,.30);
  --ui-pri-sh-h:inset 0 1px 0 rgba(255,255,255,.30),inset 0 0 0 1px rgba(255,255,255,.08),inset 0 -1px 0 rgba(8,26,16,.34),0 1px 2px rgba(22,52,36,.32),0 3px 7px -3px rgba(22,52,36,.40);
  --ui-pri-sh-p:inset 0 1px 3px rgba(8,26,16,.40);
  --ui-pri-edge:0 -1px 0 rgba(10,28,18,.42);--ui-pri-edge-ic:drop-shadow(0 -1px 0 rgba(10,28,18,.42));
  --ui-pri-well-bg:rgba(8,26,16,.26);--ui-pri-well-sh:inset 0 1px 1px rgba(8,26,16,.40),0 1px 0 rgba(255,255,255,.12);
  --ui-off-pri-bg:#d4dfd7;--ui-off-pri-line:#c4d0c7;--ui-off-pri-ink:#46604f;
}
.b.pri.deal{
  --ui-pri-bg:linear-gradient(180deg,#9c621d 0%,#87520f 52%,#74460c 100%);
  --ui-pri-bg-h:linear-gradient(180deg,#905a19 0%,#7b4a0d 52%,#693f0a 100%);
  --ui-pri-bg-p:#6f420b;--ui-pri-line:#5f3909;--ui-pri-line-h:#4d2e06;
  --ui-pri-sh:inset 0 1px 0 rgba(255,255,255,.30),inset 0 0 0 1px rgba(255,255,255,.08),inset 0 -1px 0 rgba(50,28,4,.34),0 1px 2px rgba(80,46,8,.30);
  --ui-pri-sh-h:inset 0 1px 0 rgba(255,255,255,.30),inset 0 0 0 1px rgba(255,255,255,.08),inset 0 -1px 0 rgba(50,28,4,.34),0 1px 2px rgba(80,46,8,.32),0 3px 7px -3px rgba(80,46,8,.40);
  --ui-pri-sh-p:inset 0 1px 3px rgba(40,22,2,.42);
  --ui-pri-edge:0 -1px 0 rgba(50,28,4,.42);--ui-pri-edge-ic:drop-shadow(0 -1px 0 rgba(50,28,4,.42));
  --ui-pri-well-bg:rgba(40,22,2,.26);--ui-pri-well-sh:inset 0 1px 1px rgba(40,22,2,.40),0 1px 0 rgba(255,255,255,.14);
  --ui-off-pri-bg:#eadfcc;--ui-off-pri-line:#dccdb3;--ui-off-pri-ink:#6b532d;
}

/* ---- area: the one token set that changes by where you are (decision 5) --------------------------------------------------
   lmf-ui.js sets data-area on <html> from the route; a dialog, sheet, map or card of another area sets its own.
   Everything that tells where you are or what is chosen reads these: "on", focus ring and halo, ticks, the active tab, links,
   the active mark on the dark bar.
     forest (default) = pine          Pārlūks, Meža dati, Izbraukumi, maps, sign-in, account
     deals            = timber ochre  Darījumi, the Darījums tab, "Kas notika?", Šodien, Plānotājs
     people           = mineral slate Kontakti, the contact window, Cilvēki, Partneri */
:root,[data-area="forest"]{
  --ui-a:#24543d;--ui-a-ink:#24543d;--ui-a-soft:#f1f6f2;--ui-a-line:#c3d8ca;
  --ui-lk:#24543d;--ui-lk-line:transparent;--ui-a-mark:#8fc3a1;
  --ui-on-bg:linear-gradient(180deg,#d9e7dd 0%,#e4eee7 100%);--ui-on-line:#9dbda8;--ui-on-sh:inset 0 1px 2px rgba(22,52,36,.16);--ui-ck-off:#c4d0c7;
  --ui-halo:0 0 0 3px rgba(36,84,61,.20);
}
[data-area="deals"]{
  --ui-a:#8f5718;--ui-a-ink:#6e410d;--ui-a-soft:#fbf6ee;--ui-a-line:#e4d1b1;
  --ui-lk:#1c2420;--ui-lk-line:rgba(28,36,32,.42);--ui-a-mark:#dba75f;
  --ui-on-bg:linear-gradient(180deg,#efdcbd 0%,#f5e7d0 100%);--ui-on-line:#d3b584;--ui-on-sh:inset 0 1px 2px rgba(110,65,13,.18);--ui-ck-off:#dccdb3;
  --ui-halo:0 0 0 3px rgba(143,87,24,.22);
}
[data-area="people"]{
  --ui-a:#485354;--ui-a-ink:#333e40;--ui-a-soft:#f2f5f5;--ui-a-line:#c3cccc;
  --ui-lk:#1c2420;--ui-lk-line:rgba(28,36,32,.42);--ui-a-mark:#b4c2c3;
  --ui-on-bg:linear-gradient(180deg,#d6dfe0 0%,#e2e9e9 100%);--ui-on-line:#a3b1b2;--ui-on-sh:inset 0 1px 2px rgba(30,38,40,.18);--ui-ck-off:#cdd4d4;
  --ui-halo:0 0 0 3px rgba(72,83,84,.24);
}
/* B4 TB1 (decision 155, option A "Kapsula"; proposal lanes/B4-UNIFY/plan-buttons/src/tool.css): the tool button (.b.t, .sel.t).
   A capsule (a circle when it is only an icon), cool mist fill. B4 DS3 (decision 168; plan-design-system PLAN.md 2.4, system.css
   blocks E and F): low depth, half of the raised button's height (a faint fall of light, a darker bottom edge, a 1 px drop), and
   "on" is the area's tint pressed in with a 2 px ring (the edge and one inner px), never a fill, so the one filled button of an area
   stays the loudest. Declared on every [data-area] too, so "on" follows the area of the nearest dialog, sheet or map. Hovered, "on"
   takes the ink wash over its tint.
   Words on the mist 11.2 (hover 10.2, pressed 9.4), icons 5.7; "on": words 6.8 pine, 6.4 ochre, 8.1 slate (hover 6.1, 5.8, 7.3),
   a count in its well 4.6 or more, the ring on the tint 6.8, 4.4, 5.9 (hover 6.1, 3.9, 5.3; 3 needed). */
:root,[data-area]{
  --ui-tl-r:999px;--ui-tl-bw:1px;
  /* B4 BT1 (decision 222, Janis 25 Nov 2026: no grey buttons, one warm light shade across the site): the tool's surface and edge
     is the Action's warm white satin (the values of --ui-raise-bg). Its edge keeps its own three values, a hair cooler than the
     Action's: a published look that overrides --ui-tl-line is checked against the shipped edge, and must stay valid. A tool is still told from an Action
     by its lower relief (the drop below is half the Action's) and, where it is on, by the area's tint with its ring */
  --ui-tl-bg:linear-gradient(180deg,#ffffff 0%,#f7f6f1 52%,#ecebe3 100%);--ui-tl-bg-h:linear-gradient(180deg,#ffffff 0%,#f1f0e9 52%,#e4e3da 100%);--ui-tl-bg-p:#e5e3d9;
  --ui-tl-line:#a9b7af;--ui-tl-line-b:#8f9e96;--ui-tl-line-h:#84938b;
  --ui-tl-sh:inset 0 1px 0 rgba(255,255,255,.8),inset 0 0 0 1px rgba(255,255,255,.34),0 1px 1.5px rgba(28,36,32,.10);   /* B4 OF2: the satin finish, as the raised button */
  --ui-tl-sh-h:inset 0 1px 0 rgba(255,255,255,.8),inset 0 0 0 1px rgba(255,255,255,.34),0 1px 2px rgba(28,36,32,.12),0 2px 5px -2px rgba(28,36,32,.16);--ui-tl-sh-p:inset 0 1px 2px rgba(28,36,32,.18);
  --ui-tl-ink:#1f2a25;--ui-tl-ic:#45524b;--ui-tl-well:rgba(28,36,32,.08);--ui-tl-edge:var(--ui-edge-on);
  --ui-tl-on-bg:var(--ui-on-bg);--ui-tl-on-bg-h:linear-gradient(var(--ui-wash),var(--ui-wash)),var(--ui-on-bg);
  --ui-tl-on-line:var(--ui-a);--ui-tl-on-ink:var(--ui-a-ink);--ui-tl-on-sh:inset 0 0 0 1px var(--ui-a),inset 0 2px 3px rgba(28,36,32,.14);
  --ui-tl-glass:var(--ui-map-glass);--ui-tl-glass-line:var(--ui-map-glass-line);--ui-tl-glass-line-b:var(--ui-map-glass-line-b);--ui-tl-glass-sh:0 1px 1.5px rgba(28,36,32,.14);
}
/* B4 PL1 (owner's decisions 48 and 51): the brand pair, kept apart from the family so other token blocks merge cleanly. deep is the logo's own green (logo.svg), leaf the yellow-green of the owner's picture (the logo on the dark bar); the door pair is the edge of the sign-in intro's moving brand panel on the light side (decision 57) */
:root{--ui-brand-deep:#0d4836;--ui-brand-leaf:#c1d067;
  --ui-brand-door-line:#c3d4c8;--ui-brand-door-edge:linear-gradient(to left,rgba(13,72,54,.13),rgba(13,72,54,0));--ui-brand-door-edge-v:linear-gradient(to top,rgba(13,72,54,.13),rgba(13,72,54,0))}
/* B4 PB1, VB2: the value badge (option F "Loks") and the known-part note. Heights per size; the fixed slot of a Vērtība column
   (ring left, digits right); the ten-segment ring and the half-filled ring as masks; the badge's own small shadow. */
:root{
  --ui-vb-h-s:20px;--ui-vb-h-m:24px;--ui-vb-h-l:30px;--ui-vb-col-s:78px;--ui-vb-col-m:90px;
  --ui-vb-sh:0 1px 1.5px rgba(70,56,24,.10);--ui-vb-sh-h:0 2px 5px -1px rgba(70,56,24,.20);
  /* B4 VB2 (decision 213): birch, the warm partner of the area chip's mint; the ring in patina green on a birch track.
     Digits ink on birch, the ring on birch and on its track: see the VB2 notes (AA text 4.5 : 1, graphics 3 : 1). */
  --ui-vb-bg:#f3eee1;--ui-vb-line:#ded4bc;--ui-vb-line-h:#c4b796;--ui-vb-ring:#1f5a49;--ui-vb-ring-track:#d2c6a9;
  --ui-vb-ring-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7.9' fill='none' stroke='%23000' stroke-width='4.2' stroke-dasharray='3.964 1' stroke-dashoffset='4.464' transform='rotate(-90 10 10)'/%3E%3C/svg%3E");
  --ui-vn-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill-rule='evenodd' d='M6 .8a5.2 5.2 0 1 0 0 10.4A5.2 5.2 0 0 0 6 .8Zm0 1.3v7.8a3.9 3.9 0 0 1 0-7.8Z'/%3E%3C/svg%3E");
}
@media (max-width:700px),(pointer:coarse){:root{--ui-vb-col-m:74px}}
/* B4 PA2 (decisions 71, 72, 73, 80): the area chip, four kinds. ink = digits, tint = the chip, line = the outline of a missing
   chip and of the header key. Land is lake blue (decision 80; red or pink read as an error). Digits on the chip: land 6.38,
   cad 5.66, forest 5.93, stand 8.19. Heights per size; the fixed slot of an area column or list (S fits "1204,50", M "1204,50 ha");
   on a phone a list row's M chip drops its "ha" and takes 76 px. */
:root{
  --ui-ab-land-ink:#1d5679;--ui-ab-land-tint:#dbe9f3;--ui-ab-land-line:#a7c8de;
  --ui-ab-cad-ink:#44640c;--ui-ab-cad-tint:#e3efc4;--ui-ab-cad-line:#bcd289;
  --ui-ab-forest-ink:#14614c;--ui-ab-forest-tint:#d3ece2;--ui-ab-forest-line:#9dd0bd;
  --ui-ab-stand-ink:#3d3578;--ui-ab-stand-tint:#e3e0f2;--ui-ab-stand-line:#bcb7dd;
  --ui-ab-h-s:18px;--ui-ab-h-m:22px;--ui-ab-col-s:68px;--ui-ab-col-m:90px;
}
@media (max-width:480px){:root{--ui-ab-col-m:76px}}
/* B4 TB1 (decisions 215-217): the Pārlūks table's number fields (C Lauks), places (T3) and status marks (S1 Kontūra).
   Field ink on its tint (WCAG): timber 6.54, age 8.44, count 6.62 : 1. Places #5c6560 6.03 : 1, the owner's same novads #666e69
   5.25 : 1 (4.80 on a selected row). Marks on white (graphics 3 : 1): OK 3.54 (3.23 selected), warning 5.91, problem 6.63,
   not known 4.88. Contrast sheet: lanes/B4-BUILD/TB1-NOTES.md. */
:root{
  --ui-qf-h:20px;--ui-qf-px:7px;--ui-qf-r:4px;--ui-qf-sh:inset 0 1px 1.5px rgba(28,36,32,.10);
  --ui-qf-timber-ink:#6b4a32;--ui-qf-timber-tint:#f1e8de;--ui-qf-timber-line:#d9c5b0;
  --ui-qf-age-ink:#5a3460;--ui-qf-age-tint:#f1e9f3;--ui-qf-age-line:#d6c3da;
  --ui-qf-count-ink:#485354;--ui-qf-count-tint:#e7ebeb;--ui-qf-count-line:#c6cfcf;
  --ui-place-ink:#5c6560;--ui-place-same:#666e69;
  /* B4 HD1 (decision 218, 1 Pacēlums): the Pārlūks header. A calm stone band with hairlines; under the pointer the cell steps a shade
     darker and a pine beam falls down the column; a sorted column's header keeps a pine wash; a picked-up column floats on a pine ring
     over a dashed slot; the column card is white on a soft drop with a small stem */
  --ui-hd-bg:#f4f3ee;--ui-hd-hov:#eceae2;--ui-hd-line:#dcdad0;--ui-hd-sorted:linear-gradient(180deg,#eef3ef,#e7efe9);
  --ui-hd-beam:linear-gradient(180deg,rgba(36,84,61,.11) 0,rgba(36,84,61,.05) 140px,rgba(36,84,61,0) 92%);
  --ui-hd-lift-sh:0 0 0 1.5px rgba(36,84,61,.55),0 26px 48px -18px rgba(28,36,32,.42);--ui-hd-slot-line:rgba(36,84,61,.55);--ui-hd-slot-bg:rgba(36,84,61,.05);
  --ui-hd-card-sh:0 0 0 1px rgba(28,36,32,.08),0 18px 36px -16px rgba(28,36,32,.42),0 4px 10px -6px rgba(28,36,32,.2);--ui-hd-stem-sh:3px 3px 4px -2px rgba(28,36,32,.12);
  --ui-hd-back:rgba(28,36,32,.32);--ui-hd-bubble:#1c2420;
  --ui-fade-end:linear-gradient(90deg,#000 calc(100% - 18px),transparent);   /* B4 HD1 (T3, Janis): a long word fades out over its last 18 px instead of an ellipsis */
  --ui-sym-ok:#737a75;--ui-sym-warn:#8a5a10;--ui-sym-alert:#a33832;--ui-sym-unres:#6b736e;
}
}

/* /forest/lmf-controls.css */
@layer controls{
/* LMF control family: classes (B4 P2, from lanes/B4-UNIFY/proposal/src/family.css, proposal version 3; the build contract).
   Rule: what you press is raised, what you type into is sunk, information is flat, no gloss (decision 1).
   Label treatment (decision 3, label-lab): capital-height centring on the .l span, side padding 0.4 of height, minimum width 2.2
   of height, weight 620, letterpress edge, numbers in a sunk well, pairs share a width. A dropdown's value is weight 540.
   Sizes 26 / 30 / 34 px on PC; on touch the family's 40 px with a 44 px hit area (decision 2; the phone build raises phone
   screens to 44 and 48 later). Colours only through lmf-tokens.css; the main colour follows data-area (decision 5).
   Sections 1 to 7 reach only markup that carries these classes. Section 8 (P2b) reaches untouched fields and tick boxes by element,
   with zero specificity and look and height only (never display, position, width, margin or side padding), so every family class
   beats it and every legacy layout keeps placing its fields.
   ADDENDUM-FIXCHECK amendment 1: .b, .sel, .in and .seg set min-height:0 themselves, so a legacy min-height cannot stretch them;
   .sel and .in set width:auto for the same reason (legacy select and input rules give width:100%); .wide fills its parent. */

/* ---- 1. buttons ------------------------------------------------------------------------------------------------------- */
.b{
  --_h:var(--ui-h-m);--_px:var(--ui-px-m);--_fs:var(--ui-fs-m);
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;
  box-sizing:border-box;height:var(--_h);min-height:0;min-width:calc(var(--_h) * 2.2);padding:0 var(--_px);margin:0;
  border:1px solid var(--ui-raise-line);border-bottom-color:var(--ui-raise-line-b);border-radius:var(--ui-r-ctl);
  background:var(--ui-raise-bg);box-shadow:var(--ui-raise-sh);
  color:var(--ui-ink);font:var(--ui-fw) var(--_fs)/1 var(--ui-f);letter-spacing:var(--ui-ls);text-shadow:var(--ui-edge);white-space:nowrap;text-decoration:none;text-transform:none;
  cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;
  transition:background var(--ui-t),border-color var(--ui-t),box-shadow var(--ui-t),color var(--ui-t),transform var(--ui-t);
}
/* the label: centred on the capital height, so Ā, ķ, ģ, p never push the word up or down. Without text-box support the
   line-height:1 box still puts the capitals within 0.4 px of the middle (measured in the proposal). */
.b .l,.seg>button .l{display:block;text-box:trim-both cap alphabetic}
.b svg{width:var(--ui-ic);height:var(--ui-ic);flex:none;color:var(--ui-ink-2);stroke-width:1.7;filter:var(--ui-edge-ic)}
/* an icon is lighter than a letter: 2 px less padding on its side; a closing number well sits 5 px closer */
.b:has(>svg:first-child):not(.ic){padding-left:calc(var(--_px) - 2px)}
.b:has(>svg:last-child):not(.ic){padding-right:calc(var(--_px) - 2px)}
.b:has(>.n:last-child){padding-right:calc(var(--_px) - 5px)}
.b:hover{background:var(--ui-raise-bg-h);border-color:var(--ui-raise-line-h);box-shadow:var(--ui-raise-sh-h)}
.b:active{background:var(--ui-raise-bg-p);box-shadow:var(--ui-raise-sh-p)}
/* B4 OF2 (decision 196): a pressed button sinks half a pixel, whatever its kind (not while it is off or busy). The rule exists only
   where motion is welcome, so nothing has to out-rank it for "reduce motion" */
@media (prefers-reduced-motion:no-preference){.b:active:not(:disabled,[aria-disabled="true"],[aria-busy="true"]){transform:translateY(.5px)}}
.b:focus-visible,.seg>button:focus-visible,.ck:focus-visible,.rd:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
.b.s{--_h:var(--ui-h-s);--_px:var(--ui-px-s);--_fs:var(--ui-fs-s);gap:5px}
.b.l{--_h:var(--ui-h-l);--_px:var(--ui-px-l);--_fs:var(--ui-fs-l);gap:7px}
.b.ic{width:var(--_h);min-width:var(--_h);padding:0}
/* B4 OF2: XL, the one big round button that floats over a picture or a video ("play"): 64 px (56 on touch), icon only. .float gives
   it the drop that lifts it off what lies under it. It keeps its kind's fill (LMFUI.btn('', {kind:'pri', size:'xl', icon:'play'})). */
.b.xl{--_h:var(--ui-h-xl);--_px:0px;width:var(--_h);min-width:var(--_h);padding:0}
.b.xl svg{width:28px;height:28px;stroke-width:2}
.b.float{box-shadow:var(--ui-raise-sh),var(--ui-float-sh)}
.b.pri.float{box-shadow:var(--ui-pri-sh),var(--ui-float-sh)}
/* B4 OF2: XS, the smallest. Only an icon inside a tag (the cross of a chosen filter): 24 px, 32 on touch; never a button with a word */
.b.xs{--_h:var(--ui-h-xs);--_px:0px;--_fs:var(--ui-fs-s);width:var(--_h);min-width:var(--_h);padding:0}
.b.xs svg{width:12px;height:12px;stroke-width:2.2}
.b.wide{display:flex;width:100%}
/* the disclosure: one raised button with a chevron; drawn on a <summary> it loses the list marker and shows "open" like aria-expanded */
summary.b{list-style:none}
summary.b::-webkit-details-marker{display:none}

/* primary: the one filled button of a view, pine green on every page; the deal's step (.b.pri.deal) is timber. Both sets of tokens
   are in lmf-tokens.css (B4 DS3, decision 168). */
.b.pri{background:var(--ui-pri-bg);border-color:var(--ui-pri-line);box-shadow:var(--ui-pri-sh);color:var(--ui-on-fill);text-shadow:var(--ui-pri-edge)}
.b.pri svg{color:var(--ui-on-fill);filter:var(--ui-pri-edge-ic)}
.b.pri:hover{background:var(--ui-pri-bg-h);border-color:var(--ui-pri-line-h);box-shadow:var(--ui-pri-sh-h)}
.b.pri:active{background:var(--ui-pri-bg-p);box-shadow:var(--ui-pri-sh-p)}

/* quiet: no box at rest, so it reads as text, never as a flat button (no surface, so no letterpress) */
.b.q{background:none;border-color:transparent;box-shadow:none;color:var(--ui-ink-2);text-shadow:none}
.b.q svg{color:currentColor;filter:none}
.b.q:hover{background:var(--ui-wash);color:var(--ui-ink)}
.b.q:active{background:var(--ui-wash-p);box-shadow:var(--ui-wash-p-sh)}
/* a link: pine in forest pages; elsewhere ink with a thin underline */
.b.q.link{color:var(--ui-lk)}
.b.q.link .l,.lk{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--ui-lk-line)}
.lk{color:var(--ui-lk);font-weight:620;cursor:pointer}
.b.q.link:hover .l,.lk:hover{text-decoration-color:currentColor}
.lk:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px;border-radius:2px}
/* B4 DS0: a link drawn on a <button> (LMFUI.btn kind 'lk') is text too: none of the base button rule's box. B4 DS2 (lead, 24 Nov): its own
   box is the target, 24 px on a PC and 44 px on touch, so two links side by side never share a pixel; rows of links keep 8 px between them */
button.lk{height:auto;min-width:24px;min-height:24px;padding:0;border:0;background:none;box-shadow:none;font:var(--ui-t-body);font-weight:620;text-align:inherit;text-shadow:none;white-space:normal}

/* destructive: terracotta words on a raised button; filled only on the confirm step */
.b.dng,.b.dng svg{color:var(--ui-clay)}
.b.dng:hover{background:var(--ui-dng-bg-h);border-color:var(--ui-dng-line-h)}
.b.dng.solid{background:var(--ui-dng-bg);border-color:var(--ui-dng-line);border-bottom-color:var(--ui-dng-line-b);box-shadow:var(--ui-dng-sh);color:var(--ui-on-fill);text-shadow:var(--ui-dng-edge)}
.b.dng.solid svg{color:var(--ui-on-fill);filter:var(--ui-dng-edge-ic)}
.b.dng.solid:hover{background:var(--ui-dng-fill-h);border-color:var(--ui-dng-line-b)}
.b.dng.solid:active{background:var(--ui-dng-fill-p);box-shadow:var(--ui-dng-sh-p)}

/* on: shown toggle (Karte, Tabula, Filtri), open disclosure, active filter, chosen result. Tinted by the area. */
.b.on,.b[aria-expanded="true"],.b[aria-pressed="true"],.b:is(details[open]>summary){background:var(--ui-on-bg);border-color:var(--ui-on-line);box-shadow:var(--ui-on-sh);color:var(--ui-a-ink);text-shadow:var(--ui-edge-on)}
.b.on svg,.b[aria-expanded="true"] svg,.b[aria-pressed="true"] svg,.b:is(details[open]>summary) svg{color:var(--ui-a-ink)}
/* an "on" button still answers: a firmer edge on hover, a deeper sink when pressed (these follow the rest rule: same weight, later wins) */
.b.on:hover,.b[aria-expanded="true"]:hover,.b[aria-pressed="true"]:hover,.b:is(details[open]>summary):hover{border-color:var(--ui-a)}
.b.on:active,.b[aria-expanded="true"]:active,.b[aria-pressed="true"]:active,.b:is(details[open]>summary):active{box-shadow:var(--ui-on-sh),var(--ui-raise-sh-p)}
/* a quiet button has no box at rest, so it gets none when open either; a soft ink wash says "open" */
.b.q[aria-expanded="true"],.b.q[aria-pressed="true"],.b.q.on,.b.q:is(details[open]>summary){background:var(--ui-wash-open);border-color:transparent;box-shadow:none;color:var(--ui-ink);text-shadow:none}
.b.q[aria-expanded="true"] svg,.b.q[aria-pressed="true"] svg,.b.q.on svg,.b.q:is(details[open]>summary) svg{color:currentColor}
.b.q[aria-expanded="true"]:hover,.b.q[aria-pressed="true"]:hover,.b.q.on:hover,.b.q:is(details[open]>summary):hover{background:var(--ui-wash-p)}
.b.q[aria-expanded="true"]:active,.b.q[aria-pressed="true"]:active,.b.q.on:active,.b.q:is(details[open]>summary):active{background:var(--ui-wash-p);box-shadow:var(--ui-wash-p-sh)}
.b .chev{transition:transform var(--ui-t)}
.b[aria-expanded="true"] .chev,.b:is(details[open]>summary) .chev{transform:rotate(180deg)}

/* a count or number inside a button or tab sits in a small sunk well, never as loose text after the word */
.b .n,.seg>button .n,.sel .n,.tag .n{
  --_wh:min(calc(var(--_h) - 12px),22px);--_wfs:var(--ui-fs-micro);   /* B4 DS4: one size of well, micro digits (11, 12 on touch) */
  flex:none;box-sizing:border-box;display:inline-block;height:var(--_wh);min-width:var(--_wh);padding:0 5px;border-radius:4px;
  background:var(--ui-well-bg);box-shadow:var(--ui-well-sh);color:var(--ui-ink-2);
  font:600 var(--_wfs)/var(--_wh) var(--ui-f);letter-spacing:0;text-align:center;text-shadow:none;font-variant-numeric:tabular-nums;
}
/* B4 OF2: a dropdown and a tag carry a count too (a filter capsule with "2" chosen) */
.sel .n{margin-left:6px;vertical-align:1px}
.tag .n{--_wh:16px}
.sel.set .n,.sel[aria-expanded="true"] .n{color:var(--ui-a-ink)}
.b.pri .n{background:var(--ui-pri-well-bg);box-shadow:var(--ui-pri-well-sh);color:var(--ui-on-fill)}
.b.on .n,.b[aria-expanded="true"] .n,.b[aria-pressed="true"] .n,.b:is(details[open]>summary) .n{color:var(--ui-a-ink)}

/* a pair that belongs together (Atcelt / Saglabāt, Pārcelt / Izdarīts) shares one width, in both languages */
.pairw{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:var(--ui-gap);flex:none}
.pairw.fill{display:grid;flex:1}

/* disabled: flat, no depth, no letterpress */
.b:disabled,.b[aria-disabled="true"]{opacity:1;filter:none;background:var(--ui-off-bg);border-color:var(--ui-off-line);box-shadow:none;color:var(--ui-off-ink);text-shadow:none;cursor:not-allowed}
.b:disabled:hover,.b[aria-disabled="true"]:hover,.b:disabled:active,.b[aria-disabled="true"]:active{background:var(--ui-off-bg);border-color:var(--ui-off-line);box-shadow:none}
.b:disabled svg,.b[aria-disabled="true"] svg{color:var(--ui-off-ink);filter:none}
.b.pri:disabled,.b.pri[aria-disabled="true"]{background:var(--ui-off-pri-bg);border-color:var(--ui-off-pri-line);color:var(--ui-off-pri-ink)}
.b.pri:disabled svg,.b.pri[aria-disabled="true"] svg{color:var(--ui-off-pri-ink)}
.b.q:disabled,.b.q[aria-disabled="true"]{background:none;border-color:transparent}
.b.dng.solid:disabled,.b.dng.solid[aria-disabled="true"]{background:var(--ui-off-bg);border-color:var(--ui-off-line);box-shadow:none;color:var(--ui-off-ink);text-shadow:none}
.b.dng.solid:disabled svg,.b.dng.solid[aria-disabled="true"] svg{color:var(--ui-off-ink);filter:none}

/* joined group (week arrows, zoom, Karte + Tabula) */
.grp{display:inline-flex;flex:none}
.grp>.b:not(:first-child){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}
.grp>.b:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}
.grp>.b:hover,.grp>.b:focus-visible,.grp>.b[aria-pressed="true"]{z-index:1}
/* B4 OF2 (package 5): a compact joined group for a tight row (four switches and "Filtri" in a phone's width): less side room in
   each half; an icon with a count stays readable, a word may be cut by its own ellipsis */
.grp.tight.tight>.b.b{min-width:0;padding:0 6px;gap:3px}   /* doubled classes: this must out-rank the icon-side padding of .b:has(>svg:first-child):not(.ic) */
.grp.tight.tight>.b.b:has(>.n:last-child){padding-right:4px}
.grp.v{flex-direction:column}
.grp.v>.b:not(:first-child){margin:-1px 0 0;border-radius:0 0 calc(var(--_h) / 2) calc(var(--_h) / 2)}
.grp.v>.b:not(:last-child){border-radius:calc(var(--_h) / 2) calc(var(--_h) / 2) 0 0}

/* over a map: same raised button, deeper drop */
.b.map{background:var(--ui-raise-bg);border-color:var(--ui-map-line);border-bottom-color:var(--ui-map-line-b);box-shadow:var(--ui-over-sh)}
.b.map[aria-expanded="true"],.b.map[aria-pressed="true"]{background:var(--ui-on-bg);border-color:var(--ui-a);box-shadow:var(--ui-on-sh),var(--ui-map-on-drop)}

/* ---- 1b. the tool button (B4 TB1, decision 155, option A "Kapsula"): changes what you see or hands you something (layers,
   numbers, zoom, layout, radius, show more, show all, print, copy, plan from here), never the record. A main button (white,
   raised, rectangular) saves, calls, starts or moves. Sizes S and M (and the touch 40 / 44 below, from the family's --ui-h-*).
   Colours only through the --ui-tl-* tokens (lmf-tokens.css). B4 DS3 (decision 168): low depth at rest, "on" a tint with a ring. */
.b.t,.sel.t{
  border:var(--ui-tl-bw) solid var(--ui-tl-line);border-bottom-color:var(--ui-tl-line-b);border-radius:var(--ui-tl-r);
  box-shadow:var(--ui-tl-sh);color:var(--ui-tl-ink);text-shadow:var(--ui-tl-edge);
}
.b.t{background:var(--ui-tl-bg);min-width:calc(var(--_h) * 1.9)}
.b.t.ic{min-width:var(--_h)}
.b.t svg{color:var(--ui-tl-ic);filter:none}
.b.t:hover{background:var(--ui-tl-bg-h);border-color:var(--ui-tl-line-h);box-shadow:var(--ui-tl-sh-h)}
.b.t:active{background:var(--ui-tl-bg-p);border-color:var(--ui-tl-line-h);box-shadow:var(--ui-tl-sh-p)}
/* on: a shown toggle (Numuri, the chosen layout, a home on the map) and an open disclosure (Visi, Vairāk, Slāņi) */
.b.t.on,.b.t[aria-pressed="true"],.b.t[aria-expanded="true"],.b.t:is(details[open]>summary){background:var(--ui-tl-on-bg);border-color:var(--ui-tl-on-line);box-shadow:var(--ui-tl-on-sh);color:var(--ui-tl-on-ink);text-shadow:none}
.b.t.on svg,.b.t[aria-pressed="true"] svg,.b.t[aria-expanded="true"] svg,.b.t:is(details[open]>summary) svg{color:var(--ui-tl-on-ink)}
.b.t.on:hover,.b.t[aria-pressed="true"]:hover,.b.t[aria-expanded="true"]:hover,.b.t:is(details[open]>summary):hover{background:var(--ui-tl-on-bg-h);border-color:var(--ui-tl-on-line);box-shadow:var(--ui-tl-on-sh)}
.b.t.on:active,.b.t[aria-pressed="true"]:active,.b.t[aria-expanded="true"]:active,.b.t:is(details[open]>summary):active{box-shadow:var(--ui-tl-on-sh),var(--ui-tl-sh-p)}
.b.t .n{background:var(--ui-tl-well);box-shadow:none;color:var(--ui-tl-ink)}
.b.t.on .n,.b.t[aria-pressed="true"] .n,.b.t[aria-expanded="true"] .n{background:color-mix(in srgb,var(--ui-tl-on-ink) 16%,transparent);color:var(--ui-tl-on-ink)}
/* disabled: the family's flat "off", in the tool's shape */
.b.t:disabled,.b.t[aria-disabled="true"],.b.t:disabled:hover,.b.t[aria-disabled="true"]:hover,.b.t:disabled:active,.b.t[aria-disabled="true"]:active{background:var(--ui-off-bg);border-color:var(--ui-off-line);box-shadow:none;color:var(--ui-off-ink);text-shadow:none}
.b.t:disabled svg,.b.t[aria-disabled="true"] svg{color:var(--ui-off-ink)}
/* the dropdown that is a tool ("5 km"): the same skin, the family chevron */
.sel.t{background:var(--ui-chev) right 7px center/14px 14px no-repeat,var(--ui-tl-bg)}
.sel.t:hover{background:var(--ui-chev) right 7px center/14px 14px no-repeat,var(--ui-tl-bg-h);border-color:var(--ui-tl-line-h);box-shadow:var(--ui-tl-sh-h)}
.sel.t:active{background:var(--ui-chev) right 7px center/14px 14px no-repeat,var(--ui-tl-bg-p);box-shadow:var(--ui-tl-sh-p)}
/* a value chosen (.set) or the list open: "on", as any tool */
.sel.t.set,.sel.t[aria-expanded="true"]{background:var(--ui-chev) right 7px center/14px 14px no-repeat,var(--ui-tl-on-bg);border-color:var(--ui-tl-on-line);box-shadow:var(--ui-tl-on-sh);color:var(--ui-tl-on-ink);text-shadow:none}
.sel.t.set:hover,.sel.t[aria-expanded="true"]:hover{background:var(--ui-chev) right 7px center/14px 14px no-repeat,var(--ui-tl-on-bg-h);border-color:var(--ui-tl-on-line);box-shadow:var(--ui-tl-on-sh)}
.sel.t.set:active,.sel.t[aria-expanded="true"]:active{box-shadow:var(--ui-tl-on-sh),var(--ui-tl-sh-p)}
.sel.t:disabled,.sel.t:disabled:hover,.sel.t:disabled:active{background:var(--ui-chev) right 7px center/14px 14px no-repeat,var(--ui-off-bg);border-color:var(--ui-off-line);box-shadow:none;color:var(--ui-off-ink);text-shadow:none}
/* joined tools (zoom): the outer corners keep the tool's corner, the seam is square */
.grp>.b.t:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}
.grp>.b.t:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}
.grp.v>.b.t:not(:first-child){border-radius:0 0 calc(var(--_h) / 2) calc(var(--_h) / 2)}
.grp.v>.b.t:not(:last-child){border-radius:calc(var(--_h) / 2) calc(var(--_h) / 2) 0 0}
/* over a map (decisions 106, 168): a 78 percent plate, the words and icon crisp with the white halo; solid on hover, focus and
   press; a tool that is "on" is the solid tint with its ring, so what is switched on reads at a glance on any photo */
.b.t.map{background:var(--ui-tl-glass);border-color:var(--ui-tl-glass-line);border-bottom-color:var(--ui-tl-glass-line-b);box-shadow:var(--ui-tl-glass-sh);color:var(--ui-ink);text-shadow:var(--ui-map-glass-halo)}
.b.t.map svg{color:var(--ui-ink);filter:var(--ui-map-glass-ic)}
.b.t.map:is(:hover,:focus-visible){background:var(--ui-surface);border-color:var(--ui-map-line-b);text-shadow:none}
.b.t.map:active{background:var(--ui-raise-bg-p);box-shadow:var(--ui-tl-sh-p)}
/* B4 OF2 (decision 184, reported by package 3): "on" over a map (a shown toggle, an open "Slāņi") is glass too: the on-tint at 60
   percent, the darker pine and the white halo; solid on hover and keyboard focus; solid where transparency is reduced */
.b.t.map:is(.on,[aria-pressed="true"],[aria-expanded="true"],details[open]>summary){background:var(--ui-map-on-glass);border-color:var(--ui-tl-on-line);box-shadow:var(--ui-tl-on-sh),var(--ui-map-on-drop);color:var(--ui-map-on-ink);text-shadow:var(--ui-map-glass-halo)}
.b.t.map:is(.on,[aria-pressed="true"],[aria-expanded="true"],details[open]>summary) svg{color:var(--ui-map-on-ink);filter:var(--ui-map-glass-ic)}
.b.t.map:is(.on,[aria-pressed="true"],[aria-expanded="true"],details[open]>summary):is(:hover,:focus-visible){background:var(--ui-tl-on-bg-h);border-color:var(--ui-tl-on-line);text-shadow:none}
.b.t.map:focus-visible{outline-color:var(--ui-map-focus);box-shadow:var(--ui-map-focus-in)}
.b.t.map:is(.on,[aria-pressed="true"],[aria-expanded="true"],details[open]>summary):focus-visible{box-shadow:var(--ui-map-focus-in),var(--ui-tl-on-sh)}
@media (prefers-reduced-transparency:reduce){.b.t.map{background:var(--ui-surface)}.b.t.map:is(.on,[aria-pressed="true"],[aria-expanded="true"],details[open]>summary){background:var(--ui-tl-on-bg);text-shadow:none}}
/* forced colours: "on" is the system's highlight, words, icon and count alike; without forced-color-adjust the browser lays a plate of
   the page colour behind the words and hides them */
@media (forced-colors:active){.b.t,.b.t.map{background:ButtonFace;border-color:ButtonText;box-shadow:none;text-shadow:none}.sel.t,.sel.t:is(:hover,:active,.set,[aria-expanded="true"]):is(*,:hover){background-color:ButtonFace;background-image:var(--ui-chev);border-color:ButtonText;box-shadow:none;text-shadow:none}.sel.t:is(.set,[aria-expanded="true"]):is(*,:hover){border-color:Highlight}.b.t:is(.on,[aria-pressed="true"],[aria-expanded="true"],details[open]>summary):is(*,:hover){forced-color-adjust:none;background:Highlight;border-color:Highlight;outline-color:CanvasText;box-shadow:none;color:HighlightText}.b.t:is(.on,[aria-pressed="true"],[aria-expanded="true"],details[open]>summary):is(*,:hover) :is(svg,.n){background:none;color:HighlightText}}
/* forced colours: "on" over a map is the system highlight at rest, hovered and focused alike: these out-rank the glass rules above */
@media (forced-colors:active){.b.t.map:is(.on,[aria-pressed="true"],[aria-expanded="true"],details[open]>summary):is(*,:hover,:focus-visible):is(*,.b){forced-color-adjust:none;background:Highlight;border-color:Highlight;box-shadow:none;color:HighlightText;text-shadow:none}.b.t.map:is(.on,[aria-pressed="true"],[aria-expanded="true"],details[open]>summary):is(*,:hover,:focus-visible):is(*,.b) :is(svg,.n){background:none;color:HighlightText;filter:none}}
/* B4 OF2 (Sol's review of package 3): OFF over a map (disabled, or aria-disabled="true": a zoom button at its limit). Not glass: a
   solid flat stone plate with the family's "off" words and icon, no drop, no halo, so it reads as off on any tile and under the
   pointer too (words on the plate 4.5 : 1 or more). The selector (two .b) out-ranks the glass, its hover, its "on" and the forced-colours highlight of "on". */
.b.b.map:is(:disabled,[aria-disabled="true"]):is(*,:hover,:focus-visible,:active):is(*,.t):is(*,.on,[aria-pressed="true"],[aria-expanded="true"]){background:var(--ui-off-bg);border-color:var(--ui-off-line);border-bottom-color:var(--ui-off-line);box-shadow:none;color:var(--ui-off-ink);text-shadow:none;cursor:not-allowed}
.b.b.map:is(:disabled,[aria-disabled="true"]):is(*,:hover,:focus-visible,:active):is(*,.t):is(*,.on,[aria-pressed="true"],[aria-expanded="true"]) :is(svg,.n){color:var(--ui-off-ink);filter:none}
@media (forced-colors:active){.b.b.map:is(:disabled,[aria-disabled="true"]):is(*,:hover,:focus-visible,:active):is(*,.t):is(*,.on,[aria-pressed="true"],[aria-expanded="true"]){forced-color-adjust:none;background:ButtonFace;border-color:GrayText;color:GrayText}.b.b.map:is(:disabled,[aria-disabled="true"]):is(*,:hover,:focus-visible,:active):is(*,.t):is(*,.on,[aria-pressed="true"],[aria-expanded="true"]) :is(svg,.n){background:none;color:GrayText}}

/* ---- 1c. two states of the button (B4 DS0, decision 168; plan-design-system PLAN.md 2.1, src/system.css block D) ----------- */
/* a quiet icon button with a faint ring at rest (a window head, a card): "..." and the cross read as buttons */
.b.q.ic.ring{border-color:var(--ui-line)}
/* an opened window's first focus lands on its title, so the close cross does not wear a ring every time */
[data-win-title]:focus{outline:0}
/* busy (aria-busy="true"; LMFUI.btn {busy:true}): the press waits for the server. The word and the width stay, a small ring turns where
   the icon was. A second press (pointer, Enter, Space) does nothing: lmf-ui.js swallows it for every kind, so no pointer-events here (it
   would let the press fall through to the row or card under the button). Without an icon the side padding gives the ring its room. A
   button that draws the older ring itself (.v31-busy in its icon's place) keeps that one. A row, a tile and a link only fade. */
.rowb[aria-busy="true"],.tile[aria-busy="true"],.lk[aria-busy="true"]{opacity:.6;cursor:progress}
.b[aria-busy="true"]{--_bg:6px;--_br:10px;--_be:var(--_px);cursor:progress}
.b.s[aria-busy="true"]{--_bg:5px;--_br:8px}
.b.l[aria-busy="true"]{--_bg:7px}
.b[aria-busy="true"]:is(.ic,:has(>svg:first-child)){--_br:var(--ui-ic)}
.b[aria-busy="true"]:has(>.n:last-child){--_be:calc(var(--_px) - 5px)}
.b[aria-busy="true"]:has(>svg:last-child){--_be:calc(var(--_px) - 2px)}
.b[aria-busy="true"]>svg:first-child{display:none}
.b[aria-busy="true"]:not(.ic,:has(>svg:first-child),:has(>.v31-busy)){--_bp:max(1px,calc(var(--_be) - (var(--_br) + var(--_bg)) / 2));padding-left:calc(var(--_px) + var(--_be) - var(--_br) - var(--_bg) - var(--_bp));padding-right:var(--_bp)}
.b[aria-busy="true"]:not(:has(>.v31-busy))::before{content:"";flex:none;box-sizing:border-box;width:var(--_br);height:var(--_br);border:2px solid currentColor;border-right-color:transparent;border-radius:50%;opacity:.8;animation:ui-busy .7s linear infinite}
@keyframes ui-busy{to{transform:rotate(360deg)}}

/* ---- 1d. the row button (B4 DS0): a whole row that opens something. One line 44 px, two lines (.two) 56 px, a chevron at the end, an
   ink wash on hover. Flat: it is a place, not an act. A row that holds several buttons is not one: there the name is the link. */
.rowb{
  display:flex;align-items:center;gap:var(--ui-sp-3);box-sizing:border-box;width:100%;height:auto;min-height:44px;margin:0;padding:6px var(--ui-gut-in);
  border:0;border-top:1px solid var(--ui-td-line);border-radius:0;background:none;box-shadow:none;color:var(--ui-ink);
  font:var(--ui-t-body);letter-spacing:0;text-align:left;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;
  cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background var(--ui-t);
}
.rowb:first-child{border-top:0}
.rowb.two{min-height:56px}
.rowb:hover{background:var(--ui-wash)}
.rowb:active{background:var(--ui-wash-p)}
.rowb:focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
.rowb svg{flex:none;width:var(--ui-ic);height:var(--ui-ic);color:inherit;stroke-width:1.7;filter:none}
.rowb>.rw-m{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:1px}
.rowb .rw-t{overflow:hidden;font:var(--ui-t-row);text-overflow:ellipsis;white-space:nowrap}
.rowb .rw-s{overflow:hidden;color:var(--ui-muted);font:var(--ui-t-meta);text-overflow:ellipsis;white-space:nowrap}
.rowb>.rw-ic{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:var(--ui-r);background:var(--ui-stone-2);color:var(--ui-ink-2)}
.rowb>.rw-ic svg{width:18px;height:18px}
.rowb>.rw-go{width:16px;height:16px;color:var(--ui-ico-mute)}
/* B4 OF2 (reported by package 6): the chosen row of a list that switches what is shown beside it (the settings list): the area's tint */
.rowb:is([aria-selected="true"],[aria-pressed="true"],[aria-current]:not([aria-current="false"]),.on){background:var(--ui-on-bg);color:var(--ui-a-ink);font-weight:620}
.rowb:is([aria-selected="true"],[aria-pressed="true"],[aria-current]:not([aria-current="false"]),.on) .rw-t{font-weight:620}
@media (forced-colors:active){.rowb:is([aria-selected="true"],[aria-pressed="true"],[aria-current]:not([aria-current="false"]),.on){outline:2px solid Highlight;outline-offset:-2px}}
/* B4 OF2 (reported by package 5): a row button on a <summary> (a section of a phone sheet that opens in place): no list marker, its
   chevron turns when open. .noline: a row button inside a row or card that draws the dividing line itself, so no second line */
summary.rowb{list-style:none}
summary.rowb::-webkit-details-marker{display:none}
.rowb:is(details[open]>summary)>.rw-go{transform:rotate(90deg)}   /* the row's chevron points right; open, it points down */
.rowb.noline{border-top:0}
/* B4 OF2 (reported by package 2): a row that removes or stops (the last row of a sheet): terracotta words, a terracotta wash */
.rowb.dng,.rowb.dng svg,.rowb.dng .rw-s{color:var(--ui-clay)}
.rowb.dng:hover{background:var(--ui-clay-tint)}
.rowb:disabled,.rowb[aria-disabled="true"]{background:none;color:var(--ui-off-ink);cursor:not-allowed}
.rowb:is(:disabled,[aria-disabled="true"]) :is(.rw-s,.rw-ic){color:var(--ui-off-ink)}

/* ---- 1e. the choice tile (B4 DS0): pick one of two to five big answers; the button under it confirms. Raised, the card corner, an icon
   over a word. Chosen (aria-pressed, or aria-checked in a radiogroup) = the area's tint, pressed in. */
.tile{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;height:auto;min-width:96px;min-height:64px;margin:0;padding:8px 12px;
  border:1px solid var(--ui-raise-line);border-bottom-color:var(--ui-raise-line-b);border-radius:var(--ui-r-card);background:var(--ui-raise-bg);box-shadow:var(--ui-raise-sh);
  color:var(--ui-ink);font:var(--ui-fw) var(--ui-fs-m)/1.2 var(--ui-f);letter-spacing:var(--ui-ls);text-align:center;text-decoration:none;text-shadow:var(--ui-edge);text-transform:none;white-space:normal;
  cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;transition:background var(--ui-t),border-color var(--ui-t),box-shadow var(--ui-t);
}
.tile svg{flex:none;width:20px;height:20px;color:var(--ui-ink-2);stroke-width:1.7;filter:var(--ui-edge-ic)}
.tile:hover{background:var(--ui-raise-bg-h);border-color:var(--ui-raise-line-h);box-shadow:var(--ui-raise-sh-h)}
.tile:active{background:var(--ui-raise-bg-p);box-shadow:var(--ui-raise-sh-p)}
.tile:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
.tile[aria-pressed="true"],.tile[aria-checked="true"]{background:var(--ui-on-bg);border-color:var(--ui-on-line);box-shadow:var(--ui-on-sh);color:var(--ui-a-ink);text-shadow:var(--ui-edge-on)}
.tile[aria-pressed="true"] svg,.tile[aria-checked="true"] svg{color:var(--ui-a-ink)}
.tile[aria-pressed="true"]:hover,.tile[aria-checked="true"]:hover{border-color:var(--ui-a)}
.tile[aria-pressed="true"]:active,.tile[aria-checked="true"]:active{box-shadow:var(--ui-on-sh),var(--ui-raise-sh-p)}
.tile:is(:disabled,[aria-disabled="true"]),.tile:is(:disabled,[aria-disabled="true"]):is(:hover,:active){background:var(--ui-off-bg);border-color:var(--ui-off-line);box-shadow:none;color:var(--ui-off-ink);text-shadow:none;cursor:not-allowed}
.tile:is(:disabled,[aria-disabled="true"]) svg{color:var(--ui-off-ink);filter:none}

/* ---- 1f0. the info button (B4 DS5, decision 188, Janis: "nearly impossible to tell what this sign is meant to do"): round and icon
   only, with a dark letter «i» with a foot and a round dot (drawn from --ui-info-i; the markup's stroke icon is not drawn).
   B4 IF1 (decision 233, Janis 26 Nov 2026: "same color as rest, same as details and map button next to it"): a round tool button:
   the tool's paint, edge, shadow, hover, press and "on" (while its panel is open), and the small tool's size (26 px, 32 on touch).
   Markup: <button class="info"> or <summary class="info"> holding the i icon and its name as aria-label/title. */
.info,:is(button,summary).info{
  position:relative;display:inline-grid;place-items:center;flex:none;box-sizing:border-box;width:var(--ui-h-s);height:var(--ui-h-s);min-width:var(--ui-h-s);min-height:0;margin:0;padding:0;
  border:var(--ui-tl-bw) solid var(--ui-info-line);border-bottom-color:var(--ui-tl-line-b);border-radius:50%;background:var(--ui-info-bg);box-shadow:var(--ui-info-sh);color:var(--ui-info-ink);text-shadow:none;
  list-style:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background var(--ui-t),box-shadow var(--ui-t)}
.info::-webkit-details-marker{display:none}
.info::marker{content:none}
.info::before{content:"";display:block;flex:none;width:calc(var(--ui-ic) + 5px);height:calc(var(--ui-ic) + 5px);margin:0;background:currentColor;-webkit-mask:var(--ui-info-i) center/contain no-repeat;mask:var(--ui-info-i) center/contain no-repeat;transform:none}   /* B4 SF1: upright always (a legacy stand chevron turns summary::before) */
.info svg{display:none}
.info>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.info:hover{background:var(--ui-info-bg-h);border-color:var(--ui-info-line-h);box-shadow:var(--ui-info-sh-h)}
.info:active{background:var(--ui-info-bg-p);border-color:var(--ui-info-line-h);box-shadow:var(--ui-info-sh-p)}
.info[aria-expanded="true"],.info:is(details[open]>summary){background:var(--ui-tl-on-bg);border-color:var(--ui-tl-on-line);box-shadow:var(--ui-tl-on-sh);color:var(--ui-tl-on-ink)}
.info[aria-expanded="true"]:hover,.info:is(details[open]>summary):hover{background:var(--ui-tl-on-bg-h)}
.info:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
@media (max-width:700px),(pointer:coarse){
  .info::after{content:"";position:absolute;inset:-5px}   /* B4 OF2 1c: the drawn size, 40 px and more answering */
}
/* forced colours: the same selectors as the fill (so they win), system colours only; pressed or open = Highlight; focus = the system ring */
@media (forced-colors:active){
  .info,:is(button,summary).info,.info:hover{forced-color-adjust:none;border-color:ButtonText;background:ButtonText;box-shadow:none;color:ButtonFace}
  .info:active,.info[aria-expanded="true"],.info:is(details[open]>summary){forced-color-adjust:none;border-color:Highlight;background:Highlight;box-shadow:none;color:HighlightText}
  .info::before{background:currentColor}
  .info:focus-visible{outline:2px solid CanvasText;outline-offset:2px}
}

/* ---- 1g. the two marks in a button's silhouette (B4 OF2, decisions 195 and 196) ---------------------------------------------
   Adding: a button whose first child is the plus icon and that changes the record (not a tool, not quiet, not filled) carries the
   plus in a small green coin at its end, so "+ ..." is found at a glance among white capsules. Nothing to add in markup.
   The deal's step (.b.pri.deal): an arrow in a darker coin at its far end, "forward"; its own leading icon gives way to it. Not while
   it is busy (the waiting ring stands there) and not when it is off. */
.b:not(.pri,.t,.q,.ic,.dng):has(>svg:first-child :is(use[href$="i-plus"],path[d^="M12 5v14"])){padding-left:3px;gap:7px}
.b:not(.pri,.t,.q,.ic,.dng)>svg:first-child:has(:is(use[href$="i-plus"],path[d^="M12 5v14"])){box-sizing:border-box;width:calc(var(--_h) - 8px);height:calc(var(--_h) - 8px);padding:calc((var(--_h) - 8px - var(--ui-ic)) / 2);border-radius:50%;background:var(--ui-coin-bg);box-shadow:var(--ui-coin-sh);color:var(--ui-on-fill);stroke-width:2.4;filter:none;overflow:visible}
.b:not(.pri,.t,.q,.ic,.dng):is(:disabled,[aria-disabled="true"])>svg:first-child:has(:is(use[href$="i-plus"],path[d^="M12 5v14"])){background:var(--ui-off-line);box-shadow:none;color:var(--ui-off-ink)}
.b[aria-busy="true"]:not(.pri,.t,.q,.ic,.dng):has(>svg:first-child :is(use[href$="i-plus"],path[d^="M12 5v14"])){padding-left:calc(var(--_px) - 2px);gap:6px}
.b.pri.deal:not(.ic)>svg:first-child{display:none}
.b.pri.deal:not(.ic):has(>svg:first-child){padding-left:var(--_px)}
.b.pri.deal:not(.ic,:disabled,[aria-disabled="true"],[aria-busy="true"])::before{content:"";order:9;flex:none;box-sizing:border-box;width:calc(var(--_h) - 8px);height:calc(var(--_h) - 8px);margin-right:calc(3px - var(--_px));border-radius:50%;background:var(--ui-deal-coin) var(--ui-go) center/62% no-repeat;box-shadow:var(--ui-deal-coin-sh)}
.b.pri.deal[aria-busy="true"]:not(.ic)>svg:first-child{display:block}
/* forced colours: the same selectors as the coin and the arrow, so these win: no drawn coin, the plus in the button's own colour */
@media (forced-colors:active){.b:not(.pri,.t,.q,.ic,.dng)>svg:first-child:has(:is(use[href$="i-plus"],path[d^="M12 5v14"])){background:none;box-shadow:none;color:inherit}.b.pri.deal:not(.ic,:disabled,[aria-disabled="true"],[aria-busy="true"])::before{display:none}}

/* ---- 1h. a tool that folds to its icon (B4 OF2, reported by package 3). The row that holds the tools is the container
   (.foldc); a tool with an icon and .fold keeps its word while that row is 360 px wide or more and is its icon alone below it. The
   word stays for a screen reader. No page sets a width for this. */
.foldc{container:fold / inline-size}
@container fold (max-width:359.98px){
  .b.b.fold.fold:has(>svg){width:var(--_h);min-width:var(--_h);padding:0}   /* doubled classes: this must out-rank the icon-side padding of .b:has(>svg:first-child):not(.ic) */
  .b.b.fold.fold:has(>svg)::after{inset:max(calc((var(--_h) - var(--ui-hit)) / 2 - 1px),-5px)}   /* folded, it answers as an icon button (the box exists on touch only) */
  .b.fold:has(>svg)>.l{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .b.fold:has(>svg)>.chev{display:none}
  .b.fold:not(.pri,.t,.q,.ic,.dng):has(>svg:first-child :is(use[href$="i-plus"],path[d^="M12 5v14"])){padding:0;gap:0}
}

/* ---- 1i. a control on the dark strip (B4 OF2, reported by package 6): the top bar and the help's point strip. .b.bar is a
   capsule in the bar's own colours: a light wash and a light edge, light words; .q on it drops the edge. .sel.bar is the same as a
   dropdown, with the bar's chevron. Hover and press are the bar's two washes; the focus ring is the bar's light green. */
.b.bar,.sel.bar{border-color:color-mix(in srgb,var(--ui-on-fill) 28%,transparent);background:color-mix(in srgb,var(--ui-on-fill) 10%,transparent);box-shadow:none;color:var(--ui-bar-ctl-ink);text-shadow:none}
.sel.bar{background:var(--ui-bar-chev) right 7px center/12px 12px no-repeat,color-mix(in srgb,var(--ui-on-fill) 10%,transparent)}
.b.bar svg{color:currentColor;filter:none}
.b.bar.q,.sel.bar.q{border-color:transparent;background-color:transparent}
.b.bar:hover,.sel.bar:hover{border-color:color-mix(in srgb,var(--ui-on-fill) 28%,transparent);background-color:var(--ui-bar-ctl-bg-h);box-shadow:none;color:var(--ui-bar-ink-on)}
.b.bar:active,.b.bar[aria-expanded="true"],.b.bar[aria-pressed="true"],.sel.bar:active,.sel.bar[aria-expanded="true"]{border-color:color-mix(in srgb,var(--ui-on-fill) 28%,transparent);background-color:var(--ui-bar-ctl-bg-p);box-shadow:none;color:var(--ui-bar-ink-on);text-shadow:none}
.b.bar:focus-visible,.sel.bar:focus-visible{outline-color:var(--ui-bar-focus)}
/* forced colours: the system's button colours; a dropdown keeps a chevron (a native select the system's own arrow) */
@media (forced-colors:active){.b.bar,.sel.bar{border-color:ButtonText;background-color:ButtonFace;color:ButtonText}.b.bar{background-image:none}.sel.bar,.sel.bar:is(:hover,:active,[aria-expanded="true"]){background-color:ButtonFace;background-image:var(--ui-chev);background-repeat:no-repeat;background-position:right 7px center;background-size:12px 12px}.sel.bar:is(select):is(*,:hover,:active){appearance:auto;-webkit-appearance:auto;background-image:none}}

/* ---- 1f. one disclosure (B4 DS2, PLAN.md 2.5 rule 4): a tool drawn on a <summary>, with the family's chevron, pointing down when closed. */
summary.b:not(.ic,:has(>.chev))::before{content:"";order:1;display:block;flex:none;margin:0;border:0;transform:none;-webkit-mask:none;mask:none;width:var(--ui-ic);height:var(--ui-ic);margin-right:-2px;background:var(--ui-chev) center/14px 14px no-repeat;transition:transform var(--ui-t)}
summary.b:is(details[open]>summary)::before{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce){summary.b::before{transition:none}}

/* ---- 2. segmented tabs: sunk track, raised thumb ---------------------------------------------------------------------- */
.seg{--_h:var(--ui-h-m);--_px:var(--ui-px-m);--_fs:var(--ui-fs-m);display:inline-flex;align-items:stretch;gap:2px;flex:none;box-sizing:border-box;height:var(--_h);min-height:0;padding:2px;border-radius:var(--ui-r-seg);background:var(--ui-track-bg);box-shadow:var(--ui-track-sh)}
.seg.s{--_h:var(--ui-h-s);--_px:var(--ui-px-s);--_fs:var(--ui-fs-s)}
/* tab padding = the button's padding minus the 2 px track, so the first word starts where a button's word would */
.seg>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;height:auto;min-height:0;margin:0;padding:0 calc(var(--_px) - 2px);border:0;border-radius:var(--ui-r-ctl);background:none;box-shadow:none;color:var(--ui-ink-2);font:var(--ui-fw) var(--_fs)/1 var(--ui-f);letter-spacing:var(--ui-ls);text-shadow:none;white-space:nowrap;cursor:pointer;transition:background var(--ui-t),color var(--ui-t)}
.seg>button:has(>.n:last-child){padding-right:calc(var(--_px) - 6px)}
.seg>button:hover{color:var(--ui-ink);background:var(--ui-track-hover)}
/* the chosen tab: aria-selected on a role=tab, aria-pressed on a toggle button of a role=group (stage 2 templates) */
.seg>button[aria-selected="true"],.seg>button[aria-pressed="true"]{background:var(--ui-raise-bg);color:var(--ui-a-ink);text-shadow:var(--ui-edge);box-shadow:var(--ui-thumb-sh)}
.seg>button svg{width:var(--ui-ic);height:var(--ui-ic);stroke-width:1.7}
.seg>button[aria-selected="true"] svg,.seg>button[aria-pressed="true"] svg{filter:var(--ui-edge-ic)}
.seg>button[aria-selected="true"] .n,.seg>button[aria-pressed="true"] .n{color:var(--ui-a-ink)}
.seg>button:disabled{color:var(--ui-off-ink);background:none;cursor:not-allowed}

/* B4 OF2: a tab or view switch is one round-ended track (the tool's mist, sunk) with the chosen tab a white capsule lying in it */
/* ---- 3. dropdown: raised (you pick), with one chevron. Styles a <select> and the <button> that stands in for one (P3). -- */
.sel{
  --_h:var(--ui-h-m);--_lh:calc(1em + 3px);box-sizing:border-box;width:auto;height:var(--_h);min-height:0;margin:0;padding:0 28px 0 var(--ui-px-m);max-width:100%;
  border:1px solid var(--ui-raise-line);border-bottom-color:var(--ui-raise-line-b);border-radius:var(--ui-r-ctl);
  background:var(--ui-chev) right 8px center/14px 14px no-repeat,var(--ui-raise-bg);box-shadow:var(--ui-raise-sh);
  color:var(--ui-ink);font:var(--ui-fw-sel) var(--ui-fs-m)/var(--_lh) var(--ui-f);letter-spacing:var(--ui-ls);text-shadow:var(--ui-edge);text-align:left;text-transform:none;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;appearance:none;-webkit-appearance:none;cursor:pointer;
  transition:border-color var(--ui-t),box-shadow var(--ui-t);
}
.sel.s{--_h:var(--ui-h-s);--_lh:calc(1em + 2px);font-size:var(--ui-fs-s);padding-left:var(--ui-px-s)}
.sel.l{--_h:var(--ui-h-l);font-size:var(--ui-fs-l);padding-left:var(--ui-px-l)}
.sel.wide,.in.wide{display:block;width:100%}
.sel:hover{border-color:var(--ui-raise-line-h);background:var(--ui-chev) right 8px center/14px 14px no-repeat,var(--ui-raise-bg-h);box-shadow:var(--ui-raise-sh-h)}
.sel:active{background:var(--ui-chev) right 8px center/14px 14px no-repeat,var(--ui-raise-bg-p);box-shadow:var(--ui-raise-sh-p)}
/* chosen (a "Pagasts: Liepas" filter with a value) and open: tinted by the area, like an open disclosure */
.sel.set,.sel[aria-expanded="true"]{background:var(--ui-chev) right 8px center/14px 14px no-repeat,var(--ui-on-bg);border-color:var(--ui-on-line);box-shadow:var(--ui-on-sh);color:var(--ui-a-ink);text-shadow:var(--ui-edge-on)}
.sel.set:hover,.sel[aria-expanded="true"]:hover{border-color:var(--ui-a)}
.sel.set:active,.sel[aria-expanded="true"]:active{box-shadow:var(--ui-on-sh),var(--ui-raise-sh-p)}
.sel:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
/* error (a required choice left empty; P3 amendment 4): the field's terracotta edge and ring */
.sel.bad,.sel[aria-invalid="true"]{border-color:var(--ui-clay);box-shadow:var(--ui-sink-error)}
.sel:disabled,.sel[aria-disabled="true"],.sel:disabled:hover,.sel[aria-disabled="true"]:hover,.sel:disabled:active,.sel[aria-disabled="true"]:active{background:var(--ui-chev) right 8px center/14px 14px no-repeat,var(--ui-off-bg);border-color:var(--ui-off-line);box-shadow:none;color:var(--ui-off-ink);text-shadow:none;cursor:not-allowed}

/* ---- 4. text, date, textarea: sunk (you type) ------------------------------------------------------------------------- */
.in,.ta{
  --_h:var(--ui-h-m);box-sizing:border-box;margin:0;min-width:0;
  border:1px solid var(--ui-sink-line);border-top-color:var(--ui-sink-line-t);border-radius:var(--ui-r-field);
  background:var(--ui-sink-bg);box-shadow:var(--ui-sink-sh);color:var(--ui-ink);font:400 var(--ui-fs-field)/1.35 var(--ui-f);
  font-variant-numeric:tabular-nums;caret-color:var(--ui-a);transition:border-color var(--ui-t),box-shadow var(--ui-t);
}
.in{width:auto;max-width:100%;height:var(--_h);min-height:0;padding:0 var(--ui-px-in-m)}
.in.s{--_h:var(--ui-h-s);padding:0 var(--ui-px-in-s);font-size:var(--ui-fs-s)}
.in.l{--_h:var(--ui-h-l)}
.ta{display:block;width:100%;min-height:calc(var(--ui-h-m) * 2.2);padding:7px var(--ui-px-in-m);border-radius:var(--ui-r-ta);resize:vertical}
/* B4 OF2 (reported by package 6): a colour field (<input type="color" class="in col">): a round well as tall as a field, the chosen
   colour filling it inside the field's own edge */
.in.col{width:var(--_h);min-width:var(--_h);padding:2px;border-radius:50%;cursor:pointer}
.in.col::-webkit-color-swatch-wrapper{padding:0}
.in.col::-webkit-color-swatch{border:0;border-radius:50%}
.in.col::-moz-color-swatch{border:0;border-radius:50%}
/* B4 OF2: field widths by content, so a capsule field never stretches into a search bar */
.w-num{width:96px}
.w-date{width:150px}
/* a tool dropdown with a long value stops and ends in three dots (.sel already cuts its own text); .tight for a crowded row */
.sel.t{max-width:220px}
.sel.t.tight{max-width:168px}
.in::placeholder,.ta::placeholder{color:var(--ui-muted);opacity:1}
.in:hover,.ta:hover{border-color:var(--ui-sink-line-h)}
.in:focus,.ta:focus{outline:2px solid transparent;border-color:var(--ui-a);box-shadow:var(--ui-sink-sh-f),var(--ui-halo)}
/* B4 OF2 (reported by package 3): a field that holds a chosen filter value (.set): the area's tint and its line, as a set dropdown */
.in.set{border-color:var(--ui-on-line);background:var(--ui-on-bg);box-shadow:var(--ui-on-sh);color:var(--ui-a-ink)}
.in.set:hover{border-color:var(--ui-a)}
.in.set:focus{border-color:var(--ui-a);box-shadow:var(--ui-sink-sh-f),var(--ui-halo)}   /* the same visible focus as any field (Sol's review: .in.set out-ranked .in:focus) */
.in.bad,.ta.bad,.in[aria-invalid="true"],.ta[aria-invalid="true"]{border-color:var(--ui-clay);box-shadow:var(--ui-sink-error)}
.in:disabled,.ta:disabled{background:var(--ui-off-bg);border-color:var(--ui-off-line);box-shadow:none;color:var(--ui-off-ink)}
.in[type="date"]::-webkit-calendar-picker-indicator{opacity:.6;cursor:pointer}
/* field with a leading icon (search, capture box) */
.inw{position:relative;display:flex;min-width:0}
.inw>svg{position:absolute;left:9px;top:50%;width:var(--ui-ic);height:var(--ui-ic);margin-top:calc(var(--ui-ic) / -2);color:var(--ui-muted);pointer-events:none}
.inw>.in{width:100%;padding-left:calc(var(--ui-ic) + 16px)}
.inw>kbd{position:absolute;right:8px;top:50%;transform:translateY(-50%);font:620 12px/1 var(--ui-f);color:var(--ui-muted)}
/* ---- 4b. No and Līdz: one capsule (B4 OF2, decision 196). <span class="rng"><input class="in"><span aria-hidden="true">–</span>
   <input class="in"></span> (LMFUI.range). The two fields share one outline; the dash sits in the field's own surface between them. */
.rng{display:inline-flex;align-items:stretch;flex:none;min-width:0;vertical-align:middle}
.rng>:is(.in,input){width:84px;min-width:0}
.rng>:is(.in,input):first-child{border-top-right-radius:0;border-bottom-right-radius:0;border-right-width:0}
.rng>:is(.in,input):last-child{border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:0;padding-left:8px}
.rng>:is(.in,input):focus{position:relative;z-index:1}
.rng>:is(.in,input):is([type="date"],.w-date){width:150px}   /* B4 OF2 (package 5): a period: 84 px cuts a date */
.rng>:is(.in,input).w-num{width:96px}
.rng>span{display:grid;place-items:center;flex:none;box-sizing:border-box;padding:0 3px;border-top:1px solid var(--ui-sink-line-t);border-bottom:1px solid var(--ui-sink-line);background:var(--ui-sink-bg);box-shadow:var(--ui-rng-sh);color:var(--ui-muted);font:400 var(--ui-fs-field)/1 var(--ui-f)}
.rng:has(>:disabled)>span{background:var(--ui-off-bg);border-color:var(--ui-off-line);box-shadow:none;color:var(--ui-off-ink)}
@media (forced-colors:active){.rng>span{background:Field;border-color:ButtonText;box-shadow:none}}
/* ---- 4c. a field joined to a dropdown (B4 OF2, reported by package 4: "Kas notika?" with its property picker). <div class="join">
   <label class="inw">icon<input class="in"></label><button class="sel">...</button></div>: one capsule, the seam straight, each
   half its own look (you type in the sunk half, you pick in the raised half). The field takes the free width. */
.join{display:flex;align-items:stretch;min-width:0}
.join>:is(.in,.inw){flex:1 1 auto;min-width:0}
.join>.in:not(:last-child),.join>.inw:not(:last-child)>.in{border-top-right-radius:0;border-bottom-right-radius:0}
.join>:is(.sel,.b):not(:first-child){flex:0 1 auto;min-width:0;max-width:46%;margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}
.join>.in:focus,.join>.inw>.in:focus{position:relative;z-index:1}
/* ---- 4d. the slider (B4 OF2): <input type="range" class="rg">. A sunk warm stone track with round ends, its filled part in the area's
   colour, a white satin thumb. The filled part reads --_fill (a percentage lmf-ui.js keeps equal to the value; Firefox draws its
   own progress). .rgl lays a slider out with its label and its value so the three never overlap: the label takes what its words
   need, the slider the rest (never under 96 px), the value its own width; in a narrow place the slider drops under the label. */
.rg{--_th:18px;--_tk:6px;--_fill:0%;appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:var(--ui-h-s);min-height:0;margin:0;padding:0;border:0;background:none;cursor:pointer;accent-color:var(--ui-a)}
.rg::-webkit-slider-runnable-track{box-sizing:border-box;height:var(--_tk);border-radius:var(--ui-r-ctl);background:linear-gradient(var(--ui-a),var(--ui-a)) 0 0/var(--_fill) 100% no-repeat,var(--ui-track-bg);box-shadow:var(--ui-track-sh)}
.rg::-moz-range-track{box-sizing:border-box;height:var(--_tk);border-radius:var(--ui-r-ctl);background:var(--ui-track-bg);box-shadow:var(--ui-track-sh)}
.rg::-moz-range-progress{height:var(--_tk);border-radius:var(--ui-r-ctl);background:var(--ui-a)}
.rg::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:var(--_th);height:var(--_th);margin-top:calc((var(--_tk) - var(--_th)) / 2);border:1px solid var(--ui-raise-line);border-bottom-color:var(--ui-raise-line-b);border-radius:50%;background:var(--ui-raise-bg);box-shadow:var(--ui-raise-sh)}
.rg::-moz-range-thumb{box-sizing:border-box;width:var(--_th);height:var(--_th);border:1px solid var(--ui-raise-line);border-bottom-color:var(--ui-raise-line-b);border-radius:50%;background:var(--ui-raise-bg);box-shadow:var(--ui-raise-sh)}
.rg:hover::-webkit-slider-thumb{border-color:var(--ui-raise-line-h);background:var(--ui-raise-bg-h);box-shadow:var(--ui-raise-sh-h)}
.rg:hover::-moz-range-thumb{border-color:var(--ui-raise-line-h);background:var(--ui-raise-bg-h);box-shadow:var(--ui-raise-sh-h)}
.rg:active::-webkit-slider-thumb{background:var(--ui-raise-bg-p);box-shadow:var(--ui-raise-sh-p)}
.rg:active::-moz-range-thumb{background:var(--ui-raise-bg-p);box-shadow:var(--ui-raise-sh-p)}
.rg:focus{outline:0}
.rg:focus-visible::-webkit-slider-thumb{outline:2px solid var(--ui-a);outline-offset:2px}
.rg:focus-visible::-moz-range-thumb{outline:2px solid var(--ui-a);outline-offset:2px}
.rg:disabled{cursor:not-allowed}
.rg:disabled::-webkit-slider-runnable-track{background:var(--ui-off-bg);box-shadow:none}
.rg:disabled::-moz-range-track{background:var(--ui-off-bg);box-shadow:none}
.rg:disabled::-moz-range-progress{background:var(--ui-off-line)}
.rg:disabled::-webkit-slider-thumb{border-color:var(--ui-off-line);background:var(--ui-off-bg);box-shadow:none}
.rg:disabled::-moz-range-thumb{border-color:var(--ui-off-line);background:var(--ui-off-bg);box-shadow:none}
.rgl{display:grid;grid-template-columns:minmax(0,auto) minmax(96px,1fr) auto;align-items:center;gap:var(--ui-sp-2) var(--ui-sp-3);min-width:0;margin:0;color:var(--ui-ink);font:var(--ui-t-body)}
.rgl>:is(span,b,strong):first-child{min-width:0;overflow-wrap:anywhere}
.rgl>:is(output,.rg-v){min-width:3ch;color:var(--ui-ink-2);font:var(--ui-t-data);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.rgl.stack{grid-template-columns:minmax(0,1fr) auto}
.rgl.stack>.rg{grid-column:1/-1;grid-row:2}
@media (max-width:480px){.rgl{grid-template-columns:minmax(0,1fr) auto}.rgl>.rg{grid-column:1/-1;grid-row:2}}
/* forced colours: the system's own slider, which draws its track, fill and thumb in system colours */
@media (forced-colors:active){.rg{appearance:auto;-webkit-appearance:auto;accent-color:auto}}
/* a field with its label, hint and error message */
.fld{display:flex;flex-direction:column;min-width:0}
.fl{display:block;margin:0 0 4px;color:var(--ui-ink-2);font:620 var(--ui-fs-label)/1.3 var(--ui-f)}
.fl i{font-style:normal;font-weight:400;color:var(--ui-muted)}
.hint{margin:4px 0 0;color:var(--ui-muted);font:400 12px/1.35 var(--ui-f)}
.errm{margin:4px 0 0;color:var(--ui-clay);font:620 12px/1.35 var(--ui-f)}

/* ---- 5. tick box and radio: sunk box, raised in the area colour when on ------------------------------------------------ */
/* B4 CB1 (decision 147): every tick box is engraved (TD3): pressed into the surface, a gentle area fill and a tick that settles in.
   The compact size is the family box (16 px, 20 on touch) as a soft square; task rows use .ck--engraved (round, 20 / 22 px). */
.ck,.rd{appearance:none;-webkit-appearance:none;position:relative;flex:none;box-sizing:border-box;width:var(--ui-box);height:var(--ui-box);min-width:0;min-height:0;margin:0;padding:0;border:1px solid var(--ui-cke-line);border-top-color:var(--ui-cke-line-t);background-color:var(--ui-cke-bg);box-shadow:var(--ui-cke-sh);vertical-align:middle;cursor:pointer;transition:background-color .24s cubic-bezier(.16,1,.3,1),background-size .28s cubic-bezier(.16,1,.3,1),border-color .24s cubic-bezier(.16,1,.3,1),box-shadow .24s cubic-bezier(.16,1,.3,1)}
.ck{border-radius:var(--ui-ck-r);background-image:var(--ui-tick);background-position:center;background-repeat:no-repeat;background-size:0 0}
.rd{border-radius:50%}
.ck:hover,.rd:hover{border-color:var(--ui-a);background-color:var(--ui-a-soft)}
.ck:checked{border-color:transparent;background-color:var(--ui-a);background-image:var(--ui-tick);background-size:var(--ui-ck-tick) var(--ui-ck-tick);box-shadow:var(--ui-cke-on-sh)}
.rd:checked{border-color:transparent;background-color:var(--ui-a);box-shadow:var(--ui-cke-on-sh)}
.ck:indeterminate{border-color:transparent;background-color:var(--ui-a);background-image:var(--ui-ck-dash);background-size:var(--ui-ck-tick) var(--ui-ck-tick);box-shadow:var(--ui-cke-on-sh)}
.rd:checked::after{content:"";position:absolute;inset:27%;border-radius:50%;background:var(--ui-box-dot)}
.ck:disabled,.rd:disabled{background-color:var(--ui-off-bg);border-color:var(--ui-off-line);box-shadow:var(--ui-cke-off-sh);cursor:not-allowed}
.ck:checked:disabled,.ck:indeterminate:disabled{border-color:transparent;background-color:var(--ui-ck-off);box-shadow:var(--ui-cke-offon-sh)}
/* B4 TD3 (decisions 124, 125): the engraved tick box, one family control. A soft round mark pressed into the surface (a fine inner
   shadow, a subtle rim, a light lip below it), a gentle fill in the area colour and a calm tick that settles in when ticked.
   Markup: <input type="checkbox" class="ck ck--engraved">; the label around it stays the press target. For now only Šodien's lists
   use it (decision 125). To make every tick box engraved later, add the class where the boxes are drawn (TD3-NOTES.md lists them)
   or move these rules onto .ck. */
.ck.ck--engraved{--_ck:20px;width:var(--_ck);height:var(--_ck);border:1px solid var(--ui-cke-line);border-top-color:var(--ui-cke-line-t);border-radius:50%;background:var(--ui-cke-bg);box-shadow:var(--ui-cke-sh);transition:background-color .24s cubic-bezier(.16,1,.3,1),border-color .24s cubic-bezier(.16,1,.3,1),box-shadow .24s cubic-bezier(.16,1,.3,1)}
.ck.ck--engraved::after{content:"";position:absolute;inset:-1px;border-radius:50%;background:var(--ui-tick) center/58% no-repeat;opacity:0;transform:scale(.55);transition:opacity .18s ease-out,transform .28s cubic-bezier(.16,1,.3,1);pointer-events:none}
.ck.ck--engraved:hover:not(:disabled){border-color:var(--ui-a);background:var(--ui-a-soft)}
.ck.ck--engraved:checked{border-color:transparent;background:var(--ui-a);box-shadow:var(--ui-cke-on-sh)}
.ck.ck--engraved:checked::after{opacity:1;transform:none}
.ck.ck--engraved:focus-visible{outline:2px solid var(--ui-a);outline-offset:3px}
.ck.ck--engraved:disabled{border-color:var(--ui-off-line);background:var(--ui-off-bg);box-shadow:var(--ui-cke-off-sh);cursor:default}
.ck.ck--engraved:checked:disabled{border-color:transparent;background:var(--ui-ck-off);box-shadow:var(--ui-cke-offon-sh)}
@media (max-width:700px),(pointer:coarse){.ck.ck--engraved{--_ck:22px}}
@media (prefers-reduced-motion:reduce){.ck.ck--engraved,.ck.ck--engraved::after{transition:none}}
@media (forced-colors:active){.ck.ck--engraved{border-color:ButtonText;box-shadow:none}.ck.ck--engraved:checked{background:Highlight}}
.ck.bad,.ck[aria-invalid="true"]{border-color:var(--ui-clay);box-shadow:var(--ui-sink-error)}
.cl{display:inline-flex;align-items:center;gap:7px;min-height:var(--ui-h-s);color:var(--ui-ink);font:400 var(--ui-fs-m)/1.3 var(--ui-f);cursor:pointer}
.cl small{color:var(--ui-muted);font:400 12px/1.3 var(--ui-f)}
/* B4 OF2: a tick row in a list (a filter's choices): the whole row answers, its count stands at the end */
.cl.row{display:flex;box-sizing:border-box;width:100%;min-height:28px;padding:0 6px;border-radius:var(--ui-r-in)}
.cl.row:hover{background:var(--ui-wash)}
.cl.row small{margin-left:auto;font-variant-numeric:tabular-nums}
.cl.off{color:var(--ui-off-ink);cursor:not-allowed}

/* ---- 6. tag: information only, flat. Tag colours name the kind of thing and do not follow the area. -------------------- */
.tag{display:inline-flex;align-items:center;gap:4px;flex:none;box-sizing:border-box;height:20px;padding:0 7px;border-radius:10px;background:var(--ui-stone-2);color:var(--ui-ink-2);font:620 12px/1 var(--ui-f);white-space:nowrap;font-variant-numeric:tabular-nums}
.tag svg{width:12px;height:12px}
.tag.pine{background:var(--ui-pine-tint);color:var(--ui-pine)}
.tag.ochre{background:var(--ui-ochre-tint);color:var(--ui-ochre-ink)}
.tag.slate{background:var(--ui-slate-tint);color:var(--ui-slate-ink)}
.tag.late{background:var(--ui-clay-tint);color:var(--ui-clay)}
.tag.warn{background:var(--ui-warn-tint);color:var(--ui-warn-ink)}
/* B4 OF2: a chosen filter (.tag.on): the area's tint with its ring, 24 px (32 on touch), a round quiet cross (.b.q.ic.xs) at its end.
   LMFUI.tagOn. Words 6.4 to 8.1 on the tint, the ring 5.9 to 8.7 against white */
.tag.on{height:24px;padding:0 0 0 10px;gap:2px;background:var(--ui-on-bg);box-shadow:inset 0 0 0 1px var(--ui-a);color:var(--ui-a-ink)}
.tag.on>.b.q{color:inherit}
.tag.on>.b.q:hover{background:color-mix(in srgb,var(--ui-a-ink) 14%,transparent);color:inherit}
@media (forced-colors:active){.tag.on{box-shadow:none;outline:1px solid Highlight}}
/* B4 OF2 (reported by package 2): a tag you can press (.tag.act on a <button> or <summary>: a restriction, a "check this" mark). It
   keeps the tag's colour, which carries the meaning; hover draws a ring in its own colour; it answers on the family's touch box */
:is(button,summary,a).tag.act{position:relative;height:24px;min-width:0;min-height:0;margin:0;padding:0 8px;border:0;list-style:none;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tag.act::-webkit-details-marker{display:none}
.tag.act:hover{box-shadow:inset 0 0 0 1px currentColor}
.tag.act:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
@media (forced-colors:active){.tag.act{outline:1px solid ButtonText}}
/* B4 DS0: the counter tag: a count with its word and picture ("Zvani 6"), never a bare number */
.tag.cnt{gap:5px;padding:0 8px 0 6px}
.tag.cnt b{font-weight:700;font-variant-numeric:tabular-nums}

/* ---- 6b. the date mark (B4 DM1, decision 156): one engraved plate for every date, hour and lateness, the last thing on a card's
   or row's first line. Not a button, no fill: urgency is told by the dot's form, the words and their tone together. Markup comes only
   from LMFUI.dateMark / LMFUI.lateCount (lmf-ui.js). The ladder: nothing for a later day, a ring for tomorrow, a half dot today, a solid
   dot when late; a picture in the dot's place for waiting, done and told. */
.dm{display:inline-flex;align-items:center;gap:var(--ui-dm-gap);flex:none;box-sizing:border-box;height:var(--ui-dm-h);margin:0;padding:0 var(--ui-dm-px);border:1px solid var(--ui-dm-line);border-top-color:var(--ui-dm-line-t);border-radius:var(--ui-dm-r);background:var(--ui-dm-bg);box-shadow:var(--ui-dm-sh);color:var(--ui-dm-ink);font:620 var(--ui-fs-dm)/1 var(--ui-f);font-variant-numeric:normal;letter-spacing:0;white-space:nowrap;text-shadow:var(--ui-edge);vertical-align:middle}
.dm-g{display:none;flex:none;box-sizing:border-box;width:var(--ui-dm-dot);height:var(--ui-dm-dot);border-radius:50%}
.dm-g>svg{display:block;width:var(--ui-dm-ic);height:var(--ui-dm-ic);stroke-width:2}
.dm-x{display:inline-flex;align-items:baseline;gap:4px}
.dm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dm-w,.dm-h{font-weight:400}
.dm-w{color:var(--ui-dm-mute)}
.dm[data-s="tomorrow"]>.dm-g{display:block;border:1.5px solid currentColor}
.dm[data-s="today"]{color:var(--ui-dm-now)}
.dm[data-s="today"]>.dm-g{display:block;border:1.5px solid var(--ui-dm-now-dot);background:linear-gradient(90deg,var(--ui-dm-now-dot) 50%,transparent 50%)}
.dm[data-s="late"],.dm[data-late]{color:var(--ui-dm-late)}
/* B4 EN1-c: a soft day that has come (a wait to check back, a day LMF planned itself): the calm "today" tone with a ring, never red */
.dm[data-s="check"],.dm[data-s="slip"]{color:var(--ui-dm-now)}
.dm[data-s="check"]>.dm-g,.dm[data-s="slip"]>.dm-g{display:block;border:1.5px solid var(--ui-dm-now-dot)}
.dm[data-s="late"]>.dm-g{display:block;background:var(--ui-dm-late-dot);box-shadow:var(--ui-dm-dot-sh)}
.dm[data-s="wait"]>.dm-g,.dm[data-s="done"]>.dm-g,.dm[data-s="ago"]>.dm-g,.dm[data-s="untold"]>.dm-g{display:block;width:var(--ui-dm-ic);height:var(--ui-dm-ic);border-radius:0}
.dm[data-s="done"]{color:var(--ui-dm-mute);font-weight:400}
.dm[data-s="none"]{border-style:dashed;background:none;box-shadow:none;color:var(--ui-dm-mute);font-weight:400;text-shadow:none}
.dm.dm-n{font-weight:700}
@media (forced-colors:active){.dm{border-color:CanvasText;box-shadow:none}.dm[data-s="late"]>.dm-g{background:CanvasText}}

/* ---- 7. popover and menu panel: the surface of every opened dropdown list and action menu (decision 22; P3 fills lmf-menu.css) */
.pop{box-sizing:border-box;padding:10px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh);color:var(--ui-ink);font:var(--ui-t-body)}
.menu{padding:4px;min-width:190px}
.menu>button{display:flex;align-items:center;gap:8px;box-sizing:border-box;width:100%;height:var(--ui-h-m);min-height:0;margin:0;padding:0 8px;border:0;border-radius:var(--ui-r-in);background:none;box-shadow:none;color:var(--ui-ink);font:400 var(--ui-fs-m)/1 var(--ui-f);text-align:left;text-shadow:none;white-space:nowrap;cursor:pointer}
.menu>button:hover{background:var(--ui-wash)}
.menu>button.is-active{background:var(--ui-wash)}   /* B4 OF2: the row the arrow keys or the pointer stand on */
.menu>button[aria-selected="true"]{color:var(--ui-a-ink);font-weight:620}   /* the value now chosen */
.menu>button:focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
.menu>button:disabled{color:var(--ui-off-ink);background:none;cursor:not-allowed}
.menu>button svg{width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-ink-2);stroke-width:1.7}
.menu>button.dng,.menu>button.dng svg{color:var(--ui-clay)}
.menu>hr{height:1px;margin:4px 0;border:0;background:var(--ui-line)}

/* ---- 7a. the phone sheet (B4 OF2; the filter row's "Filtri" on a phone is the first user). A sheet that rises from the bottom:
   a grab bar, a head (title, a quiet "clear", the quiet round cross), sections as row buttons (.rowb.two with the chosen values as the
   second line), a stone foot with an action and the one main button filling the width. .full fills the screen. LMFUI.sheet. */
.psh{display:flex;flex-direction:column;box-sizing:border-box;width:100%;max-height:100%;margin:0;padding:0;border:0;border-radius:var(--ui-sheet-r) var(--ui-sheet-r) 0 0;background:var(--ui-dlg-bg);box-shadow:var(--ui-dlg-sh);color:var(--ui-ink);overflow:hidden}
.psh.full{height:100%;border-radius:0;box-shadow:none}
dialog.psh{max-width:none;max-height:none}   /* B4 OF2 (package 5): on a <dialog> the browser's own size limits are lifted, and closed it is not shown */
dialog.psh:not([open]){display:none}
dialog.psh:not(.full){inset:auto 0 0;height:auto;max-height:calc(100% - 24px)}
.psh-grab{flex:none;width:36px;height:4px;margin:8px auto 2px;border-radius:2px;background:var(--ui-line-2)}
.psh.full>.psh-grab{display:none}
.psh-h{display:flex;align-items:center;gap:var(--ui-sp-1);flex:none;min-height:48px;padding:0 var(--ui-sp-2) 0 var(--ui-gut-in)}
.psh-h>:is(h2,h3){flex:1;min-width:0;margin:0;overflow:hidden;color:var(--ui-ink);font:var(--ui-t-win);text-overflow:ellipsis;white-space:nowrap}
.psh-b{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;border-top:1px solid var(--ui-line)}
.psh-b>.rowb:first-child{border-top:0}
.psh-f{display:grid;grid-template-columns:auto 1fr;gap:var(--ui-sp-2);flex:none;padding:var(--ui-sp-3) var(--ui-gut-in) calc(var(--ui-sp-3) + env(safe-area-inset-bottom,0px));border-top:1px solid var(--ui-line);background:var(--ui-stone-foot)}
.psh-f>.b:only-child{grid-column:1/-1}
@media (forced-colors:active){.psh{border:1px solid CanvasText;box-shadow:none}}

/* ---- 7b. cards, columns, heads (B4 DS0, decision 168; plan-design-system PLAN.md 2.2, 2.10, 2.11) ----------------------- */
/* the card: white, one fine line, the card corner, no drop. .sub: a card in a column or another box (the control corner, the one soft
   drop a card may have, because it lies on stone). .pad: text in it; none when it holds rows. The column: stone, 8 px inside.
   overflow: the dead legacy .card rules (style.css, workspace.css) clip; this one does not. */
.card{box-sizing:border-box;border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface);box-shadow:none;overflow:visible}
.card.sub{border-radius:var(--ui-r);box-shadow:var(--ui-card-sh)}
.card.pad{padding:var(--ui-sp-3) var(--ui-gut-in)}
/* rows in a card: the first and last row's hover wash and focus ring follow the card's corners */
.card>.rowb:first-child{border-top-left-radius:calc(var(--ui-r-card) - 1px);border-top-right-radius:calc(var(--ui-r-card) - 1px)}
.card>.rowb:last-child{border-bottom-left-radius:calc(var(--ui-r-card) - 1px);border-bottom-right-radius:calc(var(--ui-r-card) - 1px)}
.col{box-sizing:border-box;padding:var(--ui-sp-2);border-radius:var(--ui-r-card);background:var(--ui-stone-2)}
/* the section head: a small heading over a list or a block, its count as a plain caption (.sh-n), then (.sp pushes right) at most three
   buttons. Sentence case, never capitals. */
.sh{display:flex;align-items:center;gap:var(--ui-sp-2);min-height:var(--ui-h-s);margin:0;color:var(--ui-ink-2);font:var(--ui-t-head)}
.sh>svg{flex:none;width:14px;height:14px;color:var(--ui-ico-mute)}
.sh .sh-n{color:var(--ui-muted);font-weight:400;font-variant-numeric:tabular-nums}
.sh>.sp{flex:1}
/* the page head: one title, then (.sp) "..." and "Jauns ..." at the right; the page toolbar: one row of controls under it */
.pgh{display:flex;align-items:center;gap:var(--ui-sp-3);min-height:var(--ui-h-l);margin:0;padding:var(--ui-sp-5) var(--ui-gut) var(--ui-sp-4)}
.pgh>h1{margin:0;color:var(--ui-ink);font:var(--ui-t-page);letter-spacing:-.005em}
.pgh>.sp{flex:1}
.tb{display:flex;align-items:center;gap:var(--ui-sp-2);flex-wrap:wrap;padding:0 var(--ui-gut) var(--ui-sp-4)}
.tb>.sp{flex:1}

/* ---- 7c. satin: the card and the column that lift (B4 PL2, decision 221; Janis 25 Nov: Plānotājs and Darījumi "look like extension
   of one another": 3D-ish cards). .card.sat: a satin card that leans a little toward the pointer (LMFUI.lean sets --ui-rx and --ui-ry),
   lifts on hover and settles where it lands (.settle); while it is dragged its place is faint (.lifting). .col.sat: the raised column
   it lies in; .past is over, .now is today (a brass line along its top), .over is where a dragged card will land (lifted, pine).
   Reduced motion: no lean, no lift, no settle. */
.card.sat{background:var(--ui-sat-card-bg);box-shadow:var(--ui-sat-card-sh);transform:perspective(520px) rotateX(var(--ui-rx,0deg)) rotateY(var(--ui-ry,0deg));transition:transform .12s ease-out,box-shadow .16s,border-color .16s}
.card.sat:hover{border-color:var(--ui-line-2);box-shadow:var(--ui-sat-card-sh-h)}
.card.sat.settle{animation:ui-settle .55s cubic-bezier(.2,.9,.25,1.2)}
.card.sat.lifting{opacity:.4;transform:none}
.col.sat{border:1px solid var(--ui-line);background:var(--ui-raise-bg);box-shadow:var(--ui-raise-sh);transition:transform .25s cubic-bezier(.16,1,.3,1),background .2s,box-shadow .2s,border-color .2s}
.col.sat.past{background:var(--ui-stone-foot);box-shadow:none}
.col.sat.now{position:relative;border-color:var(--ui-ochre-line);background:linear-gradient(180deg,var(--ui-ochre-soft),var(--ui-surface) 160px)}
.col.sat.now::before{content:"";position:absolute;top:-1px;right:14px;left:14px;height:2px;border-radius:0 0 2px 2px;background:var(--ui-brass-line)}
.col.sat.over{border-color:var(--ui-pine);background:var(--ui-pine-soft);box-shadow:var(--ui-sat-drop-sh);transform:translateY(-2px)}
@keyframes ui-settle{0%{transform:translateY(-6px) scale(1.03);background:var(--ui-pine-tint);box-shadow:var(--ui-sat-lift-sh)}60%{transform:translateY(1px)}100%{transform:none}}
@media (prefers-reduced-motion:reduce){
.card.sat,.col.sat{transition:none}
.card.sat,.card.sat:hover,.col.sat.over{transform:none}
.card.sat.settle{animation:none}
}

/* ---- 8. untouched markup by element (P2b, plan section 4): the family's look and height for every field, dropdown and tick box an
   existing page builds. Look and height only: the side padding (search fields keep their icon room), width, min-width, margin,
   display and position stay the legacy layout's. A textarea keeps its height. A select stays a real select (P3 replaces its opened list).
   Text-like inputs by type: never file, range, color or hidden. Size by place: 30 px; 26 px inside a table, a popover or a menu. */
:where(select,textarea,input:not([type]),input[type="text"],input[type="search"],input[type="password"],input[type="email"],input[type="tel"],input[type="url"],input[type="number"],input[type="date"],input[type="time"],input[type="datetime-local"],input[type="month"]){
  box-sizing:border-box;border:1px solid var(--ui-sink-line);border-top-color:var(--ui-sink-line-t);border-radius:var(--ui-r-field);
  background-color:var(--ui-sink-bg);box-shadow:var(--ui-sink-sh);color:var(--ui-ink);font:400 var(--ui-fs-field)/1.35 var(--ui-f);
  caret-color:var(--ui-a);transition:border-color var(--ui-t),box-shadow var(--ui-t);
}
:where(select,input:not([type]),input[type="text"],input[type="search"],input[type="password"],input[type="email"],input[type="tel"],input[type="url"],input[type="number"],input[type="date"],input[type="time"],input[type="datetime-local"],input[type="month"]){
  --_h:var(--ui-h-m);height:var(--_h);min-height:0;padding-block:0;
}
:where(table,.pop,[role="menu"]) :where(select,input:not([type]),input[type="text"],input[type="search"],input[type="number"],input[type="date"]){--_h:var(--ui-h-s)}
:where(input,textarea)::placeholder{color:var(--ui-muted);opacity:1}
:where(textarea:hover,input:not([type]):hover,input[type="text"]:hover,input[type="search"]:hover,input[type="password"]:hover,input[type="email"]:hover,input[type="tel"]:hover,input[type="url"]:hover,input[type="number"]:hover,input[type="date"]:hover,input[type="time"]:hover,input[type="datetime-local"]:hover,input[type="month"]:hover){border-color:var(--ui-sink-line-h)}
:where(textarea:focus,input:not([type]):focus,input[type="text"]:focus,input[type="search"]:focus,input[type="password"]:focus,input[type="email"]:focus,input[type="tel"]:focus,input[type="url"]:focus,input[type="number"]:focus,input[type="date"]:focus,input[type="time"]:focus,input[type="datetime-local"]:focus,input[type="month"]:focus){outline:2px solid transparent;border-color:var(--ui-a);box-shadow:var(--ui-sink-sh-f),var(--ui-halo)}
:where(textarea){border-radius:var(--ui-r-ta)}
/* B4 OF2: an untouched "No - Līdz" (two number fields with a dash between them) shares one outline, as .rng. Look only: the page
   that lays them out removes its own gap around the dash */
:where(input[type="number"]:has(+span[aria-hidden]+input[type="number"])){border-top-right-radius:0;border-bottom-right-radius:0;border-right-width:0}
:where(input[type="number"]+span[aria-hidden]+input[type="number"]){border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:0}
:where(input[type="number"]+span[aria-hidden]:has(+input[type="number"])){box-sizing:border-box;height:var(--ui-h-m);line-height:calc(var(--ui-h-m) - 2px);text-align:center;border-top:1px solid var(--ui-sink-line-t);border-bottom:1px solid var(--ui-sink-line);background:var(--ui-sink-bg);box-shadow:var(--ui-rng-sh)}
:where(input[type="number"]:disabled+span[aria-hidden]:has(+input[type="number"])){background:var(--ui-off-bg);border-color:var(--ui-off-line);box-shadow:none}
:where(input[readonly],textarea[readonly]){background-color:var(--ui-canvas);box-shadow:none}
:where(input[type="search"].is-filter-active,input[type="text"].is-filter-active,input:not([type]).is-filter-active){border-color:var(--ui-on-line);background:var(--ui-on-bg);color:var(--ui-ink)}
/* a dropdown is raised (you pick), with the family chevron; its value is weight 540 */
:where(select){
  appearance:none;-webkit-appearance:none;border-color:var(--ui-raise-line);border-bottom-color:var(--ui-raise-line-b);border-radius:var(--ui-r-ctl);
  background:var(--ui-chev) right 8px center/14px 14px no-repeat,var(--ui-raise-bg);box-shadow:var(--ui-raise-sh);
  font-weight:var(--ui-fw-sel);letter-spacing:var(--ui-ls);text-shadow:var(--ui-edge);text-overflow:ellipsis;cursor:pointer;
  padding-right:28px;   /* the room of the family chevron, as .sel; the legacy 34 to 36 px were the room of the old chevron */
}
:where(select:hover){border-color:var(--ui-raise-line-h);background:var(--ui-chev) right 8px center/14px 14px no-repeat,var(--ui-raise-bg-h);box-shadow:var(--ui-raise-sh-h)}
:where(select:active){background:var(--ui-chev) right 8px center/14px 14px no-repeat,var(--ui-raise-bg-p);box-shadow:var(--ui-raise-sh-p)}
:where(select:focus-visible){outline:2px solid var(--ui-a);outline-offset:2px}
/* an active filter (Pagasts: Liepas chosen) keeps a "set" look, tinted by the area */
:where(select.is-filter-active){background:var(--ui-chev) right 8px center/14px 14px no-repeat,var(--ui-on-bg);border-color:var(--ui-on-line);box-shadow:var(--ui-on-sh);color:var(--ui-a-ink);text-shadow:var(--ui-edge-on)}
:where(select[aria-invalid="true"],input[aria-invalid="true"],textarea[aria-invalid="true"]){border-color:var(--ui-clay);box-shadow:var(--ui-sink-error)}
:where(select:disabled,textarea:disabled,input:not([type]):disabled,input[type="text"]:disabled,input[type="search"]:disabled,input[type="password"]:disabled,input[type="email"]:disabled,input[type="tel"]:disabled,input[type="url"]:disabled,input[type="number"]:disabled,input[type="date"]:disabled,input[type="time"]:disabled,input[type="datetime-local"]:disabled,input[type="month"]:disabled){background-color:var(--ui-off-bg);border-color:var(--ui-off-line);box-shadow:none;color:var(--ui-off-ink);text-shadow:none}
:where(select:disabled){background:var(--ui-chev) right 8px center/14px 14px no-repeat,var(--ui-off-bg);cursor:not-allowed}
/* tick boxes and radios: sunk box, raised in the area colour when on. The people panel's full-cover invisible overlay is excluded
   (p0/exceptions.json). Legacy drawn ticks (::before, ::after) are switched off so a box shows one tick. */
:where(input[type="checkbox"]:not(.v31-pp-tick input),input[type="radio"]:not(.v31-pp-tick input)){
  appearance:none;-webkit-appearance:none;box-sizing:border-box;width:var(--ui-box);height:var(--ui-box);min-width:0;min-height:0;max-width:none;max-height:none;flex-basis:auto;padding:0;
  border:1px solid var(--ui-cke-line);border-top-color:var(--ui-cke-line-t);border-radius:var(--ui-ck-r);background:var(--ui-cke-bg);box-shadow:var(--ui-cke-sh);
  cursor:pointer;transition:background-color .24s cubic-bezier(.16,1,.3,1),background-size .28s cubic-bezier(.16,1,.3,1),border-color .24s cubic-bezier(.16,1,.3,1),box-shadow .24s cubic-bezier(.16,1,.3,1);
}
/* B4 CB1 (decision 147): the engraved compact tick box; the tick is drawn from the start at size 0 and settles in when ticked */
:where(input[type="checkbox"]:not(.v31-pp-tick input)){background-image:var(--ui-tick);background-position:center;background-repeat:no-repeat;background-size:0 0}
:where(input[type="checkbox"]:not(.v31-pp-tick input),input[type="radio"]:not(.v31-pp-tick input))::before,
:where(input[type="checkbox"]:not(.v31-pp-tick input),input[type="radio"]:not(.v31-pp-tick input))::after{content:none}
:where(input[type="radio"]:not(.v31-pp-tick input)){border-radius:50%}
:where(input[type="checkbox"]:not(.v31-pp-tick input):hover,input[type="radio"]:not(.v31-pp-tick input):hover){border-color:var(--ui-a);background-color:var(--ui-a-soft)}
:where(input[type="checkbox"]:not(.v31-pp-tick input):checked){border-color:transparent;background-color:var(--ui-a);background-image:var(--ui-tick);background-size:var(--ui-ck-tick) var(--ui-ck-tick);box-shadow:var(--ui-cke-on-sh)}
:where(input[type="checkbox"]:not(.v31-pp-tick input):indeterminate){border-color:transparent;background-color:var(--ui-a);background-image:var(--ui-ck-dash);background-size:var(--ui-ck-tick) var(--ui-ck-tick);box-shadow:var(--ui-cke-on-sh)}
:where(input[type="radio"]:not(.v31-pp-tick input):checked){border-color:transparent;background:radial-gradient(circle closest-side,var(--ui-box-dot) 0 44%,transparent 52%),var(--ui-a);box-shadow:var(--ui-cke-on-sh)}
:where(input[type="checkbox"]:not(.v31-pp-tick input):focus-visible,input[type="radio"]:not(.v31-pp-tick input):focus-visible){outline:2px solid var(--ui-a);outline-offset:2px}
:where(input[type="checkbox"]:not(.v31-pp-tick input):disabled,input[type="radio"]:not(.v31-pp-tick input):disabled){background-color:var(--ui-off-bg);border-color:var(--ui-off-line);box-shadow:var(--ui-cke-off-sh);cursor:not-allowed}
:where(input[type="checkbox"]:not(.v31-pp-tick input):checked:disabled,input[type="checkbox"]:not(.v31-pp-tick input):indeterminate:disabled){border-color:transparent;background-color:var(--ui-ck-off);box-shadow:var(--ui-cke-offon-sh)}
:where(input[type="radio"]:not(.v31-pp-tick input):checked:disabled){border-color:transparent;background:radial-gradient(circle closest-side,var(--ui-box-dot) 0 44%,transparent 52%),var(--ui-ck-off)}

/* ---- touch: one height, bigger type, every button, tab and tick box answers on 44 x 44 (2 px more on every side) ------- */
@media (max-width:700px),(pointer:coarse){
  /* B4 OF2 1c (decision 198): the compact phone scale; sizes and their reasons stand in lmf-tokens.css (the touch block).
     An absolute box is placed from the padding box, inside the 1 px border, so each hit area reaches 1 px further: the full --ui-hit */
  /* THE RULE OF TAP BOXES (Sol's review): an invisible box never reaches more than 4 px past its control, in any direction: half of
     the family's 8 px between controls, so two neighbours' boxes can touch and never overlap. (-5 px: 4 past the edge plus the 1 px
     border the box is placed inside.) A 34 px button answers on 40, a 32 px one on 40, a 28 px tag cross on 36. */
  .b::after{content:"";position:absolute;inset:max(calc((var(--_h) - var(--ui-hit)) / 2 - 1px),-5px) 0}   /* a button with a word: up and down only */
  .b.ic::after,.b.xs::after,.b.icp:has(>svg)::after{inset:max(calc((var(--_h) - var(--ui-hit)) / 2 - 1px),-5px)}   /* an icon alone: sideways too */
  button.lk{min-width:var(--ui-hit);min-height:var(--ui-hit)}
  .grp:not(.v)>.b.ic{width:var(--ui-hit);min-width:var(--ui-hit)}   /* joined icon buttons cannot borrow 2 px from each other */
  /* B4 OF2 (reported by package 2): tabs on a phone. Tighter tab padding; a track never runs past its place: it scrolls sideways
     inside itself (which also cuts a tab's tap box to the track's own height, 34 px); .fill shares the width */
  .seg{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
  .seg::-webkit-scrollbar{display:none}
  .seg>button{flex:none;padding:0 10px;gap:4px}
  .seg>button:has(>.n:last-child){padding-right:6px}
  .seg.fill{display:flex}
  .seg.fill>button{flex:1 1 0;min-width:0;padding:0 6px}
  /* the family touch box for a small thing you press that is not a button of the family (a step ring, a pressable tag) */
  .hit,.tag.act{position:relative}
  .hit::after,.tag.act::after{content:"";position:absolute;inset:clamp(-4px,calc((100% - var(--ui-hit)) / 2),0px)}   /* at most 4 px past each edge */
  .seg>button{position:relative}
  .seg>button::after{content:"";position:absolute;inset:-5px 0}   /* the 30 px thumb answers on 40 px */
  .sel,.sel.s,.sel.l,.in.s{font-size:var(--ui-fs-field)}
  button.sel,button.sel.s,button.sel.l{font-size:var(--ui-fs-m)}   /* a dropdown drawn on a button takes no typing, so no iOS zoom: the button's own 14 px */
  /* a button that needs no word on a phone: its word stays for a screen reader, the button is as wide as it is tall */
  .b.b.icp.icp:has(>svg){width:var(--_h);min-width:var(--_h);padding:0}   /* doubled classes, as .fold */
  .b.icp:has(>svg)>.l{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .b.icp:not(.pri,.t,.q,.ic,.dng):has(>svg:first-child :is(use[href$="i-plus"],path[d^="M12 5v14"])){padding:0;gap:0}   /* an "add" button as its icon alone: the green coin stands in the middle */
  /* phone interim (decision 24): untouched selects keep the old value weight on the old phone layouts, where three filter selects
     share a row and "Visi pagasti" no longer fit at 540; the phone redesign uses .sel at 540 */
  :where(select){font-weight:400}
  /* and the chevron sits 3 px closer to the edge with 6 px less room, so "Visi pagasti" is whole in a 122 px select (P2c) */
  :where(select){padding-right:22px;background-position:right 5px center}
  /* B4 OF2 (reported by package 4): a native select on a phone opens the phone's own picker, so closed it is drawn as a family FIELD
     (the field's height, corner, edge and sunk finish, 16 px text against the iOS zoom), with the family chevron. With a family class
     too (select.sel, select.sel.t): the picker is native whatever the class says. A chosen filter keeps the area's tint. */
  :where(select){height:var(--ui-h-field);min-height:var(--ui-h-field);border:1px solid var(--ui-sink-line);border-top-color:var(--ui-sink-line-t);border-radius:var(--ui-r-field);background-color:var(--ui-sink-bg);box-shadow:var(--ui-sink-sh);color:var(--ui-ink);font:400 var(--ui-fs-field)/1.35 var(--ui-f);letter-spacing:0;text-shadow:none}
  .sel.sel.sel.sel:is(select){height:var(--ui-h-field);min-height:var(--ui-h-field);border:1px solid var(--ui-sink-line);border-top-color:var(--ui-sink-line-t);border-radius:var(--ui-r-field);background-color:var(--ui-sink-bg);box-shadow:var(--ui-sink-sh);color:var(--ui-ink);font:400 var(--ui-fs-field)/1.35 var(--ui-f);letter-spacing:0;text-shadow:none}
  :where(select:hover){border-color:var(--ui-sink-line-h);background-color:var(--ui-sink-bg);box-shadow:var(--ui-sink-sh)}
  .sel.sel.sel.sel:is(select):hover{border-color:var(--ui-sink-line-h);background-color:var(--ui-sink-bg);box-shadow:var(--ui-sink-sh)}
  :where(select:focus){outline:2px solid transparent;border-color:var(--ui-a);box-shadow:var(--ui-sink-sh-f),var(--ui-halo)}
  .sel.sel.sel.sel:is(select):focus{outline:2px solid transparent;border-color:var(--ui-a);box-shadow:var(--ui-sink-sh-f),var(--ui-halo)}
  :where(select.is-filter-active){border-color:var(--ui-on-line);background-color:var(--ui-on-bg);box-shadow:var(--ui-on-sh);color:var(--ui-a-ink)}
  .sel.sel.sel.sel:is(select):is(.set,.is-filter-active){border-color:var(--ui-on-line);background-color:var(--ui-on-bg);box-shadow:var(--ui-on-sh);color:var(--ui-a-ink)}
  :where(select.is-filter-active:focus){outline:2px solid transparent;border-color:var(--ui-a);box-shadow:var(--ui-sink-sh-f),var(--ui-halo)}   /* chosen and focused: the field focus (Sol's fix check) */
  .sel.sel.sel.sel:is(select):is(.set,.is-filter-active):focus{outline:2px solid transparent;border-color:var(--ui-a);box-shadow:var(--ui-sink-sh-f),var(--ui-halo)}
  :where(select:disabled){border-color:var(--ui-off-line);background-color:var(--ui-off-bg);box-shadow:none;color:var(--ui-off-ink)}
  .sel.sel.sel.sel:is(select):disabled{border-color:var(--ui-off-line);background-color:var(--ui-off-bg);box-shadow:none;color:var(--ui-off-ink)}
  /* the chevron of those selects, in rules of its own: the design tool reads a background picture as its rule's ground, and beside a
     picture the field's edge colours could not be paired for contrast (they left the editable set at 960435bc). The classed rule
     out-ranks every state of .sel and .sel.t, whose own backgrounds carry the raised gradient */
  :where(select){background-image:var(--ui-chev)}
  .sel.sel.sel.sel:is(select){background-image:var(--ui-chev);background-repeat:no-repeat;background-position:right 9px center;background-size:14px 14px}
  .tag{height:22px;font-size:13px}
  .tag.on{height:28px;padding-left:11px}
  .rg{--_th:24px;height:var(--ui-hit)}   /* a 24 px thumb on a 40 px tall slider: the whole height answers */
  .b.xl::after{content:none}   /* 56 px: larger than the touch size already */
  .tag .n{--_wh:18px}
  .cl.row{min-height:var(--ui-hit)}
  :where(input[type="number"]+span[aria-hidden]:has(+input[type="number"])){height:var(--ui-h-field);line-height:calc(var(--ui-h-field) - 2px)}
  .cl{position:relative}
  .cl::after{content:"";position:absolute;inset:-2px 0}
  .ck::before,.rd::before{content:"";position:absolute;inset:-5px}   /* 4 px past the box: 28 px; in a list its row (.cl) is the target */
  /* B4 DS6 (plan part 4), resized by OF2 1c: a field or a dropdown has no hit area of its own to lend (no pseudo box on a form
     field), so on touch it is drawn at its own touch size, 36 px (--ui-h-field), across its whole width */
  .in,.in.s,.in.l,.sel,.sel.s,.sel.l{--_h:var(--ui-h-field)}
  :where(select,input:is([type="text"],[type="search"],[type="email"],[type="tel"],[type="number"],[type="date"],[type="time"],[type="password"],[type="url"],:not([type]))){min-height:var(--ui-h-field)}
}

@media (prefers-reduced-motion:reduce){.b,.sel,.in,.ta,.ck,.rd,.rowb,.tile,.seg>button,.b .chev{transition:none}.b[aria-busy="true"]:not(:has(>.v31-busy))::before{animation:none;border-right-color:currentColor;border-style:dotted}:where(input[type="checkbox"]:not(.v31-pp-tick input),input[type="radio"]:not(.v31-pp-tick input)){transition:none}}
@media (forced-colors:active){.b,.sel,.in,.ta,.ck,.rd,.tile{border-color:ButtonText;box-shadow:none;text-shadow:none}.b:not(.t):is(*,:hover,:active,.on,[aria-pressed="true"],[aria-expanded="true"]):is(*,.pri,.dng):is(*,.solid,.deal),.tile,.seg>button{background-image:none}.tile:is([aria-pressed="true"],[aria-checked="true"]){border-color:Highlight;outline:1px solid Highlight}.card{border-color:CanvasText}
  /* B4 CB1: a drawn white tick would vanish on a system canvas: high-contrast mode shows the system tick box */
  .ck:not(.ck--engraved),.rd{appearance:auto;-webkit-appearance:auto}:where(input[type="checkbox"]:not(.v31-pp-tick input),input[type="radio"]:not(.v31-pp-tick input)){appearance:auto;-webkit-appearance:auto}}
/* B4 VB2: the value badge, option F "Loks" (decisions 212, 213; design lanes/B4-UNIFY/plan-value). A capsule in birch (a warm
   pale tint, the area chip's cool mint's partner: same height and shape family, a different shade, a ring instead of "ha") with
   a ring of ten segments, 200 points each: it fills to the value, full at 2 000 (display only; the value, its formula and the
   level steps are unchanged; the level word is in the badge's name, "Vērtība 797, augsta").
   Markup (LMFScoringUI.figure, badge, cellMarkup): <span class="vb" data-size="s|m|l" data-kind="complete|zero|missing"
   data-band="0..4" [data-quiet] [data-col] style="--_vb-p:.399"><span class="vb-n">797</span></span>. --_vb-p = min(value, 2 000) / 2 000.
   Sizes: S tables and tree-group rows, M stand lines, cards and list rows, L the lead. A badge everywhere, the big table too.
   Motion: only in the property window ("Mežs īsumā", lmf-page-property.css), the ring sweeps once; never in tables or lists. */
.vb{--_vb-p:0;--_vb-h:var(--ui-vb-h-s);--_vb-px:7px;--_fs:12px;--_vb-gap:5px;--_vb-ring:14px;
  position:relative;display:inline-flex;align-items:center;justify-content:flex-end;box-sizing:border-box;flex:none;
  height:var(--_vb-h);padding:0 var(--_vb-px) 0 calc(var(--_vb-px) - 1px);border:1px solid var(--ui-vb-line);border-radius:999px;
  background:var(--ui-vb-bg);box-shadow:var(--ui-vb-sh);
  color:var(--ui-ink);font-family:var(--ui-f);font-size:var(--_fs);font-weight:750;line-height:1;font-variant-numeric:tabular-nums lining-nums;letter-spacing:0;word-spacing:-.08em;
  white-space:nowrap;text-decoration:none;vertical-align:middle;cursor:default}
.vb[data-size="m"]{--_vb-h:var(--ui-vb-h-m);--_vb-px:9px;--_fs:14px;--_vb-gap:6px;--_vb-ring:16px}
.vb[data-size="l"]{--_vb-h:var(--ui-vb-h-l);--_vb-px:11px;--_fs:18px;--_vb-gap:7px;--_vb-ring:20px;letter-spacing:-.01em}
/* the ring: a conic fill to --_vb-p on the track, cut to ten segments by one mask */
.vb::before{content:"";flex:none;width:var(--_vb-ring);height:var(--_vb-ring);margin-right:auto;border-radius:50%;
  background:conic-gradient(var(--ui-vb-ring) 0 calc(var(--_vb-p) * 1turn),var(--ui-vb-ring-track) 0);
  -webkit-mask:var(--ui-vb-ring-mask) center/100% 100% no-repeat;mask:var(--ui-vb-ring-mask) center/100% 100% no-repeat}
.vb-n{order:2;margin-left:var(--_vb-gap)}
.vb[data-kind="zero"]{color:var(--ui-ink-2);font-weight:620}
.vb[data-kind="missing"]{border:1px dashed var(--ui-line-2);background:none;box-shadow:none;color:var(--ui-muted);font-weight:400}
.vb[data-kind="missing"]::before{background:var(--ui-vb-ring-track);opacity:.6}
.vb[data-score-pending]{opacity:.6}
a.vb,button.vb{cursor:pointer;transition:box-shadow var(--ui-t),border-color var(--ui-t)}
a.vb:hover{border-color:var(--ui-vb-line-h);box-shadow:var(--ui-vb-sh-h)}
a.vb:focus-visible,button.vb:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
/* a column: one fixed slot, so rings and digits each stand in one clean line down the column */
.vb[data-col]{width:var(--ui-vb-col-s)}
.vb[data-col][data-size="m"]{width:var(--ui-vb-col-m)}
/* quiet (the big table and list rows): the same badge (decision 213: a badge everywhere), in the fixed slot */
.vb[data-quiet]{width:var(--ui-vb-col-s)}
.vb[data-quiet][data-size="m"]{width:var(--ui-vb-col-m)}
@media (forced-colors:active){
  .vb{border-color:CanvasText;background:Canvas;box-shadow:none}
  .vb::before{forced-color-adjust:none;background:conic-gradient(CanvasText 0 calc(var(--_vb-p) * 1turn),GrayText 0)}
  .vb[data-kind="missing"]::before{background:GrayText}
}
/* print: plain digits, no capsule and no ring */
@media print{
  .vb{width:auto;height:auto;padding:0;border:0;background:none;box-shadow:none;color:var(--ui-ink)}
  .vb::before{display:none}
}

/* The known-part note (decision 61): once per property, under the figures of "Mežs īsumā" and at the top of the Meža dati
   table. A button (focus and tap open it); the sentence shows on hover, focus or tap, pure CSS. */
.vnote-wrap{position:relative;display:inline-flex;max-width:100%;vertical-align:middle}
.vnote-wrap[hidden]{display:none}
.vnote-wrap>.vnote{display:inline-flex;align-items:center;gap:6px;height:auto;min-height:20px;margin:0;padding:0;border:0;border-radius:4px;background:none;box-shadow:none;color:var(--ui-muted);font:var(--ui-t-meta);font-variant-numeric:tabular-nums;letter-spacing:0;text-shadow:none;text-align:left;white-space:normal;cursor:help}
.vnote::before{content:"";flex:none;width:12px;height:12px;background:currentColor;-webkit-mask:var(--ui-vn-ic) center/contain no-repeat;mask:var(--ui-vn-ic) center/contain no-repeat}
.vnote b{color:var(--ui-ink-2);font-weight:620}
.vnote-wrap>.vnote:hover,.vnote-wrap>.vnote:active{background:none;box-shadow:none;color:var(--ui-ink-2)}
.vnote-wrap>.vnote:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
.vtip{position:absolute;z-index:30;top:calc(100% + 6px);left:0;display:none;width:300px;max-width:min(300px,calc(100vw - 32px));padding:10px 12px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh);color:var(--ui-ink);font:var(--ui-t-meta);line-height:1.45;white-space:normal;text-align:left}
.vnote-wrap:hover>.vtip,.vnote:focus+.vtip{display:block}
.vnote-wrap[data-align="end"]>.vtip{right:0;left:auto}
@media (pointer:coarse){
  .vnote-wrap>.vnote{position:relative}
  .vnote-wrap>.vnote::after{content:"";position:absolute;inset:-4px}
}
.vtip strong{display:block;margin-bottom:3px;font-family:var(--ui-f);font-size:12px;font-weight:620;line-height:1.3}
.vtip .vlist{display:block;margin-top:6px}
.vtip .vrow{display:flex;justify-content:space-between;gap:12px;padding:3px 0;border-top:1px solid var(--ui-td-line);color:var(--ui-ink-2)}
.vtip .vrow>span:first-child{flex:none;white-space:nowrap}
.vtip .vrow>span:last-child{min-width:0;color:var(--ui-muted);text-align:right}
@media print{
  .vnote-wrap>.vnote{color:var(--ui-ink)}
  .vnote::before,.vtip{display:none}
}
/* B4 PA2 (decisions 71, 72, 73, 79 a, 80): the area chip "Plāksnīte" (proposal-area, Revised B; markup: LMFArea.chip in
   workspace-scoring.js). Colour AND shape tell the kind: land square, cad a leaf, forest a pill (the default), stand a cut corner.
   Quieter than the value badge: no border or shadow, weight 620 against 750. Digits right-aligned and tabular. */
.ab{--_ab-ink:var(--ui-ab-forest-ink);--_ab-tint:var(--ui-ab-forest-tint);--_ab-line:var(--ui-ab-forest-line);--_ab-h:var(--ui-ab-h-s);--_fs:12px;--_ab-px:6px;--_ab-cut:6px;--_ab-leaf:9px;
  display:inline-flex;align-items:center;justify-content:flex-end;box-sizing:border-box;flex:none;height:var(--_ab-h);padding:0 var(--_ab-px);
  border-radius:999px;background:var(--_ab-tint);color:var(--_ab-ink);
  font-family:var(--ui-f);font-size:var(--_fs);font-weight:620;line-height:1;font-variant-numeric:tabular-nums lining-nums;letter-spacing:0;
  white-space:nowrap;vertical-align:middle;cursor:default}
.ab[data-size="m"]{--_ab-h:var(--ui-ab-h-m);--_fs:14px;--_wfs:var(--ui-fs-micro);--_ab-px:7px;--_ab-cut:7px;--_ab-leaf:11px}
.ab[data-kind="land"]{--_ab-ink:var(--ui-ab-land-ink);--_ab-tint:var(--ui-ab-land-tint);--_ab-line:var(--ui-ab-land-line);border-radius:2px}
.ab[data-kind="cad"]{--_ab-ink:var(--ui-ab-cad-ink);--_ab-tint:var(--ui-ab-cad-tint);--_ab-line:var(--ui-ab-cad-line);border-radius:var(--_ab-leaf) 2px var(--_ab-leaf) 2px}
.ab[data-kind="stand"]{--_ab-ink:var(--ui-ab-stand-ink);--_ab-tint:var(--ui-ab-stand-tint);--_ab-line:var(--ui-ab-stand-line);border-radius:2px;
  clip-path:polygon(0 0,calc(100% - var(--_ab-cut)) 0,100% var(--_ab-cut),100% 100%,0 100%)}
.ab[data-kind="forest"],.ab[data-kind="cad"]{padding:0 calc(var(--_ab-px) + 2px)}
/* M: a small pale "ha" after the digits (S has none: the header or the name says it) */
.ab[data-size="m"]::after{content:"ha";margin-left:3px;font-size:var(--_wfs);font-weight:400}   /* B4 DS4: micro size at 400 (600 widened the chip); full ink, 5.7 to 8.2 : 1 (the .75 opacity gave 3.4 to 4.4) */
/* missing: an empty outline in the kind's line colour, a dash where the digits end */
.ab[data-state="missing"]{background:none;box-shadow:inset 0 0 0 1px var(--_ab-line);color:var(--ui-muted);font-weight:400}
.ab[data-state="missing"]::after{visibility:hidden}
.ab[data-kind="stand"][data-state="missing"]{background:linear-gradient(225deg,var(--_ab-line) calc(var(--_ab-cut) * .7071),transparent calc(var(--_ab-cut) * .7071 + 1px))}
/* one fixed slot in a column or list: every chip the same width, the digits end on one line */
.ab[data-col]{width:var(--ui-ab-col-s)}
.ab[data-col][data-size="m"]{width:var(--ui-ab-col-m)}
.ab-slot{display:inline-block;flex:none;width:var(--ui-ab-col-s);height:1px;vertical-align:middle}
.ab-slot[data-size="m"]{width:var(--ui-ab-col-m)}
/* the key: the chip alone and small, for a column header or a legend (its outline keeps it on the stone header band) */
.ab-key{display:inline-flex;align-items:center;margin-right:5px;vertical-align:-1px}
.ab-key .ab{--_ab-h:10px;--_ab-leaf:5px;--_ab-cut:4px;width:15px;padding:0;box-shadow:inset 0 0 0 1px var(--_ab-line)}
.ab-key .ab-n{display:none}
/* a phone-width list row (the badge-and-area pair): the M chip drops its "ha" in its 76 px slot */
@media (max-width:480px){
  .ab[data-row][data-size="m"]::after{content:none}
}
/* print: plain digits and the unit, no chip */
@media print{
  .ab[data-kind],.ab[data-kind][data-col],.ab[data-kind][data-state="missing"]{width:auto;height:auto;padding:0;background:none;box-shadow:none;color:var(--ui-ink);clip-path:none}
  .ab[data-kind]::after{content:" ha";margin:0;font-size:var(--_fs);font-weight:620;opacity:1;visibility:visible}
  .ab[data-kind][data-state="missing"]::after{content:none}
  .ab-slot,.ab-key{display:none}
}
}

/* /forest/lmf-menu.css */
@layer controls{
/* LMF shared dropdown and menu panel (B4 P3, builder B2; BUILD-PLAN.md revision 2 section 5). The panel surface (.pop, .menu,
   .menu>button, hr) is in lmf-controls.css; this sheet adds the stand-in button's resets, the hidden source select, the panel's
   place, the chosen and keyboard rows, group headings, the search field and the empty line. Desktop only by construction: the
   script enhances nothing while (max-width:700px),(pointer:coarse) matches. */

/* the stand-in: a <button class="sel ui-sel"> takes the select's place. Legacy element rules for buttons must not reach it */
.sel.ui-sel{min-width:0;justify-content:flex-start;letter-spacing:var(--ui-ls);text-transform:none;position:relative;float:none}
.sel.ui-sel[hidden]{display:none}
.errm.ui-sel-errm{display:block}

/* the source select: still in the DOM (forms, scripts, Playwright's selectOption), never seen, pressed or tabbed to */
.sel.ui-sel-src,select.ui-sel-src{position:absolute;width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0;border:0;opacity:0;pointer-events:none;overflow:hidden}

/* the panel: fixed to the window, in front of everything on the page (inside an open dialog it shares the dialog's top layer) */
.pop.ui-menu{position:fixed;z-index:2147483000;display:flex;flex-direction:column;box-sizing:border-box;min-width:190px;max-width:min(420px,calc(100vw - 16px));padding:4px;margin:0;text-align:left}
.pop.ui-menu.has-search{padding-top:6px}
.menu.ui-menu-list{min-width:0;padding:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;outline:0}
.menu.ui-menu-list>button{min-width:0;max-width:none;justify-content:flex-start;letter-spacing:normal;text-transform:none;position:static;flex:none;opacity:1;font-weight:400}
.menu.ui-menu-list>button[hidden],.menu.ui-menu-list>.ui-menu-h[hidden],.menu.ui-menu-list>hr[hidden]{display:none}
.menu.ui-menu-list>button .ui-menu-l{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.menu.ui-menu-list>button small{margin-left:0;color:var(--ui-muted);font:var(--ui-t-meta)}
.menu.ui-menu-list>button .ui-menu-tick{flex:none;width:14px;height:14px;margin-left:0;color:var(--ui-a)}
/* keyboard row and the chosen row */
.menu.ui-menu-list>button.is-active{background:var(--ui-wash)}
.menu.ui-menu-list>button[aria-selected="true"]{color:var(--ui-a-ink);font-weight:620}
.menu.ui-menu-list>button:disabled{background:none}
/* group heading (optgroup): flat, small, muted */
.menu.ui-menu-list>.ui-menu-h{padding:6px 8px 2px;color:var(--ui-muted);font:var(--ui-t-meta);font-weight:620;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu.ui-menu-list>.ui-menu-empty{margin:0;padding:6px 8px;color:var(--ui-muted);font:var(--ui-t-meta)}
.menu.ui-menu-list>.ui-menu-empty[hidden]{display:none}
/* B4 PI: a tick row (LMFMenu.open with `checks`): the family's tick box drawn at the left, the label, its small print under it.
   The box is a picture of the real <input type="checkbox"> on the page; a press on the row clicks that input. */
.menu.ui-menu-list>button[role="menuitemcheckbox"]{height:auto;min-height:var(--ui-h-m);padding-top:4px;padding-bottom:4px;white-space:normal}
.menu.ui-menu-list>button .ui-menu-ck{flex:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-box);height:var(--ui-box);border:1px solid var(--ui-cke-line);border-top-color:var(--ui-cke-line-t);border-radius:var(--ui-ck-r);background:var(--ui-cke-bg);box-shadow:var(--ui-cke-sh)}
.menu.ui-menu-list>button[aria-checked="true"] .ui-menu-ck{border-color:transparent;background:var(--ui-tick) center/var(--ui-ck-tick) no-repeat,var(--ui-a);box-shadow:var(--ui-cke-on-sh)}
.menu.ui-menu-list>button[role="menuitemcheckbox"]:disabled .ui-menu-ck{border-color:var(--ui-off-line);background:var(--ui-off-bg);box-shadow:var(--ui-cke-off-sh)}
.menu.ui-menu-list>button[role="menuitemcheckbox"][aria-checked="true"]:disabled .ui-menu-ck{border-color:transparent;background:var(--ui-tick) center/var(--ui-ck-tick) no-repeat,var(--ui-ck-off);box-shadow:var(--ui-cke-offon-sh)}
.menu.ui-menu-list>button[role="menuitemcheckbox"] .ui-menu-l{white-space:normal;line-height:1.25}
/* the small print stands beside the label, so a tick row keeps the 30 px of every other row (under the label it made a 41 px row) */
.menu.ui-menu-list>button .ui-menu-d{display:inline;margin-left:6px;color:var(--ui-muted);font:var(--ui-t-meta)}
.pop.ui-menu.has-checks{min-width:230px}
/* the note line: what the active action row will do (its `desc`); two lines are kept so the panel never changes height */
.pop.ui-menu>.ui-menu-note{flex:none;box-sizing:border-box;min-height:calc(2 * 1.35em + 13px);max-width:300px;margin:4px 0 0;padding:6px 8px;border-top:1px solid var(--ui-line);color:var(--ui-ink-2);font:var(--ui-t-meta)}
.pop.ui-menu>.ui-menu-note:empty::before{content:"";display:block}
/* the search field of a long list */
.pop.ui-menu>.ui-menu-search{flex:none;padding:0 2px 6px}
.pop.ui-menu>.ui-menu-search>input{box-sizing:border-box;width:100%;margin:0}

@media (forced-colors:active){
  .menu.ui-menu-list>button.is-active{outline:2px solid Highlight;outline-offset:-2px}
  /* B4 CB1 (Sol review): the drawn tick box in system colours, so ticked and empty differ: a white drawn tick would vanish on the
     system canvas. Ticked: Highlight fill, the tick in HighlightText (a mask of the family tick); disabled: GrayText. */
  .menu.ui-menu-list>button[role="menuitemcheckbox"] .ui-menu-ck{forced-color-adjust:none;position:relative;border-color:CanvasText;background:Canvas;box-shadow:none}
  .menu.ui-menu-list>button[role="menuitemcheckbox"][aria-checked="true"] .ui-menu-ck{border-color:Highlight;background:Highlight}
  .menu.ui-menu-list>button[role="menuitemcheckbox"][aria-checked="true"] .ui-menu-ck::after{content:"";position:absolute;inset:0;background:HighlightText;-webkit-mask:var(--ui-tick) center/var(--ui-ck-tick) no-repeat;mask:var(--ui-tick) center/var(--ui-ck-tick) no-repeat}
  .menu.ui-menu-list>button[role="menuitemcheckbox"]:disabled .ui-menu-ck{border-color:GrayText}
  .menu.ui-menu-list>button[role="menuitemcheckbox"][aria-checked="true"]:disabled .ui-menu-ck{border-color:GrayText;background:GrayText}
  .menu.ui-menu-list>button[role="menuitemcheckbox"][aria-checked="true"]:disabled .ui-menu-ck::after{background:Canvas}
}
@media print{
  .pop.ui-menu{display:none}
}
/* B4 DS2: the two tab groups whose containers keep an older name (the property window's tabs, Pārlūks' work views) and every role=tab
   button outside them: the same track and thumb. Zero specificity, so .seg and the page sheets win. */
:where(.detail-tabs,.search-work-views){border:0;border-radius:var(--ui-r-seg);background:var(--ui-track-bg);box-shadow:var(--ui-track-sh);padding:2px;gap:2px}   /* B4 OF2: the round-ended track, as .seg */
:where(.detail-tabs,.search-work-views) :where(button),:where(button[role="tab"]:not(.workspace-settings-nav *)){box-sizing:border-box;height:calc(var(--ui-h-m) - 4px);min-height:0;padding-block:0;padding-inline:calc(var(--ui-px-m) - 2px);border:0;border-radius:var(--ui-r-ctl);background:none;box-shadow:none;color:var(--ui-ink-2);font:var(--ui-fw) var(--ui-fs-m)/1 var(--ui-f);letter-spacing:var(--ui-ls);text-shadow:none;text-transform:none;white-space:nowrap;cursor:pointer;transition:background var(--ui-t),color var(--ui-t)}
:where(.detail-tabs,.search-work-views) :where(button:hover),:where(button[role="tab"]:hover:not(.workspace-settings-nav *)){color:var(--ui-ink);background:var(--ui-track-hover)}
:where(.detail-tabs,.search-work-views) :where(button:is([aria-selected="true"],[aria-pressed="true"],.active,.is-active,.selected)),:where(button[role="tab"]:is([aria-selected="true"],.active):not(.workspace-settings-nav *)){background:var(--ui-raise-bg);color:var(--ui-a-ink);text-shadow:var(--ui-edge);box-shadow:var(--ui-thumb-sh)}
:where(.detail-tabs,.search-work-views) :where(button:disabled){color:var(--ui-off-ink);background:none;cursor:not-allowed}
:where(.detail-tabs,.search-work-views) :where(button:focus-visible),:where(button:is([role="tab"],[role="menuitem"],[role="option"]):focus-visible){outline:2px solid var(--ui-a);outline-offset:2px}
@media (max-width:700px),(pointer:coarse){:where(.detail-tabs,.search-work-views) :where(button){padding-inline:8px;font-size:var(--ui-fs-s)}}
@media (prefers-reduced-motion:reduce){:where(.detail-tabs,.search-work-views) :where(button),:where(button[role="tab"]){transition:none}}
/* B4 DS2: a menu row that is not in a .menu panel (the deal's, the contact's and the board's own menus) */
:where(button:is([role="menuitem"],[role="option"]):not(#workspace-navigation *,.v31-page *,.v31-dt *,.v31-deal-mount *)){box-sizing:border-box;height:var(--ui-h-m);min-height:0;padding-block:0;padding-inline:8px;border:0;border-radius:var(--ui-r-in);background:none;box-shadow:none;color:var(--ui-ink);font:400 var(--ui-fs-m)/1 var(--ui-f);text-align:left;text-shadow:none;white-space:nowrap;cursor:pointer}
:where(button:is([role="menuitem"],[role="option"]):not(#workspace-navigation *,.v31-page *,.v31-dt *,.v31-deal-mount *):hover){background:var(--ui-wash)}
:where(button:is([role="menuitem"],[role="option"]):not(#workspace-navigation *,.v31-page *,.v31-dt *,.v31-deal-mount *):disabled){color:var(--ui-off-ink);background:none;cursor:not-allowed}
.hp-point-end{min-height:0}
}

/* /forest/lmf-page-nav.css */
@layer pages{
/* LMF page layout: lmf-page-nav.css, owned by P4 (top bar and navigation). Linked by P2 so no page package edits index.html.
   B4 P4 (decision 21, proposal version 3 "the top bar: your choice", option A): the bar is dark neutral ink (--ui-bar-bg), 52 px on
   a PC, the small tree mark in pine tint, the current page underlined in the area's --ui-a-mark. Scope: the class ui-nav on
   <header id="workspace-navigation">. workspace-navigation-one.css and the other legacy bar rules are not edited: this layer beats
   them. Never named here: [hidden] and [data-v31-off] (access hides items with legacy !important rules, which keep winning).
   Every control in the bar sits on the size scale: navigation items 34 px (L), the language select and the account button 26 px (S);
   40 px on touch. The two menus (Pārlūks, account) take the .pop and .menu look by CSS only (the markup keeps its own classes).
   Phone and tablet (up to 900 px): B4 DS6 (decision 185, A05 and C11), at the end of this sheet. */

/* ---- every width: colour, mark, badge, tools, menus ---------------------------------------------------------------------- */
.ui-nav{background:var(--ui-bar-bg);color:var(--ui-bar-ink-on);border:0;box-shadow:none;font-family:var(--ui-f)}
.ui-nav>.brand{gap:8px;color:var(--ui-bar-brand);text-decoration:none}
/* B4 PL1 (decisions 48 and 51): the company logo is back: the proposal's pixel-fitted bar lockup in leaf (mark 32 px, line 1.5 px;
   28 px up to 900 px), the image itself (index.html <picture>), never the legacy white filter */
.ui-nav>.brand>picture{display:block;flex:none;line-height:0}
.ui-nav>.brand img{display:block;width:91px;height:37px;min-width:0;max-width:none;object-fit:contain;filter:none;opacity:1}
.ui-nav>.brand:focus-visible{outline:2px solid var(--ui-bar-focus);outline-offset:2px;border-radius:4px}

/* navigation items: links, the Pārlūks disclosure and the phone's "Vairāk" */
.ui-nav>nav>a,.ui-nav .browse-navigation>button,.ui-nav>nav>button{border:0;box-shadow:none;background:transparent;color:var(--ui-bar-ink);font-family:var(--ui-f);font-weight:620;text-decoration:none;text-shadow:none;transition:background-color var(--ui-t),color var(--ui-t)}
.ui-nav>nav>a:hover,.ui-nav .browse-navigation>button:hover,.ui-nav>nav>button:hover{background:var(--ui-bar-ctl-bg-h);color:var(--ui-bar-ink-on)}
.ui-nav>nav>a.active,.ui-nav .browse-navigation>button.search-parent-current,.ui-nav>nav>button.active{background:transparent;color:var(--ui-bar-ink-on);font-weight:620}
.ui-nav>nav>a.active::after,.ui-nav .browse-navigation>button.search-parent-current::after,.ui-nav>nav>button.active::after{background:var(--ui-a-mark)}
/* B4 PI (second visual review, findings 4, 7 and 8): the two disclosures of the bar share one open fill; a press answers; the
   chevron follows its word; a tool is as quiet as an idle link at rest, so the current page stays the brightest thing */
.ui-nav .browse-navigation>button[aria-expanded="true"]{background:var(--ui-bar-ctl-bg-p);color:var(--ui-bar-ink-on)}
.ui-nav>nav>a:active,.ui-nav .browse-navigation>button:active,.ui-nav>nav>button:active{background:var(--ui-bar-ctl-bg-p);color:var(--ui-bar-ink-on)}
.ui-nav .nav-chevron{color:currentColor;opacity:.8}
.ui-nav :is(a,button):is(:hover,.active,.search-parent-current,[aria-expanded="true"])>.nav-chevron{opacity:1}

/* the count on Šodien: B4 NAV2 (decision 206) quiet figures and a clay dot when late; its rules are with the Patina bar at the end */
/* one focus ring for the dark bar, in the mark's pine tint; rows of the white menus keep the area's ring */
.ui-nav :is(a,button,select):focus-visible{outline:2px solid var(--ui-bar-focus);outline-offset:2px}

/* tools: the language select and the account button are the family's dark-strip members, quiet, size S (.sel.s.bar.q, .b.s.bar.q;
   B4 OF2 package 6); on a PC P3's stand-in button copies the select's classes (lmf-menu.js), so it is the same member */
.ui-nav .header-language option{background:var(--ui-pop-bg);color:var(--ui-ink)}
/* on one of the account's own pages: white words and the underline, as every other current item */
.ui-nav .account-navigation:has(a.active)>button{color:var(--ui-bar-ink-on)}
.ui-nav [aria-controls="account-menu"]>.icon{width:16px;height:16px}

/* the two menus in the family's panel and menu-row look (.pop, .menu>button) */
.ui-nav .workspace-nav-menu{box-sizing:border-box;gap:0;padding:4px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh);color:var(--ui-ink);font:var(--ui-t-body)}
.ui-nav .workspace-nav-menu>:is(a,button){display:flex;align-items:center;justify-content:flex-start;gap:8px;box-sizing:border-box;width:100%;height:var(--ui-h-m);min-height:0;margin:0;padding:0 8px;border:0;border-radius:var(--ui-r-in);background:none;box-shadow:none;color:var(--ui-ink);font:400 var(--ui-fs-m)/1 var(--ui-f);letter-spacing:0;text-align:left;text-decoration:none;text-shadow:none;white-space:nowrap;cursor:pointer}
.ui-nav .workspace-nav-menu>:is(a,button):hover{background:var(--ui-wash);color:var(--ui-ink)}
.ui-nav .workspace-nav-menu>a.active{background:var(--ui-a-soft);color:var(--ui-a-ink);font-weight:var(--ui-fw)}
.ui-nav .workspace-nav-menu>:is(a,button):focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
.ui-nav .workspace-nav-menu .icon{flex:none;width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-ink-2);stroke-width:1.7}
.ui-nav .workspace-nav-menu>.workspace-menu-group-start{margin-top:9px}
.ui-nav .workspace-nav-menu>.workspace-menu-group-start::before{background:var(--ui-line)}
.ui-nav .workspace-nav-menu>[id="logout"]{color:var(--ui-ink-2)}

@media (max-width:900px){
  .ui-nav>.brand img{width:78px;height:32px}
}

/* ---- PC: the drawn geometry (the bar's own breakpoint: up to 900 px it is two rows) ------------------------------------- */
@media (min-width:901px){
  .ui-nav{grid-template-columns:auto minmax(0,1fr) auto;column-gap:22px;height:var(--ui-bar-h);min-height:0;padding:0 16px 0 28px}
  .ui-nav>.brand{justify-content:flex-start;width:108.5px;min-width:0;height:auto} /* PL1: the width P4's mark and words took (108.5 px measured), so no item moves */
  .ui-nav>nav{align-self:stretch;gap:0;align-items:stretch}
  .ui-nav .browse-navigation{align-items:center}
  /* items 34 px, centred in the 52 px bar; the current page's underline sits on the bar's bottom edge */
  .ui-nav>nav>a,.ui-nav .browse-navigation>button,.ui-nav>nav>button{position:relative;align-self:center;gap:7px;box-sizing:border-box;height:var(--ui-h-l);min-height:0;margin:0;padding:0 14px;border-radius:var(--ui-r-ctl);font-size:var(--ui-fs-bar);line-height:1}
  .ui-nav>nav>a.active::after,.ui-nav .browse-navigation>button.search-parent-current::after,.ui-nav>nav>button.active::after,.ui-nav .account-navigation:has(a.active)>button::after{content:"";position:absolute;left:0;right:0;bottom:calc((var(--_h,var(--ui-h-l)) - var(--ui-bar-h)) / 2);height:2px;border-radius:1px 1px 0 0;background:var(--ui-a-mark)}
  .ui-nav :is(.icon,[data-icon]>.icon){width:16px;height:16px;stroke-width:1.8}
  .ui-nav .nav-chevron{width:12px;height:12px}
  /* tools: full bar height so the account menu drops below the bar, the controls centred in it */
  .ui-nav .workspace-nav-tools{align-self:stretch;align-items:stretch;gap:4px}
  .ui-nav .header-language,.ui-nav .account-navigation{display:flex;align-items:center}
  .ui-nav .account-navigation>button{position:relative}
  /* B4 PI (second visual review, finding 5): a menu is as wide as its longest row, with no empty scrollbar strip; the rule
     between its groups spans the rows */
  .ui-nav .workspace-nav-menu{width:max-content;min-width:176px;max-width:min(280px,calc(100vw - 24px));scrollbar-gutter:auto}
  .ui-nav .workspace-nav-menu>.workspace-menu-group-start::before{left:6px;right:6px}
}
@media (min-width:1001px){
  :root:has(.ui-nav){scroll-padding-top:calc(var(--ui-bar-h) + var(--ui-env-offset) + 16px)}
}

/* touch: --ui-h-* are 40 px there, so items, tools and menu rows follow without a rule of their own */

/* ---- phone and tablet, up to 900 px: B4 DS6 (decision 185). The head is one 56 px row: the logo and the language (the account menu's
   rows are in "Vairāk"). The five places sit in a bar fixed at the bottom of the screen, over the phone's own inset (--tab-bar-h):
   Šodien, Izbraukumi, Pārlūks, Kontakti, Vairāk. Plānotājs, Darījumi and Partneri are rows of "Vairāk". workspace-navigation.js puts the
   items in that order in the document (so the keyboard order is the order on screen) and back in the PC order above 900 px. The bar steps away while a text field has the focus on a touch screen (the
   phone's keyboard is up then). The help corner, toasts and the trip's sheets stand above it (lmf-page-help.css, workspace-trips.css). */
/* --tab-bar-h: the bar's height with the phone's own inset, 0 where the bar is on top or while the keyboard is up. Every element anchored to
   the bottom of the screen adds it (toasts, progress, the help's strip and panel, the HF1 stack, the trip's bars and sheets, "Vairāk").
   It lives here, not in lmf-tokens.css: it is the bar's own measure, and the design library's token list stays as it is */
:root:has(.ui-nav){--tab-bar-h:0px}
@media (max-width:900px){
  :root:has(.ui-nav){--tab-bar-h:calc(56px + env(safe-area-inset-bottom,0px))}
  :root:has(.ui-nav).ui-kb{--tab-bar-h:0px}
  .ui-nav{z-index:1030;min-height:0;height:56px;padding-top:0;padding-bottom:0}
  .ui-nav .account-navigation{display:none}
  .ui-nav>nav{position:fixed;left:0;right:0;bottom:0;z-index:1;display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;box-sizing:border-box;
    height:var(--tab-bar-h);min-height:0;margin:0;padding:0 max(4px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(4px,env(safe-area-inset-left,0px));
    border-top:1px solid var(--ui-bar-ctl-bg-h);background:var(--ui-bar-bg)}
  .ui-nav>nav>a[data-page="trips"]{display:flex}
  .ui-nav>nav>a[data-page="tasks"]{display:none}
  .ui-nav>nav>a,.ui-nav .browse-navigation>button,.ui-nav>nav>button{position:relative;box-sizing:border-box;height:55px;min-height:0;padding:7px 2px 5px;gap:4px;border-radius:0;font-size:var(--ui-fs-micro);line-height:1.2;letter-spacing:0}
  /* the current place: white ink and the area mark along the bar's top edge */
  .ui-nav>nav>a.active::after,.ui-nav .browse-navigation>button.search-parent-current::after,.ui-nav>nav>button.active::after{content:"";position:absolute;top:-1px;bottom:auto;left:14px;right:14px;height:3px;border-radius:0 0 2px 2px;background:var(--ui-a-mark)}
  .ui-nav>nav .icon:not(.nav-chevron){width:20px;height:20px}
  /* Pārlūks' two views open upwards, above the bar */
  .ui-nav .browse-navigation>.workspace-nav-menu{top:auto;bottom:calc(100% + 6px)}
}
/* only while the phone's keyboard is up: workspace-navigation.js sets ui-kb on the root when an editable field has the focus and the visible
   viewport is more than 150 px shorter than the window (a read-only field, a closed keyboard or a zoom never hides the bar) */
@media (max-width:900px){
  :root:has(.ui-nav).ui-kb .ui-nav>nav{display:none}
}
@media print{.ui-nav>nav{position:static}}
@media (prefers-reduced-motion:reduce){
  .ui-nav :is(a,button,select){transition:none}
}

/* ---- B4 NAV2 (decisions 204-206): option B Patina, as drawn in lanes/B4-UNIFY/plan-nav (renders B, src/options.css "B PATINA").
   A weathered bronze-green bar with a brass hairline on its edge; on a PC the pages stand in three groups, each with its small engraved name
   above it and a thin brass divider between groups (workspace-navigation.js places them in a two-row grid and drops pages, names and
   dividers that access hides); one brass line under the current page slides to the new page (.nav-ind, 340 ms, at once with reduced
   motion); the Šodien count is small plain figures with a clay dot only when something is late. The phone keeps decision 185's bar in the
   same patina with the brass line on top; "Vairāk" is a light sheet with the same three groups, then the account. ------------------------- */
.ui-nav{background:var(--ui-bar-patina);color:var(--ui-bar-ink)}
/* the current page: the one sliding brass line replaces each item's own underline (the account's own pages keep theirs, in brass) */
.ui-nav>nav>a.active::after,.ui-nav .browse-navigation>button.search-parent-current::after,.ui-nav>nav>button.active::after{content:none}
.ui-nav .account-navigation:has(a.active)>button::after{background:var(--ui-bar-brass)}
.ui-nav>nav>.nav-ind{position:absolute;left:0;bottom:-1px;z-index:1;width:0;height:3px;border-radius:3px 3px 0 0;pointer-events:none;opacity:0;
  background:linear-gradient(90deg,transparent,var(--ui-bar-brass) 10%,var(--ui-bar-brass-2) 50%,var(--ui-bar-brass) 90%,transparent);
  box-shadow:0 -3px 10px color-mix(in srgb,var(--ui-bar-brass) 32%,transparent)}
.ui-nav>nav>.nav-ind.on{opacity:1}
.ui-nav>nav>.nav-ind.glide{transition:transform 340ms cubic-bezier(.22,.8,.24,1),width 340ms cubic-bezier(.22,.8,.24,1)}
.ui-nav>nav>:is(.nav-gl,.nav-sep){display:none}
/* the Šodien count: no pill; small figures in the bar's brass-light, the clay dot before them only when something is late */
.ui-nav .nav-attention[data-late]::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--ui-bar-late)}
.ui-nav .nav-attention.roll>[aria-hidden]{display:inline-block;animation:ui-nav-roll .3s cubic-bezier(.22,.8,.24,1)}
.ui-nav .nav-attention{display:inline-flex;align-items:center;gap:5px;min-width:0;height:auto;padding:0;border-radius:0;background:none;box-shadow:none;color:var(--ui-bar-count);font-family:var(--ui-f);font-size:12px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:0}
/* the two menus of the bar (Pārlūks, account) in the bar's own patina: dark, a brass edge, light rows */
.ui-nav .workspace-nav-menu{border-color:var(--ui-bar-pop-line);background:var(--ui-bar-pop);color:var(--ui-bar-pop-ink);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ui-on-fill) 6%,transparent),var(--ui-pop-sh)}
.ui-nav .workspace-nav-menu>:is(a,button){color:var(--ui-bar-pop-ink)}
.ui-nav .workspace-nav-menu>:is(a,button):hover{background:var(--ui-bar-pop-h);color:var(--ui-bar-ink-on)}
.ui-nav .workspace-nav-menu>a.active{background:var(--ui-bar-pop-h);color:var(--ui-bar-ink-on);font-weight:var(--ui-fw)}
.ui-nav .workspace-nav-menu .icon{color:var(--ui-bar-ink)}
.ui-nav .workspace-nav-menu>:is(a,button):focus-visible{outline:2px solid var(--ui-bar-focus);outline-offset:-2px}
.ui-nav .workspace-nav-menu>.workspace-menu-group-start::before{background:var(--ui-bar-pop-line)}
.ui-nav .workspace-nav-menu>[id="logout"]{color:var(--ui-bar-ink)}

@media (min-width:901px){
  .ui-nav{border-bottom:1px solid var(--ui-bar-hair);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ui-on-fill) 7%,transparent)}
  /* two rows: the group names over their pages (B4, Janis 26 Nov: the names are hidden, their row keeps the bar's height and the dividers stay); workspace-navigation.js gives each name, page and divider its column */
  .ui-nav>nav{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:max-content;grid-template-rows:auto auto;align-content:center;align-items:center;justify-content:start;row-gap:1px}
  .ui-nav>nav>.nav-gl{display:block;visibility:hidden;grid-row:1;align-self:end;min-width:0;padding:0 0 0 14px;color:var(--ui-bar-group);font-family:var(--ui-f);font-size:var(--ui-fs-micro);font-weight:var(--ui-fw);line-height:1.2;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap}
  .ui-nav>nav>.nav-sep{display:block;grid-row:1/span 2;align-self:center;width:1px;height:38px;margin:0 10px;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--ui-bar-brass) 40%,transparent),transparent)}
  .ui-nav>nav>.browse-navigation{align-self:center}
}
/* narrower PCs: the icons go below 1320 px (as the bar did before), the items tighten below 1100 px */
@media (min-width:901px) and (max-width:1320px){
  .ui-nav>nav span[data-icon],.ui-nav>nav svg.icon:not(.nav-chevron){display:none}
}
@media (min-width:901px) and (max-width:1100px){
  .ui-nav{column-gap:12px;padding-left:16px}
  .ui-nav>nav>a,.ui-nav .browse-navigation>button{padding-inline:8px}
  .ui-nav>nav>.nav-gl{padding-left:8px;letter-spacing:.06em}
  .ui-nav>nav>.nav-sep{margin:0 4px}
}

@media (max-width:900px){
  :root:has(.ui-nav){--ui-bar-h:52px} /* the phone keeps its head's measure as before; only the PC bar is 66 px */
  .ui-nav>nav{border-top-color:var(--ui-bar-hair);background:var(--ui-bar-patina)}
  .ui-nav>nav>.nav-ind{top:-1px;bottom:auto;height:2px;border-radius:0 0 2px 2px;
    background:linear-gradient(90deg,transparent,var(--ui-bar-brass) 25%,var(--ui-bar-brass-2) 50%,var(--ui-bar-brass) 75%,transparent);
    box-shadow:0 3px 10px color-mix(in srgb,var(--ui-bar-brass) 30%,transparent)}
  /* the count sits at the icon's upper right and always inside its own place (99+ at 320 px too; Sol's review, finding 1): it starts 2 px right
     of the middle, may run only to 2 px short of the place's edge, and the place clips anything past that, so it never reaches Izbraukumi */
  .ui-nav>nav>a[data-page="today"]{overflow:hidden}
  .ui-nav a>.nav-attention{position:absolute;top:3px;left:calc(50% + 2px);max-width:calc(50% - 4px);gap:3px;min-width:0;height:auto;padding:0;font-size:var(--ui-fs-micro);letter-spacing:-.01em;white-space:nowrap}
  .ui-nav a>.nav-attention[data-late]::before{width:5px;height:5px}
}
/* the language switch on the phone and on touch (B4 NAV2, the lead's add): the native select stays (the phone's own picker), drawn as the
   bar's quiet dark-strip member at the compact phone scale's S height (32 px, decision 198), never the light 36-44 px field; 16 px words so
   iOS does not zoom; the family's bar chevron, the bar's wash on hover and its focus ring */
@media (max-width:900px),(pointer:coarse){
  .ui-nav .header-language .sel{box-sizing:border-box;width:auto;min-width:0;height:var(--ui-h-s);min-height:0;margin:0;padding:0 26px 0 10px;border:1px solid transparent;border-radius:var(--ui-r-ctl);
    background:var(--ui-bar-chev) right 8px center/12px 12px no-repeat,transparent;box-shadow:none;color:var(--ui-bar-ctl-ink);font-family:var(--ui-f);font-size:var(--ui-fs-field);font-weight:var(--ui-fw);line-height:1;text-shadow:none}
  .ui-nav .header-language .sel:is(:hover,:active,[aria-expanded="true"]){border-color:transparent;background-color:var(--ui-bar-ctl-bg-h);box-shadow:none;color:var(--ui-bar-ink-on)}
  .ui-nav .header-language .sel:focus-visible{border-color:transparent;box-shadow:none;outline:2px solid var(--ui-bar-focus);outline-offset:2px}
}
@media (prefers-reduced-motion:reduce){
  .ui-nav>nav>.nav-ind,.ui-nav>nav>.nav-ind.glide{transition:none}
  .ui-nav .nav-attention.roll>[aria-hidden]{animation:none}
}
@media (forced-colors:active){
  .ui-nav>nav>.nav-ind{forced-color-adjust:none;background:Highlight;box-shadow:none}
  .ui-nav>nav>.nav-gl{color:CanvasText}
  .ui-nav>nav>.nav-sep{forced-color-adjust:none;background:CanvasText}
  .ui-nav .nav-attention{forced-color-adjust:auto;background:none;color:CanvasText}
  .ui-nav .nav-attention[data-late]::before{forced-color-adjust:none;background:CanvasText}
}
}

/* /forest/lmf-page-dialogs.css */
@layer pages{
/* LMF page layout: lmf-page-dialogs.css, owned by P16 (dialogs, sign-in, account). Linked by P2 so no page package edits index.html.
   B4 P16 (look only, plan section 6 P16; proposal version 3 section B "Jauns partneris" and section E "Sign-in"):
   - one dialog frame: the window title in --ui-t-win, one close button (quiet, square, size M; 40 on touch) for every dialog's close
     variant, a footer whose buttons are size L and whose "Atcelt" / "Saglabāt" pair shares one width (.ui-dlg-pair, and the
     partner window's footer by its own class); the frame's look (radius, shadow) only on a PC, the phone keeps its sheets
   - sign-in: a calm stone page, one card, the small pine mark and the pine button (area forest from <section data-area>)
   - account, settings, users: the settings side tabs as a vertical tab group (sunk track, raised thumb), the file picker's button in
     the raised recipe; the rest already wears the family through the element and base rules (P2)
   Selectors start with :where() where a later page sheet (P7 property window, P9 "Kas notika?", P11 contact window) may refine them. */

/* ---- the frame ------------------------------------------------------------------------------------------------------------ */
@media (min-width:701px){
  :where(dialog:not(.v31-qc)){border:1px solid var(--ui-line);border-radius:var(--ui-dlg-r);background:var(--ui-dlg-bg);box-shadow:var(--ui-dlg-sh);color:var(--ui-ink)}
}
/* the window title: the first heading of a dialog's body, the kit windows' titles */
:where(dialog>div>h2:first-child,dialog>header h2,.v31-pw-title,.v31-pk-title,.multi-sort-heading h2){font:var(--ui-t-win);letter-spacing:-.01em;color:var(--ui-ink)}

/* one close button: every dialog close variant (CLS-03 to CLS-13 of the UI inventory) in the family's quiet icon button, size M */
dialog>.close-dialog{position:absolute}
/* B4 DS2: a form's own button fills its card or column, as before */
.lmf-species-register td .b{width:100%;min-width:0}
@media (max-width:700px){.accounts-editor-actions>.b,.comment-editor-actions>.b,.value-mode-actions>.b,.view-conflict-actions>.b{flex:1}.table-columns-footer .b,.next-upload-actions .b{display:flex;width:100%}}
/* B4 OF2 package 6, the phone pass (decision 198): every window foot and form foot on a phone is one line: "Atcelt" quiet at its
   word's width, the main button filling the rest (L is 36 on touch, never taller); "Dzēst" and the other acts stand on the line
   above. Forms: 4 px from a label to its field, 12 px between fields. Sign-in: the main button as wide as its word. */
@media (max-width:700px),(pointer:coarse){
  .ui-dlg-foot{row-gap:8px}
  .ui-dlg-foot>.ui-dlg-pair,.vt-pair,.ts-pair,.value-mode-actions.pairw{display:flex;flex:1 1 100%;width:100%;gap:var(--ui-gap)}
  :is(.ui-dlg-pair,.vt-pair,.ts-pair,.value-mode-actions,.accounts-editor-actions)>.b.q{flex:none;width:auto;min-width:0}
  :is(.ui-dlg-pair,.vt-pair,.ts-pair,.value-mode-actions,.accounts-editor-actions)>.b:not(.q){flex:1 1 auto;width:auto;min-width:0}
  dialog .form-grid{row-gap:12px}
  :is(.accounts-section,.accounts-editor) label:not(.accounts-checkbox,.accounts-feature-choice){margin:0 0 12px}
  :is(.accounts-section,.accounts-editor) label>:is(input,select){margin-top:4px}
  .page-heading:has([id="account-user-new"]){display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:var(--ui-gap)}
  .page-heading:has([id="account-user-new"]){flex-wrap:nowrap}
  .page-heading:has([id="account-user-new"])>h1{flex:1 1 auto;width:auto;min-width:0;margin:0}
  .page-heading:has([id="account-user-new"])>.actions{flex:none;width:auto;margin:0}
  .accounts-user-row{row-gap:4px}
  .accounts-user-row p{margin:2px 0 0}
  dialog .form-grid>label{display:flex;flex-direction:column;gap:4px;margin:0}
  .form-grid>label>:is(input,select,textarea){margin:0}
}
/* B4 DS2: three places the older sheets hid or moved a button that is a family button now */
.parcel-layout[data-b3] [id="parcel-actions"] .shortlist-bookmark{display:none}
@media (max-width:1000px){.accounts-users.is-editing [id="account-user-new"]{display:none}}

/* the footer: main action size L, "Atcelt" a real raised secondary, the pair one width (the wider word sets it, in LV and EN) */
.ui-dlg-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin:16px 0 0;padding-top:12px;border-top:1px solid var(--ui-line)}
.ui-dlg-foot>.b.dng{margin-right:auto}
.ui-dlg-pair{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}
@media (min-width:701px){
  .v31-pw-f>[data-v31-pw-cancel]{min-width:var(--v31-act)}   /* P12 removes the inline width on "Saglabāt" and pairs the two */
}
/* B4 PI (second visual review, finding 1): the shorter word of a pair is centred in its button (a legacy rule for .actions
   buttons left it at the left edge) */
.ui-dlg-pair>button{width:100%;min-width:calc(var(--_h) * 2.2);justify-content:center}
/* B4 PI (finding 3): the sort dialog's footer joins the frame: size L, "Atcelt" and the apply button one width */
.multi-sort-footer{border-top-color:var(--ui-line)}
.multi-sort-footer button{--_h:var(--ui-h-l);--_px:var(--ui-px-l);justify-content:center;min-height:0;margin:0}
.multi-sort-footer>div{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}
.multi-sort-footer>div>button{width:100%;min-width:calc(var(--_h) * 2.2)}
/* B4 PI (findings 3 and 10): a centred window is white with the frame's corners on the phone too (the sort dialog was a pale
   green box with 8 px corners there); sheets (.v31-qc) and the full-screen property window keep their own shape */
.multi-sort-dialog{border-radius:var(--ui-dlg-r);background:var(--ui-dlg-bg);color:var(--ui-ink)}
/* B4 PI (findings 2 and 6): the form dialogs (those with the frame's footer) share one padding on a PC; the close button sits
   on the title's line; the footer is the drawn stone strip from edge to edge, so a raised "Atcelt" stands off it. The contact
   window is left out: its form is folded inside the window. */
@media (min-width:701px){
  :where(dialog:not(.contacts-workspace):has(.ui-dlg-foot)){--_dp:24px;padding:var(--_dp)}
  :where(dialog:not(.contacts-workspace):has(.ui-dlg-foot)) .close-dialog{top:calc(var(--_dp) - 4px);right:calc(var(--_dp) - 8px)}
  :where(dialog:not(.contacts-workspace):has(.ui-dlg-foot)) .ui-dlg-foot{margin:16px calc(var(--_dp) * -1) calc(var(--_dp) * -1);padding:12px var(--_dp);background:var(--ui-stone-foot)}
}
.v31-pw-f{background:var(--ui-stone-foot)}

/* ---- sign-in (B4 PL1, owner's decisions 48 and 57): the split screen is back, in the layout and intro of proposal-logo V3
   "Durvis" and the light colours of V2 "Pagrieziens". Brand side (40%) in pine tint with the original logo in deep green
   (logo.svg's outlines, inline in index.html); the form on the white side, without a card frame, as V2; on the phone the brand
   side is a 212 px header above the form. The intro lives only under html.intro (set by lmf-intro.js before first paint,
   removed by any key or pointer press and after 1.35 s): without that class this is the finished screen. The mark rises, the
   words set in, then the brand side opens like a door to the right (down on the phone) and the form rises; the door's edge
   carries a hairline and a soft shadow so it reads on the light side. Transforms and opacity only. html.lmf-restore: with a
   saved session the form is never painted; app.js then shows "Restoring your session…" as before (lmf-intro.js removes the
   class after DOMContentLoaded). */
.login-shell{--bw:40vw;--lw:min(25vw,360px);--hh:212px;--brand-bg:var(--ui-pine-tint);--brand-ink:var(--ui-brand-deep);--lmf-out:cubic-bezier(.16,1,.3,1);position:relative;display:grid;grid-template-columns:var(--bw) minmax(0,1fr);grid-template-rows:minmax(100dvh,auto);place-content:stretch;min-height:100dvh;box-sizing:border-box;margin:0;padding:0;overflow:hidden;background:var(--ui-surface)}
.login-shell>.login-story{position:relative;z-index:2;grid-column:1;grid-row:1;display:grid;place-items:center;min-height:0;margin:0;padding:0;overflow:visible;background:var(--brand-bg);color:var(--brand-ink)}
.login-story>.brand{display:block;width:var(--lw);color:inherit;text-decoration:none;border-radius:4px}
.login-story>.brand:focus-visible{outline:2px solid var(--brand-ink);outline-offset:6px}
.login-story .lmf-logo{display:block;width:100%;height:auto;fill:currentColor;overflow:visible}
.login-shell>.login-card{position:relative;z-index:1;grid-column:2;grid-row:1;place-self:center;display:flex;flex-direction:column;gap:12px;box-sizing:border-box;width:min(320px,calc(100% - 48px));max-width:none;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--ui-ink)}
/* B4 DFA (audit a6): under the button, centred (it floated above the form, right-aligned, detached from it) */
.login-card>.login-language{order:10;align-self:center;margin:4px 0 0;min-height:30px;display:flex;align-items:center}
.login-card>h1{margin:0;font:var(--ui-t-page);letter-spacing:-.01em;color:var(--ui-ink)}
.login-card>label:not(.login-language){display:flex;flex-direction:column;gap:6px;margin:0;font:620 var(--ui-fs-label)/1.3 var(--ui-f);color:var(--ui-ink-2)}
.login-card>label>input{box-sizing:border-box;width:100%}
.login-card>.b{width:100%;margin:4px 0 0}   /* B4 OF2 package 6: the family main button, size L by its class */
@media (max-width:700px),(pointer:coarse){.login-card>.b{width:auto;align-self:flex-start}}   /* phone: as wide as its word */
.login-card>.error{margin:0;color:var(--ui-clay);font:var(--ui-t-meta)}
.login-card>.error:empty{display:none}
.login-card>p:not(.error){margin:0;color:var(--ui-ink-2);font:var(--ui-t-body)}
.lmf-restore .login-shell>form.login-card{display:none}
/* D5 two-step sign-in (lmf-totp.js): the code field and the one-time app setup card, in the sign-in card's own type and rhythm */
.login-card .totp-input{font-variant-numeric:tabular-nums;letter-spacing:.12em}
.login-card>.totp-hint{font:var(--ui-t-meta);color:var(--ui-ink-2)}
.login-shell>.totp-card{width:min(400px,calc(100% - 48px));gap:14px}
.totp-card>.totp-steps{margin:0;padding:0 0 0 1.25em;display:flex;flex-direction:column;gap:14px;font:var(--ui-t-body);color:var(--ui-ink)}
.totp-steps>li::marker{color:var(--ui-ink-2)}
.totp-steps label{display:flex;flex-direction:column;gap:6px;margin:0;font:var(--ui-t-body);color:var(--ui-ink)}
.totp-steps label>input{box-sizing:border-box;width:100%;max-width:12em}
.totp-qr{box-sizing:content-box;width:168px;height:168px;margin:10px 0 0;padding:12px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:var(--ui-r-card)}
.totp-qr img,.totp-qr canvas{display:block;width:168px;height:168px}
.totp-key{margin:10px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font:var(--ui-t-meta);color:var(--ui-ink-2)}
.totp-key>code{font:var(--ui-t-data);letter-spacing:.04em;color:var(--ui-ink);overflow-wrap:anywhere;user-select:all}
.totp-card>.b.q.totp-out{margin:0}
.totp-key>.b{width:auto;flex:none}
.totp-steps .totp-open{display:none;margin:10px 0 0;width:auto}
@media (max-width:700px),(pointer:coarse){.totp-steps .totp-open{display:inline-flex}}   /* on the phone itself: open the app, no scanning */
@media (max-width:700px),(pointer:coarse){.totp-key>.b{min-height:var(--ui-hit)}}
@media (max-width:700px){
  .login-shell{--lw:214px;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--hh) auto}
  .login-shell>.login-story{grid-row:1}
  .login-shell>.login-card{grid-column:1;grid-row:2;place-self:start center;margin:24px 0}
}

/* the intro, 1.2 s (V3 "Durvis"): the door is the brand colour laid over the form side; it slides off to the right */
.intro{background-color:var(--ui-pine-tint)} /* the scroll-bar gutter beside the page is brand-coloured too while the intro runs */
.intro .login-shell::after{content:"";position:absolute;z-index:3;inset:0 0 0 var(--bw);background:var(--brand-bg);animation:lmf-door .68s .4s var(--lmf-out) both}
/* the door's edge: a hairline and a soft shade that travel with it and fade in as it starts to move (no seam while it is shut) */
.intro .login-shell::before{content:"";position:absolute;z-index:4;top:0;bottom:0;left:calc(var(--bw) - 24px);width:24px;border-right:1px solid var(--ui-brand-door-line);background:var(--ui-brand-door-edge);animation:lmf-edge .68s .4s var(--lmf-out) both}
.intro .lmf-logo .mk{animation:lmf-rise .45s 0s var(--lmf-out) both}
.intro .lmf-logo .w{animation:lmf-word .36s var(--t) var(--lmf-out) both}
.intro .lmf-logo .w1{--t:.12s}
.intro .lmf-logo .w2{--t:.18s}
.intro .lmf-logo .w3{--t:.24s}
.intro .login-shell>.login-card{animation:lmf-rise .46s .62s var(--lmf-out) both}
@media (max-width:700px){
  .intro .login-shell{--door:translateY(101%)}
  .intro .login-shell::after{inset:var(--hh) 0 0 0}
  .intro .login-shell{--edge:translateY(calc((100dvh - var(--hh)) * 1.01 + 26px))}
  .intro .login-shell::before{top:calc(var(--hh) - 24px);bottom:auto;left:0;right:0;width:auto;height:24px;border-right:0;border-bottom:1px solid var(--ui-brand-door-line);background:var(--ui-brand-door-edge-v)}
}
@keyframes lmf-word{from{opacity:0;transform:translateX(-18px)}}
@keyframes lmf-rise{from{opacity:0;transform:translateY(10px)}}
@keyframes lmf-door{to{transform:var(--door,translateX(101%))}}
@keyframes lmf-edge{from{opacity:0}12%{opacity:1}to{opacity:1;transform:var(--edge,translateX(calc((100vw - var(--bw)) * 1.01 + 26px)))}}
@media (prefers-reduced-motion:reduce){
  .intro .login-shell *{animation:none}
  .intro .login-shell::after,.intro .login-shell::before{content:none}
}

/* ---- settings: the six sections as one card of row buttons; the file picker's button raised -------------------------------- */
/* B4 DS5 (plan 2.7), B4 OF2 package 6 (decisions 195, 196): a list at the left of the family's row buttons (.rowb: 44 px, the row's own
   hairline, an ink wash on hover), in one card, on every width (a list, never a strip of buttons); the chosen one in the area tint with
   its word in the area ink (the family's chosen row, from aria-current) */
/* NX SF (decisions 255, 269): the settings frame. The sections stand in groups: a small label over one card of row buttons per group.
   A PC keeps the list beside the section and pinned under the top bar (and the copy's strip, --ui-env-offset) while the section
   scrolls; a phone shows the list first, then the chosen section alone with «Iestatījumi» back to the list (workspace-cleanup.js). */
.workspace-settings-nav{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--ui-sp-4);padding:0;border:0;background:none;box-shadow:none}
.workspace-settings-group{display:flex;flex-direction:column;gap:6px;min-width:0}
.workspace-settings-group-label{margin:0;padding:0 var(--ui-gut-in);color:var(--ui-muted);font:var(--ui-t-micro)}
.workspace-settings-group-list{box-sizing:border-box;display:flex;flex-direction:column;border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface);overflow:hidden}
.workspace-settings-panels>section:focus{outline:none}
.workspace-settings-back{display:none}
/* Lietotāji opens its own page: its row carries the family's chevron on every width (a section row on a PC does not move you) */
.workspace-settings-nav [data-settings-link]::after{content:"";flex:none;width:7px;height:7px;margin-left:auto;border:solid var(--ui-ico-mute);border-width:1.5px 1.5px 0 0;transform:translateX(-2px) rotate(45deg)}
@media (min-width:861px){
  .workspace-settings-nav{position:sticky;top:calc(var(--ui-bar-h) + var(--ui-env-offset) + var(--ui-sp-3));max-height:calc(100vh - var(--ui-bar-h) - var(--ui-env-offset) - var(--ui-sp-5));overflow:auto;overscroll-behavior:contain}
}
@media (max-width:860px){
  .workspace-settings[data-settings-view="list"] .workspace-settings-panels{display:none}
  .workspace-settings[data-settings-view="section"] :is(.workspace-settings-nav,.workspace-settings-heading){display:none}
  .workspace-settings[data-settings-view="section"] .workspace-settings-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0 0 var(--ui-sp-3) calc(-1 * var(--ui-sp-2))}
  .workspace-settings-back::before{content:"";flex:none;width:7px;height:7px;border:solid currentColor;border-width:0 0 1.5px 1.5px;transform:translateX(2px) rotate(45deg)}
  .workspace-settings-nav .rowb{min-height:48px}
  .workspace-settings-nav .rowb::after{content:"";flex:none;width:7px;height:7px;margin-left:auto;border:solid var(--ui-ico-mute);border-width:1.5px 1.5px 0 0;transform:translateX(-2px) rotate(45deg)}
}
/* B4 OF2 package 6: Vērtības aprēķins: the family radio (.rd) sits on the first line of its words */
.workspace-settings .value-mode-option>.rd{margin-top:3px}
/* B4 DS5 (plan 2.11, audit C02): the settings page stands where every page stands: its title on the page gutter (28 px on a PC, 16 on
   a phone, from #content), at the top like Mans konts, not centred; one content width for every section (880 px, the widest section, Sugas, keeps its table) */
.workspace-settings{max-width:1280px;margin:0;padding:0 0 40px}
.workspace-settings-heading{margin-bottom:var(--ui-sp-4)}
.workspace-settings-panels>*{max-width:880px}
/* B4 PI (findings 11 and 12): the lone "Mans konts" link is the family's link (.lk, B4 OF2 package 6); the account cards take the
   family's card corner, the password rules a quiet dot instead of a ring that reads as a radio button, the empty prompt its whole line */
/* B4 DS5 (plan 2.10): every settings and account box is the one card: corner 10, one fine line, no drop, padding 12 and 16 */
.accounts-person,.accounts-section,.accounts-access,.accounts-editor,.workspace-settings .next-data-panel{border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface);box-shadow:none;padding:var(--ui-sp-3) var(--ui-gut-in)}
.workspace-settings .next-data-panel .next-data-panel{border:0;padding:0}
.accounts-password-rules li:not(.is-met):not(.is-missing)::before{width:6px;height:6px;margin:0 3px;border:0;border-radius:50%;background:var(--ui-line-2)}
.accounts-editor-empty p{max-width:none}

@media (prefers-reduced-motion:reduce){
}

/* ---- value thresholds settings (B4 ST2, decisions 63, 77, 79 b): --ui-* tokens only, aligned columns, PC and phone ---- */
.vt-form{max-width:680px;display:grid;gap:16px}
.vt-card{display:grid;gap:12px;padding:var(--ui-sp-3) var(--ui-gut-in);border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface);box-shadow:none}
.vt-card-head h3{margin:0;font:var(--ui-t-step);color:var(--ui-ink)}
.vt-card-head .hint{margin:4px 0 0}
.vt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.vt-in{width:100%;text-align:right;font-variant-numeric:tabular-nums}
.vt-err{margin:0}
.vt-err:empty{display:none}
.vt-preview-block{display:grid;gap:8px;padding:12px 14px;border:1px solid var(--ui-line);border-radius:var(--ui-r);background:var(--ui-stone-foot)}
.vt-preview-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;color:var(--ui-ink-2);font:var(--ui-t-head)}
.vt-preview-sub{color:var(--ui-muted);font:var(--ui-t-meta)}
.vt-prev-list{display:grid;gap:6px}
.vt-prev-row{display:grid;grid-template-columns:var(--ui-vb-col-m) minmax(0,1fr) 36px;align-items:center;gap:12px;min-height:var(--ui-row-h)}
.vt-prev-badge{display:inline-flex;align-items:center}
.vt-prev-band{color:var(--ui-ink);font:var(--ui-t-body)}
.vt-prev-bars{color:var(--ui-muted);font:var(--ui-t-meta);font-variant-numeric:tabular-nums;text-align:right}
.vt-prev-stale{margin:6px 0 0}
.vt-trips-preview{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
/* the picture of Izbraukumi's quick picks (information, not pressable) takes their round ends (B4 OF2 package 6) */
.vt-chip{display:inline-flex;align-items:center;justify-content:center;min-width:56px;height:var(--ui-h-s);padding:0 var(--ui-px-s);border:1px solid var(--ui-line);border-radius:var(--ui-r-ctl);background:var(--ui-stone-2);color:var(--ui-ink);font:620 var(--ui-fs-s)/1 var(--ui-f);font-variant-numeric:tabular-nums}
.vt-chip.is-all{background:var(--ui-surface);color:var(--ui-ink-2)}
.vt-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:4px}
.vt-meta{color:var(--ui-muted);font:var(--ui-t-meta)}
.vt-pair{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}
.vt-pair>button{width:100%;min-width:calc(var(--ui-h-l) * 2.8);justify-content:center}
.vt-status{margin:0;font:var(--ui-t-body);color:var(--ui-ink)}
.vt-status:empty{display:none}
.vt-status.is-success{padding:10px 14px;border:1px solid var(--ui-a-line);border-radius:var(--ui-r);background:var(--ui-pine-soft);color:var(--ui-pine);font-weight:620}
.vt-status.is-error{padding:10px 14px;border:1px solid var(--ui-clay-line);border-radius:var(--ui-r);background:var(--ui-clay-tint);color:var(--ui-clay);font-weight:620}
@media (max-width:600px){
  .vt-form{padding-bottom:52px}
  .vt-grid{gap:8px}
  .vt-foot{flex-direction:column;align-items:stretch}
}
/* B4 BV1 (decisions 129, 131): "Braucienu iestatījumi". One rule per row: words left, control middle, what is left right. */
.ts-form{max-width:760px;display:grid;gap:16px}
.ts-card{display:grid;padding:0;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-surface);overflow:hidden}
.ts-head{padding:16px 20px 12px}
.ts-head h3{margin:0;font:var(--ui-t-step);color:var(--ui-ink)}
.ts-head .hint{margin:4px 0 0}
.ts-card>.ts-head:last-child{border-bottom:0}
.ts-row{display:grid;grid-template-columns:minmax(0,1fr) 210px 128px;align-items:center;gap:16px;padding:12px 20px;border-top:1px solid var(--ui-line)}
.ts-head+.ts-row{border-top:0}
.ts-lab{display:grid;gap:2px;min-width:0}
.ts-t{color:var(--ui-ink);font:620 var(--ui-fs-m)/1.3 var(--ui-f)}
.ts-lab .hint{margin:0}
.ts-ctl{display:grid;gap:4px;min-width:0}
.ts-stack{display:grid;gap:6px;justify-items:start}
.ts-in{display:inline-flex;align-items:center;gap:8px}
.ts-in .in{width:88px;text-align:right;font-variant-numeric:tabular-nums}
.ts-in .in::placeholder{text-align:left;font-size:var(--ui-fs-s)}
.ts-in .in[name="maxKm"],.ts-in .in[name="perParish"]{width:120px}
.ts-unit{color:var(--ui-ink-2);font:var(--ui-t-body)}
/* B4 OF2 package 6: the quick picks are one family track (.seg.s, the picked number its white thumb from aria-pressed) */
.ts-quick>button{font-variant-numeric:tabular-nums}
.ts-checks{display:grid;gap:6px}
.ts-check{margin:0}   /* the family tick row (.cl) with the soft-square box (.ck) */
.ts-err{margin:0}
.ts-err:empty{display:none}
.ts-right{display:grid;justify-items:end;min-width:0}
.ts-count{display:grid;gap:5px;width:100%;justify-items:end}
.ts-n{color:var(--ui-muted);font:var(--ui-t-meta);white-space:nowrap}
.ts-n b{color:var(--ui-ink);font:var(--ui-t-score);font-variant-numeric:tabular-nums}
.ts-bar{display:block;width:100%;height:4px;border-radius:2px;background:var(--ui-stone-2);overflow:hidden}
.ts-bar>i{display:block;height:100%;border-radius:2px;background:var(--ui-pine)}
.ts-bar>i[style="width:0%"]{display:none}   /* nothing left: no stub */
.ts-cnote{color:var(--ui-muted);font:var(--ui-t-meta);text-align:right}
.ts-rm{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;padding:0 20px 16px}
.ts-sel{display:grid;gap:4px}
.ts-sel .in{min-width:220px}
.ts-rmlink{display:inline-flex;align-items:center;gap:4px;min-height:32px}   /* the family link (.lk) */
.ts-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:4px}
.ts-meta{color:var(--ui-muted);font:var(--ui-t-meta)}
.ts-pair{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}
.ts-pair>button{width:100%;min-width:calc(var(--ui-h-l) * 2.8);justify-content:center}
.ts-status{margin:0;font:var(--ui-t-body);color:var(--ui-ink)}
.ts-status:empty{display:none}
.ts-status.is-success{padding:10px 14px;border:1px solid var(--ui-a-line);border-radius:var(--ui-r);background:var(--ui-pine-soft);color:var(--ui-pine);font-weight:620}
.ts-status.is-error{padding:10px 14px;border:1px solid var(--ui-clay-line);border-radius:var(--ui-r);background:var(--ui-clay-tint);color:var(--ui-clay);font-weight:620}
/* B4 TP1 (decision 258): "Mans sākums": my saved start addresses, one of them the default (a family radio row each) */
.ts-mine{max-width:760px;margin:0 0 16px}
.ts-mine-l{margin:0;padding:0 20px 4px}
.ts-mine-list{display:grid;margin:0;padding:0 20px 8px;list-style:none}
.ts-mine-row{display:flex;align-items:center;gap:8px;min-height:44px;border-top:1px solid var(--ui-line)}
.ts-mine-row:first-child{border-top:0}
.ts-mine-row>.cl{flex:1;min-width:0;margin:0;cursor:pointer}
.ts-mine-row>.cl>span{min-width:0;overflow-wrap:anywhere}
.ts-mine-row small{flex:none;color:var(--ui-pine);font:var(--ui-t-meta)}
.ts-mine-add{display:grid;gap:8px;padding:12px 20px 16px;border-top:1px solid var(--ui-line)}
.ts-mine-add .ts-sel .in{width:100%;min-width:0}
.ts-mine-add .hint{margin:0}
.ts-mine-res{display:grid;gap:2px}
.ts-mine-at{display:flex;align-items:center;gap:6px;margin:0}
.ts-mine-at>svg{flex:none;width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-muted)}
.ts-mine-add>.ts-pair{justify-self:end}
.ts-mine-s:empty{display:none}
.ts-mine>.ts-status{margin:0 20px 16px}
/* B4 TS10 (plan-trips-simple 3.8): one page: the two halves of "Kur LMF iesaka", the route's own thresholds, the folded rare rules */
.ts-rare>summary{display:block;cursor:pointer;list-style:none;border-bottom:0}
.ts-rare>summary::-webkit-details-marker{display:none}
.ts-rare>summary h3::before{content:"";display:inline-block;width:7px;height:7px;margin:0 10px 2px 2px;border-right:2px solid var(--ui-ink-2);border-bottom:2px solid var(--ui-ink-2);transform:rotate(-45deg);transition:transform .15s}
.ts-rare[open]>summary h3::before{transform:rotate(45deg)}
.ts-rare>summary:focus-visible{outline:2px solid var(--ui-pine);outline-offset:-2px}
.ts-rare>summary+.ts-row{border-top:1px solid var(--ui-line)}
.ts-rare .in[name="regions"]{width:100%}
.ts-rarenote{margin:0;padding:10px 20px 14px;border-top:1px solid var(--ui-line)}
@media (max-width:760px){
  .ts-rarenote{padding-left:14px;padding-right:14px}
}
@media (max-width:760px){
  .ts-row{grid-template-columns:minmax(0,1fr) 112px;grid-template-areas:"lab right" "ctl ctl";gap:8px 12px;padding:12px 14px}
  .ts-lab{grid-area:lab}
  .ts-ctl{grid-area:ctl}
  .ts-right{grid-area:right;align-self:start}
  .ts-head{padding:14px 14px 10px}
  .ts-rm{padding-left:14px;padding-right:14px}
}
@media (max-width:600px){
  .ts-form{padding-bottom:52px}
  .ts-foot{flex-direction:column;flex-wrap:nowrap;align-items:stretch}   /* nowrap: a wrapping column put the button pair beside the words, off the screen */
  .ts-sel,.ts-sel .in{width:100%;min-width:0}
}
/* B4 TS2 (decision 158): one funnel card. The pool is a fact (no control); each rule's right column says how many are left, on one
   shared scale, and what it dropped; a rule that leaves nothing turns clay and says why; the result says what Izbraukumi shows. */
.ts-fun .ts-row{grid-template-columns:minmax(0,1fr) 210px 150px}
.ts-pool{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:16px;padding:14px 20px;border-top:1px solid var(--ui-line);background:var(--ui-stone-2)}
.ts-head+.ts-pool{border-top:1px solid var(--ui-line)}
.ts-pool .ts-lab{gap:3px}
.ts-pool .ts-t{font:700 var(--ui-fs-m)/1.3 var(--ui-f)}
.ts-pool .hint{color:var(--ui-ink-2)}
.ts-count{gap:4px}
.ts-n b{font:700 var(--v31-fs-md)/1.15 var(--ui-f);font-variant-numeric:tabular-nums}
.ts-pool .ts-n b{font:700 var(--v31-fs-lg)/1.1 var(--ui-f)}
.ts-bar{height:6px;border-radius:3px}
.ts-bar>i{border-radius:3px;min-width:3px}
.ts-drop{color:var(--ui-muted);font:var(--ui-t-meta);font-variant-numeric:tabular-nums;white-space:nowrap}
.ts-row.is-zero,.ts-rareline.is-zero{background:var(--ui-clay-tint)}
.is-zero .ts-n,.is-zero .ts-n b,.is-zero .ts-drop{color:var(--ui-clay)}
.is-zero .ts-bar{background:var(--ui-clay-line)}
.ts-row.is-after .ts-n,.ts-row.is-after .ts-n b,.ts-rareline.is-after .ts-n b{color:var(--ui-muted);font-weight:400}
.ts-why{grid-column:1 / -1;display:flex;align-items:flex-start;gap:8px;margin:2px 0 0;color:var(--ui-clay);font:620 var(--ui-fs-s)/1.4 var(--ui-f)}
.ts-why svg{flex:none;width:16px;height:16px;margin-top:1px}
.ts-why:empty{display:none}
.ts-rareline{display:none;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:16px;padding:10px 20px;border-top:1px solid var(--ui-line)}
.ts-rareline.is-on{display:grid}
.ts-rarego{justify-self:start;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left}   /* the family link drawn on a button (button.lk) */
.ts-rareline small{display:block;margin-top:2px;color:var(--ui-muted);font:var(--ui-t-meta)}
.ts-res{display:grid;gap:10px;margin:0;padding:14px 20px 16px;border-top:1px solid var(--ui-line);background:var(--ui-pine-soft)}
.ts-res-h{margin:0;color:var(--ui-ink);font:var(--ui-t-body)}
.ts-res-l{display:grid;grid-template-columns:20px minmax(0,1fr);gap:2px 10px;align-items:start;margin:0}
.ts-res-l svg{width:18px;height:18px;margin-top:1px;color:var(--ui-pine)}
.ts-res-l.deal svg{color:var(--ui-ochre)}
.ts-res-l b{color:var(--ui-ink);font:700 var(--ui-fs-l)/1.3 var(--ui-f)}
.ts-res-l b em{font-style:normal;color:var(--ui-pine);font-variant-numeric:tabular-nums}
.ts-res-l.deal b em{color:var(--ui-ochre-ink)}
.ts-res-l span{grid-column:2;color:var(--ui-ink-2);font:var(--ui-t-body)}
.ts-res.is-zero .ts-res-l:not(.deal) svg,.ts-res.is-zero .ts-res-l:not(.deal) em{color:var(--ui-clay)}
/* cards without counts ("Pa ceļam", "Mežs un saimnieks"): words left, the control right */
.ts-plain .ts-row{grid-template-columns:minmax(0,1fr) auto}
.ts-plain .ts-ctl{justify-items:end}
.ts-plain select.in{min-width:120px}
/* the folded card says what is inside before it is opened */
.ts-rare>summary .ts-tease{display:block;margin:4px 0 0 19px;color:var(--ui-muted);font:var(--ui-t-meta)}
.ts-rare .ts-row{grid-template-columns:minmax(0,1fr) 250px}
.ts-rare .ts-in .in[name="lastContactMonths"]{width:88px}
.ts-nearcount{margin:0;padding:0 20px 14px}
.ts-nearcount:empty{display:none}
@media (max-width:760px){
  .ts-fun .ts-row{grid-template-columns:minmax(0,1fr) 118px}
  .ts-pool,.ts-rareline{grid-template-columns:minmax(0,1fr) 118px;grid-template-areas:"lab right";gap:12px;padding-left:14px;padding-right:14px}
  .ts-res{padding-left:14px;padding-right:14px}
  .ts-plain .ts-row,.ts-rare .ts-row{grid-template-columns:minmax(0,1fr);grid-template-areas:"lab" "ctl"}
  .ts-nearcount{padding-left:14px;padding-right:14px}
  .ts-plain .ts-ctl{justify-items:start}
  .ts-rare>summary{min-height:44px}
}
/* B4 EN1-b (decision 231): "Plānošana" in the settings family's own cards and rows (.ts-card, .ts-row): words left, the control
   in the middle, the default and its reset right. A step row carries its number in the deal's order; a step someone else does is
   one quiet line, so the order reads whole. */
.ts-form.ps-form{max-width:880px}
.ps-form .ts-row.ps-row{grid-template-columns:minmax(0,1fr) 150px 150px}
.ps-form .ts-row.ps-step{grid-template-columns:22px minmax(0,1fr) 262px 150px;gap:12px 14px}
.ps-step.is-trip .ts-in{visibility:hidden}   /* a step that waits for a trip has no number: only its tick (the place is kept, so the ticks stay in one column) */
.ps-ex{color:var(--ui-ink-2)}
.ps-ex:empty{display:none}
.ps-kinds{padding:0 20px 14px}
.ps-block{display:flex;align-items:center;gap:8px;padding:12px 20px 8px;border-top:1px solid var(--ui-line);background:var(--ui-stone-foot);color:var(--ui-ink-2);font:620 var(--ui-fs-label)/1.3 var(--ui-f)}
.ps-block svg{flex:none;width:var(--ui-ic);height:var(--ui-ic)}
.ps-block+.ts-row,.ps-block+.ps-other{border-top:1px solid var(--ui-line)}
.ps-no{align-self:start;padding-top:1px;color:var(--ui-muted);font:var(--ui-t-meta);font-variant-numeric:tabular-nums;text-align:right}
.ps-other{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:baseline;gap:14px;padding:8px 20px;border-top:1px solid var(--ui-line);color:var(--ui-muted);font:var(--ui-t-body)}
.ps-other .ps-no{padding-top:0}
.ps-ot{min-width:0;overflow-wrap:anywhere}
.ps-on{font:var(--ui-t-meta);white-space:nowrap}
.ps-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.ps-ctl .ts-in .in{width:64px}
.ps-ctl .ts-in .in:disabled{color:var(--ui-off-ink)}
.ps-trip{min-height:var(--ui-h-m);margin:0;white-space:nowrap}
.ps-def{align-self:center;color:var(--ui-muted);font:var(--ui-t-meta);text-align:right}
/* NX settings housekeeping: the payment term is the invoice term, shown as a value (not a field) with «Mainīt» to Uzņēmums › PVN */
.ps-term{display:inline-flex;align-items:center;min-height:var(--ui-h-m);color:var(--ui-ink);font:var(--ui-t-body);font-weight:620;font-variant-numeric:tabular-nums}
.ps-was{color:var(--ui-ink-2)}
.ps-reset{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;min-height:var(--ui-h-s);text-align:right}
.ps-reset svg{flex:none;width:14px;height:14px}
.ps-days{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 20px 14px;border-top:1px solid var(--ui-line)}
.ps-days>.ts-lab{grid-area:auto}   /* the family's phone rule names .ts-lab's area for its rows; here the heading is a plain row of its own */
.ts-head+.ps-days{border-top:0;padding-top:0}
.ps-dl{display:grid;gap:0;margin:0;padding:0;list-style:none}
.ps-dl>li{display:grid;grid-template-columns:minmax(104px,max-content) minmax(0,1fr) auto;align-items:center;gap:12px;min-height:var(--ui-h-m);padding:2px 0;border-top:1px solid var(--ui-line);font:var(--ui-t-body);color:var(--ui-ink)}
.ps-dl>li:first-child{border-top:0}
.ps-d{color:var(--ui-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.ps-nm{min-width:0;color:var(--ui-ink-2);overflow-wrap:anywhere}
.ps-hol .ps-nm{color:var(--ui-ink)}
.ps-dl>.ps-none{display:block;min-height:0;padding:2px 0;color:var(--ui-muted);font:var(--ui-t-meta)}
.ps-add{display:grid;grid-template-columns:160px minmax(0,1fr) auto;align-items:center;gap:8px}
.ps-add .in{width:100%;min-width:0}
@media (max-width:760px){
  .ps-form .ts-row.ps-row{grid-template-columns:minmax(0,1fr);grid-template-areas:"lab" "ctl" "right";gap:8px}
  .ps-form .ts-row.ps-step{grid-template-columns:22px minmax(0,1fr);grid-template-areas:"no lab" ". ctl" ". right";gap:8px 10px}
  .ps-step.is-trip .ts-in{display:none}   /* a phone has no column to keep: the tick moves to the row's start */
  .ps-form .ts-row.ps-row>.ps-def:empty{display:none}
  .ps-step>.ps-no{grid-area:no}
  .ps-form .ts-row.ps-row>.ts-right{justify-items:start}
  .ps-def,.ps-reset{text-align:left;justify-content:flex-start}
  .ps-kinds,.ps-block,.ps-other,.ps-days{padding-left:14px;padding-right:14px}
  .ps-kinds .seg{display:flex;width:100%}
  .ps-kinds .seg>button{flex:1 1 0;min-width:0}
  .ps-other{grid-template-columns:22px minmax(0,1fr);gap:2px 10px}
  .ps-other .ps-on{grid-column:2}
  .ps-dl>li{grid-template-columns:minmax(92px,max-content) minmax(0,1fr) auto}
  .ps-add{grid-template-columns:minmax(0,1fr) auto}
  .ps-add .ps-note{grid-column:1 / -1;grid-row:2}
}
/* ---- B4 DS2 (PLAN.md 2.5 rule 15): the parts the browser draws carry the design too ------------------------------------- */
::selection{background:var(--ui-selection);color:var(--ui-ink);text-shadow:none}
:where(html){scrollbar-color:var(--ui-scroll) transparent}
:where(input,textarea){caret-color:var(--ui-a)}
/* the file field of the settings: the family's button and the file's name over the native control, which keeps the press, the focus and the file */
.next-file{display:grid;gap:4px}
.next-file-row{position:relative;display:flex;align-items:center;gap:8px;min-width:0}
.next-file-row>input[type="file"]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.next-file-name{min-width:0;overflow:hidden;color:var(--ui-muted);font:var(--ui-t-body);text-overflow:ellipsis;white-space:nowrap}
.next-file-row:has(input:hover)>.b{border-color:var(--ui-raise-line-h);background:var(--ui-raise-bg-h)}
.next-file-row:has(input:focus-visible)>.b{outline:2px solid var(--ui-a);outline-offset:2px}
.next-file-row:has(input:disabled)>.b{border-color:var(--ui-off-line);background:var(--ui-off-bg);box-shadow:none;color:var(--ui-off-ink);text-shadow:none}
/* B4 DS2 (audit B17): Dati un avoti: one hairline between two blocks */
.workspace-settings .next-cohort-bar{border-bottom:0}
.workspace-settings .next-vmd-update{border-bottom:0}
.workspace-settings .next-source-disclosure{margin:0;padding:12px 0;border-bottom:0}
/* B4 DS6 (decision 185, C11): everything anchored to the bottom of the screen adds the place bar's height with the safe area (--tab-bar-h: set under
   the bar's own condition, 0 where the bar is on top), so nothing stands on the bar or takes its taps. No width cutoff of its own */
[id=toast],.v31-toast-region:not(.is-top){bottom:calc(var(--tab-bar-h) + 24px)}
.pl-page .pl-snack{bottom:calc(var(--tab-bar-h) + 22px)}
.next-processing-progress{bottom:calc(20px + var(--tab-bar-h))}
@media (max-width:560px),(pointer:coarse){.next-processing-progress{bottom:calc(12px + max(var(--tab-bar-h),env(safe-area-inset-bottom,0px)))}}
@media (max-width:900px){
  [id=toast],.v31-toast-region:not(.is-top){bottom:calc(var(--tab-bar-h) + 16px)}
  .pl-page .pl-snack{bottom:calc(var(--tab-bar-h) + 16px)}
  /* "Vairāk" is a sheet from the bottom edge, over the bar that opened it */
  [id=more-dialog]{inset:auto 0 var(--tab-bar-h);width:min(480px,100%);max-height:calc(100dvh - var(--tab-bar-h) - 8px);overflow:auto;margin:0 auto;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));border-radius:var(--ui-sheet-r) var(--ui-sheet-r) 0 0}
}
/* B4 DS6 (decision 185, A05): the account menu's two "new" buttons lead "Vairāk", side by side */
.more-new{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:0 0 12px}
.more-new>.b{justify-content:center}
/* B4 NAV2 (decision 206, option B Patina): "Vairāk" is a light sheet with a brass edge: the bar's three groups as small headings (Mežs, Mans darbs,
   Cilvēki un darījumi), then Konts; the current page tinted, every other row ends in a chevron, the Šodien row carries the quiet count.
   The count's roll (the bar's and this row's) lives here: lmf-page-nav.css holds only rules scoped to the bar. */
@keyframes ui-nav-roll{from{transform:translateY(55%);opacity:0}to{transform:none;opacity:1}}
[id=more-dialog]{border-top:2px solid var(--ui-bar-brass);background:var(--ui-surface)}
[id=more-dialog] nav>.more-gl{margin:14px 10px 4px;color:var(--ui-sheet-group);font-family:var(--ui-f);font-size:var(--ui-fs-micro);font-weight:620;line-height:1.3;letter-spacing:.08em;text-transform:uppercase}
[id=more-dialog] nav>.more-gl:first-child{margin-top:2px}
[id=more-dialog] nav>a{gap:12px}
[id=more-dialog] nav>a:not(:has(.nav-attention))::after{content:"";flex:none;width:14px;height:14px;margin-left:auto;background:var(--ui-chev) center/14px 14px no-repeat;transform:rotate(-90deg);opacity:.6}
[id=more-dialog] nav>a.active{background:var(--ui-sheet-on);color:var(--ui-ink)}
[id=more-dialog] .nav-attention{display:inline-flex;align-items:center;gap:5px;margin-left:auto;color:var(--ui-sheet-count);font-family:var(--ui-f);font-size:12px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
[id=more-dialog] .nav-attention[data-late]::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--ui-clay)}
[id=more-dialog] .nav-attention.roll>[aria-hidden]{display:inline-block;animation:ui-nav-roll .3s cubic-bezier(.22,.8,.24,1)}
@media (prefers-reduced-motion:reduce){[id=more-dialog] .nav-attention.roll>[aria-hidden]{animation:none}}
@media (forced-colors:active){
  [id=more-dialog] .nav-attention{color:CanvasText}
  [id=more-dialog] .nav-attention[data-late]::before{forced-color-adjust:none;background:CanvasText}
  [id=more-dialog] nav>a.active{forced-color-adjust:none;background:Highlight;color:HighlightText}
  /* on the selected (Highlight) row the count and its dot take HighlightText, never CanvasText (Sol's review, finding 3) */
  [id=more-dialog] a.active>.nav-attention{forced-color-adjust:none;color:HighlightText}
  [id=more-dialog] a.active>.nav-attention[data-late]::before{forced-color-adjust:none;background:HighlightText}
}
}

/* /forest/lmf-page-browse.css */
@layer pages{
/* LMF page layout: lmf-page-browse.css, owned by P5 (Pārlūks). Linked by P2 so no page package edits index.html.
   Desktop layout rules sit inside @media (min-width:701px); phone changes only in PHONE-SEAM blocks.
   B4 P5 (proposal version 3, drawing 4; decisions 6, 19, 21): before the first result there is one row of view tabs with the
   search, and one row of controls: the three places and the deal filter, "Filtri" (a toggle with its count), "Notīrīt",
   then at the right "Kārtot", "Karte", "Tabula" and "Skats". "Filtri" opens one panel of four even columns. The result-count
   line carries the sort note and the value mode. The table's strongest figure is "Vērtība". The legacy sheets are not
   edited: this layer beats them. Never named here: [hidden] (the scripts hide and show with it). */

/* B4 P5a: the score figure (LMFScoringUI.figure). It lives here because this sheet is linked on every page and P5a owns no
   other sheet; the lead may move the block to the family. The strongest figure of any row, card or header that stands for a
   property: ink, weight 750, tabular numerals; "≥" quieter than the number; no value is a quiet dash. The forest area is
   the second figure. Sizes by attribute: s 13 px, none 14 px, h 18 px (a header), l 20 px (a lead). */
.ui-figs{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}

/* B4 PI: one title line and one side gutter under the bar on every page (here for the same reason as the score figure: this
   sheet is linked on every page; lmf-page-nav.css is scoped to the bar itself). The pages were built apart: their head rows were
   28, 30, 32 or 34 px high, so the title stood between 76 and 80 px from the top, and Pārlūks began 4 px left of the others.
   A head row is 34 px (the height of a page's main button) with the title centred in it, in the page type; the content
   starts on the brand mark's line (28 px) everywhere. */
@media (min-width:1001px){
  .v31-page-head,.page-heading{min-height:var(--ui-h-l);margin-bottom:12px;align-items:center}
  .v31-page-title,.page-heading>h1,.pl-h{font:var(--ui-t-page);letter-spacing:-.01em}
  .pl-page{padding-top:0}
  .pl-bar{min-height:var(--ui-h-l)}
  .catalogue-dense{padding-left:28px;padding-right:28px}
}

/* ---------- words and wells shared by both widths ---------- */
/* B4 OF2 p3: the search field is the family's .inw; an older sheet still moves its icon up by half its height */
.catalogue-search-row .searchbox.inw>.icon{transform:none}
.browse-chev{flex:none;width:14px;height:14px;margin-right:-3px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.7}
.browse-skats[aria-expanded="true"] .browse-chev{transform:rotate(180deg)}
.browse-sort-note{color:var(--ui-muted);font:var(--ui-t-meta);white-space:nowrap}

/* the row "…" menu: the family's panel and menu rows (.pop.menu in its markup, B4 OF2 p3); only its heading line is set here */
.record-actions[role="menu"]>strong{display:block;padding:6px 8px 4px;color:var(--ui-muted);font:var(--ui-t-meta);font-weight:620;font-variant-numeric:tabular-nums}

@media (min-width:701px){
  /* ---------- row 1: the view tabs and the search ---------- */
  .catalogue-search-row{display:flex;align-items:center;gap:var(--ui-gap);margin:0 0 8px}
  .catalogue-search-row>.search-work-views{flex:none}
  .catalogue-search-row>.searchbox{flex:1 1 320px;min-width:200px;max-width:none}

  /* ---------- row 2: the controls ---------- */
  /* B4 AU2 (audit A03, C05): the row and the filter panel start and end on the table's lines */
  .search-filters{padding-inline:0}
  .search-filters>.catalogue-controls-row{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-gap);margin:0;padding:0;border:0;background:none;box-shadow:none}
  .catalogue-controls-row .catalogue-location-filters{display:flex;flex:none;max-width:none;align-items:center;gap:var(--ui-gap);margin:0;padding:0}
  /* the field's name is not printed above it: the dropdown names itself ("Visi pagasti", "Pagasts: Liepas pagasts") */
  .catalogue-controls-row .catalogue-location-filters>label{display:flex;flex:none;flex-direction:column;gap:0;min-width:0;max-width:none;align-items:flex-start;margin:0;padding:0;line-height:0;color:transparent;white-space:nowrap;overflow:visible}
  /* a place dropdown is as wide as what it says (field-sizing; where a browser lacks it, as wide as its longest place) */
  .catalogue-controls-row .catalogue-location-filters select{width:auto;min-width:0;max-width:260px;field-sizing:content}
  .catalogue-controls-row .v31-bdeal-box{flex:none;min-width:0;max-width:none}
  .catalogue-controls-row>.v31-bdeal-filter{display:flex;flex:none;align-items:center;gap:var(--ui-gap);margin:0}
  /* B4 DS1: nothing to see (the hidden flags, no status or its spoken "loading"), so no gap before "Filtri" */
  .v31-bdeal-filter>:is([data-v31-bdeal-flags],.v31-bdeal-status:empty){display:none}
  .v31-bdeal-filter>.v31-bdeal-status:not(:has(.v31-notice)){position:absolute}
  .catalogue-controls-row .v31-bdeal-box select.v31-bdeal-select{width:auto;min-width:0;max-width:260px;field-sizing:content}
  /* B4 DS1 (decision 168, sheet section 4): what is shown stands left (the filter capsules and "Filtri"), how it is shown right (Kārtot,
     Karte, Tabula, Skats, always in this order). A chosen filter is "on": the family's .sel.t.set (tint, pressed in, a ring). */
  .catalogue-controls-row>.browse-filters{flex:none;gap:6px}
  /* B4 AU2 (audit A03): the right end is one group, so when a chosen place needs the room it goes to the second row whole, never in parts */
  .catalogue-controls-row>.browse-right{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-gap);min-width:0;margin-left:auto}
  .browse-right>.browse-sort{display:flex;flex:none;align-items:center;gap:var(--ui-gap)}
  .browse-right>.browse-presentation{display:flex;flex:none;align-items:center;gap:var(--ui-gap)}
  .browse-presentation>.browse-presentation-controls{display:flex;align-items:center;gap:var(--ui-gap);margin:0}
  .browse-right>.catalogue-right-controls{display:flex;flex:none;align-items:center;gap:var(--ui-gap);margin:0}
  .catalogue-right-controls>.browse-expand{display:flex;align-items:center}
  .catalogue-right-controls .browse-toggle,.catalogue-right-controls>.browse-skats,.browse-sort>.multi-sort-launch{gap:6px;white-space:nowrap}
  /* with "Skats" in the row, the columns disclosure has no button of its own: its panel opens from the menu, under the row */
  .has-view-menu .table-columns>summary{display:none}
  .has-view-menu .browse-presentation{gap:0;margin-left:calc(-1 * var(--ui-gap))}   /* it holds only the columns panel: no second gap after "Kārtot" */
  .search-filters .table-columns,.browse-presentation,.browse-presentation>.browse-presentation-controls{position:static}
  .search-filters .table-columns-panel{position:absolute;top:calc(100% + 4px);right:0;left:auto;z-index:30;box-sizing:border-box;width:min(720px,calc(100vw - 48px));max-height:min(70vh,560px);overflow:auto;margin:0;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh);color:var(--ui-ink)}
  .table-columns-panel>.table-columns-heading{background:none;border-bottom:1px solid var(--ui-line)}

  /* "Saglabāt skatu": the name and its button as a small panel under "Skats" */
  .has-view-menu>.filter-footer{display:none}
  .has-view-menu>.filter-footer.is-open{position:absolute;top:calc(var(--ui-h-m) + 4px);right:0;z-index:30;display:flex;align-items:center;gap:var(--ui-gap);box-sizing:border-box;margin:4px 0 0;padding:10px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh)}
  .has-view-menu>.filter-footer.is-open>select,.has-view-menu>.filter-footer.is-open>.ui-sel{display:none}
  .search-filters.has-view-menu{position:relative}

  /* ---------- "Filtri": one panel, four even columns of 30 px fields ---------- */
  .search-filters>.search-advanced{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;align-items:end;margin:8px 0 0;padding:12px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-surface);box-shadow:none}
  .search-advanced>.search-core-filters,.search-advanced>.numeric-filters,.search-advanced>.location-filters{display:contents}
  .search-advanced label,.search-advanced .range-filter>legend{color:var(--ui-ink-2);font:620 var(--ui-fs-label)/1.3 var(--ui-f)}
  .search-advanced :is(.search-core-filters,.numeric-filters,.location-filters)>label,.search-advanced>label{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;padding:0}
  .search-advanced label>:is(select:not(.ui-sel-src),input:not([type="checkbox"]),.ui-sel){width:100%;min-width:0;max-width:none;margin:0}
  .search-advanced .range-filter{min-width:0;margin:0;padding:0;border:0}
  .search-advanced .range-filter>legend{margin:0 0 4px;padding:0}
  .search-advanced .range-filter>div:not(.rng){display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px}
  .search-advanced .range-filter input:not(.rng>input){width:100%;min-width:0;margin:0}
  .range-filter .rng>input{margin:0}
  .range-filter>.rng{gap:0}   /* an older sheet's grid gap would split the capsule */   /* B4 OF2 p3: a .rng pair keeps the family's field width */
  .search-advanced>.multiple-location-filters{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:4px var(--ui-gap);min-width:0;margin:0;padding:0;border:0;background:none}
  .search-advanced>.multiple-location-filters::before{content:attr(data-label);flex:0 0 100%;color:var(--ui-ink-2);font:620 var(--ui-fs-label)/1.3 var(--ui-f)}
  .search-advanced>.location-selection-notice{grid-column:1 / -1;margin:0}
  .search-advanced>.catalogue-checks,.search-advanced>.search-source-checks{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;order:8;grid-column:span 2;align-self:center;min-height:var(--ui-h-s);margin:0;padding:0;border:0}
  .search-advanced :is(.catalogue-checks,.search-source-checks)>label{display:inline-flex;align-items:center;gap:8px;margin:0;padding:0;border:0;background:none;color:var(--ui-ink);font:var(--ui-t-body);cursor:pointer}
  /* "Vairāki novadi", "Vairāki pagasti": the family's dropdown (.sel on the summary) that folds a tick list out under itself */
  .multiple-location-filters>.multi-location-filter{position:static;flex:none;margin:0;padding:0;border:0;background:none}
  .multi-location-filter>summary{display:inline-flex;align-items:center;list-style:none;white-space:nowrap}
  .multi-location-filter>summary::-webkit-details-marker{display:none}
  .multi-location-filter>fieldset{position:absolute;top:calc(100% + 4px);left:0;z-index:25;box-sizing:border-box;min-width:240px;max-width:360px;max-height:280px;overflow:auto;margin:0;padding:8px 10px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh)}
  .multi-location-filter .multi-location-choices{display:grid;gap:2px;margin:0;padding:0}
  .multi-location-choices>label{display:flex;align-items:center;gap:8px;min-height:26px;margin:0;padding:0 2px;color:var(--ui-ink);font:var(--ui-t-body);cursor:pointer}

  /* ---------- B4 PF1: "Filtri" as labelled rows (the owner: "it just doesn't look great") ----------
     workspace-catalogue.js (lmfGroupFilterPanel) moves the panel's own controls into rows, wider than 700 px only:
     Vērtība, Mežs (the source table only), Vieta, Darbs, Dati. The grid's rules: the row's name in a quiet column at the
     left, on the line of the controls; every field's name above its control on one 16 px line; every control 30 px (the
     "i" 26); widths follow the content (numbers 88, the cadastre 160, the date 150, a dropdown as wide as its own select, P3's rule); the panel
     is as wide as the table (B4 AU2, audit C05); a row that does not fit wraps inside its own
     column. A row with a value set shows a pine dot beside its name. A row with nothing visible in it is not drawn. */
  .search-filters>.search-advanced.filter-groups{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:0;box-sizing:border-box;width:100%;max-width:100%;padding:2px 16px}
  .filter-groups>:is(.search-core-filters,.numeric-filters,.location-filters,.catalogue-checks){display:none}
  .filter-groups>.filter-group{display:grid;grid-column:1 / -1;grid-template-columns:subgrid;column-gap:24px;align-items:start;padding:10px 0;border:0}
  .filter-groups>.filter-group~.filter-group{border-top:1px solid var(--ui-td-line,var(--ui-line))}
  .filter-groups>.filter-group:not(:has(:is(input:not([type="hidden"]),select,summary):not([hidden],[hidden] *))){display:none}
  .filter-group-title{grid-column:1;display:flex;align-items:center;gap:6px;box-sizing:border-box;height:var(--ui-h-m);margin-top:20px;color:var(--ui-muted);font:620 var(--ui-fs-label)/1 var(--ui-f);white-space:nowrap}
  .filter-group.is-set>.filter-group-title{color:var(--ui-ink)}
  .filter-group.is-set>.filter-group-title::after{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--ui-a)}
  .filter-group-fields{grid-column:2;display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px;min-width:0;margin:0;padding:0}
  .filter-group-fields>.lmf-current-extra-filters{display:contents}
  /* B4 F2: "Vismaz % no meža" and its "i" stand on the Mežs line like the other fields; its notes take a line of their own */
  .filter-group-fields>.forest-filter-extra{display:contents}
  .filter-group-fields>.forest-filter-extra>.forest-filter-note{flex:0 0 100%;margin:0}
  /* "{n} ha atbilst" stays on the Koku suga cell's line, quiet, so a filtered row keeps its height */
  td>.forest-match-note{display:inline;margin-left:6px;color:var(--ui-muted);font:var(--ui-t-meta);white-space:nowrap}
  /* a field: its name above, the control under it */
  .filter-group-fields label:not(:has(>input[type="checkbox"])),.filter-group-fields .range-filter>legend{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;padding:0;color:var(--ui-ink-2);font:620 var(--ui-fs-label)/16px var(--ui-f);white-space:nowrap}
  .filter-group-fields .range-filter{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;padding:0;border:0}
  .filter-group-fields .range-filter>legend{float:left;width:100%}
  .search-advanced .filter-group-fields :is(input[type="number"],input[name="parcelPrefix"],input[type="date"]){margin:0}
  .search-advanced .filter-group-fields input[type="number"]:not(.rng>input){width:96px;min-width:0}   /* the family's number width (.w-num) */
  .search-advanced .filter-group-fields input[name="parcelPrefix"]{width:160px}
  .search-advanced .filter-group-fields input[type="date"]{width:150px}
  .search-advanced .filter-group-fields input[type="date"]::-webkit-calendar-picker-indicator{width:14px;height:14px;padding:0;opacity:.6;cursor:pointer}
  /* B4 DS5 (audit C05): every dropdown in the panel fits its words with one floor, as "Visas sugas" does (a label's 100 % no longer wins) */
  .search-advanced .filter-group-fields :is(label>.ui-sel,.ui-sel){width:auto;min-width:128px}
  /* the score range and "Drīz sasniegs" (workspace-qualification.js): one line of controls each, the note behind "i" */
  .filter-group-fields>.lmf-current-extra-filters>:is(.filter-range,.filter-near){display:flex;align-items:flex-end;gap:6px 8px;margin:0;padding:0;border:0}
  .filter-group-fields>.lmf-current-extra-filters>.filter-range{align-items:center;height:var(--ui-h-m);align-self:flex-end}
  .filter-range>span[aria-hidden]{color:var(--ui-muted)}
  /* B4 OF2 (decision 196): No and Līdz are one capsule, .rng in the markup (B4 OF2 p3); the family draws it */
  .filter-near>label:not(.filter-tick){margin-left:4px}
  .filter-group-fields label:has(>input[type="checkbox"]){display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;min-height:var(--ui-h-m);margin:0;color:var(--ui-ink);font:var(--ui-t-body);white-space:nowrap;cursor:pointer}
  .filter-group-fields label:has(>input[type="checkbox"])>input{flex:none;margin:0}
  .filter-group-fields label:has(>input:disabled){color:var(--ui-off-ink);cursor:default}
  .filter-info{position:relative;display:inline-flex;align-items:center;height:var(--ui-h-m)}
  .filter-info-button{flex:none}
  .filter-info-pop{position:absolute;top:calc(100% + 4px);left:-8px;z-index:30;width:300px;margin:0}
  .filter-info-pop>.filter-evidence-help{display:block;margin:0;color:var(--ui-ink-2);font:var(--ui-t-body);white-space:normal}
  /* Vieta: "Vairākas vietas" names its two buttons; the cadastre field beside them; the notice on its own line */
  .filter-group-fields>.multiple-location-filters{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:4px var(--ui-gap);min-width:0;margin:0;padding:0;border:0;background:none}
  .filter-group-fields>.multiple-location-filters::before{content:attr(data-label);flex:0 0 100%;color:var(--ui-ink-2);font:620 var(--ui-fs-label)/16px var(--ui-f)}
  .filter-group-fields>.location-selection-notice{flex:0 0 100%;margin:0}
  /* Darbs and Dati: the ticks stand on the line of the controls */
  .filter-group-fields>.search-source-checks{display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;min-height:0;margin:0;padding:0;border:0}
  .filter-group-fields>.search-source-checks:not(:has(>label:not([hidden]))){display:none}
  .filter-group-fields>.search-source-checks>.search-quick-filter{padding:0}

  /* ---------- the result-count line: count and review switch at the left, sort note and value mode at the right ---------- */
  .catalogue-record-summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:26px;margin:6px 0;color:var(--ui-muted);font:var(--ui-t-meta)}
  .catalogue-record-summary>.result-count{order:0;margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta);font-variant-numeric:tabular-nums}
  .catalogue-record-summary>.catalogue-review-controls{order:0}
  .catalogue-record-summary::after{content:"";order:1;flex:1 1 0}
  .catalogue-record-summary>.browse-sort-note{order:2}
  .catalogue-record-summary>.browse-acts{display:flex;flex:none;order:4;align-items:center;gap:var(--ui-gap)}
  .catalogue-record-summary>.value-mode-chip{order:3;margin:0;padding:2px 8px;border:0;border-radius:5px;background:var(--ui-wash);box-shadow:none;color:var(--ui-ink-2);font:620 12px/1.35 var(--ui-f)}

  /* ---------- the table: "Vērtība" is the strongest figure of a row ---------- */
  td[data-table-column="nextAttractiveness"] .next-score-cell strong{color:var(--ui-ink);font-weight:750;font-variant-numeric:tabular-nums}
  
  .dense-property-table td[data-table-column="name"]{color:var(--ui-ink);font:var(--ui-t-row)}   /* B4 DS4: the row name, 14 / 620 */
  /* B4 PI: the header and the rows in the drawn look (drawing 4). A calm one-line header on the header stone: the word, its
     unit quiet beside it, the sort mark; 28 px rows on white with a hairline and no zebra tint; text at the left, numbers at
     the right in tabular figures. Columns, widths, order and data are the table's own, unchanged. */
  .dense-property-table thead th{height:var(--ui-h-m);padding:0 6px;background:var(--ui-th-bg);border-bottom:1px solid var(--ui-line);color:var(--ui-ink-2);text-align:left}
  .dense-property-table th:where([scope=col])>button:not(.b){display:flex;align-items:center;justify-content:flex-start;gap:4px;box-sizing:border-box;width:100%;height:var(--ui-h-s);min-height:0;padding:0;overflow:hidden;color:var(--ui-ink-2);font:var(--ui-t-head);line-height:1.08;text-align:left;white-space:normal}
  /* one line where the column has the room; in a narrow column the unit (or the second word) drops to a second line inside the same 26 px */
  th:where([scope=col])[data-table-column]>button>span:first-child{display:block;flex:0 1 auto;min-width:0;overflow:hidden;overflow-wrap:normal;white-space:normal;text-overflow:clip;height:auto;max-height:var(--ui-h-s);line-height:1.08}
  .dense-property-table th small{display:inline;height:auto;overflow:visible;color:var(--ui-muted);font-size:var(--ui-fs-s);font-weight:400;line-height:inherit;letter-spacing:0;text-transform:none;white-space:normal;text-overflow:clip}
  /* the sort mark (its place in the order and the direction) stands beside the word, as a small well; it lay over the word's first letters */
  .dense-property-table .table-sort-marker{position:static;flex:none;height:16px;margin:0;padding:0 3px;border:0;border-radius:4px;background:var(--ui-well-bg);box-shadow:var(--ui-well-sh);color:var(--ui-ink-2);line-height:1}
  .dense-property-table th small::before{content:" "}
  /* the cadastre column's fold button is not a header word: the family's quiet 26 px icon button (.b.s.q.ic) at the cell's right */
  .dense-property-table th>.cadastre-toggle{position:absolute;inset:2px 4px auto auto}
  .dense-property-table .cadastre-heading>button:not(.cadastre-toggle){padding-inline-end:30px}
  /* B4 PF2: the folded cadastre column. Its row cell is a header cell too (th scope=row), so the header rules above reach it and,
     from this layer, beat the legacy fold rules: the full number stayed drawn under the row number. Folded, the cell shows the
     row number only, at the right in tabular figures; the header shows "#" and the fold button (the sort mark has no room there). */
  .dense-property-table.cadastre-is-collapsed .identity-cell{padding:0 4px}
  .dense-property-table.cadastre-is-collapsed .identity-cell>[data-parcel]{justify-content:flex-end;text-align:right;font-variant-numeric:tabular-nums}
  .dense-property-table.cadastre-is-collapsed .cadastre-full-id{display:none}
  .dense-property-table.cadastre-is-collapsed .cadastre-row-number{display:block;flex:none}
  .dense-property-table.cadastre-is-collapsed .cadastre-heading :is(.table-sort-marker,.table-sort-priority){display:none}
  .dense-property-table th[aria-sort]:not([aria-sort="none"])>button{color:var(--ui-ink)}
  .dense-property-table tbody td{height:var(--ui-row-h);padding:0 6px;background:var(--ui-surface);border-bottom:1px solid var(--ui-td-line);color:var(--ui-ink);font-size:var(--ui-fs-m);font-weight:400;text-align:left}
  .dense-property-table tr:nth-child(even)>*{background:var(--ui-surface)}
  .dense-property-table tr[data-record-id]:hover>*{background:var(--ui-a-soft)}
  .dense-property-table :is(th,td).number-cell{text-align:right;font-variant-numeric:tabular-nums}
  .dense-property-table th.number-cell>button{justify-content:flex-end;text-align:right}
  /* B4 PF3: moving a column by its header. The held header lifts (the area's soft tint, the raised shadow) and a 2 px bar in the
     area's colour marks where it will land; the legacy marks (a forest-green tint and bar) were beaten by the header rule above. */
  .dense-property-table thead th.is-dragging{background:var(--ui-a-soft);box-shadow:var(--ui-raise-sh);opacity:1}
  .dense-property-table th.is-dragging>button{color:var(--ui-ink)}
  .dense-property-table thead th.table-drop-before{box-shadow:inset 2px 0 var(--ui-a)}
  .dense-property-table thead th.table-drop-after{box-shadow:inset -2px 0 var(--ui-a)}
  .dense-property-table th.table-draggable>button{cursor:grab}
  .table-is-dragging th.table-draggable>button{cursor:grabbing}
  .dense-property-table :is(th,td):is(.marker-cell,.table-row-menu-cell){padding:0;text-align:center}
  .dense-property-table .record-name,.dense-property-table .inventory-evidence-trigger{height:var(--ui-h-s);min-height:0}
  /* B4 AU2 (audit C10): the dot inside the button's corner, whole; the sideways rail solid, so no row shows through it */
  .catalogue-dense .table-row-actions .table-action-dot{right:3px;top:3px;width:5px;height:5px;background:var(--ui-a)}
  .catalogue-side-scroll{opacity:1}
  /* a resize saves one column only (rule A): the Izlase table keeps filling its space around it */
}

/* B4 AU2 (rule B, decision 142): a row of four icons stands closer, so four and the badge ("+N", "9+") end inside the column's 95 px */
@media (min-width:701px) and (pointer:fine){
  .dense-property-table .v31-bdeal:has(.v31-bdeal-ic:nth-child(4)){gap:0}
  .v31-bdeal:has(.v31-bdeal-ic:nth-child(4))>.v31-bdeal-ic{width:18px}
  .dense-property-table .v31-bdeal-more{padding:0}
  .dense-property-table td:has(.v31-bdeal-ic:nth-child(4)){padding-inline-end:0}
}

/* PHONE-SEAM: the phone keeps its own table, filter sheet and "Skats" fold; only the shared words above reach it. Its filter
   sheet has its own summary and close, so "Notīrīt" stays a desktop control. */
@media (max-width:700px){
  .browse-right{display:contents}
  /* B4 OF2 p3 (decision 198, ROLLOUT phone rules 1 to 3): the head is the search, then ONE flow of tool capsules (Reģions, Novads,
     Pagasts, Darījums, Filtri, Kārtot, Skats) with no label line above a dropdown (its value names it), then the count line. The
     wrappers give their boxes up so every capsule is an item of the one row; it wraps rather than scrolls, because the Skats menu
     opens inside the row and a sideways scroller would clip it. */
  .phone-filter-panel>.catalogue-controls-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-gap);margin:0}
  .phone-filter-panel .catalogue-controls-row :is(.catalogue-location-filters,.v31-bdeal-filter,.phone-filter-toolbar-slot,.mobile-table-tools,.browse-sort){display:contents}
  .phone-filter-panel .catalogue-location-filters>label{display:flex;flex:none;flex-direction:column;min-width:0;margin:0;line-height:0;color:transparent;white-space:nowrap}   /* its name is spoken, not printed (as on a PC) */
  .phone-filter-panel .catalogue-controls-row :is(select,.ui-sel){flex:none;width:auto;min-width:0;max-width:168px;margin:0}   /* the family's tight stop (.sel.t.tight) */
  .phone-filter-panel .catalogue-controls-row .mobile-browser-view{position:relative;flex:none;margin:0}
  /* the count line: the count, Pārbaudāmie, and "Pievienot sarakstam" as its icon at the right end (its count is the line's own) */
  .catalogue-record-summary .vl-bulk>.n{display:none}
  .mobile-browser-view-actions,.mobile-browser-view-actions .catalogue-right-controls{gap:var(--ui-gap)}   /* tap boxes never overlap */
  /* the filter sheet: a No and Līdz pair fills its column and its two halves share it (an older rule made each half the full width) */
  .phone-filter-panel .rng{display:flex;width:100%;gap:0}
  .phone-filter-panel .rng>input{flex:1 1 0;width:auto;min-width:0;margin:0}
  .catalogue-controls-row>.browse-clear{display:none}
  /* B4 DS6: the result line: the count at the left, "Pievienot sarakstam" at the right end, right above the table it acts on */
  .catalogue-record-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
  .catalogue-record-summary>.browse-acts{display:flex;order:4;margin-left:auto}
}
/* B4 DS6: a touch screen wider than a phone (a phone on its side, a tablet) draws the desktop filter panel: its fields and ticks are 44 high there */
@media (min-width:701px) and (pointer:coarse){
  .filter-group-fields label:has(>input[type="checkbox"]){min-height:var(--ui-hit)}
}
/* B4 PN1 + PN2 (decision 67): the "Jāzina" column (key sourceComment) is a margin of quiet remarks, not a column of controls. The note:
   one line with an ellipsis, a step smaller than the data, paler (--ui-muted: 6.0:1 on the row and a selected row, 5.5:1 hovered) and a
   touch heavier (500), no box. The pencil (only on a filled cell): a bare 14 px icon in a 26 px target, faint at rest, full on row
   hover, focus and a selected row. An empty Jāzina is an empty cell. The full text: the table's hint and the window. */
.mobile-register td[data-mobile-key="sourceComment"] .jazina-note,.dense-property-table td[data-table-column="sourceComment"] .jazina-note{display:flex;align-items:center;gap:2px;min-width:0;max-width:100%}
.mobile-register td[data-mobile-key="sourceComment"] .jazina-line,.dense-property-table td[data-table-column="sourceComment"] .jazina-line{display:block;flex:1 1 auto;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--ui-fs-s);font-weight:400;color:var(--ui-muted)}
.mobile-register td[data-mobile-key="sourceComment"] .jazina-edit,.dense-property-table td[data-table-column="sourceComment"] .jazina-edit{flex:none;margin:0;opacity:.4}
:is(.mobile-register,.dense-property-table) .jazina-edit svg{width:14px;height:14px;flex:none}
:is(.mobile-register,.dense-property-table) :is(tr:hover,tr.is-selected) .jazina-edit,:is(.mobile-register td[data-mobile-key="sourceComment"],.dense-property-table td[data-table-column="sourceComment"]) .jazina-edit:is(:hover,:focus){opacity:1;color:var(--ui-ink-2)}
:is(.mobile-register td[data-mobile-key="sourceComment"],.dense-property-table td[data-table-column="sourceComment"]) .jazina-edit:focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
/* B4 SP1 (decision 144): "Koku suga" as two fixed slots, on PC and phone. Markup: LMFDenseFacts.speciesSummary (lmf-dense-facts.js).
   Slot 1, the main species: a quiet badge, one width for every row, left-aligned so the names start at one x too. The width fits
   every species that leads a stand in practice ("Melnalksnis" 89 px, "Citas priedes" 98 px, "Ciedru priede" 99 px at 12 px on PC,
   measured in sps-look.cjs); only the shrubs and the two-name groups ("Dzeltenā akācija", "Citas gobas, vīksnas") end in an
   ellipsis, whole in the text. A faint family tint: conifers soft pine, every other species soft stone; the name is the text, the
   tint is only a hint. Slot 2, the second species: muted plain text. PC: one 20 px line, the second name starts right after the
   badge, at the same x on every row. Phone (the cell is about 156 px): the second name on its own line under the badge, its words
   at the badge's word x; the line is kept when empty, so every badge sits at the same height. The legacy "·" goes. */
:is(.dense-property-table,.mobile-register) .dense-species-summary{--_sp-w:100px;--_sp-px:7px;display:grid;grid-template-columns:var(--_sp-w) minmax(0,1fr);grid-auto-rows:20px;align-items:center;align-content:center;column-gap:8px;row-gap:1px;width:100%;min-width:0;max-width:100%;font-family:var(--ui-f);font-size:var(--ui-fs-s);font-weight:400;line-height:20px;text-align:left}
:is(.dense-property-table,.mobile-register) .dense-species-summary .dense-species-item{display:block;min-width:0;overflow:hidden;white-space:nowrap;overflow-wrap:normal;text-overflow:ellipsis}
:is(.dense-property-table,.mobile-register) .dense-species-second::before{content:none}
:is(.dense-property-table,.mobile-register) .dense-species-main{box-sizing:border-box;width:var(--_sp-w);max-width:100%;height:20px;padding:0 var(--_sp-px);border-radius:4px;background:var(--ui-stone-2);color:var(--ui-ink-2);font-weight:var(--ui-fw-sel);letter-spacing:var(--ui-ls)}
:is(.dense-property-table,.mobile-register) .dense-species-main[data-species-family="conifer"]{background:var(--ui-pine-tint);color:var(--ui-pine)}
:is(.dense-property-table,.mobile-register) .dense-species-second{color:var(--ui-muted)}
@media (max-width:700px){
  .mobile-register .dense-species-summary{--_sp-w:104px;--_sp-px:6px;grid-template-columns:minmax(0,1fr);grid-auto-rows:20px;row-gap:1px}
  .mobile-register .dense-species-second{height:20px;padding-inline-start:var(--_sp-px)}
}
/* Review fix (Sol, P2): a saved desktop column can be as narrow as 44 px. When the summary is under 184 px (badge 100 + gap 8 +
   "Melnalksnis" 76), the second species wraps to its own line under the badge, at the badge's word x, as on the phone; the row grows
   to show it, so nothing is ever hidden. The badge never outgrows the cell. The summary is the container (a table cell cannot be one);
   the fixed table layout gives it the column's width. */
.dense-property-table .dense-species-summary{container:species-cell/inline-size}
@container species-cell (max-width:183px){
  .dense-property-table .dense-species-second{grid-column:1/-1;height:20px;padding-inline-start:var(--_sp-px)}
}
@media (forced-colors:active){:is(.dense-property-table,.mobile-register) .dense-species-main{outline:1px solid CanvasText;outline-offset:-1px}}
/* B4 DS2: the row's own buttons are the family's quiet icons; a saved bookmark keeps its colour */
.shortlist-bookmark.b.is-saved{color:var(--ui-a-ink)}
.dense-property-table .comment-edit-action.b{position:absolute;min-width:0}
.dense-property-table .record-name.lk{font-size:var(--ui-fs-s);font-weight:620;font-variant-numeric:tabular-nums;text-decoration:none}
.dense-property-table .record-name.lk:hover{text-decoration:underline}
/* B4 DS4: the column resize handle (the legacy 8 px strip and its 1 px line at 18 %, unchanged since d67565ba, were too faint to find).
   Rest: a hairline in the line colour; header hovered: the hairline darkens on every column; the handle hovered, focused or dragged: a
   3 px bar in the area colour on a soft tint, and the col-resize cursor stays on the whole table while dragging. */
.dense-property-table .table-resize-handle{cursor:col-resize;transition:background-color var(--ui-t)}
.dense-property-table .table-resize-handle::after{right:0;width:1px;border-radius:2px;background:var(--ui-line-2);opacity:1;transition:width var(--ui-t),background-color var(--ui-t)}
.dense-property-table thead:hover .table-resize-handle::after{background:var(--ui-ico-mute)}
.dense-property-table .table-resize-handle:is(:hover,:focus-visible),.table-is-resizing .table-resize-handle:focus{background:var(--ui-a-soft)}
.dense-property-table thead .table-resize-handle:is(:hover,:focus-visible)::after,.table-is-resizing .table-resize-handle:focus::after{width:3px;background:var(--ui-a)}
.dense-property-table .table-resize-handle:focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
.table-is-resizing .dense-property-table,.table-is-resizing .dense-property-table *{cursor:col-resize;user-select:none}
/* B4 CR1: the grab area straddles the edge: the next data column's first 6 px (workspace-table-controls.js edgeZone) also take the
   drag; Pārlūks and Izlase alike (only these controls mark th.table-resizable). Not the pinned Actions header (no data column), and
   nothing at a folded Kadastrs: neither its handle nor the strip beside it (it resizes only unfolded) */
th.table-resizable+th[data-table-column]::before{content:'';position:absolute;left:0;top:0;bottom:0;width:6px;cursor:col-resize}
.cadastre-is-collapsed th[data-table-column=parcelCode]+th::before,.cadastre-is-collapsed th[data-table-column=parcelCode]>.table-resize-handle{display:none}
.table-is-resizing :is(th,th.table-draggable)>button{cursor:col-resize}
@media (prefers-reduced-motion:reduce){.dense-property-table .table-resize-handle,.dense-property-table .table-resize-handle::after{transition:none}}
@media (forced-colors:active){.dense-property-table .table-resize-handle::after{background:CanvasText}.dense-property-table .table-resize-handle:is(:hover,:focus-visible)::after,.table-is-resizing .table-resize-handle:focus::after{background:Highlight}}
/* ==== B4 TB1 (decisions 215, 216, 217): the Pārlūks table's cells, one display system for PC (.dense-property-table) and phone
   (.mobile-register). Only these two tables; the same data elsewhere keeps its own look.
   ALIGNMENT, one rule for every column, whatever columns are on and in whatever order:
   - text (Kadastrs, Nosaukums, Pagasts, Novads, Īpašnieka novads, Koku suga, Jāzina): left;
   - quantities (number fields, area chips, the value badge): right, so digits end on one line down the column;
   - short fixed-width marks (Pārdošana, Taks., Darījums, the inventory year): centred.
   The header follows its column's edge (the header block below). Every cell keeps the same 6 px gutter each side, so neighbours
   never touch, and every mark is 18 to 20 px high, centred on the row's middle (28 px PC, 40 px phone). */
:is(.dense-property-table,.mobile-register,.tb-sample) :is(td,th):is([data-table-column=parcelCode],[data-mobile-key=parcelCode],[data-table-column=name],[data-mobile-key=name],[data-table-column=parish],[data-mobile-key=parish],[data-table-column=municipality],[data-mobile-key=municipality],[data-table-column=nextOwnerRegion],[data-mobile-key=nextOwnerRegion],[data-table-column=nextSpecies],[data-mobile-key=nextSpecies],[data-table-column=sourceComment],[data-mobile-key=sourceComment]){text-align:left}
:is(.dense-property-table,.mobile-register,.tb-sample) :is(td,th):is([data-table-column=nextStockDensity],[data-mobile-key=nextStockDensity],[data-table-column=nextStock],[data-mobile-key=nextStock],[data-table-column=nextAge],[data-mobile-key=nextAge],[data-table-column=nextAgeRange],[data-mobile-key=nextAgeRange],[data-table-column=nextDerivedTrees],[data-mobile-key=nextDerivedTrees],[data-table-column=nextRegisteredArea],[data-mobile-key=nextRegisteredArea],[data-table-column=nextRegisteredForestArea],[data-mobile-key=nextRegisteredForestArea],[data-table-column=nextForestArea],[data-mobile-key=nextForestArea],[data-table-column=nextAttractiveness],[data-mobile-key=nextAttractiveness]){text-align:right}
:is(.dense-property-table,.mobile-register,.tb-sample) :is(td,th):is([data-table-column=nextSaleCheck],[data-mobile-key=nextSaleCheck],[data-table-column=nextInventoryAgeSignal],[data-mobile-key=nextInventoryAgeSignal],[data-table-column=deal],[data-mobile-key=deal],[data-table-column=nextInventory],[data-mobile-key=nextInventory]){text-align:center}
:is(.dense-property-table,.mobile-register,.tb-sample) td:is([data-table-column=nextSaleCheck],[data-mobile-key=nextSaleCheck],[data-table-column=nextInventoryAgeSignal],[data-mobile-key=nextInventoryAgeSignal]){padding:0 6px}
.dense-property-table td[data-table-column=deal] .v31-bdeal,.mobile-register td[data-mobile-key=deal] .v31-bdeal{justify-content:center}
.mobile-register td[data-mobile-key=nextAgeRange] .mobile-range{align-items:center}
/* C Lauks: a number column's value sits in a soft sunk field of its family's tint, the full width of the cell, digits at the right;
   timber warm wood, age plum, count slate. The same height (20), corner and digit size (12, 620) as the area chips beside it. */
:is(.dense-property-table,.mobile-register,.tb-sample) .qf{--_f-ink:var(--ui-qf-count-ink);--_f-tint:var(--ui-qf-count-tint);--_f-line:var(--ui-qf-count-line);
  display:flex;align-items:center;justify-content:flex-end;gap:4px;box-sizing:border-box;width:100%;min-width:0;height:var(--ui-qf-h);padding:0 var(--ui-qf-px);
  border-radius:var(--ui-qf-r);background:var(--_f-tint);box-shadow:var(--ui-qf-sh);color:var(--_f-ink);
  font:620 var(--ui-fs-s)/1 var(--ui-f);font-variant-numeric:tabular-nums lining-nums;letter-spacing:0;white-space:nowrap;overflow:hidden}
:is(.dense-property-table,.mobile-register,.tb-sample) .qf[data-f=timber]{--_f-ink:var(--ui-qf-timber-ink);--_f-tint:var(--ui-qf-timber-tint);--_f-line:var(--ui-qf-timber-line)}
:is(.dense-property-table,.mobile-register,.tb-sample) .qf[data-f=age]{--_f-ink:var(--ui-qf-age-ink);--_f-tint:var(--ui-qf-age-tint);--_f-line:var(--ui-qf-age-line)}
.qf :is(.next-stock-cell,.next-stock-number,.next-table-evidence,.mobile-number,.mobile-range,.mobile-range>span){display:inline;width:auto;min-width:0;margin:0;padding:0;border:0;background:none;color:inherit;font-size:var(--ui-fs-s);font-weight:620;letter-spacing:0;text-align:right}
.qf .next-stock-cell:has(.next-coverage-signal){display:inline-flex;align-items:center;gap:4px}
.qf .next-coverage-signal{display:inline-flex;order:-1;color:inherit;opacity:.7}   /* the coverage cue before the digits, so the digits keep the column's right edge */
.qf .next-coverage-signal svg{width:11px;height:11px}
/* nothing recorded: the outline of the field in its family's line, the usual unknown mark inside, no fill */
:is(.dense-property-table,.mobile-register,.tb-sample) .qf[data-state=missing]{background:none;box-shadow:inset 0 0 0 1px var(--_f-line);color:var(--ui-muted)}
.qf[data-state=missing]>.dense-unknown{display:inline-flex;min-height:0;height:auto;padding:0;background:none}
:is(.dense-property-table,.mobile-register,.tb-sample) td:has(>.qf){background-clip:padding-box}
@media (max-width:700px){:is(.dense-property-table,.mobile-register,.tb-sample) .qf{height:24px;font-size:var(--ui-fs-m)}}
/* T3 Kapiteļi: the name is the row's one ordinary word; places are small wide capitals in a quiet grey (labels you read down a
   column); the inventory year plain, tabular and centred; the cadastre in groups of 4 3 4 */
:is(.dense-property-table,.mobile-register,.tb-sample) .tp.is-cut{-webkit-mask-image:var(--ui-fade-end);mask-image:var(--ui-fade-end)}   /* B4 HD1 (Sol): only a word that is cut fades (workspace-table-controls.js measures) */
:is(.dense-property-table,.mobile-register,.tb-sample) .tp{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:clip;color:var(--ui-place-ink);font:var(--ui-t-micro);letter-spacing:.05em;text-transform:uppercase}
:is(.dense-property-table,.mobile-register,.tb-sample) .owner-region-cell{display:flex;align-items:center;width:100%;min-width:0;min-height:0;padding:0;background:none;color:inherit;text-align:left}
:is(.dense-property-table,.mobile-register,.tb-sample) .owner-region-cell[data-owner-same=true] .tp{color:var(--ui-place-same);font-weight:400}
:is(.dense-property-table,.mobile-register,.tb-sample) .owner-region-cell[data-owner-same=false] .tp{color:var(--ui-ink);font-weight:700}
:is(.dense-property-table,.mobile-register,.tb-sample) .owner-region-cell:hover .tp{text-decoration:underline;text-underline-offset:2px}
:is(.dense-property-table,.mobile-register,.tb-sample) td:is([data-table-column=nextInventory],[data-mobile-key=nextInventory]){color:var(--ui-ink-2);font-weight:540;font-variant-numeric:tabular-nums lining-nums}
td:is([data-table-column=nextInventory],[data-mobile-key=nextInventory])>.next-table-evidence{color:inherit}
.cadastre-full-id,.mobile-identity button>span:first-child{display:inline;white-space:nowrap}   /* B4 HD1 (Sol P1): inline, not flex, so a copy gives the plain 11 digits */
.cad-g{display:inline}
.dense-property-table.cadastre-is-collapsed .cadastre-full-id{display:none}
.cad-g+.cad-g{margin-left:.12em}
/* Pārdošana and Taks.: one family, S1 Kontūra (Janis's pick, 25 Nov 2026): a 16 px mark, 1.5 px line, round ends; OK a small light
   check, warning an amber triangle, problem a red ring with "!", not known a dashed ring with "?". Shape alone tells them apart. */
:is(.dense-property-table,.mobile-register,.tb-sample) .tb-mark{display:block;flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
:is(.dense-property-table,.mobile-register,.tb-sample) .tb-mark .dot{fill:currentColor;stroke:none}
:is(.dense-property-table,.mobile-register,.tb-sample) .tb-mark[data-mark=ok]{color:var(--ui-sym-ok)}
:is(.dense-property-table,.mobile-register,.tb-sample) .tb-mark[data-mark=warn]{color:var(--ui-sym-warn)}
:is(.dense-property-table,.mobile-register,.tb-sample) .tb-mark[data-mark=alert]{color:var(--ui-sym-alert)}
:is(.dense-property-table,.mobile-register,.tb-sample) .tb-mark[data-mark=unres]{color:var(--ui-sym-unres)}
:is(.dense-property-table,.mobile-register,.tb-sample) :is(.sale-status,.inventory-evidence-trigger[data-inventory-age]){display:inline-flex;align-items:center;justify-content:center;width:24px;min-width:24px;height:24px;min-height:0;margin:0;padding:0;border:0;border-radius:6px;background:none;color:inherit;vertical-align:middle}
:is(.dense-property-table,.mobile-register,.tb-sample) .inventory-evidence-trigger[data-inventory-age]::before{content:none}
:is(.dense-property-table,.mobile-register,.tb-sample) :is(.sale-status,.inventory-evidence-trigger[data-inventory-age]):is(:hover,[aria-expanded=true]){background:var(--ui-wash)}
:is(.dense-property-table,.mobile-register,.tb-sample) :is(.sale-status,.inventory-evidence-trigger[data-inventory-age]):focus-visible{outline:2px solid var(--ui-a);outline-offset:0}
@media (max-width:700px),(pointer:coarse){.mobile-register :is(.sale-status,.inventory-evidence-trigger[data-inventory-age]){width:40px;min-width:40px;height:40px}.mobile-register .tb-mark{width:18px;height:18px}}
@media (forced-colors:active){
  :is(.dense-property-table,.mobile-register,.tb-sample) .qf{forced-color-adjust:none;background:Canvas;color:CanvasText;box-shadow:inset 0 0 0 1px CanvasText}
  :is(.dense-property-table,.mobile-register,.tb-sample) .tb-mark,:is(.dense-property-table,.mobile-register,.tb-sample) .tb-mark[data-mark]{color:CanvasText}
  :is(.dense-property-table,.mobile-register,.tb-sample) .tp{color:CanvasText}
}
@media print{:is(.dense-property-table,.mobile-register,.tb-sample) .qf{background:none;box-shadow:none;color:var(--ui-ink)}}

/* ==== B4 TB1 HEADER (provisional; decision 217's header round, designer HD1, replaces this block and lmfDenseTableHeader's
   TB1 lines). Rules kept for HD1: one line for the short label (the full name is the button's title and spoken name); a second line
   for the unit, drawn in the column's own field tint when the column is a number field; the label and the unit sit on the same
   edge as the column's data (left, right or centre, as the alignment rule above); the sort mark stays in the label line; the resize
   line at the cell's right edge is unchanged. Every header is top-aligned, so all label lines and all unit lines run straight. */
th[scope=col][data-table-column][data-align]{height:42px;vertical-align:top;padding-top:5px}
th[scope=col][data-table-column][data-align]>button:not(.b){height:auto;min-height:var(--ui-h-s);align-items:flex-start;overflow:visible}
th[scope=col][data-table-column][data-align]>button>span:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-height:none;white-space:nowrap}
th[scope=col][data-table-column][data-align=right]>button>span:first-child{align-items:flex-end;width:100%}
th[scope=col][data-table-column][data-align=center]>button>span:first-child{align-items:center}
th[scope=col][data-table-column][data-align=right]>button{justify-content:flex-end;text-align:right}
th[scope=col][data-table-column][data-align=right] .th-label{padding-right:var(--ui-qf-px)}
th[scope=col][data-table-column][data-align]>button>span:first-child{min-width:0;max-width:100%}
th[scope=col][data-table-column][data-align] .th-label{max-width:100%;overflow:hidden;text-overflow:ellipsis}   /* a narrow column cuts the label at its end, never its start */
.mobile-register th[data-mobile-key]>small{line-height:14px}
.mobile-register th[data-mobile-key]:has(>small.th-unit[data-f])>span:first-child{padding-right:var(--ui-qf-px)}   /* B4 HD1 (Sol P2) */
.mobile-number[data-shown]{position:relative}.mobile-number[data-shown]::before{content:attr(data-shown)}
.mobile-number[data-shown]>.mobile-copy{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}   /* B4 HD1 (Sol P1): the exact value, selectable and copied, not drawn */
th[scope=col][data-table-column][data-align=right]>button>.table-sort-marker{order:-1}   /* the sort mark on the inner side, so the label keeps the digits' edge */
th[scope=col][data-table-column][data-align][data-table-column=nextSpecies] .th-label{padding-left:var(--ui-qf-px)}   /* the label starts where the species badge's word starts */
.dense-property-table td[data-table-column=sourceComment]{padding-inline:6px}   /* the label ends where the digits end (a field's or a badge's 7 px inset) */
th[scope=col][data-table-column][data-align=center]>button{justify-content:center;text-align:center}
th[scope=col][data-table-column][data-align] small.th-unit{display:block;line-height:14px}
th[scope=col][data-table-column][data-align] small.th-unit::before{content:none}
th[scope=col][data-table-column][data-align] small.th-unit[data-f]{--_f-ink:var(--ui-qf-count-ink);--_f-tint:var(--ui-qf-count-tint);--_f-line:var(--ui-qf-count-line);padding:0 var(--ui-qf-px);border-radius:3px;background:var(--_f-tint);box-shadow:inset 0 0 0 1px var(--_f-line);color:var(--_f-ink);font-weight:620}
th[scope=col][data-table-column][data-align] small.th-unit[data-f=timber]{--_f-ink:var(--ui-qf-timber-ink);--_f-tint:var(--ui-qf-timber-tint);--_f-line:var(--ui-qf-timber-line)}
th[scope=col][data-table-column][data-align] small.th-unit[data-f=age]{--_f-ink:var(--ui-qf-age-ink);--_f-tint:var(--ui-qf-age-tint);--_f-line:var(--ui-qf-age-line)}
th[scope=col][data-table-column][data-align=right] small.th-unit[data-f]{align-self:stretch;text-align:right}
/* an area column's unit: the area chip in small, its kind's tint and shape and the chips' width, so the unit sits over the chips */
small.th-unit[data-ab]{box-sizing:border-box;width:var(--ui-ab-col-s);padding:0 6px;border-radius:999px;background:var(--ui-ab-forest-tint);box-shadow:inset 0 0 0 1px var(--ui-ab-forest-line);color:var(--ui-ab-forest-ink);font-weight:620;text-align:right}   /* B4 LS1 add-on: every unit chip outlined in its own family */
small.th-unit[data-ab=land]{border-radius:2px;background:var(--ui-ab-land-tint);box-shadow:inset 0 0 0 1px var(--ui-ab-land-line);color:var(--ui-ab-land-ink)}
small.th-unit[data-ab=cad]{padding:0 8px;border-radius:7px 2px 7px 2px;background:var(--ui-ab-cad-tint);box-shadow:inset 0 0 0 1px var(--ui-ab-cad-line);color:var(--ui-ab-cad-ink)}
small.th-unit[data-ab=forest]{padding:0 8px}
/* the phone's header (its own markup, th[data-mobile-key]): the same unit chip on the second line */
.mobile-register th[data-mobile-key]>small.th-unit[data-f]{--_f-ink:var(--ui-qf-count-ink);--_f-tint:var(--ui-qf-count-tint);--_f-line:var(--ui-qf-count-line);display:block;box-sizing:border-box;width:100%;margin-top:2px;padding:0 var(--ui-qf-px);border-radius:3px;background:var(--_f-tint);box-shadow:inset 0 0 0 1px var(--_f-line);color:var(--_f-ink);font-weight:620;text-align:right}
.mobile-register th[data-mobile-key]>small.th-unit[data-f=timber]{--_f-ink:var(--ui-qf-timber-ink);--_f-tint:var(--ui-qf-timber-tint);--_f-line:var(--ui-qf-timber-line)}
.mobile-register th[data-mobile-key]>small.th-unit[data-f=age]{--_f-ink:var(--ui-qf-age-ink);--_f-tint:var(--ui-qf-age-tint);--_f-line:var(--ui-qf-age-line)}
@media (forced-colors:active){:is(th[scope=col][data-table-column][data-align],.mobile-register th[data-mobile-key]) small.th-unit:is([data-f],[data-ab]){forced-color-adjust:none;background:Canvas;color:CanvasText;box-shadow:inset 0 0 0 1px CanvasText}}

  /* ==== B4 HD1 (decision 218, Janis's pick 1 Pacēlums): the Pārlūks header row. TB1's rules above stay (one line for the short label,
     the unit on a second line in the column's own container, label and unit on the column's edge). This adds the look and the
     behaviour around them: a calm stone band with hairlines; under the pointer the cell steps a shade darker and a pine beam falls down
     the column; a sorted column keeps a pine wash and shows its order once there are two sorts; a picked-up column floats on a pine
     ring while its neighbours make room around a dashed slot; the width shows in a bubble while it changes; the column card. */
  .dense-property-table thead th:is([data-table-column],.marker-cell){background:var(--ui-hd-bg);transition:background-color var(--ui-t)}
  .dense-property-table thead th[data-table-column]:is(:hover,.hd-card-on){background:var(--ui-hd-hov)}
  .dense-property-table thead th[data-sort-priority]{background:var(--ui-hd-sorted)}
  .dense-property-table th:is(:hover,.hd-card-on,[data-sort-priority]) .th-label{color:var(--ui-ink)}
  .dense-property-table .table-resize-handle::after{background:var(--ui-hd-line)}
  /* the sort mark: a pine arrow on the label line; its order number only once two or more sorts are set */
  .dense-property-table .table-sort-marker{display:inline-flex;align-items:center;gap:1px;height:16px;padding:0 1px;background:none;box-shadow:none;color:var(--ui-a);font:700 var(--ui-fs-micro)/1 var(--ui-f);font-variant-numeric:tabular-nums}
  .dense-property-table .table-sort-priority{display:inline-grid;place-items:center;min-width:14px;height:14px;padding:0 3px;border-radius:999px;background:var(--ui-a-soft);color:var(--ui-a)}   /* Janis 26 Nov: quieter, blends with the header; still reads as 1, 2 */
  .dense-property-table:not(:has(th[data-sort-priority="2"])) .table-sort-priority{display:none}
  /* the floating column: the cells move by one stylesheet written per frame (workspace-table-controls.js); ring and slot are an overlay */
  .dense-property-table[data-hd-drag] :is(td,th)[data-table-column]{transition:transform .2s cubic-bezier(.2,.8,.2,1)}
  .dense-property-table[data-hd-drag] [data-hd-moving]{transform:translateX(var(--hd-dx));transition:none}
  .dense-property-table[data-hd-drag] td[data-hd-moving]{position:relative;z-index:6}
  .dense-property-table[data-hd-drag] th[data-hd-moving]{z-index:7}
  .dense-property-table[data-hd-drag] [data-hd-shift=l]{transform:translateX(calc(-1 * var(--hd-w)))}
  .dense-property-table[data-hd-drag] [data-hd-shift=r]{transform:translateX(var(--hd-w))}
  .hd-drag-layer{position:fixed;z-index:30;overflow:hidden;pointer-events:none}
  .hd-slot,.hd-lift{position:absolute;left:0;border-radius:8px}
  .hd-slot{box-sizing:border-box;border:1.5px dashed var(--ui-hd-slot-line);background:var(--ui-hd-slot-bg);opacity:0;transition:transform .2s cubic-bezier(.2,.8,.2,1),opacity .15s}
  .hd-slot.is-on{opacity:1}
  .hd-lift{box-shadow:var(--ui-hd-lift-sh)}
  .hd-width{position:fixed;left:0;top:0;z-index:40;padding:4px 8px;border-radius:999px;background:var(--ui-hd-bubble);color:var(--ui-on-fill);font:700 var(--ui-fs-micro)/1 var(--ui-f);font-variant-numeric:tabular-nums;pointer-events:none;opacity:0;transition:opacity .12s}
  .hd-width.is-on{opacity:1}
  .hd-width:not(.hd-sample)::after{counter-reset:hd-w var(--hd-wv);content:counter(hd-w) " px"}   /* the number by a counter: no text node changes while dragging */
  /* the beam: a clipped overlay over the scroller, so it never changes the table's layout */
  .hd-beam-frame{position:fixed;z-index:3;overflow:hidden;pointer-events:none;opacity:0;transition:opacity .2s}
  .hd-beam-frame.is-on{opacity:1}
  .hd-beam{position:absolute;left:0;top:0;border-radius:0 0 12px 12px;background:var(--ui-hd-beam);transition:transform .22s cubic-bezier(.2,.8,.2,1),width .22s cubic-bezier(.2,.8,.2,1)}
  /* the column card */
  .hd-card{position:fixed;z-index:1050;display:grid;gap:7px;padding:10px;border-radius:14px;background:var(--ui-surface);color:var(--ui-ink);box-shadow:var(--ui-hd-card-sh);font:400 var(--ui-fs-s)/1.2 var(--ui-f)}
  .hd-card::after{content:"";position:absolute;left:var(--hd-stem);bottom:-6px;width:12px;height:12px;margin-left:-6px;border-radius:0 0 3px 0;background:var(--ui-surface);box-shadow:var(--ui-hd-stem-sh);transform:rotate(45deg)}
  .hd-card.is-below::after{top:-6px;bottom:auto;border-radius:3px 0 0 0;box-shadow:none}
  .hd-card-name{display:flex;align-items:baseline;gap:8px;padding:0 2px}
  .hd-card-name b{font:700 var(--ui-fs-m)/1.2 var(--ui-f);white-space:nowrap}
  .hd-card-unit{padding:1px 6px;border-radius:4px;background:var(--ui-stone-2);color:var(--ui-ink-2);font:620 var(--ui-fs-micro)/1.3 var(--ui-f);white-space:nowrap}
  .hd-card-unit[data-f=timber]{background:var(--ui-qf-timber-tint);color:var(--ui-qf-timber-ink)}
  .hd-card-unit[data-f=age]{background:var(--ui-qf-age-tint);color:var(--ui-qf-age-ink)}
  .hd-card-unit[data-f=count]{background:var(--ui-qf-count-tint);color:var(--ui-qf-count-ink)}
  .hd-card-row{display:flex;align-items:center;gap:6px}
  .hd-seg{display:inline-flex;padding:2px;border-radius:999px;background:var(--ui-stone-2);box-shadow:var(--ui-well-sh)}
  .hd-card .hd-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:28px;height:26px;padding:0 9px;border-radius:999px;color:var(--ui-ink-2);font:620 var(--ui-fs-s)/1 var(--ui-f);white-space:nowrap}
  .hd-card .hd-btn.is-on{background:var(--ui-pine);color:var(--ui-on-fill)}
  .hd-card-row>.hd-btn{border:1px solid var(--ui-line-2)}
  .hd-card .hd-btn svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .hd-card.hd-sample,.hd-width.hd-sample{position:relative;left:auto;top:auto;opacity:1;transform:none}
  .hd-card.hd-sample{display:inline-grid;margin:2px 2px 10px}
  .hd-width.hd-sample{display:inline-block}
  .hd-sample-head{display:inline-flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:92px;padding:5px 13px 5px 8px;border-radius:4px;background:var(--ui-hd-bg);color:var(--ui-ink-2);font:var(--ui-t-head)}
  .hd-sample-head.is-sorted{background:var(--ui-hd-sorted);color:var(--ui-ink)}
  .hd-sample-head .th-label{display:inline-flex;align-items:center;gap:3px}
  .hd-sample-head .table-sort-marker svg{width:10px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .hd-sample-drag{position:relative;display:inline-block;width:110px;height:52px}
  .hd-sample-slot,.hd-sample-lift{position:absolute;top:4px;width:46px;height:44px;border-radius:8px}
  .hd-sample-slot{left:4px;box-sizing:border-box;border:1.5px dashed var(--ui-hd-slot-line);background:var(--ui-hd-slot-bg)}
  .hd-sample-lift{left:58px;background:var(--ui-surface);box-shadow:var(--ui-hd-lift-sh)}
  .hd-card button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:28px;height:26px;padding:0 9px;border:0;border-radius:999px;background:none;color:var(--ui-ink-2);font:620 var(--ui-fs-s)/1 var(--ui-f);white-space:nowrap;cursor:pointer}
  .hd-seg button:hover{background:var(--ui-surface);color:var(--ui-ink);box-shadow:var(--ui-raise-sh)}
  .hd-card-row>button{border:1px solid var(--ui-line-2)}
  .hd-card-row>button:hover{background:var(--ui-canvas);color:var(--ui-ink)}
  .hd-card button.is-on{background:var(--ui-pine);color:var(--ui-on-fill);box-shadow:none}
  .hd-card button:disabled{background:none;box-shadow:none;color:var(--ui-ico-mute);cursor:default}
  .hd-card button:focus-visible{outline:2px solid var(--ui-a);outline-offset:1px}
  .hd-card button svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .hd-card-width{min-width:30px;font-variant-numeric:tabular-nums}
  .hd-card-note{max-width:300px;padding:0 4px;color:var(--ui-muted);font:400 var(--ui-fs-micro)/1.35 var(--ui-f);white-space:normal}
  .hd-card-order{padding:0 4px;color:var(--ui-a);font-weight:700;white-space:nowrap}
  /* the phone: a tap on a header opens the card as a sheet from the bottom */
  .mobile-register thead th[data-mobile-key]{cursor:pointer}
  .mobile-register thead th[data-mobile-key]:focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
  .hd-sheet-back{position:fixed;inset:0;z-index:1049;background:var(--ui-hd-back)}
  .hd-card.is-sheet{left:0;right:0;top:auto;bottom:0;padding:14px 12px 16px;border-radius:16px 16px 0 0}
  .hd-card.is-sheet::after{content:none}
  .hd-card.is-sheet .hd-card-row{flex-wrap:wrap}
  .hd-card.is-sheet button{height:44px;font-size:var(--ui-fs-m)}
  @media (prefers-reduced-motion:reduce){.hd-slot,.hd-beam,.hd-beam-frame,.hd-width,.dense-property-table thead th[data-table-column]{transition:none}.dense-property-table[data-hd-drag] :is(td,th)[data-table-column]{transition:none}}
  @media (forced-colors:active){.hd-card{border:1px solid CanvasText}.hd-card button.is-on{forced-color-adjust:none;background:Highlight;color:HighlightText}.hd-slot{border-color:Highlight}.hd-lift{outline:2px solid Highlight}.hd-beam{display:none}}
/* ==== B4 OS1 (decision 238, Janis 26 Nov: "only one main scrollbar ... a normal site"): Pārlūks scrolls with the page only. The
   table's box scrolls sideways only and grows to its full height (a page holds at most 100 rows). Its header row is held under the
   top bar by one offset written on a page scroll (--os-y, LMFStickyHead in workspace-property-list.js); a sticky header cannot stick
   to the page from inside a sideways scroller. The sideways rail sits under the table, sticky to the window's foot, so it is always in
   reach; the panel clips its corners without becoming a scroll box (clip, not hidden), so the rail can stick. */
.database-panel{overflow:clip}
.database-scroll{max-height:none;overflow-x:auto;overflow-y:hidden;overscroll-behavior:auto;scrollbar-gutter:auto}   /* OS1c: no reserved side gutter: with it the width the table gets changed with the rail, and the rail switched on and off */
.database-scroll.has-floating-side-scroll{scrollbar-width:none}
/* B4 OS1b (live bug, Janis 26 Nov: "flashing" at the page's end): in the table view the results toolbar is drawn and removed again
   within each redraw (its sort and count move elsewhere); taking room for that moment made scroll anchoring move the page 42 px up on
   every redraw. It takes no room. */
.catalogue-dense .catalogue-results-toolbar{display:none}
:is(.dense-property-table>thead,.mobile-register thead)>tr>th{translate:0 var(--os-y,0px)}
/* the rail: a classic always-shown bar (the ::-webkit-scrollbar parts keep it visible where the system hides scrollbars until used) */
.catalogue-side-scroll{position:sticky;bottom:0;left:auto;z-index:6;box-sizing:border-box;width:auto;height:14px;margin:0;border:0;border-top:1px solid var(--ui-line);border-radius:0;background:var(--ui-track-bg);box-shadow:none;opacity:1;scrollbar-width:auto;scrollbar-color:auto}
.catalogue-side-scroll::-webkit-scrollbar{height:12px}
.catalogue-side-scroll::-webkit-scrollbar-track{background:var(--ui-track-bg);border-radius:0}
.catalogue-side-scroll::-webkit-scrollbar-thumb{background:var(--ui-scroll);border:3px solid var(--ui-track-bg);border-radius:6px}
.catalogue-side-scroll::-webkit-scrollbar-thumb:hover{background:var(--ui-line-2)}
.catalogue-side-scroll:focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
/* the page bar: "1–100 no 1 037", the rows choice and ‹ › */
.database-panel>.pagination .page-range,.mobile-pagination .page-range{font-variant-numeric:tabular-nums;white-space:nowrap}
/* the map above the table (top or bottom layout) and the full-width table view are part of the same page scroll */
[id=land-container]:is(.map-layout-top,.map-layout-bottom) [id=search-results]{max-height:none;overflow:visible}
body.table-expanded{overflow:visible}
.table-expanded .catalogue-dense{position:static;inset:auto;z-index:auto;height:auto;min-height:100dvh;overflow:visible}
.table-expanded .search-filters.is-open,.table-expanded .next-build-footer,.table-expanded .next-data-disclosure[open]{max-height:none;overflow:visible}
/* ==== B4 LS1 (decision 239): "Saraksts" directly left of "Pievienot sarakstam". Resting it reads "Saraksts"; a chosen list shows its
   name in the tool's on look (.b.t.on) with a small clear beside it, so the choice is plain and leaves in one press. */
.browse-list{display:inline-flex;flex:0 1 auto;align-items:center;gap:4px;min-width:0}
.browse-list-b{min-width:0}
.browse-list-b>.l{min-width:0;max-width:24ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.browse-list-b>.browse-chev{flex:none;width:14px;height:14px}
@media (max-width:700px){.browse-list-b>.l{max-width:14ch}}
/* B4 OS1 (Sol 7, decision 238): the comparison scrolls with the page; its own box only sideways when it is wider than the window */
.comparison-scroll{max-height:none;overflow-x:auto;overflow-y:hidden}
}

/* /forest/lmf-page-map.css */
@layer pages{
/* LMF page layout: lmf-page-map.css, owned by P6 (the map). Linked by P2 so no page package edits index.html.
   B4 P6 (proposal version 3, drawing 5): every control that sits on a map is the family's map button: the raised button with a
   firmer edge and a deeper shadow, so it holds on imagery. "Slāņi" is a disclosure (chevron, pressed while open) that folds the
   layer panel out under itself; the panel is the family's panel with the small size inside; LVMGEO is the same button with the
   "opens elsewhere" mark; Leaflet's zoom pair is the same button, square, in the app's font with a real minus. The map and its
   tools carry data-area="forest" (pine on every page). The legacy map rules are not edited: this layer beats them.
   Never named here: [hidden]. The layer control of the shared map (lmf-map.js: Pārlūks, the property window) is the app's own
   .lmf-map-layers. Leaflet's own layer control appears only on the Izbraukumi route map (workspace-visits.js); it is left to
   the Izbraukumi build and is not styled here. */

/* ---------- the map tools (Slāņi, LVMGEO, Ietilpināt, the framing buttons, "Meklēt šeit") ----------
   B4 OF2 package 3 (decisions 195, 196): the family draws every one of them. lmf-map.js gives a tool over a map's canvas
   .b.t.map (the glass tool), a tool on the page's own surface .b.t, the framing buttons .b.s.t, the zoom pair .b.t.map.ic;
   "Meklēt šeit" is .b.t.map in its markup. This sheet only places them and keeps their icons. */
.lmf-map-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;color:var(--ui-ink);font:var(--ui-t-body)}
.lmf-map-tools>.lmf-map-layers{position:relative;min-width:0}
.lmf-map-layers>summary{list-style:none}
.lmf-map-layers>summary::-webkit-details-marker{display:none}
.lmf-map-icon{flex:none;width:var(--ui-ic);height:var(--ui-ic);fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lmf-map-icon-chev{width:12px;height:12px;margin:0 -3px 0 -1px;opacity:.7;transition:var(--ui-t)}
.lmf-map-icon-out{width:12px;height:12px;margin-right:-2px;opacity:.75}

/* ---------- the layer panel: the family's panel, small controls inside ---------- */
.lmf-map-layers>.lmf-map-layer-body{position:absolute;top:calc(100% + 6px);right:auto;left:0;z-index:1002;display:grid;gap:2px;box-sizing:border-box;width:max-content;min-width:min(200px,var(--lmf-layer-room,calc(100vw - 40px)));max-width:min(300px,var(--lmf-layer-room,calc(100vw - 40px)));max-height:min(420px,70vh,var(--lmf-layer-room-y,420px));overflow:hidden auto;margin:0;padding:10px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh);color:var(--ui-ink);font:var(--ui-t-body)}
/* B4 PM2 (owner, 22 Nov): the panel opens towards the side with room and stays inside its map; lmf-map.js measures on open and
   sets data-side on .lmf-map-layers and the room (--lmf-layer-room, --lmf-layer-room-y) and the edge offset (--lmf-layer-left) */
.lmf-map-layers[data-side="end"]>.lmf-map-layer-body{right:0;left:auto}
.lmf-map-layers[data-side="edge"]>.lmf-map-layer-body{right:auto;left:var(--lmf-layer-left,0)}
.lmf-map-layer-body>.lmf-map-background{display:grid;gap:4px;margin:0 0 4px;color:var(--ui-ink-2);font:620 var(--ui-fs-label)/1.3 var(--ui-f)}
.lmf-map-background>select,.lmf-map-background>.ui-sel{width:100%;min-width:0;max-width:none;margin:0}
.lmf-map-layer-body>.lmf-map-checkbox{display:flex;align-items:center;gap:8px;min-height:24px;white-space:normal;overflow-wrap:anywhere;margin:0;padding:0;color:var(--ui-ink);font:var(--ui-t-data);cursor:pointer}
.lmf-map-checkbox>.lmf-map-layer-note{min-width:0;color:var(--ui-muted);font:var(--ui-t-meta)}
/* on the Pārlūks map the panel must end inside the map's own frame (the frame clips): it scrolls inside when it is taller */
.search-map-section .lmf-map-layer-body{max-height:min(176px,var(--lmf-layer-room-y,176px))}
.lmf-map-checkbox:has(input:disabled){color:var(--ui-muted);cursor:default}
/* B4 CB1 (decision 147): on touch each map layer row answers on 40 px */
@media (max-width:700px),(pointer:coarse){.lmf-map-layer-body>.lmf-map-checkbox{min-height:40px}}
.lmf-map-layer-body>p{margin:4px 0 0;color:var(--ui-ink-2);font:620 var(--ui-fs-label)/1.3 var(--ui-f)}
.lmf-map-layer-body>.lmf-map-frames{display:flex;flex-wrap:wrap;gap:6px}

/* ---------- Leaflet's zoom pair: two round icon-only tools, each the height of "Slāņi" (30 px on a PC, 40 on touch), one under the
   other with the row's 6 px gap, each with the capsules' own edge and drop. PW2 made it so on the property window's map; B4 MH1
   (decision 184, Janis 24 Nov 2026: "make every map's zoom the same round style") on every map: Pārlūks, Izbraukumi, the large map. ---------- */
.leaflet-control-zoom.leaflet-bar{display:flex;flex-direction:column;gap:6px;border:0;border-radius:0;background:none;box-shadow:none}
/* B4 OF2 p3: each of the two is the family's round glass tool (.b.t.map.ic, lmf-map.js); only the pair's place is here */
.leaflet-container .leaflet-control-attribution{font:var(--ui-t-meta);color:var(--ui-ink-2)}

/* ---------- PM1 (decision 45) and MB1 (decision 106): what sits ON a map's canvas is see-through ----------
   One rule set for every map, keyed on the map containers whose tools float over the canvas: the Pārlūks map (.search-map-section:
   its tools, "Meklēt šeit" and "Rādīt visus rezultātus" sit on the map), the Izbraukumi maps (.tr-maptools, .tr-mapw: list,
   proposal, "Būšu tur", trip and hand-pin maps), the Meža dati stand map in either place and on the phone (.property-focus-map-frame:
   "Slāņi", "123", LVMGEO; MB1, decision 45 never reached it), the property window's small map (.pw-mapwrap: its corner mark) and
   every Leaflet canvas (the zoom pair on every map: Pārlūks, Izbraukumi, Meža dati, Darījums, the large map; credits; wheel hint).
   The buttons (MB1; DS3, decision 168: a 78 percent plate, was 50; MH1, decision 184: 60 percent): the surface and its edge see-through, the icon and the words in ink with a thin white halo; solid on
   hover, keyboard focus and press. Tool rows that sit beside or above a map on the page's own surface (the Darījums tab's map tools,
   the large map's head, the Meža dati grip line) are not on the canvas and stay solid, as do the open "Slāņi" and the pressed "123"
   (an "on" state), the layer panel and every menu (read, not looked through), the Šodien map's whole-map press target (it has no
   surface), and the stand numbers and stop labels (data read at a glance: lmf-map.css keeps them at 96 percent). Legends, hints,
   status lines and credits keep the firmer reading glass. Screens only: print is unchanged. */
@media screen{
  .leaflet-container .leaflet-control-attribution,.leaflet-container .lmf-map-wheel-hint,.tr-mapw .tr-legend,.tr-mapw .lmf-map-status{background:var(--ui-map-glass-read)}
  /* the window map's corner mark is a mark, not a control: it keeps the glass of the tools beside it */
  .pw-mapwrap .pw-mapcue{background:var(--ui-map-glass);border-color:var(--ui-map-glass-line);border-bottom-color:var(--ui-map-glass-line-b);color:var(--ui-ink);text-shadow:var(--ui-map-glass-halo)}
  .pw-mapwrap .pw-mapcue svg{color:var(--ui-ink);filter:var(--ui-map-glass-ic)}
  .pw-mapwrap:is(:hover,:focus-within) .pw-mapcue{background:var(--ui-map-glass-h);border-color:var(--ui-map-line);border-bottom-color:var(--ui-map-line-b);text-shadow:var(--ui-edge)}
}
/* no see-through for people who ask for less transparency, and system colours in forced-colours mode (the tools: the family) */
@media (prefers-reduced-transparency:reduce){
  .pw-mapwrap .pw-mapcue{background:var(--ui-raise-bg);border-color:var(--ui-map-line);border-bottom-color:var(--ui-map-line-b);text-shadow:var(--ui-edge)}
  .pw-mapwrap .pw-mapcue svg{filter:none}
  .leaflet-container .leaflet-control-attribution,.leaflet-container .lmf-map-wheel-hint,.tr-mapw .tr-legend,.tr-mapw .lmf-map-status{background:var(--ui-surface)}
}
@media (forced-colors:active){
  .pw-mapwrap .pw-mapcue{background:ButtonFace;border-color:ButtonText;text-shadow:none}
  .leaflet-container .leaflet-control-attribution,.leaflet-container .lmf-map-wheel-hint,.tr-mapw .tr-legend,.tr-mapw .lmf-map-status{background:Canvas}
}
/* B4 TX1 (text audit I3): the wheel hint no longer shows on hover or focus; it shows only after a wheel attempt on a map
   that is not yet taking the wheel (lmf-map.js sets .lmf-map-wheel-asked for a moment). */
.leaflet-container>.lmf-map-wheel-hint{opacity:0}
.leaflet-container.lmf-map-wheel-asked>.lmf-map-wheel-hint{opacity:1}

/* B4 AU1 (audit B12): the three tools stay in one row whatever the map's own width is (a container query: the phone, the side map,
   the window beside the help). First "Slāņi" is its round icon and LVMGEO leaves out its small "opens elsewhere" mark; on a still
   narrower map LVMGEO is that mark alone. The words stay their names and their tips. Touch is wider, so it changes earlier.
   B4 OF2 p3: folded, a tool is only as wide as it is high; the family's capsule is then a circle and its icon stays in the middle. */
/* a browser without container queries (Safari 15.4 to 15.6) takes the window's width instead: the phone, and the side map on a small laptop */
@supports not (container-type:inline-size){
  @media (max-width:699px){
    .property-focus-map-frame .lmf-map-layers>summary{width:var(--ui-h-m);min-width:0}
    .property-focus-map-frame .lmf-map-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
    .property-focus-map-frame .lmf-map-label~svg,.property-focus-map-frame .lmf-map-lvm>svg{display:none}
  }
  @media (min-width:1001px) and (max-width:1399px){
    .fd-map[data-place=side] .lmf-map-layers>summary{width:var(--ui-h-m);min-width:0}
    .fd-map[data-place=side] .lmf-map-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
    .fd-map[data-place=side] .lmf-map-label~svg{display:none}
  }
}
@supports (container-type:inline-size){
  .property-focus-map-frame{container:pw-map / inline-size}
  @container pw-map (max-width:359px){
    .property-focus-map-frame .lmf-map-layers>summary{width:var(--ui-h-m);min-width:0}
    .property-focus-map-frame .lmf-map-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
    .property-focus-map-frame .lmf-map-label~svg{display:none}
  }
  @container pw-map (max-width:289px){
    .property-focus-map-frame .lmf-map-lvm{width:var(--ui-h-m);min-width:0}
    .property-focus-map-frame .lmf-map-word{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  }
  @media (max-width:700px),(pointer:coarse){
    @container pw-map (max-width:419px){
      .property-focus-map-frame .lmf-map-layers>summary{width:var(--ui-h-m);min-width:0}
      .property-focus-map-frame .lmf-map-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
      .property-focus-map-frame .lmf-map-label~svg,.property-focus-map-frame .lmf-map-lvm>svg{display:none}
    }
    @container pw-map (max-width:319px){
      .property-focus-map-frame .lmf-map-lvm{width:var(--ui-h-m);min-width:0}
      .property-focus-map-frame .lmf-map-word{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
      .property-focus-map-frame .lmf-map-lvm>svg{display:block}
    }
  }
}
/* forced colours: the focus ring is drawn inside the tool, against its own solid system fill, not the map */
@media (forced-colors:active){.lmf-map-tools>.b:focus-visible,.leaflet-control-zoom>a:focus-visible,.b.t.map:focus-visible{outline:2px solid ButtonText;outline-offset:-4px}}
/* B4 DS6 (plan part 4): on touch every control answers on 44 px; the map tools have the family's own touch box. The trip card's locate
   pin (.tr-loc, package 5) keeps its box here until it is a family button. */
@media (max-width:700px),(pointer:coarse){
  .tr-loc{position:relative}
  .tr-loc::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}
}
/* B4 DS6 (plan part 4, B10), B4 OF2 p3 (decision 198): on a phone and a touch screen every tool over a map is its icon alone, the
   family's .icp (lmf-map.js): Slāņi (its layers mark, no chevron), Ietilpināt (four corners), LVMGEO (its "opens elsewhere" mark).
   The words stay their names and their tips. */
@media (max-width:700px),(pointer:coarse){
  .lmf-map-tools .lmf-map-label~svg{display:none}
  .lmf-map-tools .lmf-map-lvm>svg{display:block}
}
.lmf-map-fit>.lmf-map-icon{display:none}
@media (max-width:700px),(pointer:coarse){.lmf-map-fit>.lmf-map-icon{display:block}}
}

/* /forest/lmf-page-capture.css */
@layer pages{
/* LMF page layout: lmf-page-capture.css, owned by P9 ("Kas notika?": the sheet and the capture box; proposal version 3, drawing
   "Kas notika?: one sheet, five things it does", proposal/src/page.css lines 243 to 252 and 351 to 375).
   The sheet is built from the control family by workspace-capture.js; this sheet only places things. One order in every state:
   how (channel), what came of it (result), note, next step, what LMF will do, "Saglabāt". The sheet and the box carry
   data-area="deals", so they are timber ochre wherever they open
   (their main button "Saglabāt" is pine, as on every page: B4 DS3, decision 168).
   The dialog keeps its class v31-qc (the old sheet rules in workspace-capture.css still size and pin the dialog itself; nothing inside
   carries their classes any more). Sizes that are the desktop drawing's sit inside @media (min-width:701px); the phone's own stacking
   is the PHONE-SEAM block at the end. Tokens only; no id selector. */

/* ---- the sheet: head, scrolling middle, foot ---- */
.v31-qc{border-radius:var(--ui-dlg-r);background:var(--ui-dlg-bg);box-shadow:var(--ui-dlg-sh);color:var(--ui-ink);font:var(--ui-t-body)}
.qc-form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;margin:0;padding:0}
.qc-h{display:flex;flex:none;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 12px 8px 18px}
.qc-title{margin:0;padding-top:3px;color:var(--ui-ink);font:var(--ui-t-win);letter-spacing:-.01em}
.qc-body{display:flex;flex:1 1 auto;flex-direction:column;gap:10px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 18px 16px}
.qc-body>[hidden],.qc-f[hidden],.qc-who[hidden],.qc-review[hidden]{display:none}
.qc-restored:empty,.qc-slot:empty,.qc-dncslot:empty,.qc-dealslot:empty,.qc-count:empty{display:none}
.qc-slot{flex:none;padding:10px 18px 0}
.qc-f{display:flex;flex:none;align-items:center;justify-content:flex-end;gap:8px;padding:10px 18px;border-top:1px solid var(--ui-line);background:var(--ui-stone-foot)}
.qc-why{flex:1;min-width:0;margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta);text-wrap:pretty}

/* ---- the context line: the property, the person, Nezvanīt, the deal ---- */
.qc-ctx{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-height:var(--ui-h-s)}
.qc-nm{font:var(--ui-t-data);font-weight:700;overflow-wrap:anywhere}
.qc-who{display:inline-flex;align-items:center;gap:6px;min-width:0;color:var(--ui-ink-2)}
.qc-who.is-none{color:var(--ui-warn-ink)}
.qc-who svg{flex:none;width:var(--ui-ic);height:var(--ui-ic)}
.qc-pn{overflow-wrap:anywhere}
.qc-party{max-width:240px}
.qc-dncslot,.qc-dealslot{display:inline-flex;min-width:0;max-width:100%}
.qc-dealchip{max-width:100%}
.qc-dealchip>span,.qc-pname>span{overflow:hidden;text-overflow:ellipsis}

/* ---- how: four channels in one tab group as wide as the sheet; the message's way under it ---- */
.qc-chs,.qc-kinds{display:flex}
.qc-chs>button,.qc-kinds>button{flex:1 1 0;min-width:0}
.qc-via{display:flex}

/* ---- what came of it: family buttons in one row, each as wide as its word needs; a long row wraps ---- */
.qc-tiles{display:flex;flex-wrap:wrap;gap:6px}
.qc-tiles>.b{flex:1 1 auto;min-width:0;gap:5px;padding:0 6px}
.qc-wrap>.b{flex:0 1 auto;padding:0 10px}
/* the four day chips share the row equally; the fourth is the date field */
.qc-days{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.qc-days>.b{padding:0 5px}
.qc-date{overflow:hidden}
.qc-date:focus-within{outline:2px solid var(--ui-a);outline-offset:2px}
.qc-date-in{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
/* what a result needs: services, refusal reasons and the review, the partner of a partner step, the deal choice */
.qc-sec,.qc-review,.qc-choose{display:flex;flex-direction:column;gap:6px}
.qc-sec>.fl,.qc-review>.fl,.qc-choose>.fl,.qc-next>.fl{margin:0}
.qc-prow{display:flex;align-items:center;gap:8px}
.qc-pnames{display:flex;flex:1;flex-wrap:wrap;gap:6px;min-width:0}
.qc-pname{max-width:100%}
.qc-pnone{color:var(--ui-muted)}
.qc-pgone{margin-left:4px;color:var(--ui-clay)}

/* ---- note: two lines; it grows with the text where the browser can (no script sets its height) ---- */
.qc-notebox{display:flex;flex-direction:column;gap:4px}
.qc-notebox>.ta{min-height:54px;max-height:132px;field-sizing:content}
.qc-count{color:var(--ui-muted);font:var(--ui-t-meta)}
.qc-count.is-over{color:var(--ui-clay)}

/* ---- next step: one block, the same two rows in every state (the kind, then the dates or what stays) ---- */
.qc-next{display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:8px;background:var(--ui-canvas)}
.qc-nrow{display:flex;flex-direction:column;gap:6px;min-height:var(--ui-h-m)}
.qc-stay{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:var(--ui-h-m);margin:0;color:var(--ui-ink-2)}
.qc-stay>b{color:var(--ui-ink);font-weight:620;overflow-wrap:anywhere}

/* ---- what LMF will do: one short paragraph led by "LMF pats" ---- */
.qc-self{display:flex;align-items:baseline;gap:6px;margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.qc-self>b{flex:none;color:var(--ui-ochre-ink);font-weight:700}

/* ---- the capture box: one field, the same on a property and on a contact ---- */
.qc-box{flex:1;min-width:0}
.qc-box>svg{color:var(--ui-a)}
.qc-box>.in{padding-right:190px;text-overflow:ellipsis}
.qc-box-kinds{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--ui-muted);font:var(--ui-t-meta);white-space:nowrap;pointer-events:none}

@media (min-width:701px){
  /* the drawn sheet: 452 px wide, two tiles of a message share the row */
  .v31-qc{width:452px}
  .qc-tiles[data-n="2"]>.b{flex:1 1 0}
  /* opened from a call-back there are five results: words alone, so they stay one row in the 452 px sheet */
  .qc-tiles[data-n="5"]>.b svg{display:none}
}

/* PHONE-SEAM: the sheet's parts stack in the phone's bottom sheet (the old rules still place the dialog itself); pair order as on a PC.
   The phone's own "Kas notika?" is the phone redesign's. */
@media (max-width:700px){
  .qc-h{padding:14px 8px 8px 16px}
  .qc-body{padding:4px 16px 16px}
  .qc-slot{padding:10px 16px 0}
  .qc-f{flex-wrap:wrap;padding:10px 16px 14px}
  .qc-f>.pairw{display:grid;flex:1}
  .qc-why{flex-basis:100%}
  .qc-why:empty{display:none}
  .qc-chs>button,.qc-kinds>button{padding:0 4px}
  .qc-chs svg{display:none}
  .qc-tiles>.b{flex:1 1 40%}
  .qc-days{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qc-box>.in{padding-right:var(--ui-px-in-m)}
  .qc-box-kinds{display:none}
}
}

/* /forest/lmf-page-property.css */
@layer pages{
/* LMF page layout: lmf-page-property.css, owned by P7 and P8 (the property window). Linked by P2 so no page package edits index.html.
   B4 P7 (proposal version 3, section C; drawn values from proposal\src\page.css): the frame of the property window for a user with
   page `deals`. workspace-property-window.js marks the shared dialog (.pw-win, data-pw = deal | people | forest, data-area) and its
   parts (.pw-body, .pw-head, .pw-band, .pw-cols, .pw-work, .pw-ref, .pw-rsec); workspace-deal-tab.js draws the band (.pw-now).
   - PC (from 1001 px, where the legacy window also stops stacking): the window 1408 x 756, a one-line header of 52 px, the "Tagad"
     band as a full-width row, two columns that scroll on their own.
   - Narrower: the legacy stacking stays; the new parts stack in one column (the block marked PHONE-SEAM). */

/* ---- the "Tagad" band: the same at every width, its row becomes a column in the PHONE-SEAM block ------------------------- */
.pw-band{position:relative;z-index:3;display:flex;flex:none;align-items:flex-start;gap:8px;box-sizing:border-box;margin:0;padding:0 16px 0 0;border-bottom:1px solid var(--ui-ochre-line);background:var(--ui-ochre-soft);color:var(--ui-ink);font:var(--ui-t-body)}
.pw-band:has(.is-none),.pw-band:has(.is-quiet){border-bottom-color:var(--ui-line);background:var(--ui-surface)}
.pw-band:has(.is-wait){background:color-mix(in srgb,var(--ui-warn-tint) 55%,var(--ui-surface))}
/* B4 DM6 (decision 156): a late step no longer turns the strip pink; its date mark says it */
.pw-band-deal{flex:1;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.pw-band-deal>.v31-deal-mount{margin:0;padding:0}
.pw-dt{display:flex;flex-direction:column;gap:0;margin:0;padding:0}
.pw-now{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:18px;overflow:visible;box-sizing:border-box;min-height:68px;margin:0;padding:10px 0 10px 18px;border:0;border-radius:0;background:none;box-shadow:none}
.pw-now.is-none,.pw-now.is-quiet{min-height:52px}
.pw-now+.pw-now{border-top:1px solid var(--ui-line)}
.pw-now-s{display:flex;flex:0 1 auto;align-items:center;gap:12px;min-width:200px}
.pw-now-i{display:flex;flex:none;color:var(--ui-ochre)}
.pw-now-i svg{width:20px;height:20px}
.is-none>.pw-now-s>.pw-now-i,.is-quiet>.pw-now-s>.pw-now-i{color:var(--ui-ink-2)}
.pw-now-tx{flex:0 1 auto;min-width:0}
.pw-now-step{display:flex;align-items:center;gap:4px 10px;margin:0;color:var(--ui-ink);font:var(--ui-t-step);letter-spacing:-.005em}
.pw-now-step>span:first-child{min-width:0;overflow-wrap:anywhere}
/* B4 DM6, B4 DS1: the step block is the card, as wide as its words: its date mark is the first line's right end, right after them */
.pw-now-step>:is(.dm,.pw-now-more){flex:none}
.pw-now-step:has(>.dm){align-items:flex-start}
.pw-now-step>.dm{margin-top:1px}
.pw-now-x{margin:2px 0 0;overflow:hidden;color:var(--ui-ink-2);font:var(--ui-t-body);white-space:nowrap;text-overflow:ellipsis}
.pw-now-step>.pw-now-x{margin:0;color:var(--ui-muted);font:var(--ui-t-meta)}
.pw-now .v31-dt-now-s{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:2px 0 0;padding:0;color:var(--ui-ink-2);font:var(--ui-t-body)}
.pw-now .v31-dt-now-s svg{width:14px;height:14px;color:var(--ui-ink-2)}
@media (max-width:700px),(pointer:coarse){.pw-now .v31-dt-now-s{row-gap:0}.v31-dt-row-tx>.v31-dt-tasklink{margin:-6px 0}}
.pw-now .v31-dt-who{color:var(--ui-ink-2);font-weight:400}
.pw-now .v31-dt-why{color:var(--ui-muted);font:var(--ui-t-meta)}
.pw-now .v31-dt-link{padding:0;border:0;background:none;box-shadow:none;color:var(--ui-lk);font:620 var(--ui-fs-s)/1.3 var(--ui-f);text-decoration:underline;text-decoration-color:var(--ui-lk-line);text-underline-offset:2px;cursor:pointer}
.pw-now .v31-dt-link svg{display:none}
/* dates and marks inside the band: the family tag look on the kit's chip */
/* where the deal stands */
.pw-now-p{display:flex;flex:0 1 auto;flex-direction:column;gap:5px;min-width:0;padding-left:18px;border-left:1px solid var(--ui-ochre-line)}
.pw-now-dt{display:flex;align-items:center;gap:8px;color:var(--ui-ink);font:var(--ui-t-data)}
/* a long step path wraps between its steps (never inside one), so the step's title keeps its width (design audit r1 M1) */
.pw-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.pw-crumbs-l{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;min-width:0;margin:0;padding:0;list-style:none;color:var(--ui-muted);font:var(--ui-t-body);white-space:nowrap}
.pw-crumbs-l>li{display:flex;align-items:center;gap:4px;margin:0;padding:0}
.pw-crumbs-l>li+li::before{content:"";width:5px;height:5px;margin-right:4px;border:solid var(--ui-line-2);border-width:1.5px 1.5px 0 0;transform:rotate(45deg)}
.pw-crumbs-l>.is-done{color:var(--ui-ink-2)}
.pw-crumbs-l>.is-cur{color:var(--ui-ink);font-weight:700}
.pw-crumbs-l svg{width:13px;height:13px}
/* B4 DS1 (decision 168, sheet section 3): the strip's right group, always in this order: "Soļi" (a tool), "Pārcelt" and the one deal
   button (one width), "…"; all 34 px */
.pw-now-r{display:flex;flex:none;align-items:center;gap:8px;margin-left:auto}
.pw-now-steps{position:relative;display:inline-flex;flex:none}
.pw-pair{position:relative;grid-auto-columns:auto}
.pw-pair>.v31-dt-now-btn{width:auto;min-width:0}
.pw-pair>.b{order:0;grid-column:auto;grid-row:auto;margin:0}
.pw-now-more{position:relative;display:inline-flex}
.pw-band-more{position:relative;display:flex;flex:none;align-items:center;min-height:68px}
.pw-band:has(.is-none)>.pw-band-more,.pw-band:has(.is-quiet)>.pw-band-more{min-height:52px}
/* B4 DS1 (audit B01, C05): the strip is one grid on a PC. Its rows (the deal row, the step, what follows) run the window's full width, so
   every divider does too, and "…" stands on the step's own row, centred with its neighbours. The wrappers between take no box. */
@media (min-width:1001px){
  .pw-band:has(.pw-now){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:0;padding:0}
  .pw-band:has(.pw-now) :is(.pw-band-deal,.v31-deal-mount,.pw-dt){display:contents}
  .pw-band .pw-dt>*{grid-column:1/-1}
  .pw-band:has(>.pw-band-more) .pw-dt>.pw-now{grid-column:1}
  .pw-band:has(.pw-now)>.pw-band-more{grid-column:2;grid-row:1;align-self:center;min-height:0;margin:0 16px 0 8px}
  .pw-band:has(.pw-now):has(.v31-dt-pills)>.pw-band-more{grid-row:2}
  .pw-band:not(:has(>.pw-band-more)) .pw-now{padding-right:16px}
  .pw-band .pw-dt>:not(.pw-now){padding-right:16px}
}
.pw-menu>button{justify-content:flex-start;width:100%;text-align:left}
/* integration audit: while the guided start is open, its own footer button is the one "Sākt darījumu" (the band's would only
   open the same form again) */
.pw-body:has(.pw-main-scope[data-sc-guided="1"]:not([hidden])) .pw-now [data-v31-start]{display:none}
.pw-now .chev{transform:rotate(90deg)}
.pw-now [aria-expanded="true"]>.chev{transform:rotate(-90deg)}
/* the band's small panels: the step list, the other ready steps, the move choices, the "…" menu */
.pw-pop{position:absolute;top:calc(100% + 6px);right:0;z-index:6}
.pw-pop[hidden]{display:none}
.pw-steps{width:360px;max-width:calc(100vw - 32px);padding:10px 12px}
.pw-steps-h{display:flex;align-items:center;gap:8px;margin:0 0 6px;color:var(--ui-ink);font:700 var(--ui-fs-m)/1.3 var(--ui-f)}
.pw-steps-h>span:first-of-type{flex:1;min-width:0}
.pw-steps-h svg{width:14px;height:14px;flex:none}
.pw-steps-l{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.pw-steps-l>li{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:28px;margin:0;padding:0;color:var(--ui-ink-2);font:var(--ui-t-body)}
.pw-steps-i{display:grid;place-items:center;width:16px;height:16px}
.pw-steps-i svg{width:14px;height:14px}
.pw-steps-l>.is-cur{color:var(--ui-ink);font-weight:700}
.pw-steps-l>.is-cur svg{color:var(--ui-ochre)}
.pw-steps-l>.is-todo>.pw-steps-i::before,.pw-steps-l>.is-ready>.pw-steps-i::before{content:"";box-sizing:border-box;width:9px;height:9px;border:1.5px solid var(--ui-line-2);border-radius:50%}
.pw-steps-l>.is-ready>.pw-steps-i::before{border-color:var(--ui-ochre)}
.pw-steps-l time{color:var(--ui-muted);font:var(--ui-t-meta);font-variant-numeric:tabular-nums;white-space:nowrap}
.pw-move{display:flex;align-items:center;gap:6px;padding:8px;white-space:nowrap}
.pw-move-other{display:flex;align-items:center;gap:6px;margin:0 0 0 4px;padding:0 0 0 10px;border-left:1px solid var(--ui-line);color:var(--ui-ink-2);font:var(--ui-t-meta)}
.pw-move-other>input{--_h:var(--ui-h-s);width:136px}
.pw-more{left:0;right:auto;display:flex;flex-direction:column;gap:6px;min-width:300px;padding:8px 10px}
.pw-more-row{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ui-ink);font:var(--ui-t-body)}
.pw-menu{min-width:220px}
/* "Kad apmeklēt?" in the strip's "…": with the phone header only, whose one row has no room for it (B4 DS1) */
.pw-win:not(.fd-phone-head) :is(.pw-menu>[data-vl-add-parcel],.pw-band-more.is-phone){display:none}
/* under the band's row: the just-done line with "Atsaukt", refusals, what else is open (a call-back, waits, "Cits solis", open tasks) */
.pw-dt>.v31-dt-said,.pw-dt>.v31-dt-slot:not(:empty),.pw-dt>.v31-dt-rows,.pw-dt>.v31-dt-tasks,.pw-dt>.v31-dt-pills{box-sizing:border-box;margin:0;padding:6px 0 6px 18px;border:0;border-top:1px solid var(--ui-ochre-line);border-radius:0;background:none}
.pw-dt>.v31-dt-pills{order:-1;border-top:0;border-bottom:1px solid var(--ui-ochre-line)}
.pw-dt>.v31-dt-said{display:flex;align-items:center;gap:8px;color:var(--ui-ink-2);font:var(--ui-t-body)}
.pw-dt>.v31-dt-said svg{width:14px;height:14px}
.pw-dt .v31-dt-rows{display:flex;flex-direction:column;gap:2px}
.pw-dt .v31-dt-row{display:flex;align-items:center;gap:10px;min-height:28px;margin:0;padding:0;border:0;background:none}
.pw-dt .v31-dt-row-i{display:flex;flex:none;color:var(--ui-ink-2)}
.pw-dt .v31-dt-row-i svg{width:15px;height:15px}
.pw-dt .v31-dt-row-tx{display:flex;flex:1;flex-wrap:wrap;align-items:center;gap:2px 8px;min-width:0;color:var(--ui-ink);font:var(--ui-t-data)}
/* B4 DM6: a row's date mark is its top right; what follows it (who, from where) takes the line under the title */
.pw-dt .v31-dt-row:has(.dm){align-items:flex-start}
.v31-dt-row-tx>.dm{margin-left:auto}
.v31-dt-row-tx>.dm~*{flex-basis:100%}
.pw-dt .v31-dt-sub{display:flex;align-items:center;gap:6px;margin:0 0 2px;color:var(--ui-ink-2);font:var(--ui-t-head);letter-spacing:.02em}

/* ---- the "Kas notika?" place at the top of the left column: one box, timber ochre wherever it sits ----------------------- */
.pw-capture{flex:none;margin:0}
.pw-capture[hidden]{display:none}
.pw-cap{display:flex;align-items:center;gap:8px;box-sizing:border-box;width:100%;height:var(--ui-h-l);min-height:0;margin:0;padding:0 12px;border:1px solid var(--ui-sink-line);border-top-color:var(--ui-sink-line-t);border-radius:var(--ui-r-in);background:var(--ui-sink-bg);box-shadow:var(--ui-sink-sh);color:var(--ui-muted);font:var(--ui-t-body);text-align:left;text-shadow:none;white-space:nowrap;cursor:text;transition:box-shadow var(--ui-t)}
.pw-cap:hover{border-color:var(--ui-sink-line-h);background:var(--ui-sink-bg);box-shadow:var(--ui-sink-sh)}
.pw-cap:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
.pw-cap>svg{flex:none;width:14px;height:14px;color:var(--ui-a);filter:none}
.pw-cap-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.pw-cap-k{flex:none;color:var(--ui-muted);font:var(--ui-t-meta)}

/* ---- B4 PH1 (decision 148): the value and the forest area on the "Mežs īsumā" heading line, "Drukāt" at the block's foot ------
   The two figures are the family's own badge and area chip in their fixed M slot (one width), drawn the same 24 px high so they read
   as one quiet pair of engraved plates beside the heading. "Drukāt" is a quiet button under the last figure. */
.pw-figs{display:inline-flex;flex:none;align-items:center;gap:6px;min-width:0}
.pw-figs>.ab{--_ab-h:var(--ui-vb-h-m)}
.pw-figs>[data-col]{width:var(--ui-vb-col-m)}
.pw-figs>.ab-slot{display:none}
.pw-figs-tx{color:var(--ui-ink-2);font:var(--ui-t-meta);white-space:nowrap}
/* B4 VB2 (decision 213): the value ring fills once, calmly, when the window draws it (never in tables or lists; not under
   reduced motion). @property makes the fill a number so it can move (lmf-controls.css .vb draws the ring). */
@media (prefers-reduced-motion:no-preference){.pw-figs:not([data-pw-head-figs])>.vb::before{animation:pw-vb-ring .9s cubic-bezier(.16,1,.3,1) .12s backwards}}
@keyframes pw-vb-ring{from{--_vb-p:0}}
@property --_vb-p{syntax:'<number>';inherits:true;initial-value:0}
.pw-rfoot{display:flex;order:99;margin:2px 0 0}
.pw-rfoot:not(:has(button)){display:none}
/* ---- the map tools row of "Meža dati" ---------------------------------------------------------------------------------- */
.pw-maptools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 10px}
.pw-maptools>.property-focus-nearby{display:flex;align-items:center;gap:8px;margin:0}
.pw-maptools label{display:flex;align-items:center;gap:6px;margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.pw-nearby-home[hidden]{display:none}
.b3-map-pop-head>.property-focus-nearby{display:flex;align-items:center;gap:8px;margin:0 8px 0 auto}
.b3-map-pop-head label{display:flex;align-items:center;gap:6px;margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}

/* ---- B4 P8: the window's content ------------------------------------------------------------------------------------------- */
/* left column: "Jāzina", the one history with its four filters, the way to the old note form */
.pw-h{margin:0;color:var(--ui-ink-2);font:var(--ui-t-head)}
.pw-sp{flex:1}
/* B4 DS1: "Jāzina" is a section like the others: its head (.sh), then the words, without a box of their own */
.pw-know{display:flex;flex:none;flex-direction:column;gap:2px;min-width:0;margin:0;color:var(--ui-ink)}
.pw-know-tx{margin:0;font:var(--ui-t-data);overflow-wrap:anywhere;white-space:pre-line}
.pw-know-form{display:flex;flex:none;flex-direction:column;gap:8px;margin:0;padding:10px;border-radius:8px;background:var(--ui-stone-2)}
.pw-know-form>label{display:flex;flex-direction:column;gap:6px;margin:0;color:var(--ui-ink-2);font:var(--ui-t-head);letter-spacing:.02em}
.pw-know-foot{display:flex;justify-content:flex-end}
.pw-hist{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;padding:0}
.pw-hist-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0}
.pw-oldint{color:var(--ui-muted);font:var(--ui-t-meta)}
.pw-oldint>b{color:var(--ui-ink-2);font-weight:620}
.pw-tl{display:flex;flex-direction:column;margin:0;padding:0}
.pw-te{display:grid;grid-template-columns:18px minmax(0,1fr) auto auto;align-items:start;gap:0 10px;padding:7px 2px;border-bottom:1px solid var(--ui-td-line);color:var(--ui-ink);font:var(--ui-t-body)}
.pw-te:last-child{border-bottom:0}
.pw-te-i{display:flex;margin-top:2px;color:var(--ui-ink-2)}
.pw-te-i svg{width:15px;height:15px}
.pw-te.is-talk>.pw-te-i{color:var(--ui-ochre)}
.pw-te.is-note>.pw-te-i{color:var(--ui-slate)}
.pw-te-tx{min-width:0;overflow-wrap:anywhere}
.pw-te-tx>b{font-weight:620}
.pw-te.is-step>.pw-te-tx>b{color:var(--ui-ink-2);font-weight:400}
.pw-te-tx>.tag{margin-left:6px}
.pw-te-tx>p{margin:1px 0 0;color:var(--ui-ink-2);white-space:pre-line}
.pw-te-tx>p.pw-te-dt{font-size:var(--ui-fs-s);font-variant-numeric:tabular-nums} /* DH1: a before → after line under a history row, a step below the row's text; digits line up */
.pw-te-dt>.pw-te-dv{white-space:nowrap} /* DH1: "18,00 → 19,50 €/m³" never breaks inside the pair */
.pw-te-task{padding:0;border:0;background:none;box-shadow:none;height:auto;color:var(--ui-ink-2);font:400 var(--ui-fs-m)/1.4 var(--ui-f);text-align:left;text-decoration:underline;text-decoration-color:var(--ui-lk-line);text-underline-offset:2px;text-shadow:none;white-space:normal;cursor:pointer}
.pw-te .comment-edit-action{display:inline-flex;align-items:center;gap:4px;height:auto;min-height:0;margin:2px 0 0;padding:0;border:0;background:none;box-shadow:none;color:var(--ui-muted);font:var(--ui-t-meta);text-decoration:underline;text-underline-offset:2px;text-shadow:none;cursor:pointer}
.pw-te .comment-edit-action svg{width:12px;height:12px}
.pw-by,.pw-te>time{padding-top:1px;color:var(--ui-muted);font:var(--ui-t-meta);white-space:nowrap;font-variant-numeric:tabular-nums}
.pw-te-hm{color:var(--ui-ink-2)} /* DH1 fix 4: the row's clock time next to its date, readable without a hover */
.pw-hist-empty{margin:4px 0;color:var(--ui-ink-2);font:var(--ui-t-body)}
.pw-hist-more{display:flex;padding:8px 0 0}
.pw-other{display:flex;flex-direction:column;gap:8px;margin:0}
.pw-other>.b{align-self:flex-start}
.pw-other-form[hidden]{display:none}
.pw-other-form .note-form~div{display:none}
.pw-other-form .note-form{margin:0;padding:10px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-surface)}
/* right column: the map as one target, "Mežs īsumā" led by the score */
.pw-rhead{display:flex;align-items:center;gap:8px;min-width:0}
.pw-mapwrap{position:relative;overflow:hidden;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-stone-2)}
.pw-mapbtn{position:absolute;inset:0;z-index:1000;display:block;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:10px;background:none;box-shadow:none;cursor:zoom-in}
.pw-mapbtn:hover{border:0;background:none;box-shadow:none}
/* B4 DS1: the map focus ring of DS3 (ink outside, white inside), drawn inside the map's own edge, which would cut an outer one */
.pw-mapbtn:focus-visible{outline:2px solid var(--ui-map-focus);outline-offset:-2px;box-shadow:inset 0 0 0 4px var(--ui-surface)}
.pw-mapcue{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--ui-map-line);border-bottom-color:var(--ui-map-line-b);border-radius:var(--ui-r);background:var(--ui-raise-bg);box-shadow:var(--ui-tl-glass-sh);color:var(--ui-ink-2)}
.pw-mapcue svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pw-mapwrap .lmf-map-tools,.pw-mapwrap .property-location-actions,.pw-mapwrap .leaflet-control-zoom,.pw-mapwrap .lmf-map-stand-selection{display:none}
.pw-mapwrap .detail-map,.pw-mapwrap .next-overview-map{height:190px;min-height:0;margin:0;border:0;border-radius:0}
.pw-lead{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0}
.pw-lead>small{color:var(--ui-muted);font:var(--ui-t-meta)}
.pw-fb{margin:0}
.pw-know-host[hidden],.pw-other[hidden],.property-owner-box[hidden]{display:none}
.pw-print{display:inline-flex}
.pw-ref .b3-map-body{margin:0;padding:0}
.pw-ref .b3-forest{margin:0;padding:0;border:0;background:none}
.pw-ref .b3-people-slot{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
/* "Mežs īsumā": the figures as two quiet columns of label and value (the panel's own lists, restyled) */
.pw-fb dl{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;gap:4px 12px;margin:0;padding:0;border:0}
.pw-fb dl>div{display:contents}
.pw-fb dt{margin:0;padding:0;border:0;color:var(--ui-ink-2);font:var(--ui-t-body)}
.pw-fb dd{margin:0;padding:0;border:0;color:var(--ui-ink);font:700 var(--ui-fs-m)/1.4 var(--ui-f);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.pw-fb h3{display:none}

/* ---- PC: the window, the header row, the columns --------------------------------------------------------------------------- */
@media (min-width:1001px){
  .pw-win{box-sizing:border-box;width:min(1408px,calc(100vw - 32px));max-width:none;height:min(756px,calc(100dvh - 24px));max-height:none;padding:0;overflow:hidden;background:var(--ui-canvas)}
  .pw-win[open]{display:flex;flex-direction:column}
  .pw-win>.close-dialog{position:absolute;top:11px;right:10px;left:auto;z-index:5;margin:0}
  .pw-body{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden}
  /* the header: one row of 52 px. The chain's wrappers stay in the DOM (their owners re-fill them) and take no box. */
  .pw-head{position:relative;z-index:4;display:flex;flex:none;flex-wrap:nowrap;align-items:center;gap:8px;box-sizing:border-box;height:52px;min-height:0;margin:0;padding:0 52px 0 14px;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:var(--ui-surface);box-shadow:none}
  .pw-head .property-heading-row,.pw-head .property-heading-identity,.pw-head .b3-title-row,.pw-head .property-heading-sections,.pw-head .parcel-title-line,.pw-head .property-focus-sectionbar{display:contents}
  .pw-head .parcel-subline,.pw-head .property-overview-map-toggle,.pw-head .property-tablet-map-tools{display:none}
  /* B4 DS1 (decisions 168, 169; sheet section 3): the window head holds tools and quiet buttons, all 30 px, never a filled one: the star,
     the name and number at the left; the tabs, "?" and the close at the right. The arrows and the list position are gone. */
  .pw-head .shortlist-bookmark.b3-star{order:1;flex:none;margin:0}   /* B4 OF2-P2: the family's quiet round icon button draws it */
  .pw-head .shortlist-bookmark.b3-star:is(.is-saved,[aria-pressed="true"]) svg{color:var(--ui-ochre)}   /* the saved star is ochre */
  .pw-head{--_pw-side:400px}   /* the side column's width: the tabs end on the main column's right line, over what they change */
  .pw-head .detail-tabs~.hp-q{order:7;margin:0}
  .pw-head .detail-tabs{margin-right:calc(var(--_pw-side) - 34px)}   /* the opening state has no "?" yet: the tabs keep their place */
  .pw-head .detail-tabs:has(~.hp-q){margin-right:calc(var(--_pw-side) - 72px)}
  .pw-head h2{order:2;flex:0 1 auto;min-width:90px;max-width:none;margin:0 0 0 4px;padding:0;overflow:hidden;color:var(--ui-ink);font:var(--ui-t-win);letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis}
  /* B4 PH1 (decision 148): the name, the thin divider, the cadastral number once; the name gives way first on a long name */
  .pw-head .b3-facts{order:4;flex:0 0 auto;min-width:0;max-width:none;margin:0 0 0 8px;padding:0 0 0 12px;border-left:1px solid var(--ui-line-2);overflow:hidden;color:var(--ui-muted);font:var(--ui-t-body);white-space:nowrap;text-overflow:ellipsis}
  .pw-head .b3-fact,.pw-head .b3-fact-sep{color:var(--ui-muted);font:var(--ui-t-body)}
  .pw-head [data-pw-head-figs]{order:5;margin:0 0 0 12px}
  .pw-head .detail-tabs{order:6;flex:none;width:auto;margin-left:auto}
  .pw-head .property-focus-marker-recovery{order:8;flex:none}
  /* the Darījums tab: two columns that scroll on their own */
  .pw-cols{display:grid;flex:1;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);grid-template-areas:none;align-items:stretch;gap:0;min-height:0;margin:0;padding:0;overflow:hidden}
  .pw-work{display:flex;flex-direction:column;gap:10px;grid-area:auto;box-sizing:border-box;width:auto;max-width:none;min-width:0;min-height:0;margin:0;padding:14px 18px;overflow-x:hidden;overflow-y:auto;border:0;background:none}
  .pw-work>*{flex:none}
  .pw-ref{display:flex;flex-direction:column;gap:0;grid-area:auto;position:static;box-sizing:border-box;width:auto;max-width:none;min-width:0;min-height:0;max-height:none;margin:0;padding:2px 18px 14px;overflow-x:hidden;overflow-y:auto;border:0;border-left:1px solid var(--ui-line);border-radius:0;background:var(--ui-stone-col);box-shadow:none}
  .pw-ref>*{flex:none}
  .pw-rsec{display:flex;flex-direction:column;gap:8px;margin:0;padding:12px 0;border:0;border-radius:0;background:none;box-shadow:none}
  .pw-rsec+.pw-rsec,.pw-rsec+.property-owner-box,.property-owner-box+.pw-rsec{border-top:1px solid var(--ui-hair-stone)}
  .pw-ref .b3-sec-t,.pw-ref .b3-map-t{margin:0;color:var(--ui-ink-2);font:var(--ui-t-head)}
  .pw-ref>.property-owner-box{margin:0;padding:12px 0;border:0;border-radius:0;background:none;box-shadow:none}
  /* the old marker group (the priority pin, the planning print's own button) takes no place in the right column: the star is in the
     header, "Drukāt" in "Mežs īsumā" presses the print's button, the pin is retired with the interest box (the stored value stays) */
  .pw-ref>.property-focus-markers{display:none}
  /* the other views (the full people list, "Meža dati"): the same window and header, one scrolling area */
  .pw-body>.parcel-layout:not(.pw-cols){flex:1;box-sizing:border-box;min-height:0;margin:0;overflow-y:auto}
}
@media (min-width:1001px) and (min-height:1000px){
  .pw-win{height:min(920px,calc(100dvh - 96px))}
}

/* PHONE-SEAM */
@media (max-width:1000px){
  .pw-band{flex-direction:column;align-items:stretch;gap:0;margin:0 0 10px;padding:0;border:1px solid var(--ui-ochre-line);border-radius:10px}
  /* B4 DS1: the step over the full width (its date mark at its right end), the deal's name with "Soļi" at the end of its line, the pair */
  .pw-now{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;min-height:0;padding:12px}
  .pw-now>*{grid-column:1/-1}
  .pw-now-tx{flex:1 1 auto}
  .pw-now-step>.dm{margin-left:auto}
  .pw-now-p{grid-row:2;min-height:var(--ui-h-m);padding:8px 0 0;border-left:0;border-top:1px solid var(--ui-ochre-line)}
  .pw-now:has(.pw-now-steps) .pw-now-p>:first-child{min-height:var(--ui-h-m);max-width:calc(100% - 130px)}
  .pw-now-steps{grid-column:2;grid-row:2;margin-top:8px}
  .pw-now-steps>.pw-steps{left:auto;width:min(360px,calc(100vw - 48px))}
  .pw-now>.pw-now-r{display:contents}
  .pw-now-r>:is(.b,.pw-pair){grid-column:1/-1;min-width:0}
  .pw-crumbs{flex-wrap:wrap}
  .pw-crumbs-l{flex-wrap:wrap;white-space:normal}
  .pw-pair{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}
  .pw-pop{left:0;right:0;max-width:none}
  .pw-steps{width:auto}
  .pw-move{flex-wrap:wrap}
  /* design audit r1 M6: "…" is a 44 px icon button at the band's top right, not a full-width row of its own */
  .pw-band-more{position:absolute;top:8px;right:8px;z-index:2;min-height:0;padding:0}
  .pw-band-more>.pw-pop{left:auto;right:0;width:min(320px,calc(100vw - 32px))}
  .pw-dt>:first-child:not(.pw-now),.pw-dt>.pw-now:first-child>.pw-now-s{padding-right:48px}
  .pw-dt>.v31-dt-said,.pw-dt>.v31-dt-slot:not(:empty),.pw-dt>.v31-dt-rows,.pw-dt>.v31-dt-tasks,.pw-dt>.v31-dt-pills{padding:8px 12px}
  .pw-capture{margin:0 0 10px}
  .pw-know-host{margin:0 0 8px}
  .pw-hist-seg{flex:1 1 100%}   /* B4 OF2-P2: the family's full-width tab track (.seg.fill) shares the width */
  .pw-hist-seg>button{min-width:max-content}   /* DH1 fix round: a tab never shrinks under its words; with Uzdevumi or Nauda the track scrolls */
  .pw-fb dl{grid-template-columns:minmax(0,1fr) auto}
  .pw-te{grid-template-columns:18px minmax(0,1fr) auto}
  .pw-by{display:none}
  /* DH1 fix 4 (Sol P2): a history row keeps its person on the phone, on its own line under the text; the day and time stay right */
  .pw-tl>.pw-te[data-v31-hist]>.pw-by:not(:empty){display:block;grid-column:2;grid-row:2;margin-top:2px;white-space:normal}
  .pw-tl>.pw-te[data-v31-hist]>time{grid-column:3;grid-row:1}
}
/* the phone header (design audit r1 M6; B4 AU1, audit A01; B4 DS1, decision 169): one row with the star, the name over its number, "?"
   and the close, then the three tabs. The arrows are gone and "Kad apmeklēt?" is under the strip's "…" (workspace-property-window.js).
   The condition is the class the script sets (workspace-property-focus.js phoneHeader), the same for the opening state: no width here. */
.pw-head.property-phone-header{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px;padding:8px 12px 10px}
.pw-head.property-phone-header .property-heading-identity{display:contents}
.pw-head.property-phone-header .parcel-subline{display:none}
.pw-head.property-phone-header .b3-title-row{grid-column:1/-1;grid-row:1;display:block;min-width:0;padding:2px 96px 0 44px}
.pw-head.property-phone-header .b3-title-row h2{margin:0}
.pw-head.property-phone-header .b3-star{position:absolute;top:10px;left:8px;margin:0}
.pw-head.property-phone-header .b3-facts{grid-column:1/-1;grid-row:2;min-width:0;min-height:18px;margin:0;padding:0 96px 0 44px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.pw-head.property-phone-header .hp-q{grid-column:1/-1;grid-row:1/span 2;place-self:center end;z-index:1;margin:0 48px 0 0}
.pw-head.property-phone-header .detail-tabs{grid-column:1/-1;grid-row:4;margin-top:4px}   /* B4 OF2-P2: the family's full-width track (.seg.fill) */
/* the row between: "Darbības" while its box holds something, and "Kad apmeklēt?" where the window has no "…" that offers it (the full
   people list, data-pw-when is not set there). "Drukāt" is at the foot of "Mežs īsumā" on the phone too (decision 148; that button presses
   this one). No button shrinks under its words. */
.pw-head.property-phone-header .property-focus-markers{grid-column:1;grid-row:3;display:flex;flex-wrap:nowrap;align-self:center;gap:6px;width:auto;min-width:0;margin:4px 0 0}
.pw-head.property-phone-header [data-pw-head-figs]{grid-column:2;grid-row:3;align-self:center;margin:4px 0 0}   /* the full people list: the value and area of the header */
.pw-head.property-phone-header .property-focus-markers>button{flex:none}
.pw-head.property-phone-header .property-focus-markers>:is(.property-mobile-actions[hidden],[data-planning-print]){display:none}
[data-pw-when] .property-phone-header .vl-marker{display:none}
.pw-head.property-phone-header .property-focus-markers:not(:has(>button:not([hidden],[data-planning-print]))){display:none}
[data-pw-when] .property-phone-header .property-focus-markers:not(:has(>button:not([hidden],.vl-marker,[data-planning-print]))){display:none}
/* B4 AU1 (audit A01, B14): the phone's band and "Ko darām" without rows of their own for one small button. One deal: its pill gives
   way so "+ Darījums" keeps the line ("…" stands in the corner). B4 DS1: "Soļi" ends the deal's name line by the strip's own grid (above).
   "Ko darām" has its own line and its buttons one row. */
@media (max-width:699px){
  .pw-dt>.v31-dt-pills:first-child{padding-right:60px}
  .pw-dt>.v31-dt-pills:not(:has(>.dp-pill~.dp-pill)){flex-wrap:nowrap}
  .pw-dt>.v31-dt-pills:not(:has(>.dp-pill~.dp-pill))>.dp-pill{min-width:0}
  .pw-dt>.pw-now:first-child>.pw-now-s{min-height:var(--ui-h-m)}   /* no deal yet: the button starts under the corner's "…" */
  .pw-scope>.pw-hist-bar:first-child::before{content:"";order:1;flex:0 0 100%;height:0}
  .pw-scope>.pw-hist-bar:first-child>.pw-sp{display:none}
  .pw-scope>.pw-hist-bar:first-child>.b{order:2;flex:1 1 auto}
  .pw-scope [data-pw-scope-open]>svg{display:none}
}
/* under 360 px "Darba uzdevums" is its print icon: B4 OF2-P2 the family's .foldc row and .fold tool do it (its words stay its name) */
/* B4 DP3 (decision 22, plan-deals-per-property 2.4): with the phone header the band's "…" list is a choice sheet at the bottom, rows 48 high
   (B4 DS1: the same class as the header, so on a phone held on its side too, where a list under the button ran out of the window) */
.fd-phone-head .pw-menu:not([hidden]){position:fixed;inset:auto 0 0 0;z-index:60;box-sizing:border-box;width:auto;max-width:none;max-height:max(70dvh,min(320px,94dvh));overflow:auto;margin:0;
  padding:8px 16px calc(16px + env(safe-area-inset-bottom,0px));border:0;border-radius:var(--ui-sheet-r) var(--ui-sheet-r) 0 0;box-shadow:0 0 0 100vmax color-mix(in srgb,var(--ui-ink) 40%,transparent)}
/* B4 DS6 (decision 185, A01): with the phone header the strip keeps the step (with its date mark), the main button and the open tasks; the
   deal's pill (the open deal, "1 no 2" while more run, a chevron) opens the rest: the other deals and "+ Darījums", the name with its pencil
   and trail, Soļi, Pārcelt. "…" stays where it is. A PC never draws the pill (workspace-deal-tab.js stripOpen) */
.dp-strip{display:none}
.fd-phone-head .dp-strip{display:inline-flex;flex:0 1 auto;min-width:0}
.fd-phone-head .dp-row.is-shut>:not(.dp-strip){display:none}
.fd-phone-head .dp-strip~[aria-pressed="true"]{display:none}
.fd-phone-head .pw-now.is-shut :is(.pw-now-p,.pw-now-steps,[data-pw-move]){display:none}
.dp-strip>.dp-strip-c{transform:rotate(90deg)}   /* B4 OF2-P2: "1 no 2" is the family's count well (.n); the chevron only turns */
.dp-strip[aria-expanded="true"]>.dp-strip-c{transform:rotate(-90deg)}

/* design audit r1 M9: a map that still draws stands keeps its "no parcel boundary" line as a small note at the lower left, under
   the map's own controls instead of printed across them */
.property-focus-map-frame>.detail-map.leaflet-container>.empty{position:absolute;left:8px;bottom:24px;z-index:800;box-sizing:border-box;max-width:calc(100% - 16px);margin:0;padding:3px 8px;border:0;border-radius:6px;background:var(--ui-surface);box-shadow:var(--ui-map-on-drop,none);color:var(--ui-ink-2);font:var(--ui-t-meta);text-align:left;pointer-events:none}

/* ---- B4 PW1: the window while it opens (Janis's decisions 60 and 103) ---------------------------------------------------------
   workspace-property-window.js paints the open state over the app's "Ielādē…" placeholder: the frame's own header, band and columns
   with quiet placeholder shapes that share one slow shimmer (a 1.2 s pass, then a short rest: one wave across the whole window, as
   the gradient is fixed to the viewport). After the frame lands, a part that still loads carries data-pwl-busy (the map, below) or
   is drawn busy by its owner (the history rows, the Meža dati table), and data-pwl-in fades it in when it fills. The shapes sit in
   the boxes the finished parts use, so nothing moves. No spinner, no blur; under prefers-reduced-motion the shapes stay still. */
.pwl-body{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}
.pwl-sk{display:block;flex:none;box-sizing:border-box;width:100%;height:10px;margin:0;border-radius:5px;background-color:var(--ui-wash-open);background-image:linear-gradient(100deg,transparent 20%,color-mix(in srgb,var(--ui-surface) 72%,transparent) 50%,transparent 80%);background-repeat:no-repeat;background-size:44vw 100%;background-attachment:fixed;background-position:-44vw 0;animation:pwl-sweep 1.6s cubic-bezier(.45,.05,.3,1) .35s infinite}
@keyframes pwl-sweep{0%{background-position:-44vw 0}75%,100%{background-position:100vw 0}}
.pwl-w2{width:32%}.pwl-w3{width:46%}.pwl-w4{width:60%}.pwl-w5{width:74%}
.pwl-thin{height:8px}
.pwl-n{width:40px;justify-self:end}
.pwl-dot{width:20px;height:20px;border-radius:50%}
.pwl-btn{width:126px;height:var(--ui-h-l);border-radius:var(--ui-r)}
.pwl-fill{background-color:color-mix(in srgb,var(--ui-ochre) 20%,transparent)}
.pwl-know{width:84px;height:var(--ui-h-s);border-radius:var(--ui-r)}
.pwl-cap{height:48px;border-radius:var(--ui-r-in)}
.pwl-seg{width:290px;height:var(--ui-h-s);margin-left:auto;border-radius:var(--ui-r)}
.pwl-ic{width:16px;height:16px;border-radius:50%}
.pwl-date{width:40px;margin-left:auto}
.pwl-name{height:13px}
.pwl-map{height:186px;border-radius:var(--ui-r)}
.pwl-title{width:32%;height:14px}
.pwl-c1{width:56px}
.pwl-row{display:flex;align-items:center;gap:12px;box-sizing:border-box}
.pwl-te{min-height:38px;border-bottom:1px solid var(--ui-line)}
.pwl-te:last-child{border-bottom:0}
.pwl-tl{display:flex;flex-direction:column}
.pwl-tr{display:grid;grid-template-columns:56px minmax(0,1fr) 40px 40px 40px;gap:16px;min-height:40px;border-bottom:1px solid var(--ui-line)}
.pwl-lines{display:flex;flex:1;flex-direction:column;gap:9px;min-width:0}
.pwl-hbar{display:flex;align-items:center;gap:8px;min-height:var(--ui-h-s);margin:0}
.pwl-hbar>.pw-h{margin:0;color:var(--ui-ink-2);font:var(--ui-t-head)}
.pwl-dl{display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr) 40px;align-items:center;gap:12px 14px}
.pwl-band{align-items:center;gap:16px;min-height:70px;padding:0 16px 0 18px}
.pwl-band>.pwl-btn+.pwl-btn{margin-left:-8px}
.pwl-band[data-pwl-band=quiet]{min-height:53px;border-bottom-color:var(--ui-line);background:var(--ui-surface)}
.pwl-band[data-pwl-band=quiet] .pwl-dot{background-color:var(--ui-wash)}
.pwl-ref .pwl-sk,.pwl-side .pwl-sk{background-color:color-mix(in srgb,var(--ui-ink) 8.5%,transparent)}
.pwl-ref>[data-pwl-part=people]{box-sizing:border-box;min-height:161px}
.pwl-ref>[data-pwl-part=map]{box-sizing:border-box;min-height:241px}
.pwl-ref>[data-pwl-part=people]>.pwl-name{margin-top:6px}
.pwl-ref .pwl-sk.pwl-map,.pwl-side .pwl-sk.pwl-map{background-color:var(--ui-wash)}
.pwl-fcols{display:grid;flex:1;grid-template-columns:minmax(0,1fr) 400px;min-height:0;overflow:hidden}
.pwl-main{display:flex;flex-direction:column;min-width:0;padding:16px 18px;overflow:hidden}
.pwl-main>.pwl-title{margin:2px 0 14px}
.pwl-side{display:flex;flex-direction:column;gap:16px;box-sizing:border-box;min-width:0;padding:14px 18px;border-left:1px solid var(--ui-line);background:var(--ui-stone-col)}
.pwl-side .pwl-map{height:250px}
.pwl-sec{display:flex;flex-direction:column;gap:12px}
.pwl-tools{gap:8px}
.pwl-sq{width:var(--ui-h-s);height:var(--ui-h-s);border-radius:var(--ui-r)}
.pwl-pill{width:104px;height:var(--ui-h-m);border-radius:var(--ui-r)}
.pwl-pill-s{width:110px}
.pwl-sec>.pwl-map{margin-top:2px}
.pwl-head .pwl-star{display:inline-grid;place-items:center;width:var(--ui-h-s);height:var(--ui-h-s);color:var(--ui-line-2)}
.pwl-head .pwl-star>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.pwl-head .detail-tabs>button{cursor:default}
/* the one quiet line past 6 s: what is still awaited, at the window's lower left; the close button is always the window's own */
.pwl-wait{position:absolute;left:18px;bottom:14px;z-index:6;display:flex;align-items:center;gap:8px;box-sizing:border-box;height:var(--ui-h-s);margin:0;padding:0 11px 0 10px;border:1px solid var(--ui-line);border-radius:13px;background:var(--ui-surface);box-shadow:var(--ui-pop-sh);color:var(--ui-ink-2);font:var(--ui-t-meta);white-space:nowrap;animation:pwl-in .42s cubic-bezier(.16,1,.3,1) both}
.pwl-wait::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--ui-pine);animation:pwl-breathe 1.6s ease-in-out infinite}
.pwl-wait[hidden]{display:none}
@keyframes pwl-breathe{50%{opacity:.3}}
/* a failure, in place of the placeholders */
.pwl-failed{align-items:center;justify-content:center;padding:24px}
.pwl-error{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:440px;margin:auto;text-align:center}
.pwl-error-t{margin:0;color:var(--ui-ink);font:var(--ui-t-step)}
.pwl-error-x{margin:0;color:var(--ui-muted);font:var(--ui-t-body);overflow-wrap:anywhere}
.pwl-error>.b{margin-top:4px}
/* after the frame lands: the map keeps its placeholder until its boundary and stands are drawn (not the "nav atrasta" line) */
.detail-map[data-pwl-busy]::after{content:"";position:absolute;inset:0;z-index:1200;border-radius:inherit;pointer-events:none;background-color:var(--ui-stone-2);background-image:linear-gradient(100deg,transparent 20%,color-mix(in srgb,var(--ui-surface) 72%,transparent) 50%,transparent 80%);background-repeat:no-repeat;background-size:44vw 100%;background-attachment:fixed;background-position:-44vw 0;animation:pwl-sweep 1.6s cubic-bezier(.45,.05,.3,1) .35s infinite}
[data-next-map-status][data-pwl-busy]{position:relative;color:transparent}
[data-next-map-status][data-pwl-busy]::before{content:"";position:absolute;left:16px;top:50%;width:min(240px,50%);height:10px;margin-top:-5px;border-radius:5px;background-color:var(--ui-wash-open);background-image:linear-gradient(100deg,transparent 20%,color-mix(in srgb,var(--ui-surface) 72%,transparent) 50%,transparent 80%);background-repeat:no-repeat;background-size:44vw 100%;background-attachment:fixed;background-position:-44vw 0;animation:pwl-sweep 1.6s cubic-bezier(.45,.05,.3,1) .35s infinite}
/* the Meža dati table while the processing module reads it: rows of shapes in its place (its words stay for a screen reader) */
.pw-body [data-next-tab-body][role=status]{position:relative;min-height:260px}
.pw-body [data-next-tab-body][role=status]>p{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pw-body [data-next-tab-body][role=status]::before{content:"";display:block;height:248px;background-color:var(--ui-wash-open);background-image:linear-gradient(100deg,transparent 20%,color-mix(in srgb,var(--ui-surface) 72%,transparent) 50%,transparent 80%);background-repeat:no-repeat;background-size:44vw 100%;background-attachment:fixed;background-position:-44vw 0;animation:pwl-sweep 1.6s cubic-bezier(.45,.05,.3,1) .35s infinite;-webkit-mask-image:repeating-linear-gradient(180deg,var(--ui-ink) 0 10px,transparent 10px 40px),linear-gradient(90deg,var(--ui-ink) 0 64%,transparent 64% 72%,var(--ui-ink) 72% 100%);-webkit-mask-composite:source-in;mask-image:repeating-linear-gradient(180deg,var(--ui-ink) 0 10px,transparent 10px 40px),linear-gradient(90deg,var(--ui-ink) 0 64%,transparent 64% 72%,var(--ui-ink) 72% 100%);mask-composite:intersect}
/* a part that has just filled: a short fade over where its placeholder was */
[data-pwl-in]{animation:pwl-in .42s cubic-bezier(.16,1,.3,1) both}
@keyframes pwl-in{from{opacity:.2}}
@media (max-width:1000px){
  .pwl-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 12px;padding:12px 44px 12px 12px;border-bottom:1px solid var(--ui-line)}
  .pwl-body{padding:0 12px 16px}
  .pwl-head h2{flex:1 1 0;min-width:0;margin:0;overflow:hidden;color:var(--ui-ink);font:var(--ui-t-win);white-space:nowrap;text-overflow:ellipsis}
  .pwl-head .b3-facts{order:5;flex:1 1 100%;min-width:0;margin:0;overflow:hidden;color:var(--ui-muted);font:var(--ui-t-body);white-space:nowrap;text-overflow:ellipsis}
  .pwl-head .detail-tabs{order:6;flex:1 1 auto;display:grid;grid-template-columns:1fr 1fr;min-width:0}
  .pwl-cols,.pwl-fcols{display:flex;flex-direction:column;gap:12px}
  .pwl-work,.pwl-ref,.pwl-main,.pwl-side{display:flex;flex-direction:column;gap:10px;padding:4px 0;border:0;background:none}
  .pwl-ref>.pw-rsec{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-top:1px solid var(--ui-line)}
  .pwl-band{flex-direction:row;align-items:center;gap:12px;margin:0 0 10px;padding:0 14px;border:1px solid var(--ui-ochre-line);border-radius:10px;min-height:64px}
  .pwl-band>.pwl-btn{display:none}
  .pwl-seg{width:46%}
  .pwl-tr{grid-template-columns:44px minmax(0,1fr) 40px}
  .pwl-tr>.pwl-sk:nth-child(n+4){display:none}
  .pwl-wait{position:fixed;left:16px;bottom:16px}
}
@media (prefers-reduced-motion:reduce){
  .pwl-sk,.pwl-wait,.pwl-wait::before,.detail-map[data-pwl-busy]::after,[data-next-map-status][data-pwl-busy]::before,.pw-body [data-next-tab-body][role=status]::before{animation:none}
  [data-pwl-in]{animation:none}
}

/* ---- B4 LY1 (decision 114): one layout for every tab. A tab press hides the other main areas (the hidden attribute, stated here
   because the areas set their own display); the open state's columns take the sidebar's width (lmf-page-forest.css's frame), so
   nothing moves when the window lands. The map's name is for screen readers in the open state, as in the finished sidebar. ---- */
.pw-main[hidden]{display:none}
.pwl-cols{grid-template-columns:minmax(0,1fr) 400px}
.pwl-ref .pwl-map-l{height:250px}
.pwl-tools>.pwl-sq{border-radius:50%}
.pwl-tools>.pwl-pill{flex:1;width:auto;height:var(--ui-h-s);border-radius:var(--ui-tl-r)}
.pwl-vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}
@media (min-width:1001px) and (max-width:1439px){
  .pw-head{--_pw-side:340px}
  .pwl-cols{grid-template-columns:minmax(0,1fr) 340px}
}
/* ---- B4 W1: "Ko darām" (the deal's work lines) in the left column, in the history's row style -------------------------------- */
.pw-scope[hidden]{display:none}
.pw-scope .pw-te{grid-template-columns:18px minmax(0,1fr) auto minmax(72px,auto)}
.pw-scope .pw-te-tx>.tag{margin-left:6px}
.pw-scope .tag{height:auto;min-height:20px;padding-block:2px;white-space:normal}
.pw-scope .pw-by{text-align:right}
.pw-scope-m{color:var(--ui-ink);font-weight:620}
.pw-scope-st{white-space:nowrap}
.pw-scope-st .tag{margin-left:2px}
.pw-scope-quiet{color:var(--ui-muted);font:var(--ui-t-meta)}
.pw-scope-sum{display:flex;flex-wrap:wrap;gap:6px 24px;align-items:baseline;padding:8px 10px;border-radius:8px;background:var(--ui-stone-2);color:var(--ui-ink-2);font:var(--ui-t-body)}
.pw-scope-s{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
.pw-scope-s>b{color:var(--ui-ink);font-weight:620;font-variant-numeric:tabular-nums}
/* B4 W5: "Apliecinājums" after "Ko darām": the same rows; the form uses the task form's fields (tk-grid, tk-fld, .in) */
.pw-permit{display:grid;gap:6px;margin-top:14px}
.pw-permit .pw-hist-bar .pw-sp{flex:1}
.pw-permit-none{margin:0;padding:2px 10px}
.pw-permit-f{margin:0;padding:10px;border:1px solid var(--ui-line);border-radius:8px}
.pw-permit-f .tk-fld>.in,.pw-permit-f .tk-fld>.sel{width:100%}
.pw-permit-full{grid-column:1 / -1}
.pw-permit-lines{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.pw-permit-lines>legend{padding:0;margin-bottom:2px}
.pw-permit-lines .cl{display:flex;align-items:center;gap:8px;font:var(--ui-t-body);color:var(--ui-ink)}
.pw-permit-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.pw-permit-acts .pw-sp{flex:1}
.pw-permit .v31-notice{margin:0}
.pw-permit-r .pw-scope-m{font-weight:400}
.pw-permit-err{margin:2px 0 0;color:var(--ui-clay);font:var(--ui-t-meta)}
/* NX Komanda (workspace-deal-team.js): the deal's team line reuses the money rows and the permit form */
.kt .kt-f{margin:4px 0}
.kt-f-who{margin:0;font:var(--ui-t-body);color:var(--ui-ink)}
.kt-err{margin:0;color:var(--ui-clay);font:var(--ui-t-meta)}
.kt-row[data-kt-later] .pw-te-tx p{color:var(--ui-ink-2)}
.kt-note.errm{color:var(--ui-clay)}
@media (max-width:700px),(pointer:coarse){
  .kt-bar>.b,.kt-f .in,.kt-f .sel,.kt-f .b{min-height:44px}
}
@media (max-width:1000px){
  .pw-permit-f{grid-template-columns:1fr}
}
@media (max-width:1000px){
  .pw-scope .pw-te{grid-template-columns:18px minmax(0,1fr) auto}
  .pw-scope .pw-by{display:block}
  .pw-scope .pw-scope-q{grid-column:2;grid-row:2;text-align:left}
  .pw-scope .pw-scope-m{grid-column:3;grid-row:1;max-width:9.5rem;white-space:normal}
  .pw-scope-st{white-space:normal}
  .pw-scope-sum{flex-direction:column;gap:4px}
}
/* ---- B4 W2: "Darījuma apjoms" (the deal's stands and work) in the left main area; the history's bar and sums, v31 inputs --- */
.pw-sc{display:flex;flex-direction:column;gap:10px;min-height:100%;box-sizing:border-box}
.pw-sc-bar{flex-wrap:wrap;row-gap:6px}
.pw-sc-quick{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;margin-left:auto}
.pw-sc-mk{color:var(--ui-muted);font:var(--ui-t-meta)}
.pw-sc-wait,.pw-sc-empty{margin:0;padding:10px;color:var(--ui-muted);font:var(--ui-t-body)}
.pw-sc-list{border:1px solid var(--ui-line);border-radius:var(--ui-r);background:var(--ui-surface);overflow:hidden}
.pw-sc-rows{margin:0;padding:0;list-style:none}
/* NX scope stands (30 Nov): fixed columns, numbers right-aligned at the edge; the area column holds «daļa», the part field and the
   chip without growing (168 px: field 4.5em, «no», chip column), the value column is the badge's own column width */
.pw-sc-row{display:grid;grid-template-columns:28px 4.5em minmax(0,14em) minmax(8em,1fr) 168px var(--ui-vb-col-s);align-items:center;column-gap:10px;min-height:36px;padding:0 10px;border-top:1px solid var(--ui-line);color:var(--ui-ink-2);font:var(--ui-t-body)}
.pw-sc-head{min-height:32px;border-top:0;background:var(--ui-stone-2);color:var(--ui-ink);font:var(--ui-t-head)}
.pw-sc-hall{display:none}
.pw-sc-row.is-on{background:var(--ui-ochre-soft)}
.pw-sc-ck{display:inline-flex;align-self:stretch;align-items:center;justify-content:center;min-width:28px;min-height:28px;margin:0;cursor:pointer}
.pw-sc-ck>input{margin:0}   /* B4 OF2-P2: the family's tick box (soft square, 18 px) */
.pw-sc-name{color:var(--ui-ink);font-weight:620;font-variant-numeric:tabular-nums;white-space:nowrap}
.pw-sc-sp{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pw-sc-r{text-align:right}
.pw-sc-area{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0;white-space:nowrap}
.pw-sc-val{display:flex;align-items:center;justify-content:flex-end;min-width:0}
.pw-sc-num{font-variant-numeric:tabular-nums}
.pw-sc-part,.pw-sc-pair{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.pw-sc-pw{color:var(--ui-muted);font:var(--ui-t-meta)}
/* the part field fits the stand row: 28 px on a PC, the touch height on a phone (below); 4.5em holds 0,0000 */
.pw-sc-area>.pw-sc-pin.in{--_h:28px;flex:0 0 4.5em;width:4.5em;padding:0 6px;text-align:right;font-variant-numeric:tabular-nums}
/* fix round (Sol P2): «Darījumā» keeps at least 8em (one readable mark); more marks wrap onto a second line of the row instead
   of being cut off */
.pw-sc-dl{display:flex;flex-wrap:wrap;gap:4px;min-width:0;padding-block:4px;overflow:hidden}
.pw-sc-deal{gap:4px;min-width:0;max-width:100%;white-space:nowrap}
.pw-sc-dt{min-width:0;overflow:hidden;text-overflow:ellipsis}
.pw-sc-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pw-sc-lines{border:1px solid var(--ui-line);border-radius:var(--ui-r);background:var(--ui-surface)}
.pw-sc-lines>ul{margin:0;padding:0;list-style:none}
/* B4 DFC (audit r2 N3): the price column takes its words and fields (min. € [150] + [9] €/ha), so the line total never covers them */
.pw-sc-line{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1fr) minmax(0,.9fr) max-content minmax(96px,auto) 32px;align-items:center;gap:8px;padding:6px 10px;border-top:1px solid var(--ui-line);color:var(--ui-ink-2);font:var(--ui-t-body)}
.pw-sc-lhead{padding-block:4px;border-top:0;background:var(--ui-stone-2);color:var(--ui-ink);font:var(--ui-t-head)}   /* B4 HL1 */
.pw-sc-c{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.pw-sc-cw .pw-sc-in{flex:1 1 9em;min-width:0}
.pw-sc-c>select.pw-sc-in{width:100%}
.pw-sc-cw>select:first-child{flex:1 1 100%}
.pw-sc-two{display:grid;flex:1 1 100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;min-width:0}
.pw-sc-fl{display:none}
.pw-sc-unit{color:var(--ui-ink-2)}
.pw-sc-tot{justify-content:flex-end;color:var(--ui-ink);font-weight:620;font-variant-numeric:tabular-nums}
.pw-sc-dir{color:var(--ui-muted);font:var(--ui-t-meta);font-weight:400}
.pw-sc-x{justify-content:flex-end}
.pw-sc-sum{align-items:flex-start}
.pw-sc-chosen>b{font-variant-numeric:tabular-nums}
.pw-sc-vw{color:var(--ui-muted);font:var(--ui-t-meta)}
.pw-sc-note:empty{display:none}
.pw-sc-hint{margin:0}
.pw-sc-pills{max-width:100%;overflow-x:auto}
.pw-sc-steps{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;padding:0;list-style:none;color:var(--ui-muted);font:var(--ui-t-meta)}
.pw-sc-step{display:inline-flex;align-items:center;gap:6px}
.pw-sc-sn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid var(--ui-line);border-radius:50%;font-variant-numeric:tabular-nums}
.pw-sc-step.is-now{color:var(--ui-ink)}
.pw-sc-step.is-now>.pw-sc-sn{border-color:var(--ui-ochre-line);background:var(--ui-ochre-soft)}
.pw-sc-step.is-done>.pw-sc-sn{border-color:var(--ui-ochre-line);color:var(--ui-ochre-ink)}
.pw-sc-kinds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
/* B4 DS5: the three deal kinds are the family's choice tile (.tile, raised, corner 10; chosen = the deals tint pressed in, from
   data-area="deals" on the group). Here only the inside: icon and name on one line, the hint under them, left aligned. */
.pw-sc-kind.tile{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;justify-content:stretch;gap:2px 8px;min-width:0;min-height:64px;padding:10px 12px;color:var(--ui-ink-2);font:var(--ui-t-meta);text-align:left;text-shadow:none}
.pw-sc-kind>b{color:var(--ui-ink);font:var(--ui-t-body);font-weight:620}
.pw-sc-kind>span{grid-column:1/-1;min-width:0;white-space:normal;overflow-wrap:anywhere}
.pw-sc-kind.tile svg{width:16px;height:16px}
.pw-sc-save{position:sticky;bottom:0;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto;padding:10px 0;border-top:1px solid var(--ui-line);background:var(--ui-surface)}
.pw-sc-state{color:var(--ui-muted);font:var(--ui-t-meta)}
.pw-sc-state.is-warn{color:var(--ui-warn-ink)}
/* Meža dati: the quiet mark on a stand that is in an open deal (decision 92), the stand line's own meta type */
.pw-deal-mk{display:inline-block;margin-left:6px;padding:0 6px;border:1px solid var(--ui-ochre-line);border-radius:999px;color:var(--ui-ochre-ink);font:var(--ui-t-meta);white-space:nowrap;vertical-align:middle}
.next-stand-header>.pw-deal-mk{order:12;margin-left:0}
[data-forest-layout=band] .next-stand-header>.pw-deal-mk{grid-column:cut;grid-row:2;justify-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1000px){
  .pw-sc-lhead{display:none}
  /* NX scope stands: a stand is a short card: tick | name, area | species, value | its deal marks; the head keeps only its tick box */
  .pw-sc-head{grid-template-columns:40px minmax(0,1fr);grid-template-areas:"ck hall";min-height:44px;padding:0 10px}
  .pw-sc-head>span:not(.pw-sc-ck){display:none}
  .pw-sc-head>.pw-sc-hall{align-self:center;display:flex;align-items:center;min-height:var(--ui-hit);margin:0}
  .pw-sc-head:not(:has(input)){display:none}
  .pw-sc-hall{display:block;grid-area:hall;color:var(--ui-ink-2);font:var(--ui-t-body);cursor:pointer}
  /* fix round (Sol P2): the name column never shrinks below the stand id (auto minimum: the id is one unbroken word) */
  .pw-sc-row:not(.pw-sc-head){grid-template-columns:40px minmax(auto,1fr) auto;grid-template-areas:"ck name area" "ck sp val" "ck dl dl";row-gap:2px;padding:6px 10px}
  .pw-sc-ck{grid-area:ck;min-width:var(--ui-hit);min-height:var(--ui-hit);margin:0 0 0 -6px}
  .pw-sc-fl{display:block;flex:1 1 100%;color:var(--ui-muted);font:var(--ui-t-meta)}
  .pw-sc-name{grid-area:name}.pw-sc-sp{grid-area:sp;white-space:normal}.pw-sc-area{grid-area:area}.pw-sc-val{grid-area:val}.pw-sc-dl{grid-area:dl}
  .pw-sc-dl:empty{display:none}
  .pw-sc-dl{padding-block:0}
  /* the card keeps one height whether its stand is ticked, has «daļa» or the part field open: the small control height */
  .pw-sc-row:not(.pw-sc-head)>.pw-sc-area{min-height:var(--ui-h-s)}
  .pw-sc-area>.pw-sc-pin.in{--_h:var(--ui-h-s)}
  .pw-sc-line{grid-template-columns:minmax(0,1fr) auto;padding:10px}
  .pw-sc-line>.pw-sc-cw{grid-column:1;grid-row:1}
  .pw-sc-line>.pw-sc-x{grid-column:2;grid-row:1}
  .pw-sc-line>.pw-sc-c:nth-child(2),.pw-sc-line>.pw-sc-c:nth-child(3),.pw-sc-line>.pw-sc-cp{grid-column:1/-1}
  .pw-sc-line>.pw-sc-tot{grid-column:1/-1;justify-content:flex-start}
  .pw-sc-kinds{grid-template-columns:1fr}
  .pw-sc-kind{min-height:52px}
  .pw-sc-quick{margin-left:0}
  .pw-sc-save{padding:10px 0 calc(10px + env(safe-area-inset-bottom,0px))}
  .pw-sc-save .b{flex:1 1 0}
  /* B4 DFC (audit r2 N9): the state and Saglabāt share one row, so the sticky bar covers half as much of the list above it */
  .pw-sc-save>.pw-sc-state{flex:1 1 0;min-width:0}
  .pw-sc-save>.pw-sp{display:none}
}
/* fix round (Sol P2): on a narrow phone a ticked stand's area controls («daļa», the part field) take their own line, so the stand id
   beside them stays whole */
@media (max-width:360px){
  .pw-sc-row:not(.pw-sc-head):has([data-sc-partopen],.pw-sc-pin){grid-template-areas:"ck name val" "ck sp sp" "ck area area" "ck dl dl"}
}
/* B4 W6: "Termiņi" after "Ko darām" (and W5's "Apliecinājums"): the history's rows; the one action at the row's end */
.pw-fu{display:grid;gap:6px;margin-top:14px}
.pw-scope .pw-fu-l{grid-template-columns:18px minmax(0,1fr) auto;align-items:center}
.pw-fu-a{display:flex;justify-content:flex-end}
.pw-fu.is-own{margin-top:0}
.pw-fu-host[hidden]{display:none}
.pw-fu-warn{color:var(--ui-clay)}
.pw-scope .tag[data-v31-nest]{display:inline-flex;align-items:center;gap:4px}
.pw-scope .tag[data-v31-nest] .v31-i{width:12px;height:12px}
@media (max-width:1000px){
  .pw-scope .pw-fu-l{grid-template-columns:18px minmax(0,1fr)}
  .pw-fu-a{grid-column:2;justify-content:flex-start;padding-top:4px}
}
/* ---- B4 W4: money under "Ko darām": payments, partners' jobs, buyers' prices (the history's row style) ------------------------- */
.pw-money{display:flex;flex-direction:column;gap:6px;margin-top:12px}
.pw-money-bar{justify-content:space-between;min-height:32px;margin-top:4px}
.pw-scope .pw-money-r{grid-template-columns:18px minmax(0,1fr) auto minmax(32px,auto);align-items:center}
.pw-money-a{white-space:nowrap;font-variant-numeric:tabular-nums}
.pw-money-t{display:inline-flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;align-items:center}
.pw-money-none{margin:0;padding:2px 0 4px;color:var(--ui-muted);font:var(--ui-t-meta)}
.pw-money-step{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;color:var(--ui-ink-2);font:var(--ui-t-body)}
.pw-money-form{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:flex-start;padding:12px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-surface)}
.pw-money-f{display:flex;flex-direction:column;gap:4px;flex:1 1 130px;min-width:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.pw-money-f--w{flex:2 1 220px}
.pw-money-f>.sel,.pw-money-f>.in{width:100%;max-width:none}
.pw-money-fb{display:flex;flex:1 0 100%;gap:8px;justify-content:flex-end}
.pw-money-err{flex:1 0 100%;margin:0;color:var(--ui-clay);font:var(--ui-t-meta)}
.pw-money-r .pw-te-tx{overflow-wrap:break-word}
.pw-scope-s>.pw-scope-quiet{font-variant-numeric:tabular-nums}
@media (max-width:1000px){
  .pw-scope .pw-money-r{grid-template-columns:18px minmax(0,1fr) auto auto;column-gap:6px}
  .pw-scope .pw-money-r .pw-money-a{grid-column:3;grid-row:1;max-width:9.5rem;white-space:normal;text-align:right}
  .pw-scope .pw-money-r .pw-money-t{grid-column:4;grid-row:1}
  .pw-money-f,.pw-money-f--w{flex:1 1 100%}
  .pw-money-fb>.b{flex:1}
}

/* B4 DFC (audit r2 N4): the sidebar map keeps its Slāņi / Numuri / LVMGEO row right of the zoom column, so it never covers "+"
   and "−"; the row wraps when the map is narrow, and its empty part lets the map be dragged */
.property-focus-map-frame>.lmf-map-tools{left:56px;justify-content:flex-end;pointer-events:none}
.property-focus-map-frame>.lmf-map-tools>*{pointer-events:auto}
/* B4 BV3 (decisions 129, 131): a property removed from Izbraukumi's suggestions: one quiet row under the band, every tab */
.pw-rmline{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0;padding:6px 16px;border-bottom:1px solid var(--ui-line);background:var(--ui-stone-foot);color:var(--ui-ink-2);font:var(--ui-t-meta)}
.pw-rmline>button{margin-left:auto}
@media (max-width:700px){
  .pw-rmline{margin:0 0 10px;padding:8px 12px;border:1px solid var(--ui-line);border-radius:10px}
}

/* ---- B4 DB1 (decision 236): the deal band folds away. The handle (.pw-fold, workspace-property-window.js) is a small tool pill
   centred on the band's bottom edge, its chevron up while open and down while folded. Folded (data-pw-folded) the band keeps one
   line (.pw-slim, workspace-deal-tab.js: the step with its date mark, the deal, "1 no 2", the open tasks with their late mark, a dot
   when the step changed), which opens the band when pressed, and a notice if one shows. The line is drawn last (the band's
   :first-child rules stay true) and shown first. Without a running deal there is no line: no handle, nothing folds. The tool's
   tokens (decision 222: the warm satin, no grey); late is said by the date mark alone (decision 156). Under 700 px the line is two
   short lines: the step with its date, then the deal's name (cut with an ellipsis), "1 no 2" and the tasks. The height eases in 200 ms
   (the script) and the contents fade in with it; nothing moves under reduced motion. The handle is 40 x 14 on a PC with a 56 x 26
   target, 48 x 20 on touch with a 64 x 44 target. */
.pw-slim{display:none}
.pw-band[data-pw-folded]:has(.pw-slim) .pw-dt>:not(.pw-slim,.v31-dt-slot){display:none}
.pw-band[data-pw-folded]:has(.pw-slim) .pw-dt>.pw-slim{display:flex;order:-2;align-items:center;gap:6px 10px;box-sizing:border-box;width:100%;min-width:0;min-height:var(--ui-h-l);margin:5px 0 8px;padding:0 16px 0 18px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--ui-ink);font:var(--ui-t-body);text-align:left;white-space:nowrap;cursor:pointer;transition:background-color var(--ui-t)}
.pw-band[data-pw-folded]:has(>.pw-band-more) .pw-dt>.pw-slim{grid-column:1}
.pw-band[data-pw-folded]:has(.pw-slim)>.pw-band-more{grid-row:1;min-height:0}
.pw-band[data-pw-folded] .pw-slim:hover{background:color-mix(in srgb,var(--ui-ochre-line) 24%,transparent)}
.pw-band[data-pw-folded] .pw-slim:focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
.pw-slim-a,.pw-slim-b{display:contents}
.pw-slim-a>*,.pw-slim-b>*{flex:none}
.pw-slim-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pw-slim-i{display:flex;color:var(--ui-ochre)}
.pw-slim-i svg{width:16px;height:16px}
.pw-slim .pw-slim-step{flex:0 1 auto;min-width:3em;overflow:hidden;text-overflow:ellipsis;font:var(--ui-t-data)}
.pw-slim .pw-slim-deal{flex:0 100 auto;min-width:0;overflow:hidden;color:var(--ui-ink-2);text-overflow:ellipsis}
.pw-slim-deal::before{content:"·";margin-right:10px;color:var(--ui-muted)}
.pw-slim-new{width:8px;height:8px;border-radius:50%;background:var(--ui-ochre)}
.pw-slim-tasks{display:inline-flex;align-items:center;gap:4px;margin-left:auto;color:var(--ui-ink-2);font:var(--ui-t-data)}
.pw-slim-tasks svg{width:14px;height:14px}
.pw-fold{position:absolute;left:50%;bottom:0;z-index:4;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:40px;height:14px;min-width:0;min-height:0;margin:0;padding:0;border:var(--ui-tl-bw) solid var(--ui-tl-line);border-radius:var(--ui-tl-r);background:var(--ui-tl-bg);box-shadow:var(--ui-tl-sh);color:var(--ui-tl-ic);transform:translate(-50%,50%);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:border-color var(--ui-t),box-shadow var(--ui-t),color var(--ui-t)}
.pw-fold::before{content:"";position:absolute;inset:-6px -8px}
.pw-fold svg{width:12px;height:12px;transform:rotate(-90deg);transition:transform var(--ui-t)}
.pw-band[data-pw-folded] .pw-fold svg{transform:rotate(90deg)}
.pw-fold:hover{border-color:var(--ui-tl-line-h);background:var(--ui-tl-bg-h);box-shadow:var(--ui-tl-sh-h);color:var(--ui-tl-ink)}
.pw-fold:active{background:var(--ui-tl-bg-p);box-shadow:var(--ui-tl-sh-p)}
.pw-fold:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
.pw-band:not(:has(.pw-slim,[data-pw-arline]))>.pw-fold{display:none}
/* NX closed deals (30 Nov): without a running deal the same handle folds the closed-deals block ([data-pw-arfolded], its one line
   stays; lmf-page-deals.css); its chevron says that block's state, never the deal's */
.pw-band:not(:has(.pw-slim)) .pw-fold svg{transform:rotate(-90deg)}
.pw-band:not(:has(.pw-slim))[data-pw-arfolded] .pw-fold svg{transform:rotate(90deg)}
.pw-band.is-folding{clip-path:inset(0 0 -8px 0)}
.pw-band.is-folding .pw-dt>*{animation:pw-fold-in .2s cubic-bezier(.16,1,.3,1)}
@keyframes pw-fold-in{from{opacity:0}}
@media (pointer:coarse){.pw-fold::before{inset:-12px -8px}.pw-fold{width:48px;height:20px}.pw-fold svg{width:14px;height:14px}}
@media (max-width:1000px){
  .pw-band[data-pw-folded]:has(.pw-slim) .pw-dt>.pw-slim{min-height:var(--ui-h-m);margin:8px 0 12px;padding:0 56px 0 12px}
}
@media (max-width:699px){
  .pw-band[data-pw-folded]:has(.pw-slim) .pw-dt>.pw-slim{flex-direction:column;align-items:stretch;gap:2px;white-space:nowrap}
  .pw-slim-a,.pw-slim-b{display:flex;align-items:center;gap:8px;min-width:0}
  .pw-slim-b{padding-left:24px;color:var(--ui-ink-2)}
  .pw-slim .pw-slim-deal{flex:0 1 auto}
  .pw-slim-deal::before{content:none}
}
@media (prefers-reduced-motion:reduce){.pw-fold,.pw-fold svg,.pw-band[data-pw-folded] .pw-slim{transition:none}.pw-band.is-folding .pw-dt>*{animation:none}}
@media (forced-colors:active){.pw-fold{border-color:ButtonText;background:ButtonFace;color:ButtonText}.pw-fold:focus-visible{outline-color:Highlight}.pw-slim-new{background:Highlight}}
/* /DB1 */
}

/* /forest/lmf-page-person.css */
@layer pages{
/* LMF page layout: lmf-page-person.css, owned by P8 (the person block). Linked by P2 so no page package edits index.html.
   B4 P8 (proposal version 3, section B "owner card": drawn values from proposal\src\page.css .pcard, .pmore, .plist): the person
   block LMFPeople.block draws (workspace-people-panel.js) for the property window and, later, the contact window. Rows without a
   box; the block sets data-area="people" on its slot, so its "on", links, ring and tick are mineral slate wherever it sits.
   The same rules hold on a phone: the block is one column of rows at any width (no PHONE-SEAM block needed). */
.pp-bar{display:flex;align-items:center;gap:8px;min-width:0;margin:0}
.pp-h{margin:0;color:var(--ui-ink-2);font:var(--ui-t-head)}
.pp-sp{flex:1}
.pp-card{container-type:inline-size;display:flex;flex-direction:column;gap:3px;min-width:0;margin:0;padding:0;border:0;background:none}
.pp-1{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;min-width:0}
.pp-name{min-width:0;color:var(--ui-ink);font:var(--ui-t-row);overflow-wrap:anywhere}
.pp-2{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px;min-width:0;color:var(--ui-ink-2);font:var(--ui-t-body)}
.pp-2>b{color:var(--ui-ink);font-weight:620;font-variant-numeric:tabular-nums}
.pp-2>.lk,.pp-addr>.lmf-addr-line>.lk{font-weight:400;overflow-wrap:anywhere}   /* B4 DFD: the address now sits in its line run */
.pp-dot::before{content:"\00b7\00a0";color:var(--ui-muted);font-weight:400}
.pp-mut{color:var(--ui-muted);font:var(--ui-t-meta)}
.pp-card .chev,.pp-bar .chev{transform:rotate(90deg)}
.pp-card [aria-expanded="true"]>.chev,.pp-bar [aria-expanded="true"]>.chev{transform:rotate(-90deg)}
.pp-card.is-dnc>.pp-1>.pp-name{color:var(--ui-ink)}
.pp-card .tag svg{width:12px;height:12px}
.pp-more{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:5px 14px;margin:8px 0 0;padding:8px 0 0;border-top:1px solid var(--ui-hair-stone)}
.pp-more>dt{margin:0;color:var(--ui-muted);font:var(--ui-t-meta)}
.pp-more>dd{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;min-height:26px;margin:0;color:var(--ui-ink);font:var(--ui-t-data);overflow-wrap:anywhere}
.pp-mask{letter-spacing:.06em;font-variant-numeric:tabular-nums}
.pp-props>span{display:inline-flex;align-items:baseline;gap:6px}
/* B4 AL1 (decision 77): one line per other property: the name in one column, then the value badge and the forest area chip in
   their fixed slots, so they line up line after line; a missing value shows nothing (decision 78 c) but keeps its slot */
.pp-props:has(.ui-figs){display:grid;row-gap:4px}
.pp-props>span:has(>.ui-figs){display:grid;grid-template-columns:minmax(0,150px) max-content;align-items:center;justify-content:start;column-gap:8px}
.pp-props>span>.pp-prop{justify-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pp-props .ui-figs>.vb.ui-score[data-score-missing]{display:inline-flex}
.pp-prop,.pp-pick{padding:0;border:0;background:none;box-shadow:none;height:auto;color:var(--ui-lk);font:620 var(--ui-fs-m)/1.3 var(--ui-f);text-align:left;text-decoration:underline;text-decoration-color:var(--ui-lk-line);text-underline-offset:2px;text-shadow:none;white-space:normal;cursor:pointer}
.pp-prop:focus-visible,.pp-pick:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px;border-radius:3px}
.pp-list{display:flex;flex-direction:column;margin:8px 0 0;padding:2px 0 0;border-top:1px solid var(--ui-hair-stone)}
.pp-li{display:flex;align-items:center;gap:8px;min-width:0;padding:7px 0;border-bottom:1px solid var(--ui-td-line)}
.pp-li-tx{display:flex;flex:1;flex-direction:column;gap:1px;min-width:0}
.pp-li-tx>small{color:var(--ui-muted);font:var(--ui-t-meta)}
.pp-list-foot{display:flex;padding:8px 0 0}
/* B4 OM1 (decision 146): the owner's home on the property window's map: a quiet house button by each person (26 px on a PC,
   40 px with a 44 px hit area on a phone: the control family's .b.s.ic), and on the map the home pin, a thin dotted line to
   the forest and the distance label. A village or parish centre has a dashed ring round its pin (approximate). */
.pp-home{flex:none}
.pp-home-mk{display:grid;place-items:center;border:0;background:none;cursor:default}
.pp-home-mk>span{display:grid;place-items:center;box-sizing:border-box;width:22px;height:22px;border:2px solid var(--ui-surface);border-radius:6px;background:var(--ui-slate);box-shadow:var(--ui-map-on-drop);color:var(--ui-on-fill)}
.pp-home-mk svg{width:12px;height:12px;stroke-width:2.4}
.pp-home-mk.is-approx>span{outline:2px dashed var(--ui-slate);outline-offset:3px}
.pp-home-line{fill:none;stroke:var(--ui-slate);stroke-width:1.6;stroke-dasharray:1 5;stroke-linecap:round;stroke-opacity:.9}
.pp-home-km{border:0;background:none;pointer-events:none}
.pp-home-km>span{position:absolute;left:0;top:0;transform:translate(-50%,-50%);padding:1px 6px;border-radius:5px;background:var(--ui-surface);box-shadow:var(--ui-map-on-drop);color:var(--ui-slate-ink);font:620 12px/1.4 var(--ui-f);font-variant-numeric:tabular-nums;white-space:nowrap}
.pp-empty{display:flex;align-items:center;gap:8px;color:var(--ui-ink-2);font:var(--ui-t-body)}
.pp-empty svg{width:15px;height:15px;color:var(--ui-ico-mute)}
.pp-card>.v31-notice{margin:6px 0 0}
/* B4 PA1: the owner's address (LMFContacts.addressHtml). The link carries the written-out address; an approximate one has the
   family's quiet "aptuveni" mark (what is approximate in its tooltip); "labot punktu" opens the hand pin for someone who may pin. */
.lmf-addr{overflow-wrap:anywhere}
.lmf-addr-approx{display:inline-block;margin-left:2px;color:var(--ui-muted);font:var(--ui-t-meta);font-style:italic;text-decoration:underline dotted;text-underline-offset:2px;cursor:help;white-space:nowrap}
.lmf-addr-pin{margin-left:4px;font:var(--ui-t-meta);font-weight:400;white-space:nowrap}
/* B4 PA1b: "kopīga adrese", the same quiet mark: the address is the whole property's, maybe only one owner's home (tooltip). */
.lmf-addr-shared{display:inline-block;margin-left:2px;color:var(--ui-muted);font:var(--ui-t-meta);white-space:nowrap} /* design audit r1 b9: a label, not a link (its tooltip stays) */
/* B4 AD1: the quiet copy icon right after the address (no box, the muted icon colour, ink on hover); "Nokopēts" beside it for a
   moment. The negative margins keep the line height; on a touch screen the hit area grows to 44 px without moving the text. */
.lmf-addr-copy{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;margin:-5px -2px -5px 1px;padding:0;border:0;border-radius:var(--ui-r-in,6px);background:transparent;box-shadow:none;color:var(--ui-ico-mute);vertical-align:middle;cursor:pointer}
.lmf-addr-copy:active{box-shadow:none}
.lmf-addr-pc{white-space:nowrap}   /* the postcode never breaks at its dash ("LV-" / "1234") */
/* B4 DFD (Janis, 23 Nov): the copy icon rides on the address's last line. The last word keeps the icon's room (padding, not
   underlined) and never breaks; the icon pulls back into that room, so it adds no width of its own and cannot wrap alone. */
.lmf-addr-end{white-space:nowrap}
.lmf-addr-end-copy{padding-right:27px}
.lmf-addr+.lmf-addr-copy{margin-left:-26px}
.lmf-addr-copy svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover){.lmf-addr-copy:hover{color:var(--ui-ink-2);background:var(--ui-track-hover)}}
.lmf-addr-copy:focus-visible{outline:2px solid var(--ui-a);outline-offset:1px}
.lmf-addr-copy.is-done{color:var(--ui-lk)}
.lmf-addr-copied{margin-left:2px;color:var(--ui-muted);font:var(--ui-t-meta);white-space:nowrap}
.lmf-addr-copied:empty{margin:0}   /* kept rendered (not display:none) so screen readers announce the live region's text */
@media (pointer:coarse){.lmf-addr-copy{width:var(--ui-hit);height:var(--ui-hit);margin:calc(-5px - (var(--ui-hit) - 26px) / 2) calc(-6px - (var(--ui-hit) - 26px)) calc(-5px - (var(--ui-hit) - 26px) / 2) 0;padding-left:5px;justify-content:flex-start}.lmf-addr-end-copy{padding-right:21px}.lmf-addr+.lmf-addr-copy{margin-left:-20px}}   /* grows to the right only: never over the link's last letters */
/* B4 PL1 (owner's decision 107): a person's name is a link to the person. It keeps the name's own weight and ink, with the family's
   thin link underline at rest (so it reads as a link on a phone, where there is no hover); hover darkens the line over a faint
   wash; keyboard focus has the family's 2 px ring. */
.lk.lmf-person{color:inherit;text-decoration-color:var(--ui-lk-line);border-radius:3px;overflow-wrap:anywhere}
.pp-name>.lk.lmf-person,.property-owner-name .lk.lmf-person{font-weight:620}   /* B4 DS4: the row name's weight (was 700) */
@media (hover:hover){.lk.lmf-person:hover{text-decoration-color:currentColor;background:var(--ui-stone-2)}}
.lk.lmf-person:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
/* the "Visi" list: the name opens the person; the rest of the row (role and phone) chooses which person fills the card */
.pp-li-name{min-width:0;color:var(--ui-ink);font:620 var(--ui-fs-m)/1.3 var(--ui-f)}
.pp-pick-rest{display:block;width:100%;height:auto;min-height:0;margin:0;padding:1px 0;border:0;border-radius:3px;background:none;box-shadow:none;color:var(--ui-muted);font:var(--ui-t-meta);text-align:left;text-shadow:none;white-space:normal;cursor:pointer}
.pp-pick-rest>small{color:inherit;font:var(--ui-t-meta)}
@media (hover:hover){.pp-pick-rest:hover{color:var(--ui-ink-2)}}
.pp-pick-rest:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
/* B4 PL1 (owner's decision 108): "Plānot braucienu", a quiet link on its own line under the address (sidebar, deal card,
   Kontakti, the person window); the route icon in the muted icon colour, the words underlined like every link */
.lmf-addr-trip-row{display:block;margin:6px 0 2px}   /* B4 DFD: its own line, clear of the address and its copy icon */
.pp-addr>.lmf-addr-trip-row{flex-basis:100%;margin:6px 0 2px}   /* the deal card's address line wraps: the trip link on a line of its own */
.lk.lmf-addr-trip>svg{position:static;margin:0 5px 0 0;vertical-align:-2px}   /* the space from the icon, also where an older sheet makes the link inline */
/* B4 TB1 (decision 155; proposal plan-buttons/src/tool.css, layer pages): in the owner card the phone and the address each start
   a full-width line behind a small icon; under the address, aligned with its text, its two actions as labelled tool buttons
   (lmf-addr-act, drawn by LMFContacts.addressHtml with options.actions). On a phone the two share the row half and half. */
/* B4 DS1 (decisions 167 and 168, sheet section 5): one grid. The column's two lines are the map's edges: every row of the card starts on
   the left line and ends on the right one. The phone icon and the home tool (it leads the address it shows on the map) share one column,
   a small button wide. */
.pp-facts{display:grid;grid-template-columns:var(--ui-h-s) minmax(0,1fr);column-gap:8px;row-gap:4px;align-items:center;min-width:0;margin-top:2px}
.pp-facts>svg{justify-self:center;width:14px;height:14px;color:var(--ui-ico-mute);stroke-width:1.7}
.pp-facts>.pp-f{min-width:0}
.pp-facts>.pp-tel>b{font:var(--ui-t-data);font-variant-numeric:tabular-nums}
.pp-facts>.pp-addr{display:block}
.pp-facts .lmf-addr-line{color:var(--ui-ink)}
/* the person's tool row, edge to edge: Zvanīt (only with a phone), Kopēt adresi, Plānot braucienu. In a narrower column the two address
   tools leave out their icons before anything wraps. */
.pp-act{display:flex;gap:6px;min-width:0;margin-top:6px}
.pp-act>.b{flex:1 1 auto;min-width:0;text-decoration:none}
.pp-act svg,.lmf-addr-act svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pp-act>.b.is-done,.pp-act>.b.is-done svg{color:var(--ui-pine)}
@media (min-width:701px) and (pointer:fine){@container (max-width:340px){.pp-act:has(>[data-v31-call]):has(>.lmf-addr-trip-t)>:is(.lmf-addr-copy-t,.lmf-addr-trip-t)>svg{display:none}}}   /* a PC only: on a phone they are icons alone (.icp) */
.pp-act>.pp-home-act,.pp-facts>.pp-pin-ph{display:none}   /* B4 OF2-P4: the home tool leads the tool row on a phone only; its pin stands in the facts there */
/* the owner's signature: its state at the left, "Parakstīja" at the right line */
.pp-sg{display:flex;align-items:center;gap:8px;min-width:0;margin-top:6px}
/* "Vairāk par cilvēku": a slim row across the width, the count of other properties in it, a chevron at the end */
.rowb.pp-more-row{gap:8px;min-height:32px;margin-top:10px;padding:4px 0;border-top:1px solid var(--ui-hair-stone);color:var(--ui-ink-2)}
.rowb.pp-more-row .rw-t{font:var(--ui-t-head)}
.rowb.pp-more-row>.pp-mut{flex:none;white-space:nowrap}
.rowb.pp-more-row>.chev{transition:transform var(--ui-t)}
.pp-more-row+.pp-more{margin-top:0;padding-top:4px;border-top:0}
.pp-dc>.tag{padding:0;background:none}   /* its plate is the column's own stone: without it the words start on the left line */
.lmf-addr-act{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 2px}
.lmf-addr-act>.b{text-decoration:none}
.lmf-addr-act>.b.is-done{color:var(--ui-pine)}
.lmf-addr-act>.b.is-done svg{color:var(--ui-pine)}
.lmf-addr-copied-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (max-width:700px),(pointer:coarse){
  .pp-facts{row-gap:6px}
  .pp-facts>svg{width:16px;height:16px}
  /* B4 OF2-P4 (decision 198; lead, from package 2): one row of icons: home, Zvanīt, copy, route (.icp; the words stay for a screen reader) */
  .pp-act{flex-wrap:nowrap;gap:var(--ui-gap)}
  .pp-act>.b{flex:none}
  .pp-act>.pp-home-act{display:inline-flex}
  .pp-facts>.pp-home{display:none}
  .pp-facts>.pp-pin-ph{display:block}
  .rowb.pp-more-row{min-height:44px}
  .lmf-addr-act{flex-wrap:nowrap;gap:var(--ui-gap);margin-top:8px}
}
/* the person window's return row: the tab the person was opened from is marked */
.lk.lmf-addr-trip{display:inline-flex;align-items:center;gap:0;color:var(--ui-ink-2);font:var(--ui-t-meta);font-weight:400;text-decoration:none;border-radius:3px}
.lmf-addr-trip>span{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--ui-lk-line)}
@media (hover:hover){.lk.lmf-addr-trip:hover{color:var(--ui-ink)}.lmf-addr-trip:hover>span{text-decoration-color:currentColor}}
.lmf-addr-trip svg{flex:none;width:14px;height:14px;fill:none;stroke:var(--ui-ico-mute);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media (pointer:coarse){.lk.lmf-addr-trip{min-height:36px}}
/* B4 PL1 (owner's decision 115): in "Labot", the person's role and share in the property they were opened from: one sunk band on
   top of the contact fields, the role and the share side by side (stacked on a narrow screen) */
.contacts-stake-form{margin:0 0 14px}
.contacts-stake-form>fieldset{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px;min-width:0;margin:0;padding:12px 14px 14px;border:0;border-radius:var(--ui-r-in,8px);background:var(--ui-stone-2)}
.contacts-stake-form legend{float:left;width:100%;margin:0 0 2px;padding:0;color:var(--ui-ink-2);font:620 var(--ui-fs-m)/1.3 var(--ui-f)}
.contacts-stake-form label{display:flex;flex-direction:column;gap:4px;min-width:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.contacts-stake-form label:last-child{margin-left:auto}
.contacts-stake-form .in{width:140px}
.contacts-stake-role{display:flex;align-items:baseline;gap:8px;min-height:32px;padding-top:6px;color:var(--ui-ink);font:620 var(--ui-fs-m)/1.3 var(--ui-f)}   /* the register's role, as text */
.contacts-stake-role>small{color:var(--ui-muted);font:var(--ui-t-meta)}
@media (max-width:520px){.contacts-stake-form label:last-child{margin-left:0}.contacts-stake-form .in{width:100%}.contacts-stake-form label{flex:1 1 140px}}
/* B4 W5: with a signature tag after the role, the phone wraps the tags under the name instead of breaking the name */
@media (max-width:600px){.pp-1:has([data-pp-sign-state])>.pp-name{flex:1 0 100%}}
/* design audit r1 M10, the person window opened from a property: the property's tabs are not the person's ("Atpakaļ uz īpašumu"
   returns to the tab it came from), the dataset line has no action, (B4 CT1: the linked properties' columns are in lmf-page-people.css) */
.contacts-detail-header>.contacts-property-tabs,.contacts-detail-header~p[data-workspace-origin]{display:none}
/* B4 DFC (audit r2 N9): a person with no history yet shows no empty "Vēsture" heading (it comes back with the first entry) */
.contacts-history-heading:has(>h3:only-child):has(+ :empty){display:none}
}

/* /forest/lmf-page-forest.css */
@layer pages{
/* LMF page layout: lmf-page-forest.css, owned by P10 (Meža dati). Stub linked by P2 so no page package edits index.html.
   B4 P10 (proposal version 3, section D): the stand table of the property window's "Meža dati" tab in the family's look.
   GOVERNED DATA: presentation only. No rule here hides a figure or a word of the table, with one stated exception: the stand
   header's "Ierobežojumi" chip is not drawn when the stand has none (the answer stays in "Detaļas").
   The table is the one workspace-property-focus.js groups (.property-forest-ledger); its PC form is layout "band", and
   [data-forest-layout=band] is that table and nothing else.
   The table rules sit inside @media (min-width:601px), where the script switches from the phone table to layout "band"; the
   two-column frame from 1001 px, where the window's own frame starts (lmf-page-property.css). The phone table (layout
   "phone", up to 600 px) is not styled here. The legacy sheet's forced declarations that this sheet restates are listed in
   P10-legacy-deletions.json (the forcing flag goes; each declaration stays). */

/* ---- "Drukāt" in the toolbar, the totals and "Detaļas" in place: parts that exist only in the framed PC window ---------- */
/* Below 1001 px they take no part: the toolbar is a plain block around the value calculation line (which keeps its legacy
   look), its "Drukāt" is not drawn (the phone header has the print button), nothing is moved into .fd-side. PHONE-SEAM. */
.fd-print{display:none}
.fd-side{display:contents}
.fd-brief{display:none}

/* B4 DS2 (decision 168): the stand line's tools (Info, the map, Detaļas) are one look on every width */
@media (min-width:601px){
  /* ---- the table: one surface, hairlines, a calm header ------------------------------------------------------------- */
  /* B4 HL1 (decision 240 item 2): column labels in the table's own ink and the label weight (--ui-t-head), units muted and regular */
  .property-forest-ledger-wrap{overflow:clip;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-surface)}
  [data-forest-layout=band]{--fd-suga-min:120px;--fd-value-min:176px;table-layout:auto;margin-bottom:-1px;color:var(--ui-ink);font:var(--ui-t-body);font-variant-numeric:tabular-nums lining-nums}
  [data-forest-layout=band]>thead th{box-sizing:border-box;width:84px;min-width:0;height:var(--ui-h-m);padding:0;border:0;background:var(--ui-stone-2);color:var(--ui-ink);font:var(--ui-t-head);letter-spacing:0;text-align:right;text-transform:none;vertical-align:middle}
  [data-forest-layout=band]>thead th:first-child{width:auto;min-width:var(--fd-suga-min);text-align:left}
  [data-forest-layout=band]>thead th[data-measure-column="6"]{width:auto;min-width:var(--fd-value-min)}
  [data-forest-layout=band]>thead th[data-measure-column="5"]{width:100px}
  [data-forest-layout=band]>thead th[data-measure-column="4"]{width:108px}
  [data-forest-layout=band] .property-measure-toggle{display:flex;align-items:baseline;justify-content:flex-end;gap:0;width:100%;min-width:0;height:var(--ui-h-m);min-height:0;margin:0;padding:0 10px;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:var(--ui-t-head);line-height:var(--ui-h-m);text-shadow:none;white-space:nowrap;cursor:pointer}
  [data-forest-layout=band] th:first-child>.property-measure-toggle{justify-content:flex-start}
  [data-forest-layout=band] th:is([data-measure-column="1"],[data-measure-column="2"],[data-measure-column="3"],[data-measure-column="4"],[data-measure-column="5"])>.property-measure-toggle{padding:0 7px}
  [data-forest-layout=band] tr[data-next-component]>td:is([headers*="measure-column-1"],[headers*="measure-column-2"],[headers*="measure-column-3"],[headers*="measure-column-4"],[headers*="measure-column-5"]){padding-inline:7px}
  [data-forest-layout=band] .property-measure-toggle:hover{background:var(--ui-stone-3);color:var(--ui-ink)}
  [data-forest-layout=band] .property-measure-toggle:focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
  [data-forest-layout=band] .property-measure-toggle[aria-pressed=true]{box-shadow:inset 0 -2px var(--ui-a);color:var(--ui-a-ink)}
  [data-forest-layout=band]>thead th.is-column-highlighted{background:var(--ui-pine-tint)}
  /* the unit joins the header's line: "Krāja, m³" */
  .property-forest-ledger .next-component-unit{display:inline;color:var(--ui-muted);font:var(--ui-t-meta);font-weight:400}
  [data-forest-layout=band] .next-component-unit::before{content:", "}
  [data-forest-layout=band] .next-component-label{font:var(--ui-t-head)}

  /* ---- tree-group rows: 28 px, numbers right-aligned in tabular digits ------------------------------------------------ */
  .property-forest-ledger tr[data-next-component]>td{text-align:right;font-variant-numeric:tabular-nums lining-nums}
  [data-forest-layout=band] tr[data-next-component]>:is(th,td):not(.property-stand-meta-cell){box-sizing:border-box;min-width:0;max-width:none;height:var(--ui-row-h);padding:3px 10px;border:0;border-bottom:1px solid var(--ui-line);background:var(--ui-surface);color:var(--ui-ink);font:var(--ui-t-body);font-variant-numeric:tabular-nums lining-nums;line-height:20px;vertical-align:middle;white-space:nowrap}
  .property-forest-ledger tr[data-next-component]:nth-child(even)>:is(th,td):not(.property-stand-meta-cell){background:var(--ui-surface)}
  [data-forest-layout=band] tr[data-next-component]>th[scope=row]{min-width:var(--fd-suga-min);text-align:left;white-space:nowrap}
  [data-forest-layout=band] tr[data-main-species]>th[scope=row]{font-weight:620}
  [data-forest-layout=band] .next-main-species-note{display:inline;color:var(--ui-muted);font:var(--ui-t-meta)}
  [data-forest-layout=band] tr[data-species-role=other]>:is(th,td):not(.property-stand-meta-cell){color:var(--ui-ink-2)}
  /* the value is the row's strongest figure; its readiness words stay as they are, before it on the same line. B4 P10c: the
     words and the figure are one flex line (.fd-vpair, made by pairValueCells): the words wrap only when the column cannot hold
     them, and the figure then stays on their first line (baseline). The value column has a minimum, never a cap. */
  [data-forest-layout=band] tr[data-next-component]>td[headers*="measure-column-6"]{font:var(--ui-t-score);font-variant-numeric:tabular-nums lining-nums;line-height:20px;white-space:normal}
  [data-forest-layout=band] tr[data-next-component]>td[headers*="measure-column-5"]{font-weight:620}
  [data-forest-layout=band] .next-readiness-step{float:none;display:block;max-width:none;margin:0;color:var(--ui-muted);font:var(--ui-t-meta);line-height:20px;text-align:left;white-space:normal}
  [data-forest-layout=band] .fd-vpair{display:flex;align-items:baseline;justify-content:space-between;gap:0 8px;min-width:0}
  [data-forest-layout=band] .fd-vpair>.next-readiness-step{order:-1;flex:0 1 auto;min-width:0}
  [data-forest-layout=band] .fd-vfig{flex:none;margin-left:auto;white-space:nowrap}
  [data-forest-layout=band] .next-not-counted{color:var(--ui-muted);font:var(--ui-t-meta);line-height:20px}
  [data-forest-layout=band] .next-reference-value{min-height:0;line-height:20px}
  /* hover, the highlighted column and the stand picked on the map: tints of the area, never a stripe */
  [data-forest-layout=band] tr[data-next-component]>.is-column-highlighted:not(.property-stand-meta-cell){background:var(--ui-pine-soft);box-shadow:none}
  .is-map-selected>tr[data-next-component]>:is(th,td):not(.property-stand-meta-cell){background:var(--ui-pine-soft)}
  [data-forest-layout=band] tr[data-next-component]:hover>:is(th,td):not(.property-stand-meta-cell){background:var(--ui-pine-soft)}

  /* ---- the stand header: one line of facts led by the value, a second quiet line ---------------------------------------- */
  [data-forest-layout=band] .property-stand-separator>td{padding:0;border:0;border-top:1px solid var(--ui-line-2);border-bottom:1px solid var(--ui-line);background:var(--ui-a-soft);text-align:left;white-space:normal;vertical-align:middle}
  .is-map-selected>.property-stand-separator>td{background:var(--ui-pine-tint)}
  [data-forest-layout=band] .property-stand-group>.next-stand-header{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:2px 16px;min-height:0;margin:0;padding:5px 6px 5px 10px;border:0}
  [data-forest-layout=band] :is(.property-stand-heading,.property-stand-context){display:contents}
  [data-forest-layout=band] .property-stand-heading h3{order:1;margin:0;color:var(--ui-ink);font:620 var(--ui-fs-m)/1.4 var(--ui-f);white-space:nowrap}
  [data-forest-layout=band] .property-stand-value{order:2}
  [data-forest-layout=band] .property-stand-area{order:3}
  [data-forest-layout=band] .property-stand-volume{order:4}
  [data-forest-layout=band] .property-stand-site{order:5}
  [data-forest-layout=band] details.property-stand-restriction{order:6}
  [data-forest-layout=band] .property-stand-actions{order:7;display:flex;align-items:center;gap:4px;margin:0 0 0 auto}
  [data-forest-layout=band] .property-stand-group>.next-stand-header::after{content:"";order:8;flex:0 0 100%;height:0}
  [data-forest-layout=band] .property-stand-inventory{order:9}
  [data-forest-layout=band] .next-stand-header>.property-stand-lowered{order:10;color:var(--ui-muted);font:var(--ui-t-meta)}
  [data-forest-layout=band] .property-stand-cutting{order:11;color:var(--ui-muted);font:var(--ui-t-meta)}
  [data-forest-layout=band] :is(.property-stand-value,.property-stand-area,.property-stand-volume,.property-stand-site,.property-stand-inventory){display:flex;align-items:baseline;gap:5px;margin:0;padding:0;border:0}
  [data-forest-layout=band] :is(.property-stand-value,.property-stand-area,.property-stand-volume,.property-stand-site) :is(dt,dd){margin:0;color:var(--ui-ink-2);font:var(--ui-t-body);white-space:nowrap}
  [data-forest-layout=band] :is(.property-stand-area,.property-stand-volume,.property-stand-site) dd{color:var(--ui-ink);font-weight:620}
  [data-forest-layout=band] .property-stand-volume :is(strong,small){color:var(--ui-ink);font:620 var(--ui-fs-m)/1.4 var(--ui-f)}
  [data-forest-layout=band] .property-stand-index{color:var(--ui-ink);font:var(--ui-t-score)}
  /* the second line: inventory year, the stand's readiness cue, the last recorded cutting */
  [data-forest-layout=band] .property-stand-inventory :is(dt,dd){margin:0;color:var(--ui-muted);font:var(--ui-t-meta);white-space:nowrap}
  /* "Ierobežojumi" only when there is one; unknown stays visible as unknown */
  [data-forest-layout=band] details.property-stand-restriction[data-restriction=no]{display:none}
  /* B4 OF2-P2 (decision 196): the restriction is the family's tag you can press (.tag.act; .late when restricted, .warn when seasonal) */

  /* ---- the stand's three controls: B4 OF2-P2 (decisions 188, 195, 196) the family draws them: "i" is the info disc (.info),
     "Detaļas" a small tool disclosure (summary.b.s.t, the family's chevron), the map the round icon tool (.b.s.t.ic) ---- */
  /* "Detaļas" is a disclosure: the chevron after the word, turned when open */
  /* B4 OF2-P2 (Sol's review): "Detaļas" keeps the family's own chevron (summary.b::before); ::after is the family's tap box on touch */
  details[data-stand-inline]>summary>svg{display:none}
}

/* ---- "Detaļas" in place: a full-width row under the stand header ---------------------------------------------------- */
/* B4 DT1 (decision 150): on the PC table and, since this package, on the phone table too (it opens under the stand block
   instead of as a floating card), so these rules hold at every width. While the panel waits inside its <details> it is never
   drawn as a floating panel. */
:is([data-forest-layout=band],[data-forest-layout=phone]) details[data-stand-inline]>.property-stand-info-panel{display:none}
.property-stand-details-row>td{padding:0;border:0;border-bottom:1px solid var(--ui-line);background:var(--ui-surface);text-align:left;white-space:normal}
.property-stand-info-panel.is-inline{position:relative;inset:auto;z-index:auto;box-sizing:border-box;width:auto;max-width:none;max-height:none;margin:0;padding:8px 44px 10px 10px;overflow:visible;border:0;border-radius:0;outline:0;background:none;box-shadow:none;color:var(--ui-ink);font:var(--ui-t-body)}
.property-stand-info-panel.is-inline>.property-stand-info-top{position:absolute;top:4px;right:6px;margin:0;padding:0;border:0}
.is-inline>.property-stand-info-top>h4{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.is-inline .property-stand-info-close{display:inline-flex;align-items:center;justify-content:center;width:var(--ui-h-s);height:var(--ui-h-s);min-height:0;padding:0;border:1px solid transparent;border-radius:var(--ui-r);background:none;box-shadow:none;color:var(--ui-ink-2);text-shadow:none;cursor:pointer}
.is-inline .property-stand-info-close:hover{background:var(--ui-wash);color:var(--ui-ink)}
.is-inline .property-stand-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 20px;margin:0}
.is-inline .property-stand-info-grid>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;min-width:0;margin:0;padding:0;border:0}
.is-inline .property-stand-info-grid dt{flex:none;margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.is-inline .property-stand-info-grid dd{flex:0 0 auto;max-width:100%;margin:0;color:var(--ui-ink);font:var(--ui-t-data);text-align:left;overflow-wrap:break-word}
.is-inline .property-stand-info-grid>.property-stand-reason-pair{grid-column:1/-1;flex-wrap:wrap}
.is-inline .property-stand-reason{display:block;flex:1 1 100%;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.is-inline .property-stand-damage{margin:8px 0 0;padding:8px 0 0;border-top:1px solid var(--ui-line)}
.is-inline .property-stand-damage h5{margin:0 0 4px;color:var(--ui-ink-2);font:var(--ui-t-head)}
@media (max-width:600px){
  /* the phone table is wider than the screen and scrolls sideways in its box; the panel, like the stand block above it, keeps to the
     screen's width and stays in view (the legacy phone rule for the stand header: sticky, 100vw less the window's edges) */
  .property-stand-info-panel.is-inline{position:sticky;left:0;width:calc(100vw - 52px);max-width:100%;padding:4px 12px 6px}
  .property-stand-info-panel.is-inline>.property-stand-info-top{top:2px;right:4px}
  .is-inline .property-stand-info-grid{grid-template-columns:minmax(0,1fr)}
}

/* ---- B4 P10c: a window too narrow for the whole table (1001 to 1199 px framed; 601 to 1199 px in all) ----------------------
   The columns keep real minimums (the species never breaks, the value keeps its words beside the figure as far as it can); what
   the box cannot hold scrolls sideways INSIDE the table's own box, with the species column held in place and each stand's header
   and "Detaļas" held to the box's width, so nothing is cut and the page never scrolls sideways. From 1200 px nothing scrolls. In
   the framed window the right column is 340 px up to 1279 px instead of 400. The held column has a hairline edge, the scrollbar is
   the thin one in the line colour, and a control focused by keyboard scrolls clear of the held column (scroll padding) (its map tools may take two lines). The legacy sheet
   lays the table out "fixed" (workspace-property-focus.css:938): the fixed measure widths then left the species column whatever
   was left, down to 0 px, which was the collapse. The PC table is laid out "auto" (stated in the band rule), so minimums hold. */
@media (min-width:601px) and (max-width:1199px){
  [data-forest-layout=band]{--fd-value-min:150px}
}
/* B4 P10d (lead, real-data smoke 3): the box scrolls inside itself up to 1439 px, not 1199: at 1201 to about 1310 px (a 1280 screen) the table is still wider than its box, and the clip hid the last column and the stand map buttons. Where the table fits, nothing scrolls. */
@media (min-width:601px) and (max-width:1439px){
  .property-forest-ledger-wrap{container-type:inline-size;overflow-x:auto;overscroll-behavior-x:contain;scroll-padding-inline-start:200px;scrollbar-width:thin;scrollbar-color:var(--ui-line-2) transparent}
  [data-forest-layout=band] tr[data-next-component]>th[scope=row]{position:sticky;left:0;z-index:2;box-shadow:inset -1px 0 var(--ui-line)}
  [data-forest-layout=band]>thead th:first-child{position:sticky;left:0;z-index:4;box-shadow:inset -1px 0 var(--ui-line)}
  :is(.property-stand-separator,.property-stand-details-row)>td>*{position:sticky;left:0;box-sizing:border-box;width:100cqi;max-width:100cqi}
}

@media (min-width:1001px){
  /* ---- the framed window: two columns on this tab too ------------------------------------------------------------------ */
  /* only while the script has built the right column (.fd-side): without it the tab keeps the legacy layout and its side card */
  .pw-win[data-pw=forest] .parcel-layout.fd-framed{display:block;padding:0}
  .pw-win[data-pw=forest] .parcel-layout.fd-framed>.parcel-aside{display:none}
  .pw-win[data-pw=forest] .property-focus-forest.fd-two{display:grid;grid-template-columns:minmax(0,1fr) 400px;align-items:start;gap:0;box-sizing:border-box;width:auto;max-width:none;margin:0;padding:0}
  .pw-win[data-pw=forest] .property-focus-forest.fd-two>*{grid-column:1;box-sizing:border-box;min-width:0;margin-inline:18px}
  .pw-win[data-pw=forest] .property-focus-forest>.fd-side{grid-column:2;grid-row:1/span 40;position:sticky;top:0;display:flex;flex-direction:column;gap:0;align-self:start;box-sizing:border-box;min-width:0;height:calc(min(756px,100dvh - 24px) - 52px);margin:0;padding:2px 18px 14px;overflow-x:hidden;overflow-y:auto;border-left:1px solid var(--ui-line);background:var(--ui-stone-col)}
  .fd-side~[data-next-tab-body]{margin-block:14px}
  .pw-win[data-pw=forest] .next-forest-data{margin:0}
  /* the table's toolbar: the value calculation line and "Drukāt" */
  .fd-bar{display:flex;align-items:center;gap:8px;min-width:0;min-height:var(--ui-h-m);margin:0 0 8px}
  .fd-bar>.next-value-calculation{flex:1;min-width:0;max-width:none;margin:0;color:var(--ui-muted);font:var(--ui-t-meta)}
  .fd-print{display:flex;flex:none;margin-left:auto}
  .fd-side>*{flex:none}
  /* B4 P10b: the map block (.fd-map: the grip line with the map tools, the map, its status lines) in either place */
  .pw-win[data-pw=forest] .property-focus-forest{--fd-map-side:250px;--fd-map-top:280px}
  .fd-map{display:flex;flex-direction:column;min-width:0;margin:12px 0 0}
  .fd-map-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin:0 0 8px}
  .fd-map-head>.pw-maptools{flex:1 1 auto;min-width:0;margin:0;gap:6px}
  .fd-map-head>.pw-maptools>.property-focus-nearby{gap:6px}
  /* B4 MB1 (decision 106): the map's show / hide (an icon), the radius ("5 km") and "Atlasīt" are small enough to share the grip
     line in both places, so the map starts right under it (the rule for the small tools: below, outside this block) */
  .fd-map>.property-focus-map-frame{margin:0;border-radius:var(--ui-r-pop);overflow:hidden}
  .pw-win[data-pw=forest] .fd-map[data-place=side] .detail-map{height:var(--fd-map-side);min-height:0}
  .pw-win[data-pw=forest] .fd-map[data-place=top] .detail-map{height:var(--fd-map-top);min-height:0}
  .fd-map>p{margin:6px 0 0;color:var(--ui-muted);font:var(--ui-t-meta)}
  .fd-side>.fd-brief:first-child{margin-top:12px;padding-top:0;border-top:0}
  .fd-side>.property-owner-box:first-child{border-top:0}
  /* "Mežs īsumā": the renderer's own totals, the property value first and strongest */
  .pw-win[data-pw=forest] .fd-brief{display:flex;flex-direction:column;gap:8px;margin:14px 0 0;padding:12px 0;border-top:1px solid var(--ui-hair-stone)}
  .fd-brief-t{margin:0;color:var(--ui-ink-2);font:var(--ui-t-head)}
  .fd-brief>.next-codecraft-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 12px;margin:0;padding:0;border:0}
  .fd-brief>.next-codecraft-summary>div{display:contents}
  .fd-brief>.next-codecraft-summary dt{margin:0;color:var(--ui-ink-2);font:var(--ui-t-body)}
  .fd-brief>.next-codecraft-summary dd{margin:0;color:var(--ui-ink);font:700 var(--ui-fs-m)/1.4 var(--ui-f);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
  .fd-brief div.fd-lead>*{order:-1}
  .fd-brief [data-codecraft-property=value]>strong{font:750 var(--ui-fs-score-lead)/1.2 var(--ui-f)}
  .fd-brief dd small{margin-left:4px;color:var(--ui-muted);font:var(--ui-t-meta)}
  .fd-brief dd>.next-codecraft-partial::before{content:"· "}
  /* the owner card's two folds and the table's closing fold on the control scale */
  .fd-side .property-owner-more>summary{min-height:0;height:var(--ui-h-m)}
  .fd-side .property-owner-others-toggle{min-height:0;height:var(--ui-h-m)}
  .pw-win[data-pw=forest] .next-forest-details>summary{width:max-content;margin:8px 0}
  .fd-side>.property-owner-box{margin:0;padding:12px 0;border:0;border-top:1px solid var(--ui-hair-stone);border-radius:0;background:none;box-shadow:none}
}
@media (min-width:1001px) and (min-height:1000px){
  .pw-win[data-pw=forest] .property-focus-forest>.fd-side{height:calc(min(920px,100dvh - 96px) - 52px)}
  .pw-win[data-pw=forest] .property-focus-forest{--fd-map-top:380px}
}
/* B4 P10c: below 1280 px the five measure columns take only their header's width, so the space left goes to the species and
   the value first (their words then fit on one line wherever the window allows) */
@media (min-width:601px) and (max-width:1279px){
  [data-forest-layout=band]>thead th:is([data-measure-column="1"],[data-measure-column="2"],[data-measure-column="3"],[data-measure-column="4"],[data-measure-column="5"]){width:1px}
}
/* B4 P10c: from 1280 px the readiness words always stay on the figure's line (at 1280 the species and value columns share 382 px;
   the longest words, "slieksnis nav sasniegts · n %", need about 200 with the figure) and the species column takes the spare
   width, as P10's drawing has it. Below 1280 both share the space by their content and the words wrap only when they must. */
@media (min-width:1280px){
  [data-forest-layout=band]>thead th:first-child{width:100%}
  [data-forest-layout=band] .fd-vpair>.next-readiness-step{white-space:nowrap}
}
/* B4 P10c: the right column is 340 px from 1001 to 1439 px (P10d; after the 1001 px rule, which it narrows) */
@media (min-width:1001px) and (max-width:1439px){
  .pw-win[data-pw=forest] .property-focus-forest.fd-two{grid-template-columns:minmax(0,1fr) 340px}
}
/* ---- B4 P10b: moving the map (decision 41). The grip and the move button are the family's small raised controls (26 px);
   the drag lights the place the map will land in (pine tint from the area tokens); the move lands with a short fade. Only in
   the framed PC window: the script builds none of this below 1001 px. ------------------------------------------------------ */
@media (min-width:1001px){
  .fd-grip{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
  /* the app's grip icon (two bars, as on the trips page) turned a quarter: upright bars in a raised box read as "pause" */
  .fd-grip svg{transform:rotate(90deg)}
  /* the marks are the host's own absolute children: not grid cells, no column margin (P10's rule gives every child both) */
  .pw-win[data-pw=forest] .property-focus-forest.fd-two>:is(.fd-drop,.fd-ghost){grid-column:auto;grid-row:auto;margin:0}
  .fd-grip:active,.fd-dragging,.fd-dragging *{cursor:grabbing}
  .fd-dragging{position:relative;user-select:none;-webkit-user-select:none}
  .fd-map{transition:opacity 120ms ease-out}
  .fd-map.fd-lifted{opacity:.45}
  .fd-map.fd-landed{animation:fd-land 180ms ease-out}
  .fd-drop{position:absolute;z-index:6;box-sizing:border-box;border:1.5px dashed var(--ui-a-line);border-radius:var(--ui-r-pop);background:none;pointer-events:none;transition:background-color 120ms ease-out,border-color 120ms ease-out}
  .fd-drop.is-target{border-style:solid;border-color:var(--ui-a);background:var(--ui-a-soft)}
  .fd-ghost{position:absolute;left:0;top:0;z-index:7;display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;height:var(--ui-h-s);padding:0 10px;border:1px solid var(--ui-raise-line);border-radius:var(--ui-r);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh);color:var(--ui-ink);font:var(--ui-t-head);white-space:nowrap;pointer-events:none}
  .fd-ghost svg{width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-ink-2);stroke-width:1.7}
}
/* B4 MB1 (decision 106): the map tools row of Meža dati (.pw-maptools: show / hide, the radius, "Atlasīt") at the small control
   size, on the grip line (PC) and as its own short line above the map (below 1001 px and the phone, where there is no grip line):
   show / hide is the family's small icon button (workspace-property-focus.js labels it), the word "Tuvumā" leaves the view (the
   group's name, "Nogabalu atlase tuvumā", and the radius' tooltip keep it), the radius reads "5 km". 40 px on touch screens
   through the tokens. Its pressed look is the family's (.b[aria-expanded=true]): "on" while the map shows, plain with the map
   icon struck through while it is hidden. */
.pw-maptools{gap:6px}
.pw-maptools>.property-focus-nearby{gap:6px}
.pw-maptools select{width:auto;min-width:0;max-width:none}   /* B4 OF2-P2: its size is the family's small dropdown (.sel.s) */
.pw-maptools>.property-focus-nearby>label{gap:0}
/* B4 DS1 (decision 167, sheet section 5): the map toolbar runs from the map's left edge to its right one, in both places: the icon tools
   hold the left line; the radius and "Atlasīt" share the rest to the right line. On a wide map (the map on top) they stop at 168 px and
   hold the right edge, so no tool ever changes its place in the row. */
.pw-maptools,.fd-map-head>.pw-maptools{flex-wrap:nowrap}
.pw-maptools>.property-focus-nearby{flex:1 1 auto;justify-content:flex-end;min-width:0;padding:0}
.pw-maptools>.property-focus-nearby>label{flex:1 1 0;max-width:168px;min-width:0}
.pw-maptools>.property-focus-nearby>button{flex:none}   /* B4 OF2-P2 (decision 198): "Atlasīt" is as wide as its word, never half the row */
.pw-maptools label>:is(.ui-sel,select:not(.ui-sel-src)){flex:1 1 auto;width:100%}
.pw-maptools .property-focus-nearby-word{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}
@keyframes fd-land{from{opacity:.35;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .fd-map,.fd-drop{transition:none}
  .fd-map.fd-landed{animation:none}
}

/* ---- B4 PT1 (decisions 52, 53, 54): marks in place of words, whole m³, the stand header as one line of labelled facts ----------
   PRESENTATION ONLY. The words stay in the page: the sheet only takes them out of view, so screen readers read today's words and a
   copied row carries them; each mark has the same words as its tooltip. Only the PC table (layout "band") draws marks: everywhere
   else .fd-mk is not drawn and the words show as today (the phone and the side layout keep today's table). New visible text is drawn
   from a data attribute with an empty spoken alternative (content: attr() / ""), so no cell's text changes. Marks 15 px, the app's
   icon set (stroke 1.8, round), colours from the status tokens and never colour alone: every state has its own shape. */
.fd-mk{display:none}
[data-forest-layout]:not([data-forest-layout=band]) .fd-legend{display:none}
@media (min-width:601px){
  [data-forest-layout=band]{--fd-value-min:96px;--fd-actions:148px}
  [data-forest-layout=band] .fd-mk{display:inline-flex;flex:none;align-items:center;justify-content:center;width:15px;height:15px;color:var(--ui-ink-2);vertical-align:-3px}
  [data-forest-layout=band] .fd-mk>svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  /* the words: in the page, out of view */
  [data-forest-layout=band] :is(.next-main-species-note,.next-readiness-step>.fd-words,.next-not-counted-full,.property-volume-check>.fd-words,.property-stand-cutting>.fd-words,.property-stand-inventory>dt,.property-stand-lowered,.fd-exact){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}
  [data-forest-layout=band] .next-not-counted-short{display:none}
  /* the species' role: the stand's main species a pine tree, every other tree group a small ring (the data carries no second or
     third level: only the main species, its other counted groups of the same species, and the rest) */
  [data-forest-layout=band] th[scope=row]>.fd-mk{margin-right:6px}
  [data-forest-layout=band] .fd-mk[data-fd-mark=main]{color:var(--ui-pine)}
  [data-forest-layout=band] .fd-mk[data-fd-mark=main]>svg{fill:var(--ui-pine-tint)}
  [data-forest-layout=band] .fd-mk[data-fd-mark=other]{color:var(--ui-muted)}
  /* readiness: met a tick, not met a cross, almost ready an hourglass, age only a clock; the mark at the row's far right, the figure just left (AL2) */
  [data-forest-layout=band] .fd-vpair{align-items:center}
  [data-forest-layout=band] .fd-vpair>.next-readiness-step{display:inline-flex;align-items:center}
  [data-forest-layout=band] .fd-mk[data-fd-mark=met]{color:var(--ui-pine)}
  [data-forest-layout=band] .fd-mk[data-fd-mark=not-met]{color:var(--ui-clay)}
  [data-forest-layout=band] .fd-mk[data-fd-mark=almost]{color:var(--ui-warn-ink)}
  [data-forest-layout=band] .fd-mk[data-fd-mark=age-only]{color:var(--ui-slate)}
  /* "netiek skaitīta": the row reads in the muted ink, its value cell an empty-set mark */
  [data-forest-layout=band] tr.fd-nc>:is(th,td):not(.property-stand-meta-cell){color:var(--ui-muted)}
  [data-forest-layout=band] .fd-mk[data-fd-mark=not-counted]{color:var(--ui-muted)}
  /* B4 AL2 (decision 151, replaces AL1's decision 135 order; AL2b, Janis 24 Nov: the map button left of "Detaļas", 8 px apart,
     "Detaļas" right-most): every status mark at the row's far right, centred in one fixed slot var(--ui-h-s) wide whose right edge
     is the head row's right edge, the right edge of "Detaļas" (the actions sit 6 px in, a mark 15 px), so the value cell's
     right padding is 6px + (var(--ui-h-s) - 15px) / 2. The badge stands 6 px left of the mark (PT2's .fd-vpair gap), one fixed width
     (PB1's data-col, 78 px), so its right edge is one line; a row that is not counted has only its crossed circle, in the same column,
     and the badge's place stays empty; a counted row without a readiness mark keeps the mark's place and the gap empty */
  [data-forest-layout=band] .fd-vpair>.next-readiness-step{order:1}
  [data-forest-layout=band] .property-stand-actions>[data-map-stand]{margin-right:4px}
  [data-forest-layout=band] tr[data-next-component]>td[headers*=forest-measure-column-6]:not(.property-stand-meta-cell){padding-right:calc(6px + (var(--ui-h-s) - 15px) / 2)}
  [data-forest-layout=band] td[headers*=forest-measure-column-6]>.fd-badged{margin-right:calc(15px + 6px)}
  /* B4 DT1 (lead, after AL2): the "Vērtība" column title ends on the badges' right edge, not over the marks: the cell's right padding,
     the mark and the gap */
  [data-forest-layout=band] th[data-measure-column="6"]>.property-measure-toggle{padding-right:calc(6px + (var(--ui-h-s) - 15px) / 2 + 15px + 6px)}
  /* the volume check: the warning mark in place of the word, the button keeps its spoken name */
  [data-forest-layout=band] .property-volume-check{margin:0 0 0 4px}   /* B4 OF2-P2: the family's tag you can press (.tag.act.warn) */
  [data-forest-layout=band] .fd-mk[data-fd-mark=check]{color:var(--ui-warn-ink)}
  /* volume in whole m³; the exact figure in the tooltip */
  [data-forest-layout=band] .fd-round::before{content:attr(data-fd-show) / ""}
  /* ---- the stand header: one line, the value first; the actions held at the right; the tags wrap together when the line is full */
  [data-forest-layout=band] .property-stand-group>.next-stand-header{position:relative;gap:4px 11px;min-height:36px;padding-right:calc(var(--fd-actions) + 8px)}
  [data-forest-layout=band] .property-stand-group>.next-stand-header::after{content:none}
  [data-forest-layout=band] .property-stand-actions{position:absolute;top:5px;right:6px;margin:0}
  [data-forest-layout=band] .property-stand-inventory{order:7}
  [data-forest-layout=band] .property-stand-cutting{order:8}
  [data-forest-layout=band] .property-stand-value>dd{display:inline-flex;align-items:center;gap:6px}
  [data-forest-layout=band] .fd-vnote::before{content:attr(data-fd-show) / "";color:var(--ui-ink-2);font:var(--ui-t-meta);white-space:nowrap}
  /* the inventory tag: a calendar mark, the year and its age; tone by the guide's steps (up to 5 years quiet, 6 to 10 and 11 to 20
     amber, over 20 clay) */
  [data-forest-layout=band] .property-stand-inventory{display:inline-flex;align-items:center;box-sizing:border-box;height:20px;padding:0 8px 0 6px;border-radius:10px;background:var(--ui-stone-2);color:var(--ui-ink-2)}
  [data-forest-layout=band] .property-stand-inventory>dd{display:inline-flex;align-items:center;gap:4px;margin:0;color:inherit;font:620 12px/1 var(--ui-f);white-space:nowrap}
  [data-forest-layout=band] .property-stand-inventory>dd[data-fd-age]::after{content:"· " attr(data-fd-age) / ""}
  [data-forest-layout=band] :is(.property-stand-inventory,.property-stand-cutting) .fd-mk{width:14px;height:14px;color:inherit}
  [data-forest-layout=band] .property-stand-inventory[data-fd-tone="1"]{background:var(--ui-ochre-tint);color:var(--ui-ochre-ink)}
  [data-forest-layout=band] .property-stand-inventory[data-fd-tone="2"]{background:var(--ui-warn-tint);color:var(--ui-warn-ink)}
  [data-forest-layout=band] .property-stand-inventory[data-fd-tone="3"]{background:var(--ui-clay-tint);color:var(--ui-clay)}
  [data-forest-layout=band] .property-stand-inventory[data-fd-tone=unknown]{color:var(--ui-muted)}
  /* the cutting tag: a stump; recorded: the kind and the year; none recorded: the stump alone, hollow and muted */
  [data-forest-layout=band] .property-stand-cutting{display:inline-flex;align-items:center;gap:4px;box-sizing:border-box;height:20px;padding:0 8px 0 6px;border-radius:10px;background:var(--ui-stone-2);color:var(--ui-ink-2);font:620 12px/1 var(--ui-f);white-space:nowrap}
  [data-forest-layout=band] .property-stand-cutting[data-fd-show]::after{content:attr(data-fd-show) / ""}
  [data-forest-layout=band] .property-stand-cutting[data-fd-cutting=none]{padding:0 2px;background:none;color:var(--ui-muted)}
  [data-forest-layout=band] .fd-mk[data-fd-mark=cutting] ellipse{fill:var(--ui-ochre-soft)}
  [data-forest-layout=band] .fd-tags{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:6px;order:7}
  /* the legend in "i": every mark once with its words */
  [data-forest-layout=band] .property-stand-legend>li{grid-template-columns:minmax(0,150px) minmax(0,1fr)}
  [data-forest-layout=band] :is(.fd-legend-sample,.property-stand-legend-main,.property-stand-legend-other){display:inline-flex;align-items:center;gap:6px}
}
/* B4 PT1: below 1200 px the value column keeps the narrower minimum too (P10c set 150 px for the words, which are now marks) */
@media (min-width:601px) and (max-width:1199px){
  [data-forest-layout=band]{--fd-value-min:96px}
}

/* ---- B4 PT2 (decision 59) ---------------------------------------------------------------------------------------------------
   The stand's name: on the PC table the number is a quiet outlined tag at the start of the stand line (tabular figures, the main
   number stronger); the word "Nogabals" stays in the page, spoken and in the tooltip, out of view. A 2 px rule above each stand.
   The value cell and the stand value keep a 20 x 64 px box for the coming value badge (proposal-badge: small size 20 px high).
   "Detaļas": a few short labelled groups in front of the full list (the full list behind "Visi dati"), in every layout. */
@media (min-width:601px){
  [data-forest-layout=band] .fd-stand-word{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}
  [data-forest-layout=band] .property-stand-heading h3{display:inline-flex;align-items:center;box-sizing:border-box;height:22px;padding:0 8px;border:1px solid var(--ui-line-2);border-radius:var(--ui-r);background:var(--ui-surface);color:var(--ui-ink-2);font:620 12px/1 var(--ui-f);font-variant-numeric:tabular-nums lining-nums}
  [data-forest-layout=band] .property-stand-heading .property-stand-number-main{color:var(--ui-ink);font-weight:750}
  [data-forest-layout=band] .property-stand-separator>td{border-top:2px solid var(--ui-line-2)}
  [data-forest-layout=band] .fd-vfig{display:inline-flex;align-items:center;justify-content:flex-end;min-width:64px;min-height:20px}
  [data-forest-layout=band] .fd-vpair{justify-content:flex-end;gap:0 6px}
  [data-forest-layout=band] .fd-vpair>.fd-vfig{margin-left:0}
  [data-forest-layout=band] .property-stand-index{display:inline-flex;align-items:center;min-height:20px}
}
/* B4 DT1 (decision 150, option A; reference plan-detalas/src/det.css block A): "Detaļas" as one fact table of four columns, the
   group's icon, its name, the fact and the value, so the labels and the values each sit on one edge from top to bottom. On the PC the
   edges continue the stand line above: with the panel's 10 px inset the fact edge falls on the line's factor column (164 px) and the
   value edge on its Bonitāte column (377 px). A hairline above every group but the first. Up to 600 px: the same table, the group's
   name on its own line, facts and values on their two edges. Tokens only; the marks are decorative, the words beside them say it. */
.fd-det{display:grid;grid-template-columns:15px 139px 213px minmax(0,1fr);align-items:start;margin:0;color:var(--ui-ink);font:var(--ui-t-body)}
.fd-det>*{box-sizing:border-box;min-width:0;margin:0;padding:4px 0}
.fd-det>.fd-dt-ic{grid-column:1;display:inline-flex;padding-top:5.5px;color:var(--ui-ink-2)}
.fd-det>.fd-dt-ic>svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fd-det>.fd-dt-ic.is-warn{color:var(--ui-warn-ink)}
.fd-det>.fd-dt-h{grid-column:2;padding-left:6px;color:var(--ui-ink-2);font:620 12px/18px var(--ui-f);white-space:nowrap}
.fd-det>.fd-dt-l{grid-column:3;padding-right:16px;color:var(--ui-ink-2);font:400 13px/18px var(--ui-f);overflow-wrap:break-word}
.fd-det>.fd-dt-v{grid-column:4;color:var(--ui-ink);font:620 13px/18px var(--ui-f);overflow-wrap:break-word}
.fd-det>.fd-dt-s{grid-column:3/-1;color:var(--ui-ink);font:620 13px/18px var(--ui-f);overflow-wrap:break-word}
.fd-det>.fd-dt-q{color:var(--ui-muted);font:400 12px/18px var(--ui-f)}
.fd-det>.fd-dt-more{grid-column:3/-1;max-width:74ch;padding:0 0 6px;color:var(--ui-ink-2);font:400 12px/1.45 var(--ui-f)}
.fd-det>.fd-dt-more[hidden]{display:none}
.fd-det>.fd-dt-top{border-top:1px solid var(--ui-td-line)}
.fd-det>.fd-dt-foot{grid-column:1/-1;display:flex;padding:2px 0 0;border-top:1px solid var(--ui-td-line)}
.fd-dt-nw{white-space:nowrap}
.fd-det .fd-mk{display:inline-flex;flex:none;align-items:center;justify-content:center;width:15px;height:15px;color:var(--ui-ink-2);vertical-align:-3px}
.fd-det .fd-mk>svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fd-dt-l .fd-mk{margin-left:5px}
.fd-det .fd-mk[data-fd-mark=main]{color:var(--ui-pine)}
.fd-det .fd-mk[data-fd-mark=main]>svg{fill:var(--ui-pine-tint)}
.fd-det .fd-mk[data-fd-mark=met]{color:var(--ui-pine)}
.fd-det .fd-mk[data-fd-mark=not-met]{color:var(--ui-clay)}
.fd-det .fd-mk:is([data-fd-mark=almost],[data-fd-mark=check]){color:var(--ui-warn-ink)}
.fd-det .fd-mk[data-fd-mark=age-only]{color:var(--ui-slate)}
/* "Kāpēc?": a real button after the value (alone in the value column when there is no value); the sentence opens under the line */
.fd-dt-why{display:inline-flex;align-items:center;gap:2px;box-sizing:border-box;height:auto;min-height:0;margin:-4px 0 -4px 12px;padding:4px 2px;border:0;border-radius:var(--ui-r);background:none;box-shadow:none;color:var(--ui-lk);font:400 12px/18px var(--ui-f);text-shadow:none;cursor:pointer}
/* the family's button sheet draws aria-expanded=true as pressed; this is a link-like disclosure, so it stays flat */
.fd-dt-why:is([aria-expanded=true],:hover,:active){border:0;background:none;box-shadow:none;color:var(--ui-lk)}
.fd-dt-why.is-solo{margin-left:-2px}
.fd-dt-why:hover{text-decoration:underline}
.fd-dt-why:focus-visible{outline:2px solid var(--ui-a);outline-offset:1px}
.fd-dt-why>svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transform:rotate(90deg)}
.fd-dt-why[aria-expanded=true]>svg{transform:rotate(-90deg)}
/* the make-up in tenths: ten cells in the species' colours (.fd-fp-dot steps), the main species first */
.fd-dt-bar{display:inline-grid;grid-template-columns:repeat(10,12px);gap:2px;vertical-align:middle}
.fd-dt-bar>i{width:auto;height:8px;border-radius:2px}
.fd-dt-mix{display:flex;flex-wrap:wrap;gap:0 14px}
.fd-dt-sp{display:inline-flex;align-items:center;gap:5px;font:400 13px/18px var(--ui-f);white-space:nowrap}
.fd-dt-sp>b{font-weight:700;font-variant-numeric:tabular-nums lining-nums}
.fd-dt-sp .fd-mk{width:14px;height:14px}
@media (max-width:600px){
  .fd-det{grid-template-columns:18px fit-content(186px) minmax(0,1fr)}
  .fd-det>.fd-dt-ic{padding-top:9.5px}
  .fd-det>.fd-dt-h{grid-column:2/-1;padding:8px 44px 2px 6px;font:620 13px/20px var(--ui-f)}
  .fd-det>.fd-dt-l{grid-column:2;padding-left:6px;padding-right:14px}
  .fd-det>.fd-dt-v{grid-column:3}
  .fd-det>:is(.fd-dt-s,.fd-dt-more){grid-column:2/-1;padding-left:6px}
  .fd-det>:is(.fd-dt-l,.fd-dt-v,.fd-dt-s).fd-dt-top{border-top:0}
  .fd-det>:is(.fd-dt-l,.fd-dt-v,.fd-dt-s){line-height:20px}
  .fd-det>.fd-dt-q{line-height:20px}
  .fd-dt-why{display:flex;width:fit-content;min-height:var(--ui-hit);margin:-6px 0 -10px -2px;padding:0 2px;font-size:13px}
  .fd-dt-why.is-solo{margin-top:-10px}
  .fd-det>.fd-dt-foot{padding:0}
}
/* B4 DT1 (decision 153): "Nogabals · Info" in the same table style, sized for its popup on every width: the group's name on its own
   line, the step's words, the number right-aligned in tabular digits; each "= vērtība" total on a hairline. */
.fd-det.fd-info{grid-template-columns:18px minmax(0,1fr) auto;margin:0 0 4px}
.fd-det.fd-info>.fd-dt-ic{padding-top:8.5px}
.fd-det.fd-info>.fd-dt-h{grid-column:2/-1;padding:7px 40px 2px 6px}
.fd-det.fd-info>.fd-dt-l{grid-column:2;padding:3px 14px 3px 6px}
.fd-det.fd-info>.fd-dt-v{grid-column:3;padding:3px 0;text-align:right}
.fd-det.fd-info>.fd-dt-s{grid-column:2/-1;padding:3px 0 3px 6px}
.fd-det.fd-info>.fd-dt-sub{padding-top:6px;color:var(--ui-ink-2);font:620 12px/18px var(--ui-f)}
.fd-det.fd-info>.fd-dt-num{font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
.fd-det.fd-info>.fd-dt-total{border-top:1px solid var(--ui-td-line);color:var(--ui-ink);font-weight:700}
.fd-det.fd-info>.fd-dt-rounded{color:var(--ui-ink-2);font-weight:400}
.property-stand-notes-footer{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}
.fd-dt-help{color:var(--ui-lk);font:400 12px/18px var(--ui-f);text-decoration:underline;text-underline-offset:2px}
.fd-dt-help:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
.property-stand-notes-footer>.fd-dt-q{margin:0;color:var(--ui-muted);font:400 12px/18px var(--ui-f)}
@media (max-width:600px){
  .fd-dt-help{display:inline-flex;align-items:center;min-height:var(--ui-hit);font-size:13px}
}
.fd-det-g{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:baseline;gap:0 12px;margin:0;padding:0;border:0}
.fd-det-g>h5{margin:0;color:var(--ui-muted);font:var(--ui-t-meta)}
.fd-det-row{display:flex;flex-wrap:wrap;align-items:center;gap:3px 16px;min-width:0}
.fd-det-f{display:inline-flex;align-items:center;gap:5px;margin:0;color:var(--ui-ink);font:var(--ui-t-body)}
.fd-det-l{color:var(--ui-ink-2)}
.fd-det-v{color:var(--ui-ink);font-weight:620}
.fd-det-mix{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:0}
.fd-det-sp{display:inline-flex;align-items:center;gap:4px;color:var(--ui-ink);font:var(--ui-t-body)}
.fd-det-sp>b{font-weight:700;font-variant-numeric:tabular-nums lining-nums}
.fd-det-quiet{margin:0;color:var(--ui-muted);font:var(--ui-t-meta)}
.fd-det-all{margin:0}
.fd-det-all[open]>summary{margin-bottom:6px}
/* B4 DS5 (decision 181): "Visi dati" continues the fact table above on its columns (.fd-det-rest has the same grid); the record's own
   list stays in the page for print and is hidden on screen while the table is drawn */
.fd-det-all.has-rest{flex:1 1 100%;min-width:0}
.fd-det-all.has-rest[open]>summary{margin-bottom:2px}
.fd-det-rest .fd-dt-v .vb{vertical-align:middle}
.fd-det>.fd-dt-note{padding:0 0 4px;color:var(--ui-muted)}
.fd-det-rest .fd-dt-v :is(small,span,time){display:inline;font:620 13px/18px var(--ui-f);white-space:normal}
/* on a phone the label column of both tables is one width, so the continuation keeps the values on one line */
@media not all and (min-width:601px){.fd-det.has-rest,.fd-det-rest{grid-template-columns:18px 150px minmax(0,1fr)}}
.fd-det-all.has-rest>:is(.property-stand-info-grid,.property-stand-damage){display:none}
@media not all and (min-width:601px){
  .fd-det-g{grid-template-columns:minmax(0,1fr);gap:2px 0}
  .fd-det-row{display:block}
  .fd-det-f{display:block;margin:0 0 2px}
  .fd-det-l{margin-right:5px}
  .fd-det-mix{gap:2px 12px}
}

/* ---- B4 PT3 (decision 75): "Meža datu detaļas" as a short brief, the full content behind "Visi dati" ----------------------------
   Two small visuals, both decorative (aria-hidden; the words beside them say the same): the recorded age range on a 0 to 120 year
   track with the mean as a tick, and the species of tree group 10 by area as one bar of shares. */
.fd-fp{display:flex;flex-direction:column;gap:10px;margin:0}
.fd-fp .fd-fp-quiet{color:var(--ui-muted);font:var(--ui-t-meta)}
.fd-fp-age{position:relative;display:block;flex:0 0 160px;width:160px;height:6px;border-radius:3px;background:var(--ui-stone-2)}
.fd-fp-range{position:absolute;top:0;bottom:0;border-radius:3px;background:var(--ui-pine-tint)}
.fd-fp-mean{position:absolute;top:-2px;width:2px;height:10px;margin-left:-1px;border-radius:1px;background:var(--ui-pine)}
.fd-fp-mix{display:flex;flex:0 0 100%;gap:2px;max-width:320px;height:8px;overflow:hidden;border-radius:4px}
.fd-fp-sw{flex-basis:0;min-width:3px}
.fd-fp-dot{display:inline-block;flex:none;width:8px;height:8px;border-radius:2px}
:is(.fd-fp-sw,.fd-fp-dot)[data-sw="0"]{background:var(--ui-pine)}
:is(.fd-fp-sw,.fd-fp-dot)[data-sw="1"]{background:var(--ui-ochre)}
:is(.fd-fp-sw,.fd-fp-dot)[data-sw="2"]{background:var(--ui-slate)}
:is(.fd-fp-sw,.fd-fp-dot)[data-sw="3"]{background:var(--ui-pine-tint)}
:is(.fd-fp-sw,.fd-fp-dot)[data-sw="4"]{background:var(--ui-stone-3)}

/* ---- B4 PT3 additions (decision 78; text audit W1, W2, W4, W6, M6) ---------------------------------------------------------------
   The value shows once, in the window's header: "Mežs īsumā" in the right column draws no value rows and one "Krāja" row in whole m³
   (the renderer's rows stay in the page, out of view in that column only). The active calculation's name is not drawn above the
   table (it is in the forest data's "Visi dati un aprēķina skaidrojums"); the line stays when it says the values are hidden. */
.fd-brief>.next-codecraft-summary>div.fd-sum-off{display:none}
.next-codecraft-summary>.fd-sum-volume{display:none}
/* B4 GF2 (decision 114, gap 2): the three added figures show only in the sidebar's "Mežs īsumā", like the Krāja row */
.next-codecraft-summary>.fd-sum-fig{display:none}
.fd-sum-volume small{margin-left:4px;color:var(--ui-muted);font:var(--ui-t-meta)}
.next-value-calculation:is([data-value-calculation=main-species],[data-value-calculation=codecraft]){display:none}
.fd-fp-calc{margin:0 0 6px;color:var(--ui-ink-2);font:var(--ui-t-meta)}

/* ---- B4 PT3 with PB1 (requests R4, R5): the value badge in Meža dati, the known-part note at the top of the table ---------------- */
[data-forest-layout]:not([data-forest-layout=band]) .fd-badged>.vb{display:none}
@media (min-width:601px){
  [data-forest-layout=band]{--fd-value-min:104px}
  [data-forest-layout=band] .fd-vfig{min-width:78px}
  [data-forest-layout=band] .fd-badged{display:inline-flex;align-items:center;justify-content:flex-end}
}
.fd-bar>.fd-known{flex:1;min-width:0}
.fd-bar>.fd-known:empty{display:none}

/* PHONE-SEAM: the phone table (layout "phone", up to 600 px) keeps today's look. The legacy sheet forced every body cell to
   the page colour; with that flag gone (P10-legacy-deletions) the same colour is stated here, and the tapped column keeps a tint. */
@media (max-width:600px){
  .property-forest-ledger tr[data-next-component]>:is(th,td):not(.property-stand-meta-cell){background:var(--ui-canvas)}
  .property-forest-ledger tr[data-next-component]>.is-column-highlighted:not(.property-stand-meta-cell){background:var(--ui-pine-tint)}
}
/* B4 AU1 (audit B20): the stand's i, "Detaļas" and map button answer on 44 px, one beside the other. B4 OF2-P2: their touch boxes
   are the family's own (.b, .info); the gap keeps two boxes apart */
@media (max-width:600px){
  .property-forest-ledger .property-stand-actions{gap:14px}
}

/* B4 FX1 item 5 (AL1): "Mežs īsumā" draws the observed forest area as the forest chip; the renderer's words stay in the page,
   out of view (read aloud and copied as before). Print shows the words, not the chip. */
.pw-area-tx{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
@media print{
  .pw-area-tx{position:static;width:auto;height:auto;overflow:visible;clip:auto;clip-path:none}
  [data-pw-area]>.ab{display:none}
}

.fd-short{display:none}
.fd-key-row{display:none}
/* ---- B4 FX1 item 6 (owner's decision 97, his screenshot evidence\janis-stand-line-alignment.png): the stand line in fixed columns ----
   One grid template for every stand line of the table, so each fact sits at the same x on every stand: stand tag | value badge |
   readiness mark and inventory factor | area | volume (figures end on one edge) | site class | restrictions (only when there are some;
   unknown: a quiet "?") | inventory year | last cutting | the i, Detaļas and map buttons. A fact a stand does not have leaves its column
   empty. The labels (Vērtība, Platība, Krāja, Bonitāte) stay in the page, read aloud, out of view; each slot names itself in its
   tooltip. Where the table is too narrow for one row (a container query on the stand group: 849 px is the one-row minimum), the line
   takes a second row of the same grid as a whole: restrictions, inventory and cutting under the figures. The phone and the side layout
   keep theirs (only layout "band" from 601 px). Tree-group rows: a missing figure is a quiet dash in the figures' own cell look (the
   renderer's word "Nezināms" stays in the page for screen readers; the legacy rule paints these cells with var(--paper) !important, so
   this layer sets --paper on them to the row's own colour, without force). */
@media (min-width:601px){
  [data-forest-layout=band] .property-stand-group{container:fd-stand / inline-size}
  [data-forest-layout=band] .property-stand-group>.next-stand-header{display:grid;grid-template-columns:60px 84px 66px 60px 72px 32px 70px 100px minmax(0,1fr) var(--fd-actions);grid-template-areas:"tag val fac vol area site res inv cut act";align-items:center;justify-items:start;column-gap:5px;row-gap:4px;min-height:36px;padding:5px 6px 5px 10px}
  [data-forest-layout=band] .next-stand-header :is(.property-stand-heading,.property-stand-context,.fd-tags,.property-stand-value,.property-stand-value>dd){display:contents}
  [data-forest-layout=band] .property-stand-heading>h3{grid-area:tag;max-width:100%;overflow:hidden}
  [data-forest-layout=band] .next-stand-header .property-stand-index{grid-area:val}
  [data-forest-layout=band] .next-stand-header .fd-fac{grid-area:fac;display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:100%}
  [data-forest-layout=band] .next-stand-header .fd-vnote::before{content:attr(data-fd-short) / ""}
  [data-forest-layout=band] .next-stand-header .fd-vnote[data-fd-short]{display:inline-flex;align-items:center;box-sizing:border-box;height:20px;padding:0 7px;border-radius:10px;background:var(--ui-stone-2);color:var(--ui-ink-2);font:620 12px/1 var(--ui-f);font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
  /* the key row: the labels once, above the stands, on the same grid (the cell is a container like each stand group) */
  [data-forest-layout=band] .fd-key-row{display:table-row}
  [data-forest-layout=band] .fd-key-row>td{padding:0;border:0;border-top:1px solid var(--ui-line);background:var(--ui-stone-2);container:fd-stand / inline-size}
  [data-forest-layout=band] .fd-key{display:grid;grid-template-columns:60px 84px 66px 60px 72px 32px 70px 100px minmax(0,1fr) var(--fd-actions);grid-template-areas:"tag val fac vol area site res inv cut act";align-items:center;justify-items:start;column-gap:5px;min-height:22px;padding:0 6px 0 10px;color:var(--ui-ink);font:var(--ui-t-head);white-space:nowrap}
  [data-forest-layout=band] .fd-key>[data-fd-key=tag]{grid-area:tag}
  [data-forest-layout=band] .fd-key>[data-fd-key=val]{grid-area:val}
  [data-forest-layout=band] .fd-key>[data-fd-key=area]{grid-area:area;padding-left:6px}
  [data-forest-layout=band] .fd-key>[data-fd-key=vol]{grid-area:vol;justify-self:end}
  [data-forest-layout=band] .fd-key>[data-fd-key=site]{grid-area:site}
  [data-forest-layout=band] .next-stand-header .property-stand-area{grid-area:area;padding-left:6px}
  [data-forest-layout=band] .next-stand-header .property-stand-volume{grid-area:vol;justify-self:end}
  [data-forest-layout=band] .next-stand-header .property-stand-site{grid-area:site}
  /* Janis (22 Nov 2026): the site class as a small badge, square corners, so it is told apart at a glance */
  [data-forest-layout=band] .property-stand-site>dd{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:24px;height:20px;padding:0 6px;border-radius:4px;background:var(--ui-stone-2);box-shadow:inset 0 0 0 1px var(--ui-line-2);font-variant-numeric:tabular-nums lining-nums}
  [data-forest-layout=band] details.property-stand-restriction{grid-area:res;max-width:100%}
  [data-forest-layout=band] .next-stand-header .property-stand-inventory{grid-area:inv;max-width:100%}
  [data-forest-layout=band] .next-stand-header .property-stand-cutting{grid-area:cut;max-width:100%;min-width:0;overflow:hidden}
  [data-forest-layout=band] .next-stand-header .property-stand-cutting[data-fd-show]::after{min-width:0;overflow:hidden;text-overflow:ellipsis}
  [data-forest-layout=band] .next-stand-header .property-stand-actions{grid-area:act;position:static;justify-self:end;margin:0}
  [data-forest-layout=band] :is(.property-stand-value,.property-stand-area,.property-stand-volume,.property-stand-site)>dt{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}
  [data-forest-layout=band] .next-stand-header :is(.fd-empty,.property-stand-index .vb[data-kind=missing],.property-stand-cutting[data-fd-cutting=none],.property-stand-inventory[data-fd-tone=unknown]){opacity:0;pointer-events:none}
  [data-forest-layout=band] details.property-stand-restriction .property-stand-restriction-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}
  [data-forest-layout=band] details.property-stand-restriction .fd-short{display:inline;font:620 12px/1 var(--ui-f)}
  [data-forest-layout=band] details.property-stand-restriction[data-restriction=unknown] .property-stand-restriction-value{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}
  [data-forest-layout=band] details.property-stand-restriction[data-restriction=unknown]>summary::before{content:"?" / "";order:9}   /* ::after is the family's tap box (.tag.act) */
  [data-forest-layout=band] tr[data-next-component]>td[data-forest-unknown]{--paper:var(--ui-surface)}
  [data-forest-layout=band] tr[data-next-component]:hover>td[data-forest-unknown],.is-map-selected>tr[data-next-component]>td[data-forest-unknown],[data-forest-layout=band] tr[data-next-component]>td[data-forest-unknown].is-column-highlighted{--paper:var(--ui-pine-soft)}
  [data-forest-layout=band] td[data-forest-unknown]>.fd-unk{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}
  [data-forest-layout=band] td[data-forest-unknown]:not([headers*="measure-column-6"])::after{content:"–" / "";color:var(--ui-muted);font:var(--ui-t-body);font-weight:400}
}
@container fd-stand (max-width:848px){
  [data-forest-layout=band] .property-stand-group>.next-stand-header{grid-template-columns:60px 84px 66px 60px 72px 32px minmax(0,1fr) var(--fd-actions);grid-template-areas:"tag val fac vol area site . act" ". res res inv inv cut cut cut"}
  [data-forest-layout=band] .fd-key{grid-template-columns:60px 84px 66px 60px 72px 32px minmax(0,1fr) var(--fd-actions);grid-template-areas:"tag val fac vol area site . act"}
}

/* ---- B4 LY1 (Janis's decision 114): one layout for every tab of the property window ------------------------------------------
   The framed window (P10's two columns, above) is now the frame of every tab: the left column holds one main area per tab
   (.pw-main: the Darījums page, "Darījuma apjoms", the Meža dati table; workspace-property-window.js shows one), the right
   column is the one sidebar (.fd-side.pw-side: Cilvēki, Karte, Mežs īsumā), the same node on every tab. Its sections share
   the Darījums sidebar's rhythm (12 px, a hairline between them). One "Drukāt": the sidebar's, so the table toolbar's copy gives
   way. Below 1001 px the sidebar is one column under the main area; the map has no grip and no move button there (the frame
   puts it on top on Meža dati, decision 41). */
[data-pw-uni] .fd-print{display:none}
@media (min-width:1001px){
  .pw-win[data-pw=forest] .property-focus-forest.fd-two>.pw-work{gap:10px;padding:14px 0;overflow:visible;min-height:0}
  .pw-win[data-pw=forest] .property-focus-forest.fd-two>.pw-main-forest{margin-block:14px}
  [data-pw-uni] .fd-bar{min-height:0;margin:0}
  [data-pw-uni] .fd-bar>*{margin-bottom:8px}
  .pw-win[data-pw=forest] .property-focus-forest.fd-two>.fd-map[data-place=top]{margin-top:14px}
  .pw-side>.fd-map{margin:0;padding:12px 0;border-top:1px solid var(--ui-hair-stone)}
  .pw-side>.fd-map:first-child{border-top:0}
  .pw-win[data-pw=forest] .pw-side>.fd-brief{margin:0}
  .pw-rhead>.fd-brief-t{flex:none}
  /* B4 PW2 (Janis, 23 Nov 2026: "two scrollbars on right side of property view"): the window scrolls as one, with one scrollbar.
     Since LY1 every tab used P10's sidebar, a scroller of its own as tall as the window under the header, while the Tagad band
     (P7) also sits above the scrolling area: the area always scrolled by the band's height, and once the sidebar grew (TB1's
     owner rows) it scrolled too, two bars side by side. Now the sidebar never scrolls on its own: at least the visible height
     (--pw-view-h, workspace-property-window.js), sticky; taller, it moves with the window until its end shows and then stays
     (--pw-side-top). While the help is docked in it (lmf-help.js: .hp-host) it is exactly the visible height, at the top. */
  .pw-win [data-pw-uni] .fd-side.pw-side{top:var(--pw-side-top,0px);height:auto;min-height:var(--pw-view-h,0px);overflow-x:clip;overflow-y:visible}
  .pw-win [data-pw-uni] .fd-side.pw-side.hp-host{top:0;height:var(--pw-view-h,auto);min-height:0;overflow:hidden}
}
@media (max-width:1000px){
  .fd-side.pw-side{display:flex;flex-direction:column;gap:0;min-width:0;margin:8px 0 0;padding:0}
  .pw-side>.pw-rsec,.pw-side>.fd-map{padding:12px 0;border-top:1px solid var(--ui-line)}
  .pw-side>.fd-brief{display:flex;flex-direction:column;gap:8px;margin:0}
  .pw-side .fd-brief-t{margin:0;color:var(--ui-ink-2);font:var(--ui-t-head)}
  .pw-side .fd-brief>.next-codecraft-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 12px;margin:0;padding:0;border:0}
  .pw-side .next-codecraft-summary>div{display:contents}
  .pw-side .next-codecraft-summary dd{margin:0;font-weight:700;text-align:right;white-space:nowrap}
  .fd-map{display:flex;flex-direction:column;min-width:0}
  .fd-map-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin:0 0 8px}
  .fd-map-head>:is(.fd-grip,.fd-move){display:none}
  .fd-map-head>.pw-maptools{flex:1 1 auto;min-width:0;margin:0}
  .fd-map>.property-focus-map-frame{margin:0;border-radius:var(--ui-r-pop);overflow:hidden}
}
/* design audit r1 b1: the phone table shows whole m³ as the PC table does (the exact figure stays in the tooltip and for a screen
   reader); fdRoundFigure already wraps the cells at every width */
@media not all and (min-width:601px){
  .fd-round::before{content:attr(data-fd-show) / ""}
  .fd-round>.fd-exact{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

/* B4 AD1 (decision 185, audit A02 A): the facts of the old "Meža kopsavilkums" as rows of "Mežs īsumā", label left, value right as the
   figures above them; "Visi dati un aprēķina skaidrojums" a link at the block's foot, its panel the same popup as before */
.fd-brief>.fd-brief-facts{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:4px 12px;margin:0;padding:0;border:0}
.fd-brief>.fd-brief-facts>div{display:contents}
.fd-brief>.fd-brief-facts dt{margin:0;color:var(--ui-ink-2);font:var(--ui-t-body)}
.fd-brief>.fd-brief-facts dd{margin:0;color:var(--ui-ink);font:700 var(--ui-fs-m)/1.4 var(--ui-f);text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fd-brief>details.next-forest-details{margin:0;padding:0;border:0}
.fd-brief>details.next-forest-details>summary.fd-brief-all{display:inline-block;width:auto;min-height:24px;margin:2px 0 0;padding:0;list-style:none;color:var(--ui-lk);font:var(--ui-t-body);font-weight:620;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--ui-lk-line);cursor:pointer}
.fd-brief>details.next-forest-details>summary.fd-brief-all::before{content:none}
/* the whole old content opens under the link: at most 560 px tall, it scrolls inside, so it stays beside the link, not over the header */
.fd-brief .property-stand-popup-panel{max-height:min(560px,calc(100dvh - 24px))}
/* ---- B4 MH1 (decision 183): the map on top has a height handle on its bottom edge (.fd-map-size, workspace-property-focus.js).
   The height the user chose is --fd-map-h on the block (data-fd-sized), used only while the map is on top and always inside 180 px
   to 70 % of the window; without it the map keeps the sheet's own height (the default). The handle is DS4's column handle turned
   on its side: a hairline at rest with a short grip in the middle; on hover, keyboard focus and while dragging a 3 px bar in the
   area colour on a soft tint; row-resize on the whole window while dragging; a focus ring; still under reduced motion; system
   colours in forced colours. 12 px tall on a PC, 24 on touch (a finger target). */
.fd-map[data-place=top][data-fd-sized] .property-focus-map-frame .detail-map{height:clamp(180px,var(--fd-map-h),70vh);min-height:0;max-height:none}
.fd-map-size{display:none}
.fd-map[data-place=top]>.fd-map-size{position:relative;display:block;flex:none;box-sizing:border-box;height:12px;margin:0;border-radius:2px;cursor:row-resize;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;transition:background-color var(--ui-t)}
.fd-map[data-place=top]>.property-focus-map-frame[hidden]+.fd-map-size{display:none}
.fd-map-size::after{content:"";position:absolute;left:0;right:0;top:50%;height:1px;border-radius:2px;background:var(--ui-line-2);transform:translateY(-50%);transition:height var(--ui-t),background-color var(--ui-t)}
.fd-map-size::before{content:"";position:absolute;left:50%;top:50%;z-index:1;width:28px;height:4px;border-radius:2px;background:var(--ui-ico-mute);transform:translate(-50%,-50%);transition:background-color var(--ui-t)}
.fd-map-size:is(:hover,:focus-visible),.fd-sizing .fd-map-size{background:var(--ui-a-soft)}
.fd-map-size:is(:hover,:focus-visible)::after,.fd-sizing .fd-map-size::after{height:3px;background:var(--ui-a)}
.fd-map-size:is(:hover,:focus-visible)::before,.fd-sizing .fd-map-size::before{background:var(--ui-a)}
.fd-map-size:focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
.fd-sizing,.fd-sizing *{cursor:row-resize;user-select:none;-webkit-user-select:none}
@media (pointer:coarse){.fd-map[data-place=top]>.fd-map-size{height:24px}.fd-map-size::before{width:36px}}
@media (prefers-reduced-motion:reduce){.fd-map-size,.fd-map-size::after,.fd-map-size::before{transition:none}}
@media (forced-colors:active){.fd-map-size::after,.fd-map-size::before{background:CanvasText}.fd-map-size:is(:hover,:focus-visible)::after,.fd-map-size:is(:hover,:focus-visible)::before,.fd-sizing .fd-map-size::after,.fd-sizing .fd-map-size::before{background:Highlight}.fd-map-size:focus-visible{outline-color:Highlight}}
}

/* /forest/lmf-page-people.css */
@layer pages{
/* LMF page layout: lmf-page-people.css, owned by P11 and P12 (Kontakti, the contact window, call lists, Partneri).
   Area: people (mineral slate; the main button is pine, B4 DS3) through data-area; the "Kas notika?" box carries data-area="deals" (timber ochre).
   Desktop layout rules sit inside @media (min-width:701px); phone changes only in PHONE-SEAM blocks. */

/* ---------- P11: Kontakti, the header and the one-line filter row (proposal version 3, "Kontakti: header and filter row") ---------- */
.ui-kt-head{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-gap);margin:0 0 12px}
.ui-kt-head h1{margin:0;color:var(--ui-ink);font:var(--ui-t-page);letter-spacing:-.01em}
.ui-kt-head p:empty{display:none}
.ui-kt-vs{display:none}   /* B4 OF2-P4: the short word of a tab, shown on a phone only */
.ui-kt-head .actions{display:flex;align-items:center;gap:var(--ui-gap);margin:0}
.ui-kt-head a.b{text-decoration:none}
.ui-kt-menu-at{position:relative;display:inline-flex;min-width:0}
.ui-kt-menu{position:absolute;top:calc(100% + 4px);right:0;z-index:30;min-width:200px}
.ui-kt-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-gap);margin:0 0 12px}
.ui-kt-search{flex:1;min-width:180px;margin:0}
.ui-kt-fields{display:grid;flex-basis:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px;box-sizing:border-box;padding:12px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-surface)}
.ui-kt-fields .fld{min-width:0;margin:0}
/* B4 DM5 (decision 156): the step's date mark ends the cell's first line (the row's right edge): it floats there, and where the
   cell is a flex line (narrow screens) it is the line's last item, pushed right */
.contacts-next-cell>.dm{float:right;order:9;margin:1px 0 2px auto;padding-left:var(--ui-dm-px)}
.ui-kt-land-top small,.ui-cl-land small{display:inline}
.ui-kt-land-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0}
.ui-kt-land .lk,.ui-kw-land-id .lk,.ui-cl-land .lk{color:var(--ui-lk);font-weight:620;text-decoration:underline;text-decoration-color:var(--ui-lk-line);text-decoration-thickness:1px;text-underline-offset:3px}
.ui-kt-register .pagination{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-gap);padding:8px 10px;border-top:1px solid var(--ui-td-line);color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-kt-register .pagination .actions{margin:0}
.ui-kt-register .empty{padding:28px 16px;color:var(--ui-muted);font:var(--ui-t-body);text-align:center}

@media (min-width:701px){
  .ui-kt-register{overflow:clip;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-surface);box-shadow:none}
  .ui-kt-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;color:var(--ui-ink);font:var(--ui-t-data);font-variant-numeric:tabular-nums}
  .ui-kt-table th{height:var(--ui-row-h);padding:0 10px;border-bottom:1px solid var(--ui-line-2);background:var(--ui-th-bg);color:var(--ui-ink);font:620 12px/1.2 var(--ui-f);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}   /* B4 HL1 (decision 240): the label in the table's own ink */
  .ui-kt-table td{height:var(--ui-row-h-2);padding:5px 10px;border-bottom:1px solid var(--ui-td-line);vertical-align:middle;line-height:1.3;overflow-wrap:anywhere}
  /* B4 AD1 (decision 185, B21): four columns (three without deals); the contact details are a line under the name */
  .ui-kt-table th:nth-child(1){width:28%}
  .ui-kt-table th:nth-child(2){width:42%}
  .ui-kt-table th:nth-child(3){width:30%}
  .ui-kt-table.has-deals th:nth-child(1){width:24%}
  .ui-kt-table.has-deals th:nth-child(2){width:34%}
  .ui-kt-table.has-deals th:nth-child(3){width:18%}
  .ui-kt-table.has-deals th:nth-child(4){width:24%}
  .ui-kt-table tbody tr:hover{background:var(--ui-wash)}
  .ui-kt-table tbody tr:focus-within{background:var(--ui-wash)}
  .ui-kt-table .lk{display:inline;padding:0;font-size:13px;line-height:1.3;text-align:left}
  .ui-kt-table .name{color:var(--ui-ink);font-size:13px;font-weight:620;line-height:1.3}
  .ui-kt-table .contacts-secondary{display:block;margin:1px 0 0;color:var(--ui-muted);font:var(--ui-t-meta)}
  .ui-kt-table .contacts-channels :is(a,.contacts-recorded-phone){display:flex;align-items:center;gap:6px;min-height:0;margin:0;color:var(--ui-ink);font-size:13px;line-height:1.5;text-decoration:none}
  .ui-kt-table .contacts-channels .icon{flex:none;width:13px;height:13px;margin:0;color:var(--ui-ico-mute)}
  .ui-kt-table .contacts-channels .tag{margin-top:2px}
  .ui-kt-land+.ui-kt-land{margin-top:4px}
  .ui-kt-table .contacts-more{margin-top:2px}
  .contacts-deal .tag{margin-right:4px}
  .ui-kt-table .tag{vertical-align:middle}
}

/* PHONE-SEAM */
@media (max-width:700px){
  .ui-kt-views{width:100%}
  .ui-kt-vw{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .ui-kt-vs{display:inline}
  .ui-kt-search{flex-basis:100%}
  .ui-kt-bar>.sel{flex:1 1 96px;min-width:0}
  .ui-kt-bar>.sel:first-of-type{flex:1 1 150px}
  .ui-kt-fields{grid-template-columns:minmax(0,1fr)}
}
/* B4 AU1 (audit A04): Kontakti's phone card in one column: the name with "+" at the card's right edge (a long name wraps beside it),
   one line of facts, the deal tags on a line of their own that wraps, then how to reach the person, the properties and the next
   step. The only divider is the one between two cards, the card's whole width. */
@media (max-width:700px){
  .ui-kt-table tr{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 16px}
  .ui-kt-table tr>td{grid-column:1;grid-row:auto;height:auto;padding:0;border:0}
  .ui-kt-table .contacts-identity{order:-2}
  .ui-kt-table .contacts-identity>.name{display:flex;align-items:center;padding:0;overflow-wrap:anywhere}
  .ui-kt-table .contacts-identity>.contacts-secondary{display:inline;margin:0}
  .ui-kt-table .contacts-deal{order:-1;display:flex;flex-wrap:wrap;gap:4px 6px}
  .ui-kt-table .contacts-deal:has(>.ui-kt-none:only-child){display:none}
  .ui-kt-table .contacts-deal>.tag{max-width:100%;margin:0}
  .ui-kt-table .ui-kt-land-top+.contacts-secondary{margin-top:-8px}
}

/* ---------- B4 CT1 (decision 154, option B; Janis chose B): the contact window in two columns, like the property window ----------
   Top bar: the way back on the left, "Labot", "…" and the window's close on the right. Left: who, "Kas notika?" (its property
   picker inside the same box), the next task (the one softly tinted row, the round engraved tick of decisions 147 and 149), the
   linked properties in fixed columns, the history on a thin time line. Right (a quiet stone column): how to reach the person,
   the working notes, the comments, and "Labot" in place of the facts it edits. The phone: one column, the same order as drawn
   (name, reach, Kas notika?, next task, properties, notes, history). Drawn: plan-contact renders 03, 04, 07, 08. */
.ui-kw{display:block;color:var(--ui-ink)}
/* the top bar */
.ui-kw-head{display:flex;align-items:center;gap:2px;min-height:46px;margin:0;padding:6px 52px 6px 10px;border-bottom:1px solid var(--ui-line)}
.ui-kw-head .contacts-return{display:flex;align-items:center;min-width:0;margin:0;padding:0}
.ui-kw-back{min-width:0;max-width:100%}
.ui-kw-from{min-width:0;overflow:hidden;color:var(--ui-ink);font-weight:620;text-overflow:ellipsis;white-space:nowrap}
.ui-kw-from::before{content:"\00b7";margin:0 7px 0 2px;color:var(--ui-muted);font-weight:400}
.ui-kw-sp{flex:1}
dialog.contacts-workspace>.close-dialog{top:8px;right:8px}
/* the two columns */
.ui-kw-b .ui-kw-body{display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:auto 1fr;grid-template-areas:"who side" "main side";align-items:start;gap:0;margin:0;padding:0}
.ui-kw-b .ui-kw-body>.ui-kw-id{grid-area:who;padding:20px 20px 0 22px}
.ui-kw-main{grid-area:main;display:flex;flex-direction:column;gap:20px;min-width:0;padding:18px 20px 24px 22px}
.ui-kw-side{grid-area:side;display:flex;flex-direction:column;gap:18px;align-self:stretch;min-width:0;padding:20px 20px 24px 18px;border-left:1px solid var(--ui-line);background:var(--ui-stone-foot)}
.ui-kw-sec,.ui-kw-body .ui-kw-sec{min-width:0;margin:0;padding:0;border:0;background:none;box-shadow:none}
.ui-kw-body h3{display:flex;align-items:center;gap:6px;margin:0 0 8px;color:var(--ui-ink-2);font:var(--ui-t-head);letter-spacing:.02em}
.ui-kw-body h3 .count{color:var(--ui-muted);font-weight:620;letter-spacing:0}
.ui-kw-empty,.ui-kw-body .empty{margin:0;padding:0;color:var(--ui-muted);font:var(--ui-t-body);text-align:left}
/* who: a round mark for the kind, the name, one quiet line; "Nezvanīt" is the only coloured tag */
.ui-kw-id{display:flex;align-items:center;gap:12px;min-width:0;margin:0}
.ui-kw-av{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:var(--ui-slate-tint);color:var(--ui-slate-ink)}
.ui-kw-av svg{width:20px;height:20px}
.ui-kw-idt{min-width:0}
.ui-kw-id h2{margin:0;color:var(--ui-ink);font:700 var(--v31-fs-xl)/1.2 var(--ui-f);letter-spacing:-.012em;overflow-wrap:anywhere;text-wrap:balance}
.ui-kw-sub{display:flex;flex-wrap:wrap;align-items:center;gap:3px 0;margin:4px 0 0;color:var(--ui-ink-2);font:var(--ui-t-body)}
.ui-kw-sub>span:not(.tag)+span:not(.tag)::before{content:"\00b7";margin:0 7px;color:var(--ui-muted)}
.ui-kw-sub .contacts-profile-role{margin:0;color:inherit;font:var(--ui-t-body)}
.ui-kw-sub>.tag{margin-left:10px}
/* "Kas notika?": the family's field joined to its property picker (.join, B4 OF2-P4); the page only places it */
.ui-kw-actions{display:block;margin:0}
.ui-kw-actions>.b{--_h:var(--ui-h-l);--_px:var(--ui-px-l);--_fs:var(--ui-fs-l)}
/* B4 PI: the real box (LMFCapture.box) is a label; a legacy label margin lifted it 7 px above the buttons of its row */
.ui-kw-cap>.inw{margin:0}
/* The stand-in box (until LMFCapture.box is everywhere) is a family field (.in.l); its mark takes the deals colour. */
.ui-kw-box{display:flex;align-items:center;gap:8px;flex:1 1 auto;color:var(--ui-ink-2);text-align:left;cursor:text}
.ui-kw-box>svg{flex:none;width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-a)}
.ui-kw-box-q{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ui-kw-box-hint{flex:none;color:var(--ui-muted);font:var(--ui-t-meta);white-space:nowrap}
.ui-kw-box:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
/* the next task: the one softly tinted row of the window, with the family's round engraved tick */
.ui-kw-next .task-item{display:flex;align-items:center;gap:11px;min-width:0;margin:0;padding:9px 12px 9px 11px;border:0;border-radius:var(--ui-r-pop);background:var(--ui-a-soft);box-shadow:none}
.ui-kw-next .check-task{position:relative;box-sizing:border-box;flex:none;width:20px;height:20px;min-width:0;min-height:0;margin:0;padding:0;border:1px solid var(--ui-cke-line);border-top-color:var(--ui-cke-line-t);border-radius:50%;background:var(--ui-cke-bg);box-shadow:var(--ui-cke-sh);color:transparent;cursor:pointer}
.ui-kw-next .check-task>*{display:none}
.ui-kw-next .check-task::before{content:none}
.ui-kw-next .check-task:hover{border-color:var(--ui-a);background:var(--ui-a-soft)}
.ui-kw-next .check-task:focus-visible{outline:2px solid var(--ui-a);outline-offset:3px}
.ui-kw-next .grow{display:flex;flex:1;flex-direction:column;gap:1px;min-width:0}
.ui-kw-next .grow>.lk{align-self:flex-start;margin:0;padding:0;color:var(--ui-lk);font:620 var(--ui-fs-bar)/1.3 var(--ui-f);text-align:left;text-decoration:underline;text-decoration-color:var(--ui-lk-line);text-decoration-thickness:1px;text-underline-offset:3px}
.ui-kw-next .task-meta{margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
/* B4 DM5: the task row's date is the date mark at its top right */
.ui-kw-next .task-item{align-items:flex-start}
.ui-kw-next .task-item>.dm{margin:2px 0 0 auto}
/* linked properties: fixed columns, so names, values and areas line up row after row; nothing is cut short, long text wraps */
.ui-kw-landlist{--_kw-cols:minmax(140px,1fr) var(--ui-vb-col-s) 58px 56px;overflow:clip;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-surface)}
.ui-kw-landlist.has-deals{--_kw-cols:minmax(140px,1fr) var(--ui-vb-col-s) 58px minmax(0,1.55fr) 80px}
.ui-kw-lands-h,.ui-kw-land{display:grid;grid-template-columns:var(--_kw-cols);column-gap:14px;align-items:center;padding:0 4px 0 12px}
.ui-kw-lands-h{height:28px;background:var(--ui-th-bg);color:var(--ui-ink-2);font:var(--ui-t-meta);font-weight:540;white-space:nowrap}
.ui-kw-lands-h>.num{text-align:right}
.ui-kw-land{min-width:0;min-height:52px;padding-block:8px;border-top:1px solid var(--ui-td-line)}
.ui-kw-land-id{grid-column:1;min-width:0}
.ui-kw-land-id .lk{overflow-wrap:anywhere}
.ui-kw-land-id .contacts-secondary{display:flex;flex-wrap:wrap;gap:0 12px;margin:2px 0 0;color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-kw-land-id .contacts-secondary>span{white-space:nowrap}
.ui-kw-land-id .contacts-secondary i{color:var(--ui-warn-ink);font-style:normal}
.ui-kw-land-figs,.ui-kw-land-figs>.ui-figs{display:contents}
.ui-kw-land-figs .vb{grid-column:2;justify-self:start}
.ui-kw-land-figs .ab{grid-column:3;justify-self:end}
.ui-kw-land-deal{grid-column:4;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;color:var(--ui-ink-2);font:var(--ui-t-data)}
.ui-kw-land-deal>.tag{max-width:100%;white-space:normal;height:auto;min-height:20px;padding-block:2px;line-height:1.25}
.ui-kw-stepline{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
.ui-kw-stepline .ui-kt-step{min-width:0;color:var(--ui-ink);font:400 var(--ui-fs-m)/1.35 var(--ui-f);overflow-wrap:anywhere}
.ui-kw-nodeal{color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-kw-land-act{grid-column:-2;display:flex;align-items:center;justify-content:flex-end;gap:0}
/* B4 DM5: a row whose step has a date: the mark is the row's top right corner, the trip and open buttons under it */
.ui-kw-land:has(>.ui-kw-land-act.has-dm){align-items:start}
.ui-kw-land-act.has-dm{display:grid;grid-template-columns:auto auto;justify-content:end;justify-items:end;align-items:center;row-gap:4px}
.ui-kw-land-act.has-dm>.dm{grid-column:1 / -1}
.ui-kw-lands .contacts-disclosure{margin:8px 0 0;border:0}
.ui-kw-body summary.b{display:inline-flex;width:auto;margin:0 0 8px}
/* the history: the time, a small mark for the kind on a thin line, the kind (with its property) over the words */
.ui-kw-body .contacts-history-heading{margin:0 0 8px}
.ui-kw-body .contacts-history-heading h3{margin:0}
.ui-kw-hist article.note{display:grid;grid-template-columns:78px 24px minmax(0,1fr);column-gap:10px;row-gap:0;margin:0;padding:0 0 14px;border:0;border-radius:0;background:none;box-shadow:none}
.ui-kw-hist article.note:last-child{padding-bottom:0}
.ui-kw-hist article.note>*{grid-column:3;min-width:0;margin:0}
.ui-kw-hist article.note>.note-meta{grid-column:1;grid-row:1/span 6;display:block;padding-top:4px;color:var(--ui-muted);font:var(--ui-t-meta);text-align:right}
.ui-kw-hist .note-meta>time{white-space:nowrap}
.ui-kw-hist .note-meta>span{display:block}
.ui-kw-hist article.note>.ui-kw-ev-mk{grid-column:2;grid-row:1/span 6;position:relative;display:flex;justify-content:center}
.ui-kw-ev-mk>svg{position:relative;z-index:1;box-sizing:content-box;width:13px;height:13px;padding:5.5px;border-radius:50%;background:var(--ui-stone-2);color:var(--ui-ink-2)}
.ui-kw-ev-mk::after{content:"";position:absolute;top:26px;bottom:-12px;left:50%;width:1px;background:var(--ui-line)}
.ui-kw-hist article.note:last-child>.ui-kw-ev-mk::after{content:none}
.ui-kw-ev-k{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;padding-top:3px;color:var(--ui-ink);font:var(--ui-t-data)}
.ui-kw-ev-k>strong{font-weight:620}
.ui-kw-ev-k>.lk,.ui-kw-hist article.note>.lk{align-self:start;justify-self:start;margin:0;padding:0;color:var(--ui-lk);font:400 12px/1.4 var(--ui-f);text-align:left;text-decoration:underline;text-decoration-color:var(--ui-lk-line);text-underline-offset:3px}
.ui-kw-hist article.note>.lk[data-task]{font:400 var(--ui-fs-m)/1.4 var(--ui-f)}
.ui-kw-hist article.note>.note-text{max-width:68ch;margin-top:1px;color:var(--ui-ink);font:var(--ui-t-body)}
/* the contact card (Janis, 24 Nov 2026: "prettier, more solid and premium", not a filled-in form): one soft panel, a row per
   channel with a small quiet label over the value in plain ink (no underlines until hovered), the copy icon quiet until its row
   is hovered or focused (always shown on touch), "Zvanīt" as the phone row's action, the address on its own lines with its
   tools under it. */
.ui-kw-card{display:flex;flex-direction:column;gap:0;min-width:0;margin:0;padding:2px 14px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-surface);box-shadow:var(--ui-raise-sh)}
.ui-kw-r{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"l a" "v a";column-gap:12px;row-gap:3px;align-items:center;min-width:0;margin:0;padding:12px 0;border-top:1px solid var(--ui-td-line)}
.ui-kw-r:first-child{border-top:0}
.ui-kw-r>dt{grid-area:l;display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;margin:0;color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-kw-r-off{display:inline-flex;align-items:center;gap:4px;color:var(--ui-clay);font-weight:620}
.ui-kw-r-off svg{width:12px;height:12px}
.ui-kw-r-v{grid-area:v;display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;min-width:0;color:var(--ui-ink);font:400 var(--ui-fs-bar)/1.45 var(--ui-f);user-select:text}
.ui-kw-r-v>dd{display:contents}
.ui-kw-r-a{grid-area:a;display:flex;align-items:center;align-self:center}
.ui-kw-r-a a.b{text-decoration:none}
.ui-kw-val{display:flex;flex:1 1 100%;align-items:center;gap:2px;min-width:0}
.ui-kw-v{display:inline;min-width:0;min-height:0;padding:0;color:var(--ui-ink);text-decoration:none}
.ui-kw-tel .ui-kw-v{font-weight:620;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ui-kw-tel-note{display:block;color:var(--ui-muted);font:var(--ui-t-meta);font-variant-numeric:normal}
.ui-kw-mail .ui-kw-v{overflow-wrap:break-word}
.ui-kw-r-v .lmf-addr-line{flex:1 1 100%;min-width:0;padding:0}
.ui-kw-r-v .lmf-addr-line>.lmf-addr{display:inline;color:var(--ui-ink);font-weight:400;text-decoration:none}
:is(a.ui-kw-v,.ui-kw-r-v .lmf-addr):hover{text-decoration:underline;text-decoration-color:var(--ui-lk-line);text-decoration-thickness:1px;text-underline-offset:3px}
:is(a.ui-kw-v,.ui-kw-r-v .lmf-addr):focus-visible{outline:2px solid var(--ui-a);outline-offset:2px;border-radius:3px}
.ui-kw-r-v .contacts-profile-missing{display:inline;color:var(--ui-muted);font:var(--ui-t-body)}
/* copy: quiet until its row is hovered or focused, always shown on touch; kept in the keyboard order */
.ui-kw-card .lmf-addr-copy{opacity:0;transition:opacity var(--ui-t)}
.ui-kw-val:is(:hover,:focus-within) .lmf-addr-copy,.ui-kw-card .lmf-addr-copy.is-done{opacity:1}
@media (hover:none),(pointer:coarse){.ui-kw-card .lmf-addr-copy{opacity:1}}
/* the address's tools: "Kopēt adresi", "Plānot braucienu", "Kad apmeklēt?" on one line under it (decision 155 A, Kapsula) */
.ui-kw-r[data-contact-fact="address"] .ui-kw-r-v{row-gap:8px;column-gap:6px}
.ui-kw-r-v .lmf-addr-act,.ui-kw-rsub{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:6px;min-width:0;margin:0}
/* B4 CA1 (decision 235): the three address tools on one line of the 340 px column: one word each, no icons where a pointer has
   the words (touch keeps its icons, .icp) */
@media (min-width:701px) and (pointer:fine){.ui-kw-r-v .b.t>svg{display:none}}
@media (max-width:700px){.ui-kw-r-v .lmf-addr-act,.ui-kw-rsub{flex-wrap:nowrap;gap:var(--ui-gap);margin:0}}
.ui-kw-rsub:empty{display:none}
.ui-kw-r:has(.contacts-profile-missing) .ui-kw-rsub{flex-basis:100%}
.ui-kw-r:not(:has(.contacts-profile-missing)) .ui-kw-add{display:none}
/* the working notes, the comments (their own section), the CRM links */
.ui-kw-side .contacts-working-note{padding:0 2px}
.ui-kw-side .contacts-working-note p{max-width:70ch;margin:0;color:var(--ui-ink-2);font:var(--ui-t-body);line-height:1.55;overflow-wrap:anywhere;white-space:pre-line}
.ui-kw-body .contacts-comments{padding:0;border:0;background:none}
.ui-kw-side .contacts-crm-links{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;font:var(--ui-t-meta)}
/* "Labot" open: the fields in the right column, the role and share in this property on top (decision 115) */
.ui-kw-edit{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;border:0}
.ui-kw-edit>summary,.ui-kw-edit>summary.b{display:none}
.ui-kw-edit>h3{margin:0}
.ui-kw-edit .contacts-stake-form{margin:0}
.ui-kw-edit .contacts-stake-form fieldset{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:8px 12px;min-width:0;margin:0;padding:10px 12px 12px;border:0;border-radius:var(--ui-r-pop);background:var(--ui-stone-2)}
.ui-kw-edit .contacts-stake-form legend{float:left;grid-column:1/-1;width:100%;margin:0 0 2px;padding:0;color:var(--ui-ink-2);font:620 var(--ui-fs-m)/1.3 var(--ui-f)}
.ui-kw-edit .form-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.ui-kw-edit label{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.ui-kw-edit :is(input,select:not(.ui-sel-src),textarea,.ui-sel){box-sizing:border-box;width:100%;max-width:100%;margin:0}
.ui-kw-edit .actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:12px 0 0}

@media (min-width:701px){
  dialog.contacts-workspace{width:min(1100px,calc(100% - 40px));max-height:92dvh;padding:0}
  .ui-kw-land-id .lk{display:inline;padding:0;font-size:13px;line-height:1.3;text-align:left}
  .contacts-history-heading .lk{padding:0;font-size:13px}
}
/* a PC window too narrow for two columns (701 to 900 px): the person's column goes under the work, as on the phone */
@media (min-width:701px) and (max-width:900px){
  .ui-kw-b .ui-kw-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"who" "side" "main"}
  .ui-kw-side{border-left:0;border-block:1px solid var(--ui-line)}
}

/* PHONE-SEAM */
@media (max-width:700px){
  .ui-kw-head{min-height:52px;padding:6px 52px 6px 6px}
  .ui-kw-back:has(.ui-kw-from)>.l{display:none}
  .ui-kw-from{font-size:var(--ui-fs-m)}
  .ui-kw-from::before{content:none}
  dialog.contacts-workspace>.close-dialog{top:6px;right:6px}
  .ui-kw-b .ui-kw-body{display:flex;flex-direction:column;align-items:stretch;gap:18px;padding:14px 14px 20px}
  .ui-kw-b .ui-kw-body>.ui-kw-id{padding:0}
  .ui-kw-main,.ui-kw-side{display:contents}
  .ui-kw-reach-sec>h3{display:none}
  .ui-kw-av{width:40px;height:40px}
  /* the card: every number, address and link is a 44 px press area (pressed in the car); copy is always shown on touch */
  .ui-kw-card{padding:0 14px}
  .ui-kw-r{padding:8px 0}
  .ui-kw-r-v{font-size:var(--ui-fs-field)}
  .ui-kw-v,.ui-kw-r-v .contacts-profile-missing{display:inline-flex;align-items:center;min-height:var(--ui-hit)}
  .ui-kw-tel .ui-kw-v{flex-direction:column;align-items:flex-start;justify-content:center}
  .ui-kw-r-v .lmf-addr-line>.lmf-addr{display:inline-block;padding:calc((var(--ui-hit) - 22px) / 2) 0}
  .ui-kw-box-hint{display:none}
  .ui-kw-next .task-item{padding:10px 12px 10px 11px}
  .ui-kw-next .check-task{width:22px;height:22px}
  .ui-kw-next .check-task::before{content:"";position:absolute;inset:-12px;width:auto;height:auto;border:0;border-radius:50%;background:none}
  .ui-kw-next .grow>.lk{display:flex;align-items:center;margin:-8px 0 -6px;font-size:var(--ui-fs-m)}
  .ui-kw-lands-h{display:none}
  .ui-kw-land{grid-template-columns:minmax(0,1fr) auto;row-gap:8px;column-gap:8px;min-height:0;padding:12px 2px 12px 12px}
  .ui-kw-lands-h+.ui-kw-land{border-top:0}
  .ui-kw-land-id .lk{margin:-9px 0 -7px;font-size:var(--ui-fs-m)}
  .ui-kw-land-act{grid-column:2;grid-row:1;align-self:start;gap:8px;margin-top:-8px}
  .ui-kw-land-figs{display:block;grid-column:1/-1}
  .ui-kw-land-figs>.ui-figs{display:inline-flex}
  .ui-kw-land-deal{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 10px}
  .ui-kw-hist article.note{grid-template-columns:24px minmax(0,1fr)}
  .ui-kw-hist article.note>*{grid-column:2}
  .ui-kw-hist article.note>.note-meta{grid-column:2;grid-row:1;padding:4px 0 0;text-align:left}
  .ui-kw-hist article.note>.ui-kw-ev-mk{grid-column:1;grid-row:1/span 6}
  .ui-kw-ev-k{padding-top:0}
}

/* ---------- P11: call lists: the property's name (BO1, decision 228: no value badge or area pill) ---------- */
.ui-cl-land{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0}
/* The lists' three disclosures are family buttons (a raised button that looks pressed while open). */
.call-workspace summary.b{display:inline-flex;width:auto;margin:0 0 8px}
.ui-kw-body .empty{padding:8px 0;color:var(--ui-muted);font:var(--ui-t-body);text-align:left}

/* ---------- P12: Partneri (the list, a partner's window, "Jauns partneris"; proposal version 3, drawing 6) ---------- */
/* Search and the kind tabs sit on one baseline at one height (30 px); the tab group is the family's .seg. */
.v31-pa-tools{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-gap)}
.v31-pa-search{flex:0 1 340px;min-width:200px;margin:0}
.v31-pa-search>svg{transform:none}
.v31-pa-seg{flex:none;flex-wrap:nowrap}
/* "Atcelt" and "Saglabāt": one width (P16's pair), with a floor so the pair does not jump when the save words change. */
.v31-pw-f .ui-dlg-pair{grid-auto-columns:minmax(156px,1fr)}   /* B4 PI: room for "Saglabāt tomēr" and "Mēģināt vēlreiz" (110 px let the pair jump) */
.v31-pw-f .b{margin:0}
/* A field marked on save: the family's error line and its words under the field. */
.v31-pw-fl>.errm{margin:0}

/* PHONE-SEAM */
@media (max-width:700px){
  .v31-pa-search{flex-basis:100%;order:-1}   /* the phone keeps the search above the tabs, as it was */
  .v31-pa-seg{width:100%}
  .v31-pw-f .ui-dlg-pair{flex:1;grid-auto-columns:1fr}
}

/* ---------- B4 AL1 (owner's decision 77, his Kontakti screenshot): one slot per kind of item ----------
   Contact details: the icons in one 13 px slot; every value, the dash and "Atļauja reģistrēta" start at one edge after it.
   Properties: the name takes the column (BO1, decision 228: no value badge or area chip in the list).
   Next step: the step's words in one column, the date chips in one column at the cell's end. Partneri: the tag in a fixed
   slot before the phone. A missing value shows nothing (decision 78 c) but keeps its slot. */
@media (min-width:701px){
  .ui-kt-table .contacts-channels>:is(.ui-kt-none,.contacts-secondary,.tag){margin-left:19px}
  .ui-kt-land-top>.lk{display:block;justify-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .v31-pa-chips{width:104px;justify-content:flex-start}
  .ui-cl-land>.lk{display:block;justify-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
/* the phone keeps its card layout */
@media (max-width:700px){
  .ui-kt-land-top>.lk{display:block;justify-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .v31-pa-chips{width:auto;min-width:0;justify-content:flex-end}
  .ui-cl-land>.lk{display:block;justify-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
/* ---------- B4 PP1 (owner's decision 99, the decision 77 rule): the Partneri row in fixed columns ----------
   icon | name | kind | town | busy tags (AL1's 104 px slot) | phone | chevron, each at the same x on every row. The kind is the
   family's neutral .tag (partners have no kind colours), the town plain text; a missing town leaves its column empty.
   The name column stops at 360 px and the town column takes the rest, so kind and town stay near the name on a wide screen.
   The phone keeps its two-line card with the same order: name on top, then kind and town in their own columns. */
.v31-pa-row{--_pa-name:360px;--_pa-kind:132px;--_pa-town:140px;display:grid;align-items:center;column-gap:var(--ui-gap)}
.v31-pa-list>li>.v31-pa-row{border-top:0}
.v31-pa-nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* B4 W7: "Dara" under the name (IMPACT 9), quiet, one line, cut with an ellipsis; the row's columns stay where they are. */
.v31-pa-does{display:block;overflow:hidden;color:var(--ui-ink-2);font:400 12px/1.35 var(--ui-f);text-overflow:ellipsis;white-space:nowrap}
.v31-pa-row.is-off .v31-pa-does{color:var(--ui-muted)}
.v31-pa-kind{display:flex;min-width:0}
.v31-pa-kind>.tag{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.v31-pa-town{min-width:0;overflow:hidden;color:var(--ui-ink-2);font:400 13px/1.4 var(--ui-f);white-space:nowrap;text-overflow:ellipsis}
.v31-pa-row.is-off .v31-pa-town{color:var(--ui-muted)}
@media (min-width:901px){
  .v31-pa-row{grid-template-columns:var(--v31-gut) minmax(0,var(--_pa-name)) var(--_pa-kind) minmax(var(--_pa-town),1fr) 104px 168px 16px}
}
@media (min-width:701px) and (max-width:900px){
  .v31-pa-row{grid-template-columns:var(--v31-gut) minmax(0,var(--_pa-name)) var(--_pa-kind) minmax(var(--_pa-town),1fr) 104px 16px}
}
/* PHONE-SEAM */
@media (max-width:700px){
  .v31-pa-row{--_pa-kind:104px;grid-template-columns:var(--v31-gut) var(--_pa-kind) minmax(0,1fr) auto 16px;grid-template-areas:"ic nm nm chips chev" "ic kind town chips chev";row-gap:3px}
  .v31-pa-ic{grid-area:ic}
  .v31-pa-nm{grid-area:nm}
  .v31-pa-kind{grid-area:kind}
  .v31-pa-town{grid-area:town}
  .v31-pa-chips{grid-area:chips}
  .v31-pa-row>.v31-pa-chev{grid-area:chev}
  .v31-pa-does{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal} /* B4 W7: on the phone Dara wraps to two lines, not cut at one */
}
.ui-kw-land-figs .ui-figs>.vb.ui-score[data-score-missing]{display:inline-flex}   /* B4 FX1: the contact window's property lines too (decision 78 c) */
/* B4 TX1 (text audit K2): the phone card hides a labelled field that has nothing in it */
@media (max-width:1050px){
.contacts-table td:empty{display:none}
}
/* B4 DS2: the partner window. Rows are the family's row button, the date mark stands last on the line (decision 156); what a partner buys or
   does is picked with tick boxes (decision 149); a long e-mail breaks at any letter rather than run out of the card */
.v31-pw-row .rw-s{white-space:normal}
.v31-pw-row>.dm{flex:none;align-self:center}
.v31-pw-sp>.v31-pw-ck{display:inline-flex;align-items:center;gap:8px;min-height:var(--ui-h-s);margin:0 8px 0 0;color:var(--ui-ink);font:var(--ui-t-body);cursor:pointer}
.v31-pw-link{overflow-wrap:anywhere}
.v31-pk-ok.b{flex:1 1 auto}
@media (max-width:700px){.ui-kt-table .ui-kt-land-top>.lk,.ui-cl-land>.lk{min-height:var(--ui-hit);line-height:var(--ui-hit)}}

/* B4 AD1 (decision 185, audit B21 A): the phone or e-mail under the name (HOTFIX-CARDS: no "Kad apmeklēt?" on the row). */
.ui-kt-table .contacts-identity>.ui-kt-reach{display:block;margin:2px 0 0}
.ui-kt-reach>.tag{margin-top:2px}
@media (min-width:701px){
  .ui-kt-reach>:is(.contacts-secondary,.tag){margin-left:19px}
}
@media (max-width:700px){
  .ui-kt-reach :is(a,.contacts-recorded-phone){display:flex;align-items:center;gap:6px;min-height:32px;font-size:13px}
}
/* D3 (next version): a restricted person's contact block (lmf-sections.js). Masked: one quiet line. On click: «Rādīt kontaktus»
   with its one-line note; after the click the three rows as the normal card. Phone: the button keeps the touch target. */
.lmf-reach-masked .lmf-masked{margin:0;color:var(--ui-muted);font:var(--ui-t-body)}
.lmf-reveal-row dd{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-sp-2);margin:0}
.lmf-reveal-note{color:var(--ui-muted);font:var(--ui-t-meta)}
.lmf-reveal-error{flex-basis:100%;font:var(--ui-t-meta);color:var(--ui-dng-edge)}
.lmf-reach-masked:focus{outline:none}
.lmf-reach-masked:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media (max-width:700px){.lmf-reveal-row .b[data-lmf-reveal]{height:auto;min-height:var(--ui-hit)}}
/* D3: a filter control whose data section the person may not read leaves the panel (<html data-lmf-hide>, lmf-sections.js) */
[data-lmf-hide~="vertiba"] :is(label:has(> :is(input,select)[name="minScore"]),label:has(> :is(input,select)[name="maxScore"]),.search-quick-filter:has(input[name="sale"])),
[data-lmf-hide~="meza_dati"] :is(label:has(> :is(input,select)[name="minVolume"]),label:has(> :is(input,select)[name="maxVolume"]),label:has(> :is(input,select)[name="minAge"]),label:has(> :is(input,select)[name="maxAge"]),.search-quick-filter:has(input[name="oldInventory"]),.search-quick-filter:has(input[name="inventEnds"])),
[data-lmf-hide~="ipasnieka_kontakti"] .search-quick-filter:has(input[name="withContact"]),
[data-lmf-hide~="kontaktu_darbs"] :is(.search-quick-filter:has(input[name="hasComment"]),.search-quick-filter:has(input[name="noNext"]),.search-quick-filter:has(input[name="noActivity"]),label:has(> select[name="stage"])){display:none}
/* D5 Žurnāls and Pārskatīt piekļuvi (workspace-access-log.js): plain lists in the Settings panel, one row per line on PC, stacked on the phone */
.al{display:flex;flex-direction:column;gap:12px;max-width:60rem}
.al-lead,.al-due{margin:0;color:var(--ui-ink-2);font:var(--ui-t-body)}
.al-due.late{color:var(--ui-clay);font-weight:620}
.al-fl{display:flex;flex-direction:column;gap:6px;max-width:24rem;font:620 var(--ui-fs-label)/1.3 var(--ui-f);color:var(--ui-ink-2)}
.al-hits{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.al-h{margin:4px 0 0;font:var(--ui-t-head);color:var(--ui-ink)}
.al-rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--ui-line)}
.al-row{display:grid;grid-template-columns:9.5rem minmax(9rem,1fr) minmax(8rem,1fr) minmax(8rem,1.2fr);gap:4px 12px;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--ui-line);font:var(--ui-t-body);color:var(--ui-ink)}
.al-row time{font-variant-numeric:tabular-nums;color:var(--ui-ink-2)}
.al-who,.al-where{color:var(--ui-ink-2);overflow-wrap:anywhere}
.al-review>.al-row{grid-template-columns:minmax(9rem,1fr) minmax(10rem,1.4fr) auto auto}
.al-empty{margin:0;color:var(--ui-muted);font:var(--ui-t-meta)}
.al-row>.tag{justify-self:start}
@media (max-width:700px){.al-row,.al-review>.al-row{grid-template-columns:1fr}.al-row .seg{justify-self:start}}
/* D6 user card (workspace-access-card.js) and Saraksti / Uzņēmumi (workspace-access-admin.js), in the Settings frame.
   The family's own controls (.b .seg .ck .in .sel .ta .tile .tag); one column on the phone, 44 px targets there. */
.ac,.aa{display:flex;flex-direction:column;gap:var(--ui-sp-4);min-width:0;max-width:56rem}
.ac-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--ui-sp-2) var(--ui-sp-4)}
.ac-head h2,.ac-head h3{margin:0;font:var(--ui-t-row);color:var(--ui-ink);overflow-wrap:anywhere}
.ac-head>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.ac-head-act{display:flex;flex-wrap:wrap;gap:var(--ui-sp-2)}
.ac-quiet{margin:0;color:var(--ui-muted);font:var(--ui-t-meta);max-width:64ch}
.ac-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--ui-sp-3) var(--ui-sp-4)}
.ac-fl{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font:620 var(--ui-fs-label)/1.3 var(--ui-f);color:var(--ui-ink-2)}
.ac-fl :is(.in,.sel:not(.ui-sel-src)){width:100%;min-width:12rem}
.ac-fl .ta{width:100%;font:var(--ui-t-body)}
.ac-num .in{min-width:0;width:7rem}
.ac-ck{display:flex;align-items:center;gap:var(--ui-sp-2);margin:0;min-height:32px;font:var(--ui-t-body);color:var(--ui-ink);cursor:pointer}
.ac-ck small{color:var(--ui-muted);font:var(--ui-t-meta)}
.ac-ck:has(.ck:disabled){color:var(--ui-muted);cursor:default}
.ac-tplline{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-sp-2) var(--ui-sp-3);font:var(--ui-t-body);color:var(--ui-ink-2)}
.ac-tplline b{color:var(--ui-ink)}
.ac-count{margin:0;padding:var(--ui-sp-2) var(--ui-sp-3);border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-stone-2);color:var(--ui-ink);font:var(--ui-t-data);font-variant-numeric:tabular-nums}
.ac-count:empty{display:none}
.ac-tabs{align-self:flex-start;max-width:100%;overflow-x:auto;scrollbar-width:none}
.ac-tabs::-webkit-scrollbar{display:none}
.ac-panel{display:flex;flex-direction:column;gap:var(--ui-sp-4);min-width:0}
.ac-panel:focus-visible{outline:2px solid var(--ui-a);outline-offset:4px}
.ac-set{display:flex;flex-direction:column;gap:var(--ui-sp-2);min-width:0;margin:0;padding:0 0 var(--ui-sp-4);border:0;border-bottom:1px solid var(--ui-line)}
.ac-set:last-child{border-bottom:0;padding-bottom:0}
.ac-set legend{padding:0 0 var(--ui-sp-2);font:var(--ui-t-head);color:var(--ui-ink)}
.ac-set:disabled legend{color:var(--ui-muted)}
.ac-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:2px var(--ui-sp-4)}
.ac-chips,.ac-hits{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.ac-chips .tag{height:auto;min-height:24px;padding:2px 2px 2px 8px;gap:2px}
.ac-x{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0;padding:0;border:0;border-radius:50%;background:none;color:var(--ui-ink-2);cursor:pointer}
.ac-x:hover{background:var(--ui-track-hover);color:var(--ui-ink)}
.ac-x:focus-visible{outline:2px solid var(--ui-a);outline-offset:1px}
.ac-x svg{width:14px;height:14px}
.ac-sections{list-style:none;margin:0;padding:0;border-top:1px solid var(--ui-line)}
.ac-sections>li{display:grid;grid-template-columns:minmax(10rem,1fr) auto;align-items:center;gap:var(--ui-sp-2) var(--ui-sp-4);padding:6px 0;border-bottom:1px solid var(--ui-line)}
.ac-sec{font:var(--ui-t-body);color:var(--ui-ink)}
.ac-reach{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-sp-2) var(--ui-sp-3);font:var(--ui-t-body);color:var(--ui-ink-2)}
.ac-hints{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.ac-hints:empty{display:none}
.ac-hints li{padding:6px 10px;border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface);color:var(--ui-ink-2);font:var(--ui-t-meta)}
.ac-foot{display:flex;flex-direction:column;gap:var(--ui-sp-2)}
.ac-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--ui-sp-2)}
.ac-step h3,.ac-done h3,.aa-form h3{margin:0;font:var(--ui-t-row);color:var(--ui-ink)}
.ac-step,.ac-done{display:flex;flex-direction:column;gap:var(--ui-sp-3);align-items:flex-start}
.ac-tpls{display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:var(--ui-sp-2);width:100%}
.ac-tpl{align-items:flex-start;justify-content:flex-start;text-align:left;min-height:72px;gap:4px}
.ac-tpl b{font:var(--ui-t-data);color:var(--ui-ink)}
.ac-tpl span{font:var(--ui-t-meta);color:var(--ui-ink-2);text-shadow:none}
.ac-tpl[aria-pressed="true"]{border-color:var(--ui-a);box-shadow:var(--ui-raise-sh),0 0 0 1px var(--ui-a)}
.ac-done p{margin:0;max-width:60ch;font:var(--ui-t-body);color:var(--ui-ink-2)}
.ac-pw{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-sp-3)}
.ac-pw code{padding:8px 14px;border:1px solid var(--ui-line-2);border-radius:var(--ui-r-card);background:var(--ui-surface);color:var(--ui-ink);font:var(--ui-t-row);font-variant-numeric:tabular-nums;letter-spacing:.06em;user-select:all}
.ac-pw code:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
.aa-rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--ui-line)}
.aa-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:var(--ui-sp-2) var(--ui-sp-3);padding:8px 0;border-bottom:1px solid var(--ui-line)}
.aa-row>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.aa-row b{font:var(--ui-t-data);color:var(--ui-ink);overflow-wrap:anywhere}
.aa-row:not(:has(>.tag)){grid-template-columns:minmax(0,1fr) auto}
.aa-form{display:flex;flex-direction:column;gap:var(--ui-sp-3);min-width:0}
.aa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(13rem,1fr));gap:var(--ui-sp-3) var(--ui-sp-4)}
.aa-props{list-style:none;margin:0;padding:0;max-height:22rem;overflow:auto;display:flex;flex-direction:column}
.aa-cad{font-variant-numeric:tabular-nums;color:var(--ui-ink-2)}
/* the open card takes the section's whole width; the user list waits behind «Atpakaļ uz lietotājiem» */
.accounts-users.is-editing:has([data-access-card-host]) .accounts-users-layout{grid-template-columns:minmax(0,1fr)}
.accounts-users.is-editing:has([data-access-card-host]) .accounts-register{display:none}
.ac-checks>.ac-more{grid-column:1/-1}
.ac-more{display:flex;flex-direction:column;gap:var(--ui-sp-2)}
.ac-more>summary{align-self:flex-start;list-style:none}
.ac-more>summary::-webkit-details-marker{display:none}
.ac-more[open]>summary{margin-bottom:var(--ui-sp-2)}
.aa-warn{display:flex;flex-direction:column;gap:var(--ui-sp-2);padding:var(--ui-sp-3);border:1px solid var(--ui-clay);border-radius:var(--ui-r-card);background:var(--ui-surface);font:var(--ui-t-body);color:var(--ui-ink)}
.aa-warn p,.aa-warn ul{margin:0}
.aa-warn ul{padding-left:1.2em}
.accounts-card-host{min-width:0}
@media (max-width:860px){
  .ac-sections>li{grid-template-columns:1fr}
  .ac-sections .seg{justify-self:start}
  .ac-checks{grid-template-columns:1fr}
  .ac-ck{min-height:var(--ui-hit,44px)}
  .ac-fl :is(.in,.sel:not(.ui-sel-src)){min-width:0}
  .ac-row>.ac-fl{flex:1 1 100%}
  .ac-actions{justify-content:stretch}
  .ac-actions>.b{flex:1 1 auto}
  .ac-tabs>button{flex:1 1 auto}
  .aa-row{grid-template-columns:minmax(0,1fr) auto}
  .aa-row>.tag{grid-row:2;justify-self:start}
  .ac-x{width:36px;height:36px}
}
}

/* /forest/lmf-page-deals.css */
@layer pages{
/* LMF page layout: lmf-page-deals.css, owned by P13 to P15 (Darījumi, Šodien, Plānotājs). Stub linked by P2 so no page package edits index.html.
   Desktop layout rules sit inside @media (min-width:701px); phone changes only in PHONE-SEAM blocks.
   Colours, type and the touch sizes come from the family tokens (--ui-*), so the look holds on every width; only geometry that
   is meant for a PC sits in a min-width block. The area is deals (timber ochre); a trip block sets data-area="forest" itself. */

/* ================= P13 Darījumi: the board ================= */

/* The page head: title, the view tabs, the drag tick box. */
.v31-page[data-v31-page="deals"]>.v31-page-head{gap:12px;margin-bottom:12px}
.v31-db-seg{margin-inline-start:0}
/* B4 OF2-P5: "Pārvilkt" is the family's tick label (.cl) with its soft square box (.ck); the page keeps it on one line */
.v31-db-dragl{margin:0;white-space:nowrap}
.v31-db-dragl>input{margin:0}

/* Columns: stone surfaces, the count, a timber bar, the name. */
.v31-db-cols{gap:8px}
.v31-db-col{min-height:120px;padding:0;border-radius:var(--ui-r-pop)}   /* B4 PL2: its surface is the family's .col.sat */
.v31-db-col-h{gap:6px;padding:8px 8px 6px}
.v31-db-col-n{align-items:center;gap:6px;min-height:22px}
.v31-db-col-n b{color:var(--ui-ink);font:700 var(--v31-fs-lg)/1 var(--ui-f)}
/* B4 DM2 (decision 156): the column's late count is the date mark's count, "kavējas N", at the head's right end */
.v31-db-col-n>.dm-n{margin-left:auto}
.v31-db-bar{height:3px;border-radius:2px}
.v31-db-bar.is-zero{background:var(--ui-line)}
.v31-db-col-t{gap:6px;color:var(--ui-ink-2);font:var(--ui-t-body)}
.v31-db-col-t .v31-i{width:14px;height:14px;color:var(--ui-ink-2)}
.v31-db-col-b{gap:6px;padding:0 8px 8px}
.v31-db-col.is-over{outline:0}   /* B4 PL2: the family's .col.sat.over lifts it */

/* Cards: flat surfaces. Name, the score (the strongest figure), "..."; then forest area and the deal on one quiet line. */
/* B4 DS5 (plan 2.10): a card on a stone column is .card.sub: the control corner 7 and the one soft drop, padding 8 */
.v31-db-card{gap:4px;padding:8px;border-color:var(--ui-line);border-radius:var(--ui-r)}   /* B4 PL2: the family's .card.sat */
.v31-db-card.is-late{border-color:var(--ui-line)}
.v31-db-card.is-late:hover{border-color:var(--ui-line-2)}
.v31-db-card-h{align-items:flex-start;gap:6px}
.v31-db-open{min-height:max(var(--ui-h-s),var(--ui-hit));padding:4px 0;color:var(--ui-ink);font:700 var(--ui-fs-m)/1.35 var(--ui-f)}
.v31-db-open:hover{color:var(--ui-ink)}
.v31-db-open:focus-visible::after{outline-color:var(--ui-a)}
.v31-db-more{margin:0}
.v31-db-sub{color:var(--ui-muted);font:var(--ui-t-meta)}
.v31-db-who{color:var(--ui-muted)}
.v31-db-line,.v31-db-kept{gap:6px;color:var(--ui-ink);font:var(--ui-t-body);line-height:1.3}
.v31-db-kept,.v31-db-card.is-closed .v31-db-line{color:var(--ui-ink-2)}
.v31-db-line .v31-i,.v31-db-kept .v31-i,.v31-db-line.is-wait .v31-i{width:14px;height:14px;margin-top:2px;color:var(--ui-ink-2)}
.v31-db-foot{gap:4px 6px;margin-top:2px}
/* B4 W3 (workflow): the kind switch is the same segmented control as the view switch; the forest area sits in the card's head
   between the name and the score (decision 98); the kind chip is a foot tag like the date (it takes the service pictures' place);
   the closed view's year totals are one quiet line. */
/* B4 DM2 (decision 156): the head is the name and the date mark, top right; the kind and "..." at the foot's right (B4 PL2,
   decision 228: no value or area on the card). A kind's own board has up to seven columns: the name keeps a readable width and, if
   there is no room, the mark wraps under it to the right, never one letter per line. */
.v31-db-card-h{flex-wrap:wrap;gap:4px 8px}
.v31-db-card-h>.v31-db-open{flex:1 1 5.5em;min-width:5.5em}
.v31-db-card-h>.dm{margin:5px 0 0 auto}
.v31-db-foot{align-items:center;margin-top:3px}
/* the kind and "..." stay together at the foot's right end, also when a narrow column wraps the foot */
.v31-db-end{display:inline-flex;flex:none;align-items:center;gap:6px;margin-inline-start:auto}
.v31-db-end>.v31-db-more{position:relative;flex:none;margin:-3px -6px -3px -2px}
.v31-db-size{font-variant-numeric:tabular-nums;white-space:nowrap}
.v31-db-totals{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:0 0 8px;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.v31-db-totals .v31-i{width:14px;height:14px;margin-inline-end:-8px;color:var(--ui-ink-2)}
.v31-db-totals b{color:var(--ui-ink);font-weight:620}
.v31-db-total{font-variant-numeric:tabular-nums;white-space:nowrap}
/* the kind chip in the foot is a flat tag (information), as the family draws them */
.v31-db-inform,.v31-db-svc{width:20px;height:20px}
.v31-db-inform{background:var(--ui-warn-tint);color:var(--ui-warn-ink)}
.v31-db-svc{background:var(--ui-stone-2);color:var(--ui-ico-mute)}
.v31-db-svc.is-now{background:var(--ui-a);color:var(--ui-on-fill)}
.v31-db-svc.is-done{background:var(--ui-stone-2);color:var(--ui-ink-2)}
.v31-db-inform .v31-i,.v31-db-svc .v31-i{width:12px;height:12px}
.v31-db-none{border-color:var(--ui-line-2);border-radius:var(--ui-r-pop);background:var(--ui-surface);color:var(--ui-ink-2)}

/* "Pārvietot uz..." when the shared menu (lmf-menu.js) is not loaded: the board's own list in the family's panel look. */
.v31-db-menu{top:34px;gap:0;width:232px;padding:4px;border:0;border-radius:var(--ui-r-pop);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh)}
.v31-db-menu.is-up{bottom:calc(100% - 30px)}
.v31-db-menu-h{padding:6px 8px 4px;color:var(--ui-muted);font:var(--ui-t-meta)}
.v31-db-menu-l{gap:0}
.v31-db-item{gap:8px;height:var(--ui-h-m);min-height:0;padding:0 8px;border-radius:var(--ui-r-in);color:var(--ui-ink);font:400 var(--ui-fs-m)/1 var(--ui-f)}
.v31-db-item .v31-i{width:14px;height:14px;color:var(--ui-ink-2)}
.v31-db-item:hover,.v31-db-item:focus-visible,.v31-db-item[aria-busy="true"]{background:var(--ui-wash)}
.v31-db-item:focus-visible{box-shadow:inset 0 0 0 2px var(--ui-a)}
.v31-db-item-b{color:var(--ui-muted);font:var(--ui-t-meta)}
.v31-db-menu-pre{padding:6px 8px;border-top-color:var(--ui-line);color:var(--ui-ink-2);font:var(--ui-t-meta)}
.v31-db-menu-pre.is-refused{color:var(--ui-clay)}

/* PC: columns share the width equally whatever their cards hold; a column with no deals folds to a 44 px rail and opens while
   a card is dragged over it. Below 1180 px the board keeps its wrapped rows (four columns a row), unfolded. */
@media (min-width:1180px){
.v31-db-col{flex:1 1 0;min-width:0}
.v31-db-cols.is-closed>.v31-db-col{flex:0 1 360px}
.v31-db-col.is-fold{flex:0 0 44px;background:var(--ui-stone-col)}
.v31-db-col.is-fold.is-over{flex:1 1 0;background:var(--ui-a-soft)}
.v31-db-col.is-fold:not(.is-over)>.v31-db-col-h{align-items:center;padding:8px 4px}
.v31-db-col.is-fold:not(.is-over) .v31-db-col-n b{color:var(--ui-muted)}
.v31-db-col.is-fold:not(.is-over) .v31-db-bar{display:none}
.v31-db-col.is-fold:not(.is-over) .v31-db-col-t{min-width:0;color:var(--ui-muted);font:var(--ui-t-meta);writing-mode:vertical-rl;transform:rotate(180deg)}
.v31-db-col.is-fold:not(.is-over) .v31-db-col-t>.v31-i{transform:rotate(90deg);color:var(--ui-ico-mute)}
.v31-db-col.is-fold:not(.is-over)>.v31-db-col-b{display:none}
}

/* PHONE-SEAM (P13): the board stacks as before (legacy rules). B4 OF2-P5 (decision 198): the head is two lines, the title with the
   page's "…" (Pārvilkt and Darījumi CSV move into it), then the two switches (the kinds wrap, see the end of this sheet). */
.v31-db-pmore{display:none}
@media (max-width:700px){
.v31-page[data-v31-page="deals"]>.v31-page-head{flex-wrap:wrap;row-gap:8px}
.v31-page[data-v31-page="deals"]>.v31-page-head>:first-child{flex:1 1 calc(100% - 56px);min-width:0}   /* the title and "…" take the first line */
.v31-page[data-v31-page="deals"]>.v31-page-head>.v31-db-pmore{display:inline-flex;order:1;margin-left:auto}
.v31-page[data-v31-page="deals"]>.v31-page-head>:is(.v31-db-dragl,[data-v31-csv]){display:none}
.v31-page[data-v31-page="deals"]>.v31-page-head>.v31-db-seg{order:2;flex:none}
}
/* B4 OF2-P5: the foot's "..." is the family's quiet round icon button; on touch the family's own rule makes it answer on 44 px */

/* ================= Next version DH2: the Darījumu arhīvs =================
   The Darījumu arhīvs (workspace-deal-archive.js). Darījumi › Arhīvs: filter row, totals, a table on a PC and
   two-line rows on a phone; the card lists (partner, owner, property window): totals and rows only. Tokens only (lmf-tokens.css). */
.v31-ar{display:flex;flex-direction:column;gap:var(--ui-sp-3);min-width:0}
.v31-ar[aria-busy="true"] .v31-ar-tablewrap,.v31-ar[aria-busy="true"] .v31-ar-list{opacity:.6;transition:opacity var(--ui-t)}

/* filter row: search grows, the selects keep their words; wraps on a phone */
.v31-ar-filters{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-sp-2)}
.v31-ar-search{position:relative;display:flex;align-items:center;flex:1 1 280px;min-width:0;max-width:420px}
.v31-ar-search>svg{position:absolute;inset-inline-start:11px;width:14px;height:14px;color:var(--ui-ink-2);pointer-events:none}
.v31-ar-search>.in{width:100%;padding-inline-start:32px}
.v31-ar-sel{flex:0 0 auto;max-width:240px}

/* totals: counts on one line, the three sums on the next (only for money readers) */
.v31-ar-totals{display:flex;flex-direction:column;gap:2px}
.v31-ar-counts,.v31-ar-money{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px;margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta);font-variant-numeric:tabular-nums}
.v31-ar-counts b{color:var(--ui-ink);font-weight:620}
.v31-ar-money b{color:var(--ui-ink);font-weight:620;white-space:nowrap}
.v31-ar-tot{white-space:nowrap}

/* the table (PC) */
.v31-ar-tablewrap{overflow-x:auto;border:1px solid var(--ui-line);border-radius:var(--ui-r);background:var(--ui-surface)}
.v31-ar-table{width:100%;border-collapse:collapse;font:var(--ui-t-body);color:var(--ui-ink)}
.v31-ar-table th{padding:8px 12px;border-bottom:1px solid var(--ui-line);background:var(--ui-stone-2);color:var(--ui-ink-2);font:var(--ui-t-head);text-align:start;white-space:nowrap}
.v31-ar-table td{padding:8px 12px;border-top:1px solid var(--ui-line);vertical-align:middle}
.v31-ar-table tr:first-child>td{border-top:0}
.v31-ar-table tbody tr:hover{background:var(--ui-wash)}
.v31-ar-table .num{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}
.v31-ar-table th.num{text-align:end}
.v31-ar-table .is-zero,.v31-ar-fig.is-zero{color:var(--ui-muted)}
.v31-ar-day{color:var(--ui-ink-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.v31-ar-owner,.v31-ar-partners{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-2)}
/* the family link (.lk) on the name only: the place reads as the link, the deal and number under it stay plain */
.v31-ar-open{display:flex;align-items:center;gap:8px;width:100%;min-width:0;margin:0;padding:0;border:0;background:none;color:var(--ui-ink);font:var(--ui-t-body);text-align:start;text-decoration:none;cursor:pointer}
.v31-ar-open:focus-visible{outline:2px solid var(--ui-a);outline-offset:3px;border-radius:var(--ui-r-in)}
.v31-ar-name{display:flex;flex-direction:column;min-width:0}
.v31-ar-place{overflow:hidden;color:var(--ui-lk);font:var(--ui-t-data);text-overflow:ellipsis;white-space:nowrap;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--ui-lk-line)}
.v31-ar-open:hover .v31-ar-place{text-decoration-color:currentColor}
.v31-ar-sub{overflow:hidden;color:var(--ui-muted);font:var(--ui-t-meta);text-overflow:ellipsis;white-space:nowrap;text-decoration:none}
.v31-ar-kind{display:inline-grid;place-items:center;flex:none;width:16px;color:var(--ui-ink-2)}
.v31-ar-kind svg{width:14px;height:14px}
.v31-ar-out{white-space:nowrap}
.v31-ar-out svg{width:12px;height:12px}
.v31-ar-out--done{background:var(--ui-pine-tint);color:var(--ui-pine)}
.v31-ar-out--lost{background:var(--ui-clay-tint);color:var(--ui-clay)}

/* the rows (phone, and every card list) */
.v31-ar-list{margin:0;padding:0;list-style:none;border:1px solid var(--ui-line);border-radius:var(--ui-r);background:var(--ui-surface);overflow:hidden}
.v31-ar-item{width:100%}
.v31-ar-item .rw-t{display:flex;align-items:center;gap:6px}
.v31-ar-ic{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ui-stone-2);color:var(--ui-ink-2)}
.v31-ar-ic svg{width:14px;height:14px}
.v31-ar-item--done .v31-ar-ic{background:var(--ui-pine-tint);color:var(--ui-pine)}
.v31-ar-item--lost .v31-ar-ic{background:var(--ui-clay-tint);color:var(--ui-clay)}
.v31-ar-figs{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:1px;font:var(--ui-t-data);font-variant-numeric:tabular-nums;white-space:nowrap}
.v31-ar-fig--out{color:var(--ui-ink-2);font:var(--ui-t-meta);font-variant-numeric:tabular-nums}
.v31-ar-more{display:flex;justify-content:center}
.v31-ar-skel{display:flex;flex-direction:column;gap:8px}
.v31-ar-skel i{display:block;height:40px;border-radius:var(--ui-r);background:var(--ui-stone-2)}

/* the board's Arhīvs: rows by default and always on the cards; the table on a PC */
.v31-ar-tablewrap{display:none}
@media (min-width:701px){
  .v31-ar:not(.v31-ar--compact) .v31-ar-tablewrap{display:block}
  .v31-ar:not(.v31-ar--compact) .v31-ar-list{display:none}
}
/* PHONE-SEAM (DH2): the search takes the whole line, the three selects share the next; a row's second line may wrap once */
@media (max-width:700px){
  .v31-ar-search{flex-basis:100%;max-width:none}
  .v31-ar-sel{flex:1 1 140px;min-width:0;max-width:none}
  .v31-ar-item .rw-s{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}
.v31-ar-card{display:flex;flex-direction:column;gap:var(--ui-sp-2);min-width:0}
.v31-ar-h{margin:0;font:var(--ui-t-head);color:var(--ui-ink-2)}
.v31-ar--compact{gap:var(--ui-sp-2)}
/* the property window: the list sits under the tab's rows with their inset and their rule line */
.pw-dt>.v31-dt-archive{box-sizing:border-box;margin:0;padding:10px 16px 14px 18px;border-top:1px solid var(--ui-ochre-line)}
/* NX closed deals (30 Nov, Janis: finished deals must not bloat the window): the block folds to one line, a disclosure button
   (workspace-deal-archive.js lineHtml): the heading, the count, the latest closed deal, the sums; open, only the heading and its
   chevron stay above the totals and rows. Folded is the band's [data-pw-arfolded] (workspace-property-window.js). A phone puts the
   sums on a second line. A quiet row the block lists is hidden (no deal shown twice). */
.pw-band[data-pw-arfolded] .v31-dt-archive>[data-v31-ar-body]{display:none}
.pw-band[data-pw-arfolded] .pw-dt>.v31-dt-archive{padding-block:4px 8px}
.pw-dt>[data-v31-closed-row][hidden]{display:none}
.v31-ar-line{display:flex;align-items:center;gap:4px 14px;box-sizing:border-box;width:100%;min-width:0;min-height:var(--ui-h-m);margin:0;padding:0;border:0;border-radius:var(--ui-r-ctl);background:none;color:var(--ui-ink-2);font:var(--ui-t-head);text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.v31-ar-line-h{flex:none;white-space:nowrap}
.v31-ar-line-sum{display:flex;flex:1 1 auto;align-items:baseline;gap:2px 14px;min-width:0;font:var(--ui-t-meta);font-variant-numeric:tabular-nums}
.v31-ar-line-n{flex:none;white-space:nowrap}
.v31-ar-line-n b{color:var(--ui-ink);font-weight:620}
.v31-ar-line-l{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v31-ar-line-k{color:var(--ui-muted)}
/* Fix round (Sol 1): the sums wrap as whole units (a label never parts from its amount) and never run past the line */
.v31-ar-line-m{display:flex;flex:none;flex-wrap:wrap;gap:2px 14px;max-width:100%;min-width:0;margin-left:auto}
.v31-ar-line-m>.v31-ar-sum{white-space:nowrap}
.v31-ar-line-m b{color:var(--ui-ink);font-weight:620}
.v31-ar-line-x{color:var(--ui-ink-2)}
.v31-ar-line .v31-ar-line-c{flex:none;width:14px;height:14px;margin-left:auto;color:var(--ui-tl-ic);transform:rotate(90deg);transition:transform var(--ui-t)}
.v31-ar-line[aria-expanded="true"] .v31-ar-line-sum{display:none}
.v31-ar-line[aria-expanded="true"] .v31-ar-line-c{transform:rotate(-90deg)}
.v31-ar-line:hover,.v31-ar-line:hover .v31-ar-line-c{color:var(--ui-ink)}
.v31-ar-line:focus-visible{outline:2px solid var(--ui-a);outline-offset:2px}
@media (max-width:699px){
  .v31-ar-line{flex-wrap:wrap;padding-block:6px}
  .v31-ar-line-h{flex:1 1 auto}
  .v31-ar-line .v31-ar-line-c{order:1;margin-left:0}
  .v31-ar-line-sum{order:2;flex:1 1 100%;flex-wrap:wrap}
  .v31-ar-line-l{flex:1 1 0}
  .v31-ar-line-m{flex-basis:100%;margin-left:0}
}
@media (prefers-reduced-motion:reduce){.v31-ar-line .v31-ar-line-c{transition:none}}
@media (forced-colors:active){.v31-ar-line:focus-visible{outline-color:Highlight}}
@media (prefers-reduced-motion:reduce){.v31-ar[aria-busy="true"] .v31-ar-tablewrap,.v31-ar[aria-busy="true"] .v31-ar-list{transition:none}}

/* ================= P14 Šodien ================= */
/* No filled button on this page: nothing here is "the" action. Rows are flat; every row that stands for a property shows its
   score and forest area; the marks are the family's square tick boxes; only the trip card is forest (its own data-area). */
.v31-page[data-v31-page="today"]>.v31-page-head{margin-bottom:12px}
.v31-td2{gap:12px;margin-inline:auto} /* centred in the page on screens wider than its 1392 px cap (Janis, 22 Nov) */

/* the deals strip (kept from the old page; quiet) */
.v31-td2-strip{border-color:var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-surface);box-shadow:none}
.v31-td2-strip a:hover{background:var(--ui-a-soft)}
.v31-td2-strip a:focus-visible{outline-color:var(--ui-a)}
/* B4 W3: the strip counts the four spine stages (Saruna, Vienošanās, Darbā, Norēķins): they share the card's width on a PC */
@media (min-width:1001px){.v31-td2-strip.is-spine{grid-template-columns:132px repeat(4,minmax(0,1fr))}}
.v31-td2-a{color:var(--ui-ink);font:700 var(--ui-fs-m)/1.3 var(--ui-f)}
.v31-td2-a .v31-i{color:var(--ui-ink-2)}
.v31-td2-b,.v31-td2-lb{color:var(--ui-ink-2);font:var(--ui-t-meta)}
.v31-td2-n>.v31-i{width:14px;height:14px;color:var(--ui-ink-2)}
.v31-td2-num{color:var(--ui-ink);font:700 var(--v31-fs-lg)/1 var(--ui-f);font-variant-numeric:tabular-nums}
/* B4 DM4: the strip's and the section heads' late count is the count mark */
/* B4 DM8 (decision 156, Janis on live): a stage's late count is the top right of its column, on the number's line, never
   beside the number; a section head keeps it after its words */
.v31-td2-n>.dm-n{margin-left:auto}
.v31-td2-c>.dm-n{margin-left:4px}
.v31-td2-bar{height:3px;border-radius:2px;opacity:1;background:color-mix(in srgb,var(--v31-crm) 65%,var(--v31-surface))}
.v31-td2-st.is-zero .v31-td2-num,.v31-td2-st.is-zero .v31-td2-n>.v31-i{color:var(--ui-ico-mute)}
.v31-td2-st.is-zero .v31-td2-bar{background:var(--ui-line)}

/* section heads: quieter than the rows under them */
.v31-td2-col{gap:12px}
.v31-td2-h{gap:6px;min-height:var(--ui-h-s);padding:0 2px 4px}
.v31-td2-h>.v31-i{width:14px;height:14px;margin:0;color:var(--ui-ink-2)}
.v31-td2-h h2{color:var(--ui-ink-2);font:var(--ui-t-head);letter-spacing:.02em}
.v31-td2-c{gap:4px;color:var(--ui-muted);font:620 12px/1.3 var(--ui-f)}
.v31-td2-c .v31-i{width:12px;height:12px}
/* B4 OF2-P5: "N laikā" is the family's quiet S button (.b.s.q); it only sits at the head's right end */
.v31-td2-ok{margin:0}

/* the list card and its rows */
.v31-td2-list{border-color:var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-surface);box-shadow:none}
.v31-td2-row{min-height:0;padding-left:0;border-bottom-color:var(--ui-td-line)}
.v31-td2-row:hover{background:var(--ui-a-soft)}
.v31-td2-ck{display:grid;flex:none;align-self:stretch;place-items:center;width:40px;margin:0;cursor:pointer}
.v31-td2-ck--none{cursor:default}
.v31-td2-ck>input{margin:0;cursor:pointer}
.v31-td2-ck>input:disabled{cursor:default}
.v31-td2-ck>input.is-busy{cursor:progress}
/* B4 OF2-P5: a row's open part is the family's row button without its own line (.rowb.noline): the row draws the divider, under the
   tick box too. The page only places it beside the tick column (no left inset there) at the row's height. */
.v31-td2-open{flex:1;gap:10px;min-height:var(--ui-row-h-2);padding:8px 12px 8px 0}
/* NX-SODIEN-ACTIONS (Janis, 30 Nov: the row buttons were too loud): a row's own act ("+1 ned." on a wait, "+" for a deal on a
   deadline) is the family's quiet small button (.b.s.q) in one slot at the row's right edge, after the chevron. The slot is one width
   on the page; a list that has an act keeps that room on its other rows too, so every chevron of the list stays in one column. At rest
   the act is muted ink with no ground; the row's hover or keyboard focus wakes it (ink and the wash), its own hover presses it a
   little deeper. A screen with no hover (a phone) cannot wake it, so there it rests one step darker (ink-2), still with no ring or
   ground (round 2: a ring made a column of pills and «+1 ned.» outgrew the slot); its press target stays the family's (::after).
   Fix round (Sol): a row without an act gives the slot's room to its own open button (padding), so the row opens to its very edge and
   its chevron still stands in the list's column; on a phone (<=700 px) the slot fits its button and a row without one takes the
   whole width back for its title. The deal act says «+ Darījums» on every width, so the slot is wide enough for it. */
.v31-td2{--td2-act:104px}
.v31-td2-act{flex:none;display:flex;align-items:center;justify-content:center;align-self:stretch;width:var(--td2-act);margin-left:-6px;padding-right:6px;box-sizing:border-box}
.v31-td2-list[data-act] .v31-td2-row:not(:has(>.v31-td2-act))>.v31-td2-open{padding-right:calc(var(--td2-act) + 6px)}
@media (min-width:1200px) and (max-width:1360px){.v31-td2-list[data-act] .v31-td2-row:not(:has(>.v31-td2-act))>.v31-td2-open{padding-right:calc(var(--td2-act) + 2px)}}
@media (max-width:700px){
.v31-td2-act{width:auto;margin-left:0;padding-right:4px}
.v31-td2-list[data-act] .v31-td2-row:not(:has(>.v31-td2-act))>.v31-td2-open{padding-right:8px}
}
.v31-td2-act>.b{color:var(--ui-muted)}
.v31-td2-row:hover .v31-td2-act>.b,.v31-td2-row:focus-within .v31-td2-act>.b{background:var(--ui-wash);color:var(--ui-ink)}
.v31-td2-row .v31-td2-act>.b:hover{background:var(--ui-wash-p)}
.v31-td2-act>.b:disabled{background:none;color:var(--ui-muted)}
@media (hover:none){.v31-td2-act>.b{color:var(--ui-ink-2)}}
@media (max-width:700px){.v31-td2-act>.b:not(.ic){min-width:0;padding-inline:6px}}   /* round 3: the touch min-width (2.2 x 32 px) made it outgrow the slot */
/* Fix round 3 (1 Dec): under 360 px a deadline row with «+ Darījums» beside a year date mark left its title 38 px («Tak… bei…»).
   There the act drops to its own line under the row content, still inside the row (one divider, one hover), at the row's right end
   like the other acts, so the title gets the row's width back. 360 px and wider are unchanged; rows without it are unchanged. */
@media (max-width:359.98px){
.v31-td2-row:has(>.v31-td2-act>.v31-td2-fumake){flex-wrap:wrap}
.v31-td2-act:has(>.v31-td2-fumake){flex:1 0 100%;justify-content:flex-end;align-self:auto;margin-top:-6px;padding:0 4px 6px 40px}
}
/* B4 EN1-c: a wait's day with its controls (LMFUI.waitDay): the mark, "+1 ned.", the day picker's button; the date field itself is
   out of sight until a browser cannot open its picker by script */
.wd{display:inline-flex;align-items:center;gap:6px;position:relative;min-width:0}
.wd-in{position:absolute;inset:auto 0 0 auto;width:1px;height:1px;padding:0;border:0;opacity:0;pointer-events:none}
.wd-in.is-open{position:static;width:auto;height:var(--ui-h-s);opacity:1;pointer-events:auto}
/* B4 BO2 (Janis, 26 Nov): the row paints the shade, edge to edge, so it follows the list's corners; the button's own .rowb wash
   began straight at the tick column. A press darkens the whole row. */
.v31-td2-open:hover,.v31-td2-open:active{background:none}
.v31-td2-row:has(>.v31-td2-open:active){background:linear-gradient(var(--ui-wash-p),var(--ui-wash-p)),var(--ui-a-soft)}
.v31-td2-t{gap:6px;color:var(--ui-ink);font:620 var(--ui-fs-row)/1.4 var(--ui-f)}   /* B4 DS4: a row name, 14 (16 on touch) */
.v31-td2-s{color:var(--ui-muted);font:var(--ui-t-meta)}
.v31-td2-s .v31-i{color:var(--ui-ico-mute)}
.v31-td2-row.is-done .v31-td2-t{color:var(--ui-muted);font-weight:400}
.v31-td2-ph{gap:5px;color:var(--ui-ink-2);font:var(--ui-t-meta);font-variant-numeric:tabular-nums}
.v31-td2-ph .v31-i{color:var(--ui-ico-mute)}
.v31-td2-sample{gap:4px;height:20px;min-height:0;padding:0 7px;border:0;border-radius:10px;background:var(--ui-warn-tint);color:var(--ui-warn-ink);font:620 12px/20px var(--ui-f);font-variant-numeric:tabular-nums;white-space:nowrap}
.v31-td2-chev{color:var(--ui-ico-mute)}
.v31-td2-row:hover .v31-td2-chev{color:var(--ui-ink-2)}
.v31-td2-empty{gap:10px;padding:10px 12px;color:var(--ui-ink-2);font:var(--ui-t-body)}
.v31-td2-empty>.v31-i{width:14px;height:14px;color:var(--ui-ink-2)}
.v31-td2-morerow{display:flex;padding:5px 8px}
.v31-td2-notice{padding:0 12px 8px 40px}

/* the trip card: forest (data-area on the card), a raised "Atvērt", stops with score and area */
.v31-td2-trip{min-height:0;border-color:var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-surface);box-shadow:none}
.v31-td2-trip-l{gap:4px;padding:12px}
/* B4 OF2-P5: a stop is the family's row button without its line (.rowb.noline); the card's dotted line joins the stops */
.v31-td2-stop{gap:8px;padding:0}
/* B4 BO2: a stop's hover and press, rounded, in the rows' warm tint. The tint is read on the page (--td2-shade), because the
   trip card inside it is a forest area and its own soft tint is green. */
.v31-td2{--td2-shade:var(--ui-a-soft)}
.v31-td2-stop{border-radius:var(--ui-r)}
.v31-td2-stop:not(:disabled):hover,.v31-td2-stop:not(:disabled):active{background:var(--td2-shade)}
.v31-td2-k{width:22px;height:22px;background:var(--ui-a);color:var(--ui-on-fill);font:700 12px/1 var(--ui-f)}
.v31-td2-stop+.v31-td2-stop .v31-td2-k::before{content:none}
.v31-td2-nm{min-width:0;font:620 var(--ui-fs-m)/1.3 var(--ui-f)}
/* B4 AD1 (decision 185, C04; lead after Sol's review): a stop's name wraps to two lines instead of one cut line, so "Lejnieki 1",
   "Lejnieki 2" and "Lejnieki 3" stay apart in the narrow trip card (1200 to 1360 px); the whole name is the stop's tooltip */
.v31-td2-stop>.v31-td2-nm{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;overflow:hidden;overflow-wrap:break-word;text-overflow:clip}
.v31-td2-tm{margin-left:auto;font:var(--ui-t-data);font-variant-numeric:tabular-nums}
.v31-td2-trip-more{padding:0 0 0 30px;color:var(--ui-muted);font:var(--ui-t-meta)}
.v31-td2-trip-f{padding:10px 0 0}
.v31-td2-map{border-left-color:var(--ui-line)}
/* B4 DFA (audit a2): a light fill with the colour in the ring and the number; the start is a square */
.v31-td2-mnum{border-color:var(--ui-a);background:var(--ui-a-soft);color:var(--ui-ink)}
.v31-td2-mnum.is-start{border-radius:7px;border-color:var(--ui-ink-2);background:var(--ui-surface);color:var(--ui-ink-2)}
.v31-td2-map-btn:focus-visible{outline-color:var(--ui-a)}
.v31-td2-suggest{margin-top:10px}

/* B4 TD3 (decision 124): the trip card calm. A thin summary line under the title ("3 pieturas · 86 km · ~4 h 7 min"); the stops in
   one grid whose rows share its columns (subgrid), so the name, the score, the area chip and the time line up stop after stop,
   and spread evenly over the card's height; the number marks are quiet: a soft ground, a thin rim, muted ink. */
.v31-td2-trip-sum{margin:0 0 2px 2px;color:var(--ui-muted);font:var(--ui-t-meta);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v31-td2-stops{display:grid;flex:1 1 auto;grid-template-columns:20px minmax(0,1fr) auto;grid-auto-rows:minmax(var(--ui-h-s),auto);align-content:space-evenly;column-gap:10px;min-height:0}
.v31-td2-k{width:20px;height:20px;border-radius:50%;background:var(--ui-a-soft);box-shadow:inset 0 0 0 1px var(--ui-a-line);color:var(--ui-ink-2);font:620 12px/1 var(--ui-f);font-variant-numeric:tabular-nums}
.v31-td2-stops>.v31-td2-stop{display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:center;padding:0 4px 0 2px}
.v31-td2-stops>.v31-td2-stop>.v31-td2-k{margin-left:-2px}
.v31-td2-stops>.v31-td2-stop>.v31-td2-tm{grid-column:3;margin:0}
.v31-td2-stops>.v31-td2-trip-more{grid-column:2/-1;align-self:center;padding:0}

/* B4 TD3 (decisions 77, 124): the "Paraugs" tag in one fixed column. On the PC the row is AL1's grid, so the title cell has one
   width on every row; the title column is that width less the tag's room (at most 340 px), the tag stands after it and lines up,
   and a long title truncates before it. On the phone the row is a flex line, so the list says which right-hand slots its rows use
   (data-fig, data-chip, from the script) and every row reserves that room; there a long title wraps to two lines in its column. */
.v31-td2-t{--td2-tt:min(340px,calc(100% - 72px));display:grid;grid-template-columns:minmax(0,var(--td2-tt)) auto;justify-content:start;align-items:center;column-gap:8px}
.v31-td2-t>.v31-td2-sample{justify-self:start}
/* a done row strikes through its title only, not the tag beside it */
.v31-td2-row.is-done .v31-td2-t{text-decoration:none}
.v31-td2-row.is-done .v31-td2-tt{text-decoration:line-through}
/* a list whose rows have no phone (and no Nezvanit mark) gives AL1's empty phone column back to the titles; the list still shares
   one grid, so the columns stay aligned within it */
@media (min-width:701px){
.v31-td2-list:not([data-ph]):not([data-dnc]) .v31-td2-open{grid-template-columns:minmax(0,1fr) 0 var(--td2-dm,76px)}
.v31-td2-list{--td2-dm:100px}   /* B4 DS2 (audit B02): one width on every list ("līdz 01.01.2027."); a list with "nav pastāstīts" needs a little more */
.v31-td2-list:has(.dm[data-s="untold"]){--td2-dm:112px}
}
@media (max-width:700px){
.v31-td2-list{container-type:inline-size;--td2-rf:0px;--td2-rc:0px;--td2-rd:0px}
.v31-td2-list[data-fig]{--td2-rf:28px}
.v31-td2-list[data-chip]{--td2-rc:60px}
.v31-td2-list[data-dnc]{--td2-rd:26px}
.v31-td2-ck{width:44px}   /* B4 AU1 (audit B20) */
.v31-td2-t{--td2-tt:calc(100cqi - 130px - var(--td2-rf) - var(--td2-rc) - var(--td2-rd))}
.v31-td2-t .v31-td2-tt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden}
}

/* PC: the figures stand in one column down the list; the trip card's two halves as drawn. */
@media (min-width:701px){
/* B4 SF1 (real-data smoke, defect 9): the tag (late, told) comes before the figure. A tag is absent on most rows and its width
   varies, so with the tag after it the figure moved by 60 px from row to row; now the figure always ends at the chevron. */
.v31-td2-trip{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.v31-td2-trip.is-nomap{grid-template-columns:minmax(0,1fr)}
.v31-td2-map{min-height:180px}
}

/* PHONE-SEAM (P14): rows keep their old one-column stack. The score stays (the first figure); the forest area gives its room
   back to the title; the tick box's label is the 40 px press target. */
@media (max-width:700px){
.v31-td2-open{gap:8px;padding-right:8px}
.v31-td2-t{flex-wrap:wrap;white-space:normal}
/* B4 DM review (Sol 4), B4 AU1 (audit B15): a stage's number and its late count do not fit one line of a quarter of a 390 px strip,
   so every stage has the same two lines: its icon with the late count at the top right, the number under them */
.v31-td2-n{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:22px auto;align-items:center;gap:2px 4px;min-width:0;height:auto}
.v31-td2-n>.v31-td2-num{grid-column:1/-1;grid-row:2}
.v31-td2-n>.dm-n{grid-column:2;grid-row:1;justify-self:end;margin:0}
}

/* B4 DM4 (decision 156): Šodien on a phone: the mark at the row's top right, the value and the chevron on the line under it */
@media (max-width:700px){
.v31-td2-list .v31-td2-open{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;column-gap:8px;row-gap:4px;align-items:start}
.v31-td2-list .v31-td2-tx{grid-column:1;grid-row:1 / span 2}
.v31-td2-list .v31-td2-open>.dm{grid-column:2;grid-row:1;justify-self:end}
.v31-td2-list .v31-td2-chev{grid-column:2;grid-row:2;justify-self:end;align-self:end;margin-bottom:3px}
.v31-td2-list .v31-td2-ph{display:none}
.v31-td2-list .v31-td2-dnc{grid-column:2;grid-row:3;justify-self:end}
.v31-td2-t{--td2-tt:100%}
/* B4 DS6: on the phone the "Paraugs" tag stands under the title, so a title never shares its narrow line with it (at 320 px real titles broke
   letter by letter: "Sama / ksāt / saim / nieka / m") */
.v31-td2-t{grid-template-columns:minmax(0,1fr);row-gap:2px}
}

/* B4 W6 Termiņi on Šodien: since NX-SODIEN-ACTIONS the row is the other lists' row, its "+" in the same act slot (rule above). */
@media (max-width:700px){
.v31-td2-fu .v31-td2-s,.v31-td2-fu .v31-td2-s>span{white-space:normal;overflow:visible;text-overflow:clip} /* the date is the point of the row */
}

/* ================= P15 Plānotājs: the week board ================= */
/* Today is marked in the area colour (deals: timber ochre); only the trip block is pine (its own data-area="forest"). Calls are
   timber, every other mark is ink. Counts are flat tags. Days that are over fold to narrow columns so today gets the room. */
.pl-bar{gap:8px;padding-bottom:8px}
.pl-ttl{gap:8px}
.pl-h{color:var(--ui-ink);font:var(--ui-t-page);letter-spacing:0}
.pl-range{color:var(--ui-ink-2);font-size:var(--v31-fs);font-weight:400}
.pl-nav{gap:8px}
/* the two week arrows: one joined pair */
.pl-grp{display:inline-flex;flex:none}
.pl-grp>button{margin:0}
/* B4 OF2-P5: the seam is the family's .grp */
/* the week's counts: the family's counter tags (.tag.cnt, B4 DS5); the month's and year's words stay plain captions */
.pl-sum{gap:6px;flex-wrap:wrap}
.pl-sum li:not(.tag){gap:4px;height:20px;padding:0 7px;border-radius:10px;background:var(--ui-stone-2);color:var(--ui-ink-2);font:620 12px/1 var(--ui-f);font-variant-numeric:tabular-nums}
.pl-sum li:not(.tag) b{color:inherit;font-weight:620}
.pl-sum .tag.cnt b{color:inherit;font-weight:700}

/* kind marks */
.pl-k{width:16px;height:16px;color:var(--ui-ink-2)}
.pl-k .v31-i{width:15px;height:15px}
.pl-k.call{border-radius:0;background:none;color:var(--ui-ochre)}
.pl-k.call .v31-i{width:15px;height:15px}
.pl-k.visit,.pl-k.wait{color:var(--ui-ink-2)}
.pl-k.trip{color:var(--ui-pine)}

/* the second row: the undated tray, or the bar that asks for a day */
.pl-sub{min-height:0;padding:0 0 8px}
.pl-lift{border-radius:var(--ui-r);background:var(--ui-a-soft);color:var(--ui-ink);font:var(--ui-t-body)}

/* day columns */
.pl-day{border-width:1px;border-radius:var(--ui-r-pop)}   /* B4 PL2: its surface is the family's .col.sat */
.pl-day.past{opacity:1}

.pl-dh{gap:8px;min-height:42px;padding:8px 8px 6px}
.pl-num{min-width:0;height:auto;border-radius:0;color:var(--ui-ink);font:700 var(--v31-fs-md)/1 var(--ui-f);letter-spacing:0}
.pl-day.today .pl-num{min-width:26px;height:26px;border-radius:50%;background:var(--ui-a);color:var(--ui-on-fill);font-size:13px}
.pl-day.past .pl-num{color:var(--ui-ink-2);font-size:var(--v31-fs)}
.pl-wd,.pl-day.today .pl-wd{color:var(--ui-ink-2);font:var(--ui-t-body)}
.pl-day.past .pl-wd{color:var(--ui-muted);font:var(--ui-t-meta)}
/* the add control and a card's move handle are family buttons now (kit classes); the kit's own guards would put them back in
   the flow, so their place and their show-on-hover are stated here */
.pl-add{position:absolute;top:8px;right:8px;opacity:0}
.pl-day:hover .pl-add,.pl-day.today .pl-add,.pl-add:focus-visible,.pl-add[aria-expanded="true"]{opacity:1}
.pl-mv{position:absolute;right:4px;bottom:4px;opacity:0}
.pl-card:hover>.pl-mv,.pl-card:focus-visible>.pl-mv,.pl-mv:focus-visible{opacity:1}
.pl-list{gap:6px;padding:0 8px 8px}
/* the add box: one row, a small field and a raised add button */
.pl-addf{flex-direction:row;align-items:center;gap:6px;padding:0;border:0;border-radius:0;background:none}
.pl-addf>input{flex:1;width:auto;min-width:0}   /* B4 OF2-P5: the family's S field (.in.s) */
.pl-addb{flex:none}

/* cards: flat surfaces */
.pl-card{gap:2px;padding:8px;border-color:var(--ui-line);border-radius:var(--ui-r)}   /* B4 PL2: its surface and lift are the family's .card.sat */
.pl-card.late{border-color:var(--ui-line)}
.pl-nm{gap:6px;color:var(--ui-ink);font:620 var(--ui-fs-m)/1.3 var(--ui-f)}
.pl-me{gap:4px;padding-left:22px;color:var(--ui-muted);font:var(--ui-t-meta)}
/* B4 DM3 (decision 156): the card's first line is the kind, the name and the date mark (lateness or the hour). The mark floats
   at the line's right end and the name wraps round it, so a narrow day never breaks a word. */
.pl-card .pl-nm{display:block;position:relative;min-height:18px;padding-left:22px}
.pl-card .pl-nm>.pl-k,.pl-card .pl-nm>.pl-ring{position:absolute;left:0;top:0;margin-top:1px}
.pl-card .pl-nm>.dm{float:right;margin:0 0 2px 6px}
.pl-card .pl-nm>.t{display:inline;overflow:visible;-webkit-line-clamp:unset;overflow-wrap:normal;word-break:normal}
/* HOTFIX-CARDS (Janis, 30 Nov): one card for every item on the board (tasks, calls, meetings, visits, reminders, trips, waits): the
   family's .card.sub.sat surface, border, corner and padding, the same name and place lines, the date mark in the same corner.
   The kind is only the small icon at the start in its accent colour (.pl-k.<kind>: trip pine, call ochre, the rest ink). */
.pl-card.done{opacity:.6;box-shadow:none}
.pl-card.done .pl-nm{font-weight:400}
/* HOTFIX-CARDS fix: a past day's cards are the same card (padding, name size) as every other day's, also opened on the phone */
/* B4 PI: a day that is over is a rail: its number, the two-letter day and a count. The rail is a button when the day holds
   something; pressed, the day opens to its list (the same rail lies across its top and folds it again). */
.pl-card.lifted{border-color:var(--ui-a);background:var(--ui-a-soft);color:var(--ui-ink)}
.pl-mi.flash{animation-name:pl-settle-area}   /* B4 PL2: a card settles with the family's .settle */
@keyframes pl-settle-area{from{background:var(--ui-a-soft);border-color:var(--ui-a)}}
/* the done mark in the small rows (not a control there): a small square, ticked in the area colour */
/* B4 CB1 (decision 147): the engraved picture of the family tick box */
span.pl-ring{width:14px;height:14px;border:1px solid var(--ui-cke-line);border-radius:50%;background:var(--ui-cke-bg);box-shadow:var(--ui-cke-sh);color:var(--ui-on-fill)}
span.pl-ring.on{border-color:transparent;background:var(--ui-a);box-shadow:var(--ui-cke-on-sh)}
/* B4 OF2-P5: the task's ring is the family's round task tick (.ck.ck--engraved), its touch box the family's too */
input.pl-ring{margin:1px 0 0}

/* what others owe */
.pl-wh{background:var(--ui-line)}
.pl-wpin{margin:0 8px;border-top-color:var(--ui-a-line)}
.pl-wpin>summary{margin:4px 0}   /* B4 OF2-P5: the family's quiet S disclosure (.b.s.q on the summary) */
.pl-wpin>summary>.dm-n{margin-left:auto} /* B4 DM8: the day foot's late count at its right end */

/* the week after */
.pl-cell{gap:2px;min-height:52px;padding:2px 6px 6px;border-color:var(--ui-line);border-radius:8px;background:var(--ui-surface)}
.pl-mi{gap:5px;padding:1px 4px;color:var(--ui-ink);font:var(--ui-t-body)}
.pl-mi:hover{background:var(--ui-wash)}
.pl-mi.k-wait{color:var(--ui-ink-2)}

/* where a moved item may land */
.pl-drop.over:not(.sat){border-color:var(--ui-a);background:var(--ui-a-soft)}
.pl-page.pl-lifting .pl-drop{border-color:var(--ui-a-line)}
.pl-page.pl-lifting .pl-drop:hover,.pl-page.pl-lifting .pl-drop:focus-visible{border-color:var(--ui-a);background:var(--ui-a-soft)}
.pl-snack button{height:var(--ui-h-m);min-height:0;padding:0 12px}

/* PC: days that are over are narrow columns and today gets the room. A narrow day's add button is the icon alone.
   Up to 1000 px the week keeps its seven equal columns that scroll sideways (legacy rules). */
@media (min-width:1001px){
.pl-week{display:flex;gap:8px}
.pl-day{flex:1 1 0}
.pl-day.rail{flex:0 0 44px}
.pl-day.today{flex:1.7 1 0}
/* B4 PI: when the days that are over leave today more than one column's room (the end of a week), its cards stand side by side */
/* B4 DFA (audit M7): never wider than the column (at 1280 the 300 px minimum pushed the cards past it and cut the late tag) */
.pl-day.today>.pl-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));align-content:start}
.pl-day.today>.pl-list>.pl-addf{grid-column:1 / -1}
.pl-day:not(.today) .pl-addw{display:none}
.pl-day:not(.today) .pl-addb{width:var(--ui-h-s);padding:0}
}

/* PHONE-SEAM (P15): one day under another as before; past days stay hidden; the add button shows its word. */
@media (max-width:700px){
.pl-dh{min-height:46px}
.pl-add{top:3px}
}
@media (hover:none){
.pl-add,.pl-mv{opacity:1}
}

/* ================= PK1 Plānotājs: the calendar modes (owner's decision 49) ================= */
/* One switch at the end of the heading row: "2 nedēļas" | "Mēnesis" | "Gads". The month is a calm grid: Monday first, the ISO
   week quiet at the left, three one-line items a day and "+N". The year is twelve small months whose days show how much is
   planned in four steps of the area colour (deals: timber); the count is in each day's name and title, never colour alone. */
.pl-modes{margin-left:4px}
.pl-sum li.bad{height:auto;padding:0;background:none}
.pl-cal .pl-sum li{gap:3px;font-weight:400}

/* the month */
/* B4 PK3 (decision 89): one white sheet with thin lines. The days touch; lines divide them; the heading row and the four corners
   of the sheet are drawn by the cells themselves (the week number stays outside, at the left). */
.pl-month{display:grid;flex:1;grid-template-rows:auto repeat(var(--pl-rows),minmax(min-content,1fr));gap:0;min-height:0;overflow-y:auto}
.pl-mrow{display:grid;grid-template-columns:30px repeat(7,minmax(0,1fr));gap:0;min-height:0}
.pl-mhd{min-height:34px;align-items:stretch}
.pl-mwd{padding:9px 10px 8px;border-top:1px solid var(--ui-line);border-bottom:1px solid var(--ui-line);background:var(--ui-stone-foot);color:var(--ui-ink-2);font:var(--ui-t-meta)}
.pl-mwd:nth-child(2){border-left:1px solid var(--ui-line);border-top-left-radius:10px}
.pl-mwd:last-child{border-right:1px solid var(--ui-line);border-top-right-radius:10px}
.pl-mwd.we{color:var(--ui-muted)}
.pl-wkn{align-self:start;padding:9px 8px 0 0;color:var(--ui-muted);font:var(--ui-t-meta);font-variant-numeric:tabular-nums;text-align:right}
.pl-mc{position:relative;display:flex;flex-direction:column;gap:1px;box-sizing:border-box;min-width:0;min-height:76px;overflow:hidden;padding:4px 5px 7px;border:0;border-right:1px solid var(--ui-line);border-bottom:1px solid var(--ui-line);background:var(--ui-surface);cursor:pointer;transition:background var(--ui-t),box-shadow var(--ui-t)}
.pl-mrow>.pl-mc:nth-child(2){border-left:1px solid var(--ui-line)}
.pl-month>:last-child .pl-mc:nth-child(2){border-bottom-left-radius:10px}
.pl-month>:last-child .pl-mc:last-child{border-bottom-right-radius:10px}
.pl-mc:hover{box-shadow:inset 0 0 0 1px var(--ui-line-2)}
.pl-mc:focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
.pl-mc.we{background:var(--ui-stone-foot)}
.pl-mc.out>.pl-md{color:var(--ui-ico-mute)}
.pl-mc.out>.pl-ml,.pl-mc.out>.pl-mmore{opacity:.55}
.pl-mc.today{background:var(--ui-a-soft)}
.pl-mc.open{box-shadow:inset 0 0 0 2px var(--ui-a)}
.pl-md{display:inline-flex;flex:none;align-items:center;justify-content:center;align-self:flex-start;box-sizing:border-box;min-width:22px;height:22px;margin:0 0 4px 0;padding:0 4px;border-radius:11px;color:var(--ui-ink);font:620 var(--ui-fs-m)/1 var(--ui-f);font-variant-numeric:tabular-nums}
.pl-mc.today>.pl-md{background:var(--ui-a);color:var(--ui-on-fill)}
.pl-mlate{position:absolute;top:7px;right:7px}
/* the day's rows, quiet like Šodien: the kind's icon in the quiet ink, the time first, the name; late names in terracotta */
.pl-ml{display:flex;flex:none;align-items:center;gap:6px;min-width:0;height:22px;box-sizing:border-box;padding:0 4px;border-radius:5px;color:var(--ui-ink);font:400 var(--ui-fs-m)/1 var(--ui-f)}
.pl-ml[draggable="true"]{cursor:grab}
.pl-ml:hover{background:var(--ui-wash)}
.pl-ml>.t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-ml>.pl-k{color:var(--ui-muted)}
.pl-ml>.pl-k,.pl-ml>.pl-k .v31-i{width:13px;height:13px}
.pl-ml>span.pl-ring{flex:none;width:14px;height:14px;border-radius:50%}
.pl-ml.k-trip{background:var(--ui-pine-soft);color:var(--ui-pine);font-weight:620}
.pl-ml.k-trip>.pl-k{color:var(--ui-pine)}
.pl-ml.k-wait,.pl-ml.k-wait>.pl-k{color:var(--ui-muted)}
.pl-ml.late,.pl-ml.late>.pl-k{color:var(--ui-clay)}
.pl-ml.done>.t{color:var(--ui-ico-mute);text-decoration:line-through}
.pl-ml.flash{animation-name:pl-settle-area}
.pl-mmore{align-self:flex-start;padding:0 4px;border-radius:4px;color:var(--ui-muted);font:620 12px/20px var(--ui-f)}
.pl-mmore:hover{background:var(--ui-wash);color:var(--ui-ink)}

/* the day's popover (the family's panel) */
.pl-dpop{position:absolute;z-index:20;display:flex;flex-direction:column;width:372px;max-height:min(70vh,520px);padding:0;overflow:hidden;animation:pl-pop-in 120ms ease-out}
.pl-dpop:focus{outline:none}
.pl-dph{display:flex;align-items:center;gap:4px;padding:6px 6px 6px 12px;border-bottom:1px solid var(--ui-line)}
.pl-dpt{flex:1;min-width:0;overflow:hidden;color:var(--ui-ink);font:620 var(--ui-fs-m)/1.3 var(--ui-f);text-overflow:ellipsis;white-space:nowrap}
.pl-dpl{display:flex;flex-direction:column;gap:6px;min-height:0;padding:8px;overflow:auto}
.pl-dpl>.pl-card .pl-mv{opacity:1}
.pl-dpe{margin:4px;color:var(--ui-muted);font:var(--ui-t-body)}
@keyframes pl-pop-in{from{opacity:0;transform:translateY(-3px)}}

/* the year */
.pl-year{display:flex;flex:1;flex-direction:column;gap:10px;min-height:0;overflow:auto}
.pl-ygrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 14px}
.pl-ym{min-width:0;padding:6px 10px 10px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-surface)}
.pl-ym.cur{border-color:var(--ui-a-line)}
.pl-ymh{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:4px}
.pl-ymn{flex:none;margin:0 0 0 -8px}   /* B4 OF2-P5: the family's quiet S button (.b.s.q) */
.pl-yms{min-width:0;overflow:hidden;color:var(--ui-muted);font:var(--ui-t-meta);text-overflow:ellipsis;white-space:nowrap}
.pl-yms>.dm-n{margin-left:2px}
.pl-ydays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.pl-ywd{color:var(--ui-muted);font:var(--ui-t-meta);text-align:center}
.pl-yd{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:auto;height:24px;min-height:0;margin:0;padding:0;border:0;border-radius:4px;background:var(--ui-stone-2);box-shadow:none;color:var(--ui-ink-2);font:400 12px/1 var(--ui-f);font-variant-numeric:tabular-nums;text-shadow:none;cursor:pointer}
.pl-yd.we{color:var(--ui-muted)}
.pl-yd:hover{box-shadow:inset 0 0 0 1px var(--ui-line-2)}
.pl-yd:focus-visible{outline:2px solid var(--ui-a);outline-offset:1px;z-index:1}
.pl-ysw.s1,.pl-yd.s1{background:color-mix(in srgb,var(--ui-a) 20%,var(--ui-surface));color:var(--ui-ink)}
.pl-ysw.s2,.pl-yd.s2{background:color-mix(in srgb,var(--ui-a) 42%,var(--ui-surface));color:var(--ui-ink)}
.pl-ysw.s3,.pl-yd.s3{background:color-mix(in srgb,var(--ui-a) 62%,var(--ui-surface));color:var(--ui-ink)}
.pl-ysw.s4,.pl-yd.s4{background:var(--ui-a);color:var(--ui-on-fill)}
.pl-yd.late::after{content:"";position:absolute;top:2px;right:2px;width:5px;height:5px;border-radius:50%;background:var(--ui-clay);box-shadow:0 0 0 1px var(--ui-surface)}
.pl-yd.today{box-shadow:inset 0 0 0 2px var(--ui-ink);font-weight:700}
.pl-leg{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:0 2px 2px;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.pl-legi{display:inline-flex;align-items:center;gap:5px}
.pl-ysw{position:relative;display:inline-block;width:14px;height:14px;border-radius:4px;background:var(--ui-stone-2)}
.pl-ysw.late::after{content:"";position:absolute;top:1px;right:1px;width:5px;height:5px;border-radius:50%;background:var(--ui-clay)}
@media (max-width:1240px){.pl-ygrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:960px){.pl-ygrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){.pl-mc,.pl-dpop{transition:none;animation:none}}

/* PHONE-SEAM (PK1): the phone keeps the two-week list (the script draws it) and shows no switch. B4 DS6 (decision 185, C12): one quiet
   line says where the month and the year are, under the title. Its condition is the place bar's (up to 900 px), as the script's */
.pl-pcnote{display:none}
@media (max-width:700px){
.pl-modes{display:none}
}
@media (max-width:900px){
.pl-modes{display:none}
.pl-ttl,.pl-nav{order:-2}
.pl-pcnote{display:block;flex:1 0 100%;order:-1;margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
}
/* B4 OF2-P5 (decision 198): on a phone the note leaves (help "Telefonā" says it), so the head is the title line and the filter row;
   the long periods are one row that scrolls sideways (after the rules they override: the note's and .pl-mtop's wrap) */
@media (max-width:700px){
.pl-page .pl-pcnote{display:none}
.pl-page .pl-mtop.pl-long{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.pl-page .pl-mtop.pl-long>*{flex:none;max-width:none}
}

/* ---------- B4 AL1 (owner's decision 77): every kind of item in its own fixed slot, so it lines up row after row ----------
   Šodien rows: title | phone | tag (late, told) | value badge and forest area (both fixed slots) | chevron; an item a row does
   not have leaves its slot empty. The trip card's stops: number | name | badge and area | time. Darījumi cards: the badge in
   its fixed slot, the forest area first on the quiet line in its own slot. Plānotājs cards: the place, then the late tag at the
   card's end. A missing value shows nothing (decision 78 c) but keeps its slot. */
@media (min-width:701px){
/* B4 DM4 (decision 156): title | phone | value | the date mark, top right, with the chevron under it in the same column */
.v31-td2-open{display:grid;grid-template-columns:minmax(0,1fr) 118px var(--td2-dm,76px);column-gap:10px}
.v31-td2-open>*{grid-row:1}
.v31-td2-tx{grid-column:1}
.v31-td2-ph,.v31-td2-dnc{grid-column:2;justify-self:start;align-self:start;margin-top:1px}
.v31-td2-open>.dm{grid-column:3;justify-self:end;align-self:start}
.v31-td2-chev{grid-column:3;justify-self:end;align-self:end}
}
/* B4 AD1 (decision 185, audit C04 A): from 1200 to 1360 px Šodien keeps two columns (workspace-today-v31.css). There the row has no
   phone slot (the number is in the task), the title takes every pixel the "Paraugs" tag leaves it, and the slots sit closer. */
@media (min-width:1200px) and (max-width:1360px){
.v31-td2-open,.v31-td2-list:not([data-ph]):not([data-dnc]) .v31-td2-open{grid-template-columns:minmax(0,1fr) 0 var(--td2-dm,76px);column-gap:8px;padding-right:8px}
.v31-td2-ph{display:none}
.v31-td2-t{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:2px}   /* the tag goes under a title that needs the room */
.v31-td2-t>.v31-td2-tt{flex:0 1 auto;min-width:min(16ch,100%)}
/* the trip card: the stop list gets more of the card than the map, no empty slot for a missing score, names break between words */
.v31-td2-trip{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.v31-td2-stops{column-gap:8px}
/* B4 VB2: a missing value shows the family no-value badge (rule below) */
.v31-td2-stop>.v31-td2-nm{overflow-wrap:normal}
}
/* the same slots on every width: the trip card's stops and the Plānotājs cards */
.v31-td2-stop{display:grid;grid-template-columns:22px minmax(0,1fr) max-content minmax(0,max-content)}
.v31-td2-tm{margin-left:0;justify-self:end}
/* B4 GF1 (gaps 3, 4): value badge first, then the place, then the late tag at the line's end. The place never drops under
   8 characters (a narrow two-week column cut it to one letter behind AL1's fixed 78 px slot): when the line is too narrow the
   place and the late tag wrap below the badge as whole items, never cut to a letter; with room they share one line. */
.pl-card .pl-me{display:flex;flex-wrap:wrap;align-items:center;column-gap:6px;row-gap:2px}
.pl-card .pl-me>.pl-place{flex:1 1 8ch;min-width:min(8ch,100%)}
/* B4 VB2: the planner shows the no-value badge as well (was hidden) */
/* B4 GF1: on a touch screen the link and move buttons stay visible at the card's end; the late tag stops before them */
/* B4 DFC (audit r2 N9): on touch the link and move buttons are 40 px targets; the link sits 4 px clear of the move button */
@media (hover:none),(max-width:700px){.pl-page .pl-card:has(>.pl-lkbtn) .pl-me{padding-right:92px}.pl-page .pl-lkbtn{right:48px}}
/* ================= PK2 New task form & Plānotājs periods, kinds, property links (owner's decision 55) ================= */
/* Task dialog form (tokens only, max 2 combinators, no id selectors). */
.tk-form{display:flex;flex-direction:column;gap:12px}
.tk-kinds{display:flex;width:100%;max-width:100%}
.tk-kinds>button{flex:1;min-width:0;padding:0 6px}
.tk-kinds>button svg{width:13px;height:13px;flex:none}
.tk-name{display:flex;flex-direction:column;gap:4px;margin:0}
.tk-name>input{width:100%}
.tk-when{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-stone-col)}
.tk-when-hd{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.tk-when-lbl{color:var(--ui-ink-2);font:620 var(--ui-fs-label)/1.3 var(--ui-f)}
.tk-when-seg{flex:none}
.tk-when-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;align-items:end}
.tk-when-row[hidden]{display:none}
.tk-fld{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;color:var(--ui-ink-2);font:620 var(--ui-fs-label)/1.3 var(--ui-f)}
.tk-fld[hidden]{display:none}
.tk-fld>input,.tk-fld>select,.tk-fld>textarea{width:100%}
.tk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tk-grid[hidden]{display:none}
.tk-full{grid-column:1 / -1}
.tk-more-row{display:flex;align-items:center;justify-content:flex-start}
.tk-extra{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:4px;border-top:1px solid var(--ui-line)}
.tk-extra[hidden]{display:none}
.tk-snooze{margin:0;color:var(--ui-muted);font:var(--ui-t-meta)}

/* Plānotājs kind icons & timed badge */
.pl-k.meeting{color:var(--ui-ink-2)}
.pl-k.reminder{color:var(--ui-muted)}
.pl-time{flex:none;color:var(--ui-ink-2);font:620 12px/1.2 var(--ui-f);font-variant-numeric:tabular-nums;white-space:nowrap}
.pl-ml>.pl-time{font-size:12px;color:var(--ui-muted)}
.pl-lkbtn{position:absolute;right:32px;bottom:4px;opacity:0}
.pl-card:hover>.pl-lkbtn,.pl-card:focus-visible>.pl-lkbtn,.pl-lkbtn:focus-visible{opacity:1}
.pl-dpl>.pl-card .pl-lkbtn{opacity:1}

/* Plānotājs period bars: thin spanning strip above days, max 2 lanes + "+N" */
.pl-pband{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px 8px;padding:0 0 6px;align-items:center}
/* B4 PK3 (decision 89): in the month the band lies inside its week, over the days: row 1 is the day numbers' row (the "+N periodi"
   chip stands beside the number), the lanes follow; the day's items begin below the lanes (--pl-lanes, set by the script). */
.pl-mweek{position:relative;display:flex;flex-direction:column}
.pl-mweek>.pl-mrow{flex:1;min-height:88px}
.pl-mweek .pl-mc>.pl-md{margin-bottom:calc(8px + var(--pl-lanes,0) * 27px)}   /* B4 OF2-P5: a lane is a 24 px bar and 3 px */
.pl-mpband{position:absolute;top:0;right:0;left:0;z-index:1;display:grid;grid-template-columns:30px repeat(7,minmax(0,1fr));grid-template-rows:30px;grid-auto-rows:24px;row-gap:3px;align-items:center;pointer-events:none}
.pl-mpband>*{pointer-events:auto}
.pl-mpband>.pl-pbar{height:24px;margin:0 5px}
.pl-mpband>.pl-pbar.cont-l{margin-left:0}
.pl-mpband>.pl-pbar.cont-r{margin-right:0}
.pl-mpband>.pl-pmore{margin-left:38px;padding:0 6px;color:var(--ui-muted)}
/* the bar (month, month strip and the two weeks): a soft pine band with a hairline, the last day a firm 3 px edge; a continued
   part is square at the week's edge; late is terracotta, done is stone and struck through */
.pl-pbar{--pl-bar-ln:color-mix(in srgb,var(--ui-pine) 18%,var(--ui-surface));--pl-bar-end:transparent;display:flex;align-items:center;gap:6px;box-sizing:border-box;min-width:0;height:24px;padding:0 8px;border:0;border-radius:5px;background:var(--ui-pine-soft);box-shadow:inset 0 0 0 1px var(--pl-bar-ln),inset -3px 0 0 var(--pl-bar-end);color:var(--ui-pine);font:620 12px/1 var(--ui-f);white-space:nowrap;cursor:pointer;transition:box-shadow var(--ui-t),background var(--ui-t)}
.pl-pbar:hover{--pl-bar-ln:color-mix(in srgb,var(--ui-pine) 45%,var(--ui-surface))}
.pl-pbar:focus-visible{outline:2px solid var(--ui-a);outline-offset:1px}
.pl-pbar.cont-l{border-top-left-radius:0;border-bottom-left-radius:0}
.pl-pbar.cont-r{border-top-right-radius:0;border-bottom-right-radius:0}
.pl-pbar.ends-here{--pl-bar-end:var(--ui-pine)}
.pl-pbar.done{--pl-bar-ln:transparent;--pl-bar-end:transparent;background:var(--ui-stone-2);color:var(--ui-ico-mute)}
.pl-pbar.done>.t{text-decoration:line-through}
.pl-pbar.flash{animation-name:pl-settle-area}
.pl-pbar>.t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-pk{display:inline-flex;flex:none;align-items:center;color:inherit}
.pl-pk .v31-i{width:12px;height:12px}
/* B4 DM3: a bar ends with the date mark ("līdz 26.11." or the late mark), a lighter plate; a late bar keeps its own colour */
.pl-pbar>.dm-bar{flex:none;margin-left:auto;height:16px;background:var(--ui-dm-bar-bg);box-shadow:none}
.pl-pplace{flex:0 1 auto;min-width:0;overflow:hidden;color:var(--ui-muted);font-weight:400;text-overflow:ellipsis;white-space:nowrap}
.pl-pmore{justify-self:start;min-width:0;padding:0 6px}

/* Year view period shading and stronger final-day mark */
/* B4 DFA (audit M3): no fill, so the heat steps (s1..s4) still read on days inside a long period; the underline marks the period. */
.pl-yd.in-period{box-shadow:inset 0 -2px 0 var(--ui-a-line)}
.pl-yd.today.in-period{box-shadow:inset 0 0 0 2px var(--ui-ink),inset 0 -4px 0 var(--ui-a-line)}
.pl-yd.period-end{box-shadow:inset 0 -3px 0 var(--ui-a);font-weight:700}
.pl-yd.period-end.late{box-shadow:inset 0 -3px 0 var(--ui-clay)}
.pl-yd.period-done{opacity:.65}
.pl-yd.today.period-end{box-shadow:inset 0 0 0 2px var(--ui-ink)}

/* Day popover period section & unconnected task popover */
.pl-dsec{display:flex;flex-direction:column;gap:6px;padding-bottom:6px;border-bottom:1px solid var(--ui-line)}
.pl-tpop{position:absolute;z-index:22;display:flex;flex-direction:column;gap:8px;width:288px;padding:0;overflow:hidden;animation:pl-pop-in 120ms ease-out}
.pl-tpop:focus{outline:none}
.pl-tpop-h{display:flex;align-items:center;gap:6px;flex:1;min-width:0}
.pl-tpop-m{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:0 12px;color:var(--ui-muted);font:var(--ui-t-meta)}
.pl-tpop-a{display:flex;flex-direction:column;gap:8px;padding:0 12px 12px}
.pl-tpop-row{display:flex;flex-wrap:wrap;gap:6px}

/* ================= PK2b Add from calendar & month-long reminders (owner's decision 68) ================= */
.pl-mtop{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0 0 6px 30px}
.pl-mtop>.pl-pbar{flex:0 1 auto;max-width:100%}
/* B4 DFA (audit M2): the strip of long periods (over three months) above the month and the two weeks */
.pl-longl{flex:none;color:var(--ui-muted);font:var(--ui-t-meta)}
.pl-board[data-pl-view=week]>.pl-long{padding:0 0 8px}
/* B4 DFC (audit r2 N5): a chip in the Ilgi periodi strip is the whole period, so it has no "ends here" edge (it read as a stray ]) */
.pl-long .pl-pbar,.pl-long .pl-pbar.ends-here{--pl-bar-end:transparent}
.pl-madd{position:absolute;top:3px;right:3px;opacity:0}
.pl-mc:hover>.pl-madd,.pl-mc:focus-within>.pl-madd,.pl-mc:focus>.pl-madd,.pl-madd:focus-visible{opacity:1}
.pl-cell{position:relative}
.pl-cell:hover>.pl-madd,.pl-cell:focus-within>.pl-madd{opacity:1}
.pl-madd+.pl-mlate{right:32px}
.pl-page.pl-lifting .pl-mc.pl-drop{box-shadow:inset 0 0 0 1px var(--ui-a-line)}
.pl-page.pl-lifting .pl-mc.pl-drop:hover,.pl-page.pl-lifting .pl-mc.pl-drop:focus-visible{box-shadow:inset 0 0 0 2px var(--ui-a)}
.pl-dpf{padding:6px 8px;border-top:1px solid var(--ui-line);background:var(--ui-stone-foot)}
.pl-dpadd{justify-content:flex-start}
.pl-ymrem{gap:4px;min-width:0;padding:0 6px;color:var(--ui-a-ink);background:var(--ui-a-soft)}
.pl-ymrem:hover{background:var(--ui-ochre-tint);color:var(--ui-ochre-ink)}
.pl-ymrem.late{background:var(--ui-clay-tint);color:var(--ui-clay)}
.pl-ymrem.done{opacity:.6;background:var(--ui-stone-2);color:var(--ui-muted)}
.pl-ymadd{margin-left:auto;opacity:0}
.pl-ym:hover .pl-ymadd,.pl-ym:focus-within .pl-ymadd,.pl-ymadd:focus-visible{opacity:1}
.pl-ympop{width:308px;z-index:21}

@media (prefers-reduced-motion:reduce){
.pl-pbar,.pl-tpop{transition:none;animation:none}
}
@media (hover:none){
.pl-lkbtn{opacity:1}
}
@media (max-width:700px){
.tk-kinds{flex-wrap:wrap;height:auto}
.tk-kinds>button{flex:1 1 calc(50% - 4px);min-height:var(--ui-h-m)}
.tk-when-seg{display:flex;flex-wrap:wrap;width:100%;height:auto}
.tk-when-seg>button{flex:1 1 auto;min-width:0;padding:0 10px;min-height:var(--ui-h-m)}
.tk-when-row,.tk-grid,.tk-extra{grid-template-columns:1fr}
.pl-pband{grid-template-columns:1fr;gap:4px}
.pl-pbar{grid-column:1 / -1}
.pl-tpop{width:min(288px,calc(100vw - 24px))}
.pl-madd,.pl-ymadd{display:none}
}
/* B4 DS6 (plan part 4): on touch every control answers on 44 px. The ones drawn 32 to 40 px here lend themselves an invisible box (as .b does) */
@media (pointer:coarse),(max-width:700px){
  .v31-td2-all{position:relative}
  .v31-td2-all::after{content:"";position:absolute;inset:calc(50% - 22px) 0}
}
/* B4 OF2-P5 (Sol review 3; was DS6's sideways scroll, which hid all but "Visi" behind an invisible scroll at 320 px): on a phone the
   kind switch stands beside the view switch where both fit, else on its own line; where its four tabs do not fit one line, the
   track wraps (the core keeps its corner), so every kind is always in sight */
@media screen and (max-width:700px){
  .v31-page[data-v31-page="deals"]>.v31-page-head>.v31-db-kinds{flex:1 1 auto;min-width:0;max-width:100%;flex-wrap:wrap;height:auto}
  .v31-db-kinds>button{flex:1 1 auto;min-height:calc(var(--_h) - 4px)}
}

/* ================= B4 PL2 Plānotājs "Patina" (decision 221) ================= */
/* Two equal weeks of seven equal days in soft trays, each week's periods as ribbons under it, the periods that last the whole view
   folded into one line, the sorting sidebar ("Šķirot") at the left in the nav bar's patina, satin cards that lean a little toward
   the pointer, a brass line on today, a lifted drop day, a card that settles where it lands, and a one-second summary card.
   Colours are the family tokens only; buttons are the family's (.b) and keep its shades. The year view is unchanged. */
/* B4 PL2 (decision 226): the sidebar is the top bar continued down the window's left edge (an L round the planner): the same patina,
   no seam; it starts under the bar's brass hairline, which turns the corner and runs down the sidebar's inner edge. The board makes
   room for it from its own left edge (--pl2-left and --pl2-top are measured by the script). */
.pl2{--pl2-tw:52px;--pl2-r:12px;padding-left:calc(var(--pl2-tw) - var(--pl2-left,28px) + 16px);transition:padding-left .34s cubic-bezier(.16,1,.3,1)}
.pl2.tri-open{--pl2-tw:296px}
/* the one place the top bar's look is touched, on this page only: its brass hairline stops where the sidebar begins and the board draws
   it on from the sidebar's edge, so bar and sidebar meet with no line between them and the hairline turns down the inner edge */
@media (min-width:901px){
:root:has(.pl2:not(.pl-hspec)) .ui-nav{border-bottom-width:0}
.pl2::before{content:"";position:fixed;top:var(--pl2-top,calc(var(--ui-bar-h) + var(--ui-env-offset)));right:0;left:var(--pl2-tw);z-index:19;height:1px;background:var(--ui-bar-hair);pointer-events:none;transition:left .34s cubic-bezier(.16,1,.3,1)}
}
.pl2 .pl-shell{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0}
.pl2 .pl-main{min-width:0;min-height:0;overflow:auto;padding:0 2px 24px;overscroll-behavior:contain}
/* the sorting sidebar */
.pl2 .pl-tri{position:fixed;top:var(--pl2-top,calc(var(--ui-bar-h) + var(--ui-env-offset)));bottom:0;left:0;z-index:20;display:flex;width:var(--pl2-tw);min-height:0;overflow:hidden;background:var(--ui-bar-side);color:var(--ui-bar-ink);box-shadow:var(--ui-tri-sh);transition:width .34s cubic-bezier(.16,1,.3,1)}
.pl2 .pl-trail{display:flex;flex:none;flex-direction:column;align-items:center;gap:6px;width:52px;padding:8px 0}
.pl2 .pl-ttog,.pl2 .pl-tx{color:var(--ui-bar-ink-on)}
.pl2 .pl-ttog:hover,.pl2 .pl-tx:hover{background:var(--ui-bar-ctl-bg-h)}
.pl2 .pl-tri-i{display:flex;flex-direction:column;align-items:center;gap:3px;width:42px;padding:7px 0 6px;border:0;border-radius:10px;background:none;color:var(--ui-bar-ink);cursor:pointer}
.pl2 .pl-tri-i:hover{background:var(--ui-bar-ctl-bg-h)}
.pl2 .pl-tri-i .v31-i{width:16px;height:16px}
.pl2 .pl-tri-i b{color:var(--ui-bar-ink-on);font:700 12px/1 var(--ui-f)}
.pl2 .pl-tri-i.r-und b{color:var(--ui-bar-ink-on)}
.pl2 .pl-tri-i.r-late,.pl2 .pl-tri-i.r-late b{color:var(--ui-bar-late)}
.pl2 .pl-tri-i.r-prob .v31-i{color:var(--ui-bar-brass)}
.pl2 .pl-tri :focus-visible{outline:2px solid var(--ui-bar-focus);outline-offset:1px}
.pl2 .pl-tpan{display:none;flex-direction:column;width:296px;min-height:0}
.pl2.tri-open .pl-trail{display:none}
.pl2.tri-open .pl-tpan{display:flex;animation:pl2-in .3s cubic-bezier(.16,1,.3,1)}
.pl2 .pl-thd{display:flex;align-items:center;justify-content:space-between;padding:10px 10px 4px 14px}
.pl2 .pl-thd h3{margin:0;color:var(--ui-bar-ink-on);font:700 var(--ui-fs-l)/1.2 var(--ui-f)}
.pl2 .pl-thn{margin-left:4px;color:var(--ui-bar-count);font-weight:620}
.pl2 .pl-tsc{flex:1;min-height:0;overflow:auto;padding:0 10px 18px;scrollbar-color:var(--ui-tri-scroll) transparent}
.pl2 .pl-ts{display:flex;flex-direction:column;gap:6px;padding:10px 4px 12px;border-radius:12px;transition:background .15s,box-shadow .15s}
.pl2 .pl-ts h4{display:flex;align-items:center;gap:7px;margin:0;color:var(--ui-bar-ink-on);font:700 13px/1.2 var(--ui-f)}
.pl2 .pl-tsi{display:inline-flex;flex:none}
.pl2 .pl-tsi .v31-i{width:15px;height:15px}
.pl2 .pl-tsn{margin-left:auto;padding:3px 7px;border-radius:6px;background:var(--ui-bar-ctl-bg-h);color:var(--ui-bar-count);font:600 var(--ui-fs-micro)/1 var(--ui-f)}
.pl2 .pl-ts-late .pl-tsi{color:var(--ui-bar-late)}
.pl2 .pl-ts-prob .pl-tsi{color:var(--ui-bar-brass)}
.pl2 .pl-th{margin:0 0 2px 22px;color:var(--ui-bar-group);font:var(--ui-t-meta)}
.pl2 .pl-tnone{margin:0 0 0 22px;color:var(--ui-bar-group);font:var(--ui-t-meta);opacity:.8}
.pl2 .pl-tnote{display:flex;align-items:center;gap:5px;margin:-2px 0 2px 8px;color:var(--ui-bar-brass);font:var(--ui-t-meta)}
.pl2 .pl-tnote .v31-i{width:12px;height:12px}
.pl2 .pl-tri .pl-card{box-shadow:var(--ui-tri-card-sh)}
.pl2 .pl-ts.pl-drop.over{background:var(--ui-bar-ctl-bg-h);box-shadow:inset 0 0 0 2px var(--ui-bar-brass)}
@keyframes pl2-in{from{opacity:0;transform:translateX(-10px)}}
/* the folded periods */
.pl2 .pl-fold{margin:0 0 10px}
.pl2 .pl-foldb{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;padding:0 12px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface);box-shadow:var(--ui-card-sh);color:var(--ui-ink-2);font:var(--ui-t-body);text-align:left;cursor:pointer}
.pl2 .pl-foldb:hover{border-color:var(--ui-line-2)}
.pl2 .pl-foldb>.v31-i{width:15px;height:15px}
.pl2 .pl-fdots{display:inline-flex;gap:3px}
.pl2 .pl-fdot{width:16px;height:5px;border-radius:3px;background:var(--ui-pine)}
.pl2 .pl-fdot.deal{background:var(--ui-ochre)}.pl2 .pl-fdot.late{background:var(--ui-clay)}
.pl2 .pl-fchev{display:inline-flex;margin-left:auto;transition:transform .2s}
.pl2 .pl-fold.open .pl-fchev{transform:rotate(180deg)}
.pl2 .pl-foldl{padding:8px 0 0}
/* the two weeks */
.pl2 .pl-wk{margin:0 0 12px;padding:6px 6px 7px;border-radius:16px;background:var(--ui-sat-tray);box-shadow:inset 0 0 0 1px var(--ui-sat-tray-line)}
.pl2 .pl-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;flex:none;min-height:0;overflow:visible}
.pl2 .pl-day{position:relative;flex:none;min-width:0;min-height:196px;padding:0;border-radius:var(--pl2-r);opacity:1}   /* the family's .col.sat: surface, past, now, over */
.pl2 .pl-day.past .pl-num{color:var(--ui-ink-2)}
.pl2 .pl-dh{min-height:40px;padding:8px 8px 4px 10px}
.pl2 .pl-wd{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl2 .pl-dc{margin-left:auto;padding-right:2px;color:var(--ui-ink-2);font:620 12px/1 var(--ui-f);transition:opacity .15s}
.pl2 .pl-day:hover .pl-dc,.pl2 .pl-day:focus-within .pl-dc{opacity:0}
.pl2 .pl-list{flex:none;overflow:visible;padding:0 6px 8px}
.pl2 .pl-dmore{align-self:flex-start}
/* Janis 25 Nov: a little more room between a card's mark and its words (the tick circle no longer touches the name) */
.pl2 .pl-card .pl-nm,.pl2 .pl-card .pl-me{padding-left:27px}
.pl2 .pl-card .pl-me{flex-wrap:nowrap}
/* HOTFIX-CARDS fix: the place line may take two lines, so a step after the place ("Meldernieki · Gaidām taksāciju", "· brauciena diena")
   stays readable in a narrow day */
.pl2 .pl-me>.pl-place{flex:1 1 0;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:break-word}
/* the satin card is the family's (.card.sub.sat), the same for every kind (HOTFIX-CARDS) */
/* drop days */
.pl2.pl-dragging .pl-day.pl-drop{box-shadow:var(--ui-raise-sh),inset 0 0 0 1px var(--ui-pine-tint)}
.pl2.pl-dragging .pl-day.past{opacity:.6}
.pl2 .pl-ts.pl-drop.over{transform:none}
.pl2.pl-lifting .pl-day.pl-drop,.pl-page.pl-lifting .pl2 .pl-day.pl-drop{border-style:dashed;border-color:var(--ui-pine)}
/* the ribbons: a week's periods under its days */
.pl2 .pl-rib{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:20px;gap:3px 8px;padding:7px 0 0}
.pl2 .pl-rib .pl-pbar,.pl2 .pl-mpband .pl-pbar{height:20px;padding:0 10px;border-radius:999px;background:linear-gradient(180deg,var(--ui-surface) -40%,var(--ui-pine-tint));box-shadow:var(--ui-rib-sh);color:var(--ui-ink);font:620 12px/1 var(--ui-f);transition:transform .2s cubic-bezier(.16,1,.3,1),box-shadow .2s}
.pl2 .pl-rib .pl-pbar:hover,.pl2 .pl-mpband .pl-pbar:hover{transform:translateY(-1px);box-shadow:var(--ui-rib-sh-h)}
.pl2 .pl-pbar:is(.k-call,.k-meeting,.k-visit,.k-task,.k-step,.k-reminder).starts-here{margin-left:1px}
.pl2 .pl-pbar.deal{background:linear-gradient(180deg,var(--ui-surface) -40%,var(--ui-ochre-tint))}
.pl2 .pl-pbar.late{background:linear-gradient(180deg,var(--ui-surface) -40%,var(--ui-clay-tint));color:var(--ui-dm-late)}
.pl2 .pl-pbar.done{background:var(--ui-stone-2);color:var(--ui-ico-mute)}
.pl2 .pl-rib .pl-pbar.cont-l,.pl2 .pl-mpband .pl-pbar.cont-l{border-top-left-radius:3px;border-bottom-left-radius:3px}
.pl2 .pl-rib .pl-pbar.cont-r,.pl2 .pl-mpband .pl-pbar.cont-r{border-top-right-radius:3px;border-bottom-right-radius:3px}
.pl2 .pl-mpband .pl-pbar.mid{pointer-events:none;align-self:center;height:3px;margin:0 10px;padding:0;border-radius:2px;background:var(--ui-pine);opacity:.28;box-shadow:none}
.pl2 .pl-mpband .pl-pbar.mid.deal{background:var(--ui-ochre)}.pl2 .pl-mpband .pl-pbar.mid.late{background:var(--ui-clay)}
.pl2 .pl-mpband .pl-pbar.mid:hover{opacity:1;transform:none}
.pl2 .pl-mpband .pl-pbar{height:18px;font-size:var(--ui-fs-micro)}
/* the month: today in brass */
.pl2 .pl-mc.today{background:linear-gradient(180deg,var(--ui-ochre-soft),var(--ui-surface));box-shadow:inset 0 2px 0 var(--ui-bar-brass)}
.pl2 .pl-mc.over{background:var(--ui-pine-soft);box-shadow:inset 0 0 0 2px var(--ui-pine)}
/* the summary card a resting pointer opens */
.pl-sum-card{position:fixed;z-index:60;display:flex;flex-direction:column;gap:5px;box-sizing:border-box;width:288px;max-width:calc(100vw - 16px);padding:12px 12px 10px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-pop-bg);box-shadow:var(--ui-dlg-sh);color:var(--ui-ink);font:var(--ui-t-body);animation:pl2-pop .16s cubic-bezier(.16,1,.3,1)}
.pl-sum-h{display:flex;align-items:flex-start;gap:7px;margin-bottom:2px}
.pl-sum-h>b{flex:1;min-width:0;font:700 var(--ui-fs-l)/1.3 var(--ui-f)}
.pl-sum-h>.dm{flex:none}
.pl-sr-r{display:flex;align-items:flex-start;gap:7px;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.pl-sr-r>.v31-i{flex:none;width:13px;height:13px;margin-top:1px;color:var(--ui-ico-mute)}
.pl-sr-r>span{min-width:0;overflow-wrap:anywhere}
.pl-sr-fig{padding-left:20px}
.pl-sum-n{margin:2px 0 0;padding:6px 8px;border-radius:8px;background:var(--ui-stone-foot);color:var(--ui-ink-2);font:var(--ui-t-meta)}
.pl-sum-f{display:flex;justify-content:flex-end;margin-top:4px}
.pl-sum-open{gap:4px}
@keyframes pl2-pop{from{opacity:0;transform:translateY(4px) scale(.98)}}
.pl2 .pl-fab,.pl2 .pl-scrim,.pl2 .pl-phpast{display:none}
/* the help's pictures (specimens): the same parts, in place, without the page's frame */
.pl2.pl-hspec{display:block;padding:0;--pl2-tw:52px}
.pl2.pl-hspec::before{content:none}
.pl-hspec .pl-tri{position:relative;top:auto;bottom:auto;height:210px;border-radius:10px}
.pl-hspec .pl-sum-card{position:static;animation:none}
.pl-hspec .pl-rib{min-width:300px}
.pl-hspec .pl-foldb{min-width:280px}
/* tablet: the sidebar opens over the calendar, so the days keep their width; dragging from it slides it aside */
@media (min-width:701px) and (max-width:1100px){
.pl2,.pl2.tri-open{--pl2-tw:52px}
.pl2 .pl-tri{bottom:var(--tab-bar-h,0px);overflow:visible}
.pl2.tri-open .pl-trail{display:flex}
.pl2 .pl-tpan{position:absolute;top:0;bottom:0;left:0;z-index:31;width:320px;background:var(--ui-bar-side);box-shadow:var(--ui-tri-pan-sh)}
.pl2.tri-open .pl-scrim{display:block;position:fixed;inset:0;z-index:2;background:var(--ui-scrim)}
.pl2.drag-from-tri .pl-tpan{transform:translateX(-84%);opacity:.55;transition:transform .3s cubic-bezier(.16,1,.3,1),opacity .3s}
.pl2.drag-from-tri .pl-scrim{display:none}
.pl2 .pl-day{min-height:170px}
.pl2 .pl-dh{padding:6px 5px 4px 7px}
.pl2 .pl-list{padding:0 4px 6px}
.pl2 .pl-card{padding:6px 6px}
/* a compact card in the narrow columns: the kind, the date mark and the name (two lines); the place, the value and the link wait in
   the summary and the opened item; the move button stays (touch has no drag), as a small button at the card's end */
.pl2 .pl-wk .pl-me,.pl2 .pl-wk .pl-lkbtn,.pl2 .pl-dc{display:none}
.pl2 .pl-wk .pl-nm{padding-right:0}
.pl-wk .pl-nm>.t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pl-wk .pl-card>.pl-mv{position:static;align-self:flex-end;width:28px;height:28px;min-width:28px;min-height:28px;margin-top:2px}
.pl2 .pl-wk .pl-wd{max-width:3ch;overflow:hidden;text-overflow:clip}
.pl2 .pl-day.today .pl-wd{display:none}
}
/* phone: days one under another from today (the earlier ones behind one button), the sidebar a sheet from the bottom */
@media screen and (max-width:700px){
.pl2 .pl-shell{grid-template-columns:minmax(0,1fr)}
.pl2 .pl-main{overflow:visible;padding-bottom:88px}
.pl2{padding-left:0}
.pl2 .pl-tri{top:auto;right:0;bottom:var(--tab-bar-h,0px);z-index:51;width:auto;height:70vh;border-radius:18px 18px 0 0;background:var(--ui-bar-side-up);box-shadow:var(--ui-fab-sh);transform:translateY(calc(100% + var(--tab-bar-h,0px) + 8px));visibility:hidden;transition:transform .36s cubic-bezier(.16,1,.3,1),visibility 0s linear .36s}
/* Sol (b): a closed sheet is out of sight and out of the Tab order (visibility), after its slide down */
.pl2.sheet-open .pl-tri{transform:none;visibility:visible;transition:transform .36s cubic-bezier(.16,1,.3,1),visibility 0s}
.pl2 .pl-trail{display:none}
.pl2 .pl-tpan{display:flex;width:100%}
.pl2 .pl-thd::before{content:"";position:absolute;left:50%;top:7px;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--ui-bar-ctl-bg-p)}
/* B4 EN1-e: the toast (and its "Atsaukt") stands above the "Šķirot" button, not under it */
.pl-page .pl2 .pl-snack{bottom:calc(var(--tab-bar-h,0px) + 68px)}
.pl2 .pl-fab{position:fixed;left:50%;bottom:calc(var(--tab-bar-h,0px) + 12px);z-index:45;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;border:0;border-radius:999px;background:var(--ui-bar-patina);box-shadow:var(--ui-fab-sh);color:var(--ui-bar-ink-on);font:620 var(--ui-fs-m)/1 var(--ui-f);transform:translateX(-50%);cursor:pointer}
.pl2 .pl-fab b{padding:3px 7px;border-radius:999px;background:var(--ui-bar-ctl-bg-h);font-size:12px}
.pl2.sheet-open .pl-fab{display:none}
.pl2.sheet-open .pl-scrim{display:block;position:fixed;inset:0;z-index:50;background:var(--ui-scrim)}
.pl2 .pl-wk{padding:0;background:none;box-shadow:none}
.pl2 .pl-week{grid-template-columns:minmax(0,1fr)}
.pl2 .pl-day{min-height:0}
.pl2 .pl-day.past{display:none}
.pl2.pl-showpast .pl-day.past{display:flex}
.pl2 .pl-phpast{display:flex;align-items:center;gap:8px;width:100%;margin:0 0 10px;justify-content:flex-start}
.pl2 .pl-rib{grid-template-columns:1fr}
.pl2 .pl-dc,.pl2 .pl-fdots{display:none}
}
@media (prefers-reduced-motion:reduce){
.pl2 .pl-shell,.pl2 .pl-pbar,.pl2 .pl-tri,.pl2 .pl-tpan,.pl2 .pl-fchev,.pl-sum-card{transition:none;animation:none}
/* Sol (e): the sidebar's entrance, the tablet slide while dragging, the frame's own moves */
.pl2,.pl2::before,.pl2.tri-open .pl-tpan,.pl2.drag-from-tri .pl-tpan,.pl2.sheet-open .pl-tri{transition:none;animation:none}
}

/* ================= B4 PL2 priority (decisions 225, 227) ================= */
/* High: a small timber up-chevron and a bold name. Low: a small down-chevron in a muted warm ink and a quieter name. Normal: nothing.
   The chevron carries meaning, so it holds 3:1 or more against the card; the words are in the card's name for a screen reader. */
.lmf-pr{display:inline-flex;align-items:center;margin-right:4px;vertical-align:-1px}
.lmf-pr .v31-i{width:10px;height:10px;stroke-width:2.6}
.lmf-pr.high{color:var(--ui-pr-high)}
.lmf-pr.high .v31-i{transform:rotate(-90deg)}   /* the family chevron points right: up for high */
.lmf-pr.low{color:var(--ui-pr-low)}
.lmf-pr.low .v31-i{transform:rotate(90deg)}   /* down for low */
.v31-db-line .lmf-pr .v31-i{width:10px;height:10px;margin-top:0;color:inherit}   /* the board's line icons are ink: the cue keeps its own */
.pl-card.pr-high .pl-nm>.t{font-weight:700}
.pl-card.pr-low .pl-nm>.t{color:var(--ui-pr-low-ink);font-weight:540}
.pl-prio{display:flex;align-items:center;gap:8px;margin-top:4px}
.pl-prio-l{color:var(--ui-ink-2);font:var(--ui-t-meta)}
.pl-tpop-pr{padding:0 12px}
/* B4 HP3: the help's pictures of the cue fit its narrow picture column: three one-word cards stacked (Plānotājs), and two step
   lines of a deal card (Darījumi) */
.pl-hprio{display:grid;gap:4px}
.v31-db-hprio{display:grid;gap:2px}
/* ==== B4 OS1 (decision 238, Janis 26 Nov: "same in planner"): two weeks, the month and the year grow to their full height and scroll
   with the page; the board no longer takes the window's height (fit() in workspace-planner-v31.js). The Šķirot sidebar stays fixed
   down the window's left edge under the pinned top bar (the L, decision 226); its own list still scrolls inside it, like a window. */
.pl2 .pl-shell{flex:none;min-height:0}
.pl2 .pl-main{overflow:visible;overscroll-behavior:auto}
.pl-month{flex:none;overflow:visible}
.pl-year{flex:none;overflow:visible}
.pl-page .pl-wlist{max-height:none;overflow:visible;gap:6px}   /* HOTFIX-CARDS: today's waits are cards, spaced like the day's list */

/* B4 EN1-e (decisions 231, 232, 235): the Šodien day line; "Pārplānot" in Šķirot and its one screen */
.v31-td2-day{margin:0;color:var(--ui-muted);font:400 var(--ui-fs-m)/1.45 var(--ui-f);text-wrap:pretty}
.v31-td2-day>b{color:var(--ui-ink);font-weight:620}
.v31-td2-dayw{display:inline-flex;align-items:center;gap:4px;color:inherit;text-decoration:underline;text-decoration-color:var(--ui-line-2);text-underline-offset:3px}
.v31-td2-dayw:hover{color:var(--ui-ink)}
.v31-td2-dayw .v31-i{width:13px;height:13px}
.pl2 .pl-rp-slip{display:flex;flex-direction:column;gap:6px;margin-top:8px;padding-top:10px;border-top:1px solid var(--ui-bar-ctl-bg-h)}
.pl2 .pl-rp-slip .pl-tsi{color:var(--ui-bar-group)}
.pl2 .pl-rp-go{align-self:flex-start;margin:4px 0 0 22px}
.pl2 .pl-rp-tools{display:flex;flex-direction:column;gap:6px;margin-top:6px;padding:12px 4px 4px;border-top:1px solid var(--ui-bar-ctl-bg-h)}
.pl2 .pl-rp-tools .pl-rp-go,.pl2 .pl-rp-tools .pl-th{margin-left:0}
dialog.pl-rp[open]{display:flex}
dialog.pl-rp::backdrop{background:color-mix(in srgb,var(--ui-ink) 40%,transparent)}
@media (min-width:701px){
  dialog.pl-rp:not(.full){inset:0;width:min(640px,calc(100vw - 32px));height:fit-content;max-height:min(760px,calc(100vh - 48px));margin:auto;border-radius:var(--ui-sheet-r)}
  dialog.pl-rp .psh-grab{display:none}
}
.pl-rp .psh-b{padding:var(--ui-sp-2) var(--ui-gut-in) var(--ui-sp-3)}
.pl-rp-lead{margin:4px 0 12px;color:var(--ui-muted);font:400 var(--ui-fs-m)/1.45 var(--ui-f);text-wrap:pretty}
.pl-rp-fs{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin:0 0 14px}
.pl-rp-f{display:flex;align-items:center;gap:6px;color:var(--ui-ink);font:620 var(--ui-fs-label)/1.2 var(--ui-f)}
.pl-rp-f input[type="number"]{width:76px}
.pl-rp-u{color:var(--ui-muted);font-weight:400}
.pl-rp-msg{margin:8px 0;color:var(--ui-ink);font:540 var(--ui-fs-m)/1.45 var(--ui-f)}
.pl-rp-note{margin:8px 0 0;color:var(--ui-muted);font:var(--ui-t-meta)}
.pl-rp-sub{margin:18px 0 6px;color:var(--ui-muted);font:620 var(--ui-fs-label)/1.2 var(--ui-f)}
.pl-rp-list{display:flex;flex-direction:column;border:1px solid var(--ui-line);border-radius:10px;overflow:hidden}
.pl-rp-it{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:48px;padding:8px 12px;border-top:1px solid var(--ui-line);cursor:pointer}
.pl-rp-it:first-child{border-top:0}
div.pl-rp-it{cursor:default}
.pl-rp-it.stays .pl-rp-d{color:var(--ui-muted)}
.pl-rp-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.pl-rp-t{overflow:hidden;color:var(--ui-ink);font:620 var(--ui-fs-m)/1.3 var(--ui-f);text-overflow:ellipsis;white-space:nowrap}
.pl-rp-s{overflow:hidden;color:var(--ui-muted);font:var(--ui-t-meta);text-overflow:ellipsis;white-space:nowrap}
.pl-rp-d{color:var(--ui-ink);font:400 var(--ui-fs-label)/1.3 var(--ui-f);font-variant-numeric:tabular-nums;white-space:nowrap}
.pl-rp-d b{font-weight:700}
.pl-rp-k{display:inline-flex;width:18px;justify-content:center;color:var(--ui-muted)}
.pl-rp-k .v31-i{width:16px;height:16px}
.pl-rp .psh-f>.b:last-child:not(:first-child){justify-self:end}
@media (max-width:440px){.pl-rp-it{grid-template-columns:auto minmax(0,1fr)}.pl-rp-d{grid-column:2}}
}

/* /forest/lmf-page-filters.css */
@layer pages{
/* LMF page layout: lmf-page-filters.css, B4 FL2 (decisions 192, 194): the filter row of Darījumi, Plānotājs and Partneri
   (workspace-filter-bar.js). Every pressable thing is a member of the control family (lmf-controls.css): tool capsules, the
   shared menu, tags, the pop-over, the sunk field, the main button. These rules only lay them out. Tokens only.
   B4 OF2-P5 (decisions 195, 196): the row's own looks are gone. A chosen filter is the family's .tag.on with its .b.q.ic.xs cross,
   the count in a capsule is .n, a tick row is .cl.row, No and Līdz are .rng with .w-num / .w-date fields, the 220 / 168 px stop is
   .sel.t / .sel.t.tight, and the phone sheet is .psh.full with .rowb.two groups.
   Desktop rules first; the phone changes sit in the PHONE-SEAM block at the end. */

/* ---------- the row ---------- */
.fb{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-gap);min-width:0;margin:0 0 12px}
.fb-caps{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-gap);min-width:0}
.fb label,.fb-line label,.fb-panel label,.fb-pop label,.fb-sheet label{margin:0}
.fb .fb-q{flex:1 1 200px;max-width:380px;margin-left:auto}
.fb-sep{flex:none;width:1px;height:18px;background:var(--ui-line)}
.fb-i{flex:none;width:var(--ui-ic);height:var(--ui-ic)}
.fb-sw{flex:none}
.fb-count{color:var(--ui-ink-2);font:var(--ui-t-body);white-space:nowrap}
.fb-count b{color:var(--ui-ink);font-weight:700;font-variant-numeric:tabular-nums}

/* Plānotājs: the row is part of the page's own head row (decision 194: one aligned row, no second level of buttons) */
.fb--compact{display:contents}
.fb--compact .fb-caps{flex-wrap:nowrap;flex:none}
.pop.fb-qpop{width:300px;padding:8px}
.pop.fb-qpop .fb-q{display:flex;max-width:none;margin:0}

/* ---------- the line of what is on ---------- */
.fb-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:var(--ui-h-s);margin:-2px 0 12px;color:var(--ui-ink-2);font:var(--ui-t-body)}
.fb[hidden],.fb-line[hidden],.fb-panel[hidden]{display:none}
.fb-tags{display:contents}
.fb-line .fb-count{margin-right:4px}
.fb-name{display:inline-flex;align-items:center;gap:5px;margin-right:4px;color:var(--ui-ink);font-weight:620}

/* ---------- the "Filtri" panel: the rows of Pārlūks's panel (a group word at the left, its fields in a line) ---------- */
.fb-panel{margin:0 0 12px;padding:2px 16px;border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface)}
.fb-g{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:end;gap:8px 12px;padding:12px 0}
.fb-g+.fb-g{border-top:1px solid var(--ui-line)}
.fb-g>b{align-self:center;color:var(--ui-ink-2);font:var(--ui-t-body);font-weight:var(--ui-fw)}
.fb-fs{display:flex;flex-wrap:wrap;align-items:end;gap:10px 14px;min-width:0}
.fb-f{display:grid;gap:4px;min-width:0}
.fb-fl{color:var(--ui-ink-2);font:var(--ui-t-meta)}
.fb-f .sel{min-width:150px}
.fb-ck{height:var(--ui-h-m)}
.fb-panel .fb-list{max-height:132px;min-width:240px}
.fb-panel .fb-h:first-child{display:none}

/* ---------- pop-overs: the place choice and the name of a saved filter ---------- */
.pop.fb-pop{position:absolute;z-index:1200;box-sizing:border-box;width:336px;max-width:calc(100vw - 16px);padding:12px}
.fb-h{margin:0 0 6px;color:var(--ui-ink-2);font:var(--ui-t-meta);font-weight:620}
.fb-list+.fb-h,.fb-chips+.fb-h,.cl.row+.fb-h{margin-top:12px;padding-top:10px;border-top:1px solid var(--ui-line)}
.fb-list{display:grid;gap:1px;max-height:212px;overflow:auto;scrollbar-width:thin}
.fb-list .fb-h{position:static;margin:8px 0 2px;padding:6px 6px 0;border-top:1px solid var(--ui-line)}
.fb-chips{display:flex;flex-wrap:wrap;gap:6px}
.fb-from{display:flex;align-items:center;gap:8px;margin-top:8px;color:var(--ui-ink-2);font:var(--ui-t-body)}
.fb-from .sel{flex:1;min-width:0}
.fb-find{margin-top:8px}
.fb-hits{display:grid;gap:1px;margin-top:4px}
.fb-hint{margin:8px 0 0;color:var(--ui-muted);font:var(--ui-t-meta)}
/* quiet words beside the count: "3 bez vietas", a note about a link */
.fb-quiet{color:var(--ui-muted);font:var(--ui-t-meta);white-space:nowrap}
.fb-saverow{display:flex;gap:6px}
.fb-saverow .in{flex:1;min-width:0}

/* ---------- nothing matches ---------- */
.fb-none{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:18px 16px;border:1px dashed var(--ui-line);border-radius:var(--ui-r-card);color:var(--ui-ink-2);font:var(--ui-t-body)}

/* ---------- the pages ---------- */
/* Partneri: the row stands beside the kind tabs */
.v31-pa-tools .fb{flex:1 1 320px;margin:0}
.v31-pa .fb-line{margin:0}
/* Plānotājs: one row, every control on one line and of one height (decision 194) */
.pl-page .pl-bar.pl-bar--fb{flex-wrap:nowrap;gap:12px;padding-bottom:10px}
.pl-page .pl-bar--fb .pl-ttl{flex:none}
.pl-page .pl-bar--fb .pl-nav{flex:none}
.pl-page .pl-bar--fb .fb-caps{order:1}
.pl-page .pl-bar--fb .pl-grow{flex:1;min-width:0;order:2}
.pl-page .pl-bar--fb .fb-qb{order:3}
.pl-page .pl-bar--fb .pl-modes{flex:none;order:4}
.pl-page .pl-board>.fb-panel{margin:0 0 10px}
.pl-page .pl-board>.fb-line{margin:0 0 8px}
@media (max-width:1360px){.fb--compact .sel.t{max-width:124px}.fb--compact .fb-count{display:none}.pl-page .pl-bar.pl-bar--fb{gap:8px}}
/* one row where it fits; below that the row wraps (never a sideways scroll): a phone on its side is 844 px wide */
@media (max-width:1239px){.pl-page .pl-bar.pl-bar--fb{flex-wrap:wrap}}

/* ---------- PHONE-SEAM: one "Filtri" button and the search; the filters are a sheet ---------- */
/* the sheet is the family's .psh.full on a <dialog> (the core lifts the dialog's limits) */
.fb-sq{padding:10px var(--ui-gut-in) 6px}
/* a group: the family row button (.rowb.two) on the <summary>; the core hides the marker and turns the chevron down when open.
   The groups' divider is the sheet's. */
.fb-acc+.fb-acc{border-top:1px solid var(--ui-td-line)}
.fb-accin{display:grid;gap:12px;padding:0 var(--ui-gut-in) 16px}
.fb-accin .fb-h{margin:4px 0 0}
.fb-set{min-width:0;margin:0;padding:0;border:0}
.fb-accin>.fb-set:only-child legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.fb-set legend{padding:0;margin:0 0 4px;color:var(--ui-ink-2);font:var(--ui-t-meta);font-weight:620}
.fb-sheet .fb-list{max-height:none}
.fb-sheet .fb-f .sel{width:100%}
@media (max-width:700px){
  .fb{flex-wrap:nowrap}
  .fb-caps{flex-wrap:nowrap;flex:none}
  .fb .fb-q{flex:1;max-width:none;margin-left:0}
  .fb-line{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,var(--ui-ink) calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,var(--ui-ink) calc(100% - 28px),transparent)}
  .fb-line>*,.fb-line .tag{flex:none}
  .v31-pa-tools .fb{flex-basis:100%}
  /* Plānotājs: the title and the arrows, then Filtri and the four switches on one row where they fit; on a narrower phone (320 px)
     the switches move under Filtri as one whole row, never squeezed so a count spills into the next switch (Sol review 1). A switch
     never shrinks below its icon and count; the count stops at "99+" (the exact number is in its name). */
  .pl-page .pl-bar.pl-bar--fb{flex-wrap:wrap}
  .pl-page .pl-bar--fb .pl-ttl{flex:1 1 auto}
  .pl-page .pl-bar--fb .fb-caps{flex:1 1 100%;flex-wrap:wrap;row-gap:var(--ui-gap);order:3;min-width:0}
  .pl-bar--fb .fb-caps>.b{flex:none}
  .pl-page .pl-bar--fb .fb-sw{display:flex;flex:1 0 auto;flex-wrap:wrap;row-gap:var(--ui-gap);min-width:0;max-width:100%}   /* four "99+" at 320 px beside the help corner's room: the last switch takes the next line, never past the edge */
  .pl-bar--fb .fb-sw>.b{flex:1 0 auto}   /* the family's compact group (.grp.tight) gives each switch its side room */
  .pl-page .pl-bar--fb .pl-modes{order:4}
}
}

/* /forest/lmf-page-help.css */
@layer pages{
/* B4 HP1 (decisions 152 and 153): "Palīdzība", the help buttons and the help window (one half-screen panel, phone sheet; B4 HP3) with its
   explanation patterns. A family page sheet (family.test.cjs): tokens only, type on the scale, no !important, no id selector.
   Prefix hp-. lmf-help.js builds the markup; the help pages are next/web/help/help-<page>.js. */

/* ---------- 1. the "?" in a window head: B4 OF2 package 6 (decisions 195, 196, 198): the family's round icon tool (.b.t.ic, a mist
   circle like every other icon tool; "on" while the help is open, from aria-expanded). Its look and size come from the family; this
   sheet only draws the sign (a stroked "?" a little larger than a sprite icon) and places it ---------- */
.hp-q svg,.hp-fab svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
/* in the contact window's top bar: before Labot */
.ui-kw-head .hp-q{margin:0 4px 0 0}
/* its place: just left of the window's tabs (the header is one ordered flex row, lmf-page-property.css) */
@media (min-width:1001px){
  .pw-head .hp-q{order:6;margin:0 0 0 auto}
  .pw-head .hp-q~.detail-tabs{margin-left:0}
}

/* ---------- 2. the corner (B4 HF1, decision 166; B4 OF2 package 6, Janis 25 Nov): the bottom right corner of every page, one fixed
   stack: the round "?" over "Uz augšu", 12 px apart, floating over the page. No page keeps a strip beside it at any width: page content
   runs to its normal right edge. B4 UP2 (Janis, 25 Nov): it is calm. Scrolling never moves or hides it; only --corner-up moves it,
   set when the layout changes, so it stands just above a bar pinned to the screen (a fixed view's pager or foot, a bottom-sticky bar,
   the phone filter's "Gatavs") or a notice. Rows and other scrolling content pass under it, and every page keeps the stack's
   height and its place at its end (--corner-room) so the last row and the pager scroll clear. Nothing slides (no motion to reduce).
   workspace-navigation.js holds the stack's height too ---------- */
/* B4 UP2: when the stack stands above a pinned bar (--corner-bar), the page's end room grows by as much, so the last row and
   the pager still scroll clear of it */
:root{--corner-right:10px;--corner-base:28px;--corner-room:calc(var(--corner-base) + 104px + var(--corner-bar,0px))}
/* B4 DS6 (decision 185, C11): the place bar's height with the safe area (--tab-bar-h, 0 where the bar is on top) is added by every element anchored to the
   bottom: the stack stands over the bar, and the page's end room grows with it */
@media (max-width:1000px){:root{--corner-right:8px;--corner-base:calc(16px + max(var(--tab-bar-h),env(safe-area-inset-bottom,0px)));--corner-room:calc(var(--corner-base) + 108px + var(--corner-bar,0px))}}
.hp-corner{position:fixed;right:var(--corner-right);bottom:var(--corner-base);z-index:1040;display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:none;transform:translateY(calc(-1*var(--corner-up,0px)))}
.hp-corner>*{pointer-events:auto}
/* B4 UP2 (Sol review): the phone's full-screen table (workspace-mobile-table.css, z-index 1200) keeps the stack and the help over it */
body.mobile-table-focused .hp-corner{z-index:1210}
body.mobile-table-focused .hp-panel:not(.is-sheet){z-index:1215}   /* the phone sheet already stands over everything (1995) */
/* B4 UP2: its own box (relative, no offsets), so the family's enlarged tap area (.b::after, absolute) stays round "Uz augšu"; with
   position:static it was laid over the whole stack and took the "?"'s taps */
.hp-corner>.workspace-return{position:relative;flex:none;margin:0}   /* its old floating offsets are cleared in workspace-premium.css */
@media screen{
  main>[id=content]{padding-bottom:var(--corner-room)}
}
/* a PC: two pages fill the screen: the planner's board, and the trips map with its own tools in the other corners */
@media screen and (min-width:1001px){
  main>[id=content]:is(.page-tasks){padding-bottom:56px}
  main>[id=content]:is(.page-trips){padding:0}
}
/* Partneri's narrower phone rows: the state chip shares the name's line, so the town keeps its whole width */
@media screen and (max-width:700px){
  .page-partners .v31-pa-row{grid-template-areas:"ic nm nm chips chev" "ic kind town town chev"}
  .page-partners .v31-pa-nm{white-space:normal}
}
/* Izbraukumi on the phone runs edge to edge: its rows, its list buttons and its map tools */
@media screen and (max-width:700px){
  .page-trips .tr-rowm>small{white-space:normal}
  .page-trips .tr-maptools{left:60px;right:60px;justify-content:flex-end}   /* the map's own tools stay clear of the corner */
  .page-trips .tr-maptools .lmf-map-tools{flex-wrap:wrap;justify-content:flex-end}
}
/* B4 AD1 (decision 185, C04; lead's note): a long title or name wraps to two lines at most in every Šodien list (it reached three
   in "Jāpastāsta" after DS4 lifted the clamp); the whole title is the row's tooltip, and the row shows it whole while it has the
   keyboard focus */
.page-today .v31-td2-t .v31-td2-tt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;overflow:hidden;overflow-wrap:normal}
.page-today .v31-td2-open:focus-visible .v31-td2-tt{display:block;-webkit-line-clamp:none;line-clamp:none;overflow:visible}
@media (min-width:1361px){.page-today .v31-td2-cols{column-gap:16px}}
/* the table over the whole screen keeps its own thin margin, and the stack's clearance at its end like every page */
.table-expanded main>[id=content]{padding:8px 8px var(--corner-room) 8px}
/* the "?" (B4 OF2 package 6): the family's round icon tool at size L (.b.t.ic.l), the same tool as "Uz augšu" (.b.t.l) under it;
   look and size from the family (40 with the 44 px box on touch); this sheet places it and seats the words of its first visit */
.hp-fab{flex:none;margin:0}
.hp-fab[hidden]{display:none}
/* a corner button over the element with the keyboard focus steps out of sight and reach while it has the focus (WCAG 2.4.11;
   workspace-navigation.js, focusAside); nothing else hides it */
.hp-corner>[data-obstructed="true"]{visibility:hidden;pointer-events:none}
.hp-fab svg{width:20px;height:20px}
/* first visit to a page: the words show beside the button for 4 s, once */
.hp-fab-l{display:none}
.hp-fab.is-intro .hp-fab-l{position:absolute;right:calc(100% + 8px);top:50%;display:block;width:max-content;padding:7px 11px;border:1px solid var(--ui-line-2);border-radius:var(--ui-r);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh);color:var(--ui-ink);font:620 13px/1 var(--ui-f);white-space:nowrap;transform:translateY(-50%);pointer-events:none}

/* ---------- 3. the help window ---------- */
/* B4 HP3 (Janis, 23 Nov 2026): one help window everywhere, full height at the right, about half the screen wide, the same design
   on a page and over a window. The width: half the screen, never under 412 px, never over 960 px (a line of help stays readable). */
:root{--hp-w:clamp(412px,50vw,960px)}
.hp-panel{position:fixed;top:calc(var(--ui-bar-h) + var(--ui-env-offset) + 8px);right:12px;bottom:calc(12px + var(--tab-bar-h));z-index:1045;display:flex;flex-direction:column;box-sizing:border-box;width:var(--hp-w);max-width:calc(100vw - 24px);margin:0;padding:0;
  border:1px solid var(--ui-line-2);border-radius:var(--ui-dlg-r);background:var(--ui-surface);box-shadow:var(--ui-dlg-sh);color:var(--ui-ink);font:var(--ui-t-body);overflow:hidden;text-align:left}
dialog .hp-panel{top:12px}
/* over a window on a wide screen the window slides left and sits beside the help (lmf-help.js sets --hp-room, what is left of the
   screen); with less room the window stays put and the help lies over its right half */
dialog.hp-beside{margin-left:12px;margin-right:auto;width:min(1408px,var(--hp-room,100%));max-width:none}
.hp-head{display:flex;align-items:center;gap:4px;flex:none;height:46px;padding:0 6px 0 14px;border-bottom:1px solid var(--ui-line)}
.hp-head h2{display:flex;align-items:center;min-width:0;margin:0 auto 0 0;font:var(--ui-t-step);white-space:nowrap}
/* the title is the switch to every other help page */
/* the title is the switch to every other help page: the family quiet button (.b.q, B4 OF2 package 6), the page name in the step type */
.hp-head .hp-switch{gap:9px;min-width:0;margin-left:-6px}
.hp-switch .hp-name{overflow:hidden;color:var(--ui-ink);font:var(--ui-t-step);text-overflow:ellipsis}
.hp-switch>svg{width:14px;height:14px;flex:none;color:var(--ui-ink-2);transform:rotate(90deg)}
.hp-switch[aria-expanded=true]>svg{transform:rotate(-90deg)}
.hp-mark{display:inline-grid;place-items:center;flex:none;box-sizing:border-box;width:24px;height:24px;border:1px solid var(--ui-raise-line);border-bottom-color:var(--ui-raise-line-b);border-radius:50%;background:var(--ui-raise-bg);color:var(--ui-pine);box-shadow:var(--ui-raise-sh)}
.hp-mark svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
/* B4 OF2 package 6: "Kas tas ir?" is a tool (.b.t.s, "on" while pointing, from aria-pressed), the cross the quiet round icon button
   (.b.q.ic); both drawn and sized by the family */
.hp-head .hp-point[hidden]{display:none}
.hp-jump{display:flex;gap:6px;flex:none;padding:8px 14px;border-bottom:1px solid var(--ui-line);overflow-x:auto;scrollbar-width:none;mask-image:linear-gradient(90deg,var(--ui-ink) calc(100% - 28px),transparent)}
.hp-jump[hidden]{display:none}
/* B4 OF2 package 6: the jump chips are the family's S tools (a.b.t.s), the section in view "on" (.on with aria-current) */
.hp-jump>.b{flex:none}
.hp-body{position:relative;flex:1;min-height:0;overflow-y:auto;padding:2px 14px 20px;scrollbar-width:thin;scrollbar-color:var(--ui-line-2) transparent;outline:0;container:hp-body/inline-size}
.hp-body ::selection{background:var(--ui-pine-tint)}
.hp-body :is(a,summary):focus-visible,.hp-peek>a:focus-visible{outline:2px solid var(--ui-pine);outline-offset:2px;border-radius:var(--ui-r)}

/* a section: one question, answered by pictures */
.hp-sec{padding:16px 0 14px;border-bottom:1px solid var(--ui-line);outline:0}
.hp-sec:last-child{border-bottom:0}
.hp-sec>h3{margin:0 0 4px;color:var(--ui-ink);font:700 var(--ui-fs-l)/1.3 var(--ui-f);text-wrap:balance}
.hp-lead{margin:0 0 10px;color:var(--ui-ink-2);font:400 var(--ui-fs-m)/1.45 var(--ui-f);max-width:62ch}
.hp-sub{margin:14px 0 6px;color:var(--ui-ink-2);font:var(--ui-t-head)}
.hp-sec.is-hit{animation:hp-hit 1.6s ease-out}                              /* the section the "?" opened at: one soft flash */
@keyframes hp-hit{from{background:var(--ui-pine-soft);box-shadow:0 0 0 8px var(--ui-pine-soft)}to{background:transparent;box-shadow:0 0 0 8px transparent}}
@media (prefers-reduced-motion:reduce){.hp-sec.is-hit{animation:none}.hp-corner,.hp-fab,.hp-q{transition:none}}

/* an entry: the real thing on the left, a name and one line on the right; one specimen column per list.
   B4 HP2 (Janis on live, 23 Nov 2026: specimens overlapped their text): the column is the list's own (subgrid), --hp-s wide but
   never narrower than its widest unbreakable specimen; parts of a specimen wrap inside it, so a specimen can never reach the text.
   The floor is an empty spacer in the column (a min-width on .hp-s would replace the content minimum, and a button spilled over). */
.hp-list{display:grid;grid-template-columns:fit-content(var(--hp-s,44px)) minmax(0,1fr);column-gap:12px;row-gap:0;margin:0;padding:0}
.hp-list::before{content:"";grid-column:1;width:var(--hp-s,44px);height:0}
.hp-e{grid-column:1/-1;display:grid;grid-template-columns:subgrid;align-items:center;min-height:34px;padding:5px 0}
.hp-e+.hp-e{border-top:1px solid var(--ui-td-line)}
.hp-list.plain{grid-template-columns:minmax(0,1fr)}
.hp-list.plain::before{content:none}
.hp-list.plain .hp-e{padding:7px 0}
.hp-s{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:4px}
.hp-s.c{justify-content:center}
.hp-t{display:block;min-width:0;color:var(--ui-ink-2);font:400 var(--ui-fs-m)/1.4 var(--ui-f)}
.hp-t b{display:block;color:var(--ui-ink);font-weight:620}
.hp-t.one b{display:inline}
.hp-list.plain .hp-t b{margin-bottom:4px}
.hp-sec em{font-style:normal;font-weight:700;color:var(--ui-ink)}

/* the annotated picture: the real parts, numbered; the numbers are the key */
.hp-fig{margin:8px 0 0}
.hp-shot{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 9px;padding:10px 10px 12px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-canvas)}
.hp-pc{display:inline-flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.hp-pc>span{display:inline-flex;align-items:center;gap:5px;min-height:24px}
/* the number of a part: a quiet engraved mark (Janis, 24 Nov 2026: no filled dark discs) */
.hp-n{display:inline-grid;place-items:center;flex:none;box-sizing:border-box;min-width:18px;height:18px;padding:0 4px;border:1px solid var(--ui-line-2);border-radius:9px;background:var(--ui-cke-bg);box-shadow:var(--ui-cke-off-sh),var(--ui-edge);color:var(--ui-ink-2);font:620 12px/1 var(--ui-f);font-style:normal;font-variant-numeric:tabular-nums;letter-spacing:0}
.hp-keys{display:grid;gap:0;margin:8px 0 0;padding:0}
.hp-k{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:8px;align-items:baseline;padding:4px 0;color:var(--ui-ink-2);font:400 var(--ui-fs-m)/1.4 var(--ui-f)}
.hp-k+.hp-k{border-top:1px solid var(--ui-td-line)}
.hp-k .hp-n{transform:translateY(2px)}
.hp-k b{color:var(--ui-ink);font-weight:620}
/* rows of a table, drawn small (the tree rows under a stand) */
/* B4 HP2: the columns are the table's (subgrid), never narrower than their content: the value badge was cut at 308 to 368 px */
.hp-shot.rows{display:grid;grid-template-columns:minmax(max-content,1.6fr) repeat(5,minmax(max-content,.8fr)) minmax(max-content,1.5fr);column-gap:6px;row-gap:0;padding:0;overflow:hidden}
.hp-row{grid-column:1/-1;display:grid;grid-template-columns:subgrid;align-items:center;min-height:30px;padding:0 10px;color:var(--ui-ink);font:400 12px/1.25 var(--ui-f);font-variant-numeric:tabular-nums}
.hp-row+.hp-row{border-top:1px solid var(--ui-td-line)}
/* a narrow help (the phone) drops the two plain-number columns, height and basal area: every sign
   the entries below explain (the marks, the bold figures, the value) stays */
@container hp-body (max-width:365px){
  .hp-shot.rows{grid-template-columns:minmax(max-content,1.6fr) repeat(3,minmax(max-content,.8fr)) minmax(max-content,1.5fr)}
  .hp-row>:is(:nth-child(3),:nth-child(6)){display:none}
}
.hp-row.hd{min-height:26px;background:var(--ui-stone-col);color:var(--ui-ink-2)}
.hp-row>span{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden;white-space:nowrap}
.hp-row>span:not(:first-child){justify-content:flex-end}

/* a scale: the same thing at each step, with its threshold under it */
.hp-scale{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;margin:8px 0 2px}
.hp-step{display:grid;justify-items:center;align-content:start;gap:5px;text-align:center;color:var(--ui-ink-2);font:400 12px/1.3 var(--ui-f)}
.hp-step b{display:block;color:var(--ui-ink);font:620 12px/1.25 var(--ui-f)}
/* factor bars: the taller the bar, the more counts; a dashed bar is a range */
.hp-bars{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;align-items:end;margin:6px 0 2px}
.hp-bar{display:grid;justify-items:center;align-content:end;gap:4px;min-width:0;text-align:center;color:var(--ui-ink-2);font:400 12px/1.3 var(--ui-f)}
.hp-bar::before{content:"";display:block;width:100%;max-width:64px;height:calc(var(--v) * 34px + 3px);border-radius:3px 3px 0 0;background:var(--ui-pine);opacity:calc(.35 + var(--v) * .65)}
.hp-bar.rng::before{border:1.5px dashed var(--ui-pine);border-bottom:0;background:none;opacity:1;box-sizing:border-box}
.hp-bar b{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;padding-top:4px;border-top:1.5px solid var(--ui-ink);color:var(--ui-ink);font:700 12px/1.2 var(--ui-f)}
.hp-bar>span{display:flex;flex-wrap:wrap;justify-content:center;gap:3px}

/* the calculation as one line of labelled terms; an operator stays with its term */
.hp-eq{display:flex;flex-wrap:wrap;align-items:stretch;gap:6px 5px;margin:8px 0 4px}
.hp-term{display:grid;align-content:center;justify-items:start;gap:1px;padding:5px 9px;border:1px solid var(--ui-line-2);border-radius:var(--ui-r);background:var(--ui-surface);color:var(--ui-ink-2);font:400 12px/1.25 var(--ui-f)}
.hp-term b{color:var(--ui-ink);font:700 var(--ui-fs-l)/1.2 var(--ui-f)}
.hp-term>svg{width:15px;height:15px;color:var(--ui-ink-2)}
.hp-term.res{border-color:transparent;background:var(--ui-pine-tint);color:var(--ui-pine)}
.hp-term.res b{color:var(--ui-pine)}
.hp-opt{display:inline-flex;align-items:stretch;gap:5px}
.hp-op{align-self:center;color:var(--ui-ink);font:700 var(--ui-fs-l)/1 var(--ui-f)}
.hp-stepno{display:flex;align-items:center;gap:8px;margin:16px 0 2px;color:var(--ui-ink);font:700 var(--ui-fs-l)/1.3 var(--ui-f)}
.hp-stepno .hp-n{border-color:color-mix(in srgb,var(--ui-pine) 36%,var(--ui-line-2));background:var(--ui-pine-soft);color:var(--ui-pine);font-weight:700}

/* the worked example */
.hp-ex{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:10px;align-items:center;margin:8px 0 0;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);overflow:hidden;color:var(--ui-ink-2);font:400 12px/1.35 var(--ui-f)}
.hp-ex .r{grid-column:1/-1;display:grid;grid-template-columns:subgrid;align-items:center;border-top:1px solid var(--ui-td-line)}
.hp-ex .r:first-child{border-top:0}
.hp-ex .r>*{padding:6px 0}
.hp-ex .r>:first-child{padding-left:10px}
.hp-ex .r>:last-child{padding-right:10px;justify-self:end;font-weight:700;color:var(--ui-ink)}
.hp-ex .r.sum{background:var(--ui-stone-col);color:var(--ui-ink)}
.hp-ex .r.out,.hp-ex .r.out>:last-child{color:var(--ui-muted);font-weight:400}
.hp-ex .r.end{background:var(--ui-pine-soft)}
.hp-ex small{display:block;color:var(--ui-ink-2);font:400 12px/1.3 var(--ui-f)}
.hp-ex .who{display:flex;align-items:center;gap:6px;color:var(--ui-ink);font-weight:620;white-space:nowrap}

/* where the settings button is: the right end of the top bar, drawn */
.hp-barshot{display:flex;align-items:center;justify-content:flex-end;gap:14px;height:38px;margin:10px 0 0;padding:0 10px;border-radius:var(--ui-r);background:var(--ui-bar-bg);color:var(--ui-bar-ink);font:620 12px/1 var(--ui-f)}
.hp-barshot svg{width:15px;height:15px}
.hp-barshot span{display:inline-flex;align-items:center;gap:4px}
.hp-barshot .on{height:28px;padding:0 9px;border-radius:var(--ui-r-ctl);background:var(--ui-bar-ctl-bg-p);color:var(--ui-bar-ink-on);box-shadow:0 0 0 2px var(--ui-bar-focus)}
.hp-barshot em{margin-right:auto;color:var(--ui-bar-ink);font:400 12px/1 var(--ui-f);font-style:normal}
/* "do not mix up": two look-alikes side by side */
.hp-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 0}
.hp-pair>div{display:grid;justify-items:start;align-content:start;gap:6px;padding:10px 12px;border-radius:var(--ui-r-pop);background:var(--ui-canvas);color:var(--ui-ink-2);font:400 12px/1.35 var(--ui-f)}
.hp-pair b{display:block;color:var(--ui-ink);font-weight:620}
/* where a thing is changed: the path, drawn as the clicks */
.hp-path{display:flex;flex-wrap:wrap;align-items:center;gap:3px 4px;margin-top:4px;color:var(--ui-ink);font:620 12px/1.3 var(--ui-f)}
.hp-path i{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 7px;border-radius:5px;background:var(--ui-wash);font-style:normal}
.hp-path svg{width:13px;height:13px}
.hp-path>svg{color:var(--ui-muted)}
.hp-note{display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:8px;margin:10px 0 0;padding:8px 10px;border-radius:var(--ui-r);background:var(--ui-canvas);color:var(--ui-ink-2);font:400 12px/1.4 var(--ui-f)}
.hp-note>svg{width:15px;height:15px;margin-top:1px}
.hp-note b{color:var(--ui-ink);font-weight:620}
.hp-retry{margin:12px 0 0}
.hp-retry [aria-busy="true"]{opacity:.55;cursor:progress}
.hp-switch[aria-disabled="true"]{cursor:default}
.hp-more{margin:8px 0 0;color:var(--ui-ink-2);font:400 12px/1.4 var(--ui-f)}
/* B4 OF2 package 6: "more" is the family's disclosure tool (summary.b.t.s); its arrow turns down while open */
.hp-more summary svg{transition:transform var(--ui-t)}
.hp-more[open] summary svg{transform:rotate(90deg)}
@media (prefers-reduced-motion:reduce){.hp-more summary svg{transition:none}}
.hp-more p{margin:6px 0 0}
.hp-go{margin:12px 0 0}

/* the same on every page */
.hp-shared{display:grid;grid-template-columns:fit-content(var(--hp-sk,86px)) minmax(0,1fr) 14px;column-gap:12px;row-gap:0;margin:6px 0 0;padding:0;list-style:none;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);overflow:hidden}
.hp-shared::before{content:"";grid-column:1;width:var(--hp-sk,86px);height:0}
.hp-shared li{grid-column:1/-1;display:grid;grid-template-columns:subgrid}
.hp-shared a{grid-column:1/-1;display:grid;grid-template-columns:subgrid;align-items:center;min-height:40px;padding:4px 10px 4px 12px;color:var(--ui-ink-2);font:400 12px/1.35 var(--ui-f);text-decoration:none}
.hp-shared a:hover{background:var(--ui-wash)}
.hp-shared li+li{border-top:1px solid var(--ui-td-line)}
.hp-shared b{display:block;color:var(--ui-ink);font:620 13px/1.3 var(--ui-f)}
.hp-shared a>svg{width:14px;height:14px;color:var(--ui-muted)}
.hp-shared .hp-s{gap:3px}

/* the contents */
.hp-group{margin:14px 0 4px;color:var(--ui-ink-2);font:var(--ui-t-head)}
.hp-toc{display:grid;gap:0;margin:0;padding:0;list-style:none}
.hp-toc a{display:grid;grid-template-columns:20px minmax(0,1fr) auto 14px;column-gap:10px;align-items:center;min-height:38px;padding:0 4px;border-radius:var(--ui-r);color:var(--ui-ink);font:620 var(--ui-fs-l)/1.3 var(--ui-f);text-decoration:none}
.hp-toc a:hover{background:var(--ui-wash)}
.hp-toc li+li{box-shadow:0 -1px 0 var(--ui-td-line)}
.hp-toc a svg{width:16px;height:16px;color:var(--ui-ink-2)}
.hp-toc a small{color:var(--ui-ink-2);font:400 12px/1.3 var(--ui-f);text-align:right}
.hp-toc a[aria-current]{background:var(--ui-pine-soft)}
.hp-toc a[aria-current] small{color:var(--ui-pine);font-weight:620}
.hp-scrim{display:none}

/* "Kas tas ir?": every explained sign in view gets a dashed outline; a tap shows a small card */
.hp-spots{position:fixed;inset:0;z-index:2050;pointer-events:none}
.hp-spot{position:absolute;box-sizing:border-box;min-width:0;height:auto;margin:0;padding:0;border:1.5px dashed var(--ui-pine);border-radius:7px;background:color-mix(in srgb,var(--ui-pine-tint) 40%,transparent);box-shadow:none;cursor:help;pointer-events:auto}
.hp-spot:hover,.hp-spot:focus-visible,.hp-spot.on{border-style:solid;border-width:2px;background:color-mix(in srgb,var(--ui-pine-tint) 65%,transparent);box-shadow:0 0 0 4px color-mix(in srgb,var(--ui-pine) 18%,transparent);outline:0}
.hp-point-bar{position:fixed;left:50%;bottom:calc(20px + var(--tab-bar-h));z-index:2100;transform:translateX(-50%);display:flex;align-items:center;gap:12px;box-sizing:border-box;max-width:calc(100vw - 24px);padding:7px 8px 7px 14px;border-radius:12px;background:var(--ui-ink);color:var(--ui-on-fill);box-shadow:var(--ui-dlg-sh);font:620 13px/1.3 var(--ui-f)}
.hp-point-bar>svg{width:17px;height:17px;flex:none}
/* "Beigt": the family's dark-strip member (.b.s.bar, B4 OF2 package 6) */
.hp-peek{position:fixed;z-index:2100;box-sizing:border-box;width:300px;max-width:calc(100vw - 24px);padding:12px 14px 10px;border:1px solid var(--ui-line-2);border-radius:var(--ui-r-pop);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh);color:var(--ui-ink-2);font:var(--ui-t-body)}
.hp-peek .hp-e{min-height:0;padding:0;align-items:start}
.hp-peek>a{display:inline-flex;align-items:center;gap:3px;min-height:28px;margin-top:6px;color:var(--ui-pine);font:620 13px/1 var(--ui-f);text-decoration:none}
.hp-peek>a svg{width:13px;height:13px}

/* the specimens: drawn by the modules that own the signs, with their own markup and sheets; these rules only seat them in a list */
/* B4 HP2: a specimen never shrinks below itself (it did, and two chips slid over each other); its row wraps instead */
.hp-sp{display:inline-flex;flex:none;align-items:center;gap:4px;min-width:0;vertical-align:middle}
.hp-band{display:inline-flex;align-items:center;gap:4px}
.hp-band :is(dl,dd){margin:0}
.hp-band .next-stand-header.hp-inline{display:inline-flex;grid-template:none;align-items:center;gap:4px;margin:0;padding:0;border:0;background:none}
.hp-band .fd-mk{display:inline-flex;flex:none;align-items:center;justify-content:center;width:15px;height:15px;color:var(--ui-ink-2)}
.hp-band .fd-mk svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hp-band :is(.property-stand-inventory,.property-stand-cutting){display:inline-flex;align-items:center;gap:4px}
.hp-band .property-stand-cutting>.fd-words{display:none}
.hp-band .property-stand-cutting::after{content:attr(data-fd-show)}
.hp-band .property-stand-inventory>dt{display:none}
.hp-band .property-stand-inventory>dd{display:inline-flex;align-items:center;gap:4px}
.hp-band .property-stand-inventory>dd:not([data-fd-age=""])::after{content:"· " attr(data-fd-age)}
.hp-band :is(.property-stand-volume,.property-stand-site)>dt{display:none}
.hp-band .property-stand-volume dd{display:inline-flex;align-items:baseline;gap:2px;color:var(--ui-ink);font:620 13px/1 var(--ui-f)}
.hp-mini{display:inline-table;width:auto;margin:0;border:0;border-collapse:collapse;background:none}
.hp-mini td{padding:0;border:0;background:none;font:400 13px/1.2 var(--ui-f);font-variant-numeric:tabular-nums}
.hp-glyph{display:inline-block;color:var(--ui-ink);font:700 13px/1 var(--ui-f);white-space:nowrap}
.hp-sw{display:inline-block;width:22px;height:14px;border-radius:4px;background:var(--ui-a)}
.hp-row .hp-sp{gap:3px}
.hp-q.hp-q-show{margin:0;cursor:inherit}
/* B4 HV1 (decision 211): the map's own marks, seated on a small patch of map ground. Each module draws its mark with its own
   classes (trips pins and homes, legend keys, the map's tool buttons, the stand numbers) or its own Leaflet style (LMFHelp.shape);
   these rules only take a mark off the map's absolute placing and give it room. No colour is written here. */
.hp-trk,.hp-pin,.hp-mapnum{display:inline-grid;place-items:center;min-width:26px;min-height:26px}
.hp-pin{position:relative;box-sizing:border-box;padding:3px;border-radius:6px;background:var(--ui-stone-2)}
.hp-pin>.tr-pin,.hp-pin>.tr-home{position:relative;display:grid;place-items:center}
.hp-pin.hp-ring{width:52px;height:52px}
.hp-shape{display:block;flex:none;width:40px;height:24px;overflow:visible;border-radius:4px;background:var(--ui-stone-2)}
.hp-mapnum{box-sizing:border-box;padding:3px 5px;border-radius:6px;background:var(--ui-stone-2)}
.hp-mapnum>.lmf-map-number,.hp-km>span{position:static;transform:none}
.hp-sp>.pw-fold{position:relative;left:auto;bottom:auto;transform:none}   /* B4 DB1: the deal band's fold handle, drawn on its own */
.hp-pin>.pp-home-mk{display:grid;place-items:center;margin:3px}
/* a left-out place's reason words: in the help column they wrap instead of running into the caption */
.hp-trout,.hp-trout>.tr-l2{display:block;min-width:0;white-space:normal;overflow-wrap:anywhere}
.hp-s>.hp-sp:has(>.hp-trout){flex:0 1 auto;min-width:0}
/* B4 HP3: a whole list row (Saraksti «Tukšs saraksts») takes the column's width and wraps its words there, like the reasons above */
.hp-s>.hp-sp:has(>.vl-hrow){flex:1 1 auto;min-width:0}
/* the phone's deal strip is hidden outside the phone head (lmf-page-property.css); its picture shows it everywhere */
.hp-sp>.dp-strip{display:inline-flex;min-width:0}
.hp-maptools.lmf-map-tools{display:inline-flex;margin:0;padding:3px;border-radius:6px;background:var(--ui-stone-2)}
/* a piece of the top bar, in the bar's tokens (lmf-page-nav.css: .nav-ind, .nav-attention) */
.hp-navbar{position:relative;display:inline-flex;align-items:center;gap:6px;padding:6px 9px 8px;border-radius:6px;background:var(--ui-bar-bg);color:var(--ui-bar-ink-on);font:620 13px/1 var(--ui-f);white-space:nowrap}
.hp-navind{position:absolute;left:6px;right:6px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:linear-gradient(90deg,transparent,var(--ui-bar-brass) 10%,var(--ui-bar-brass-2) 50%,var(--ui-bar-brass) 90%,transparent)}
.hp-navcount{display:inline-flex;align-items:center;gap:5px;color:var(--ui-bar-count);font:700 12px/1 var(--ui-f);font-variant-numeric:tabular-nums}
.hp-navcount[data-late]::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ui-bar-late)}

/* ---------- 4. the phone: the window is a sheet, targets 40 to 44 px (the type tokens grow by themselves on touch) ---------- */
@media (max-width:600px){
  .pw-head .hp-q{margin:0 0 0 auto}
  .hp-scrim{display:block;position:fixed;inset:0;z-index:1990;background:color-mix(in srgb,var(--ui-ink) 32%,transparent)}
  /* B4 DS6 (fix check): a sheet over the place bar never runs past the screen's top: its head and close button stay on screen, the body scrolls */
  .hp-panel.is-sheet{top:auto;left:0;right:0;bottom:var(--tab-bar-h);z-index:1995;width:auto;max-width:none;height:min(92dvh,calc(100dvh - var(--tab-bar-h) - var(--ui-env-offset) - 8px));max-height:calc(100dvh - var(--tab-bar-h) - var(--ui-env-offset) - 8px);border:0;border-radius:var(--ui-sheet-r) var(--ui-sheet-r) 0 0}
  .hp-panel.is-sheet::before{content:"";flex:none;align-self:center;width:36px;height:4px;margin:7px 0 0;border-radius:2px;background:var(--ui-line-2)}
  .hp-head{height:52px;padding:0 4px 0 12px}
  .hp-jump{padding:6px 14px}
  .hp-body{padding:2px 14px calc(20px + env(safe-area-inset-bottom,0px))}
  .hp-e{min-height:40px}
  /* B4 HV1 (impeccable pass): on a phone a picture column never takes more than about a third of the sheet; a picture wider than
     that still keeps its own size (fit-content), the words keep the rest */
  .hp-list{grid-template-columns:fit-content(min(var(--hp-s,44px),34vw)) minmax(0,1fr)}
  .hp-list::before{width:min(var(--hp-s,44px),34vw)}
  .hp-toc a,.hp-shared a{min-height:46px}
  .hp-shared{--hp-sk:72px}
  .hp-toc a small{display:none}
  .hp-toc a[aria-current] small{display:inline}
  .hp-point-bar{left:12px;right:12px;bottom:calc(12px + max(var(--tab-bar-h),env(safe-area-inset-bottom,0px)));transform:none;justify-content:space-between}
}
@media (max-width:600px){
  .hp-peek{left:12px;right:12px;width:auto}
  .hp-peek>a{min-height:40px}
  /* the stand line's sheet draws its parts from 601 px (lmf-page-forest.css, layout "band"); the phone shows words there, but the
     help sheet still shows the PC line, so these few rules repeat that sheet's look for the help's specimens only */
  .hp-band .property-stand-heading h3{display:inline-flex;align-items:center;box-sizing:border-box;height:22px;margin:0;padding:0 8px;border:1px solid var(--ui-line-2);border-radius:var(--ui-r);background:var(--ui-surface);color:var(--ui-ink-2);font:600 12px/1 var(--ui-f);font-variant-numeric:tabular-nums lining-nums}
  .hp-band .property-stand-number-main{color:var(--ui-ink);font-weight:750}
  .hp-band .fd-vnote[data-fd-short]{display:inline-flex;align-items:center;box-sizing:border-box;height:20px;padding:0 7px;border-radius:10px;background:var(--ui-stone-2);color:var(--ui-ink-2);font:600 12px/1 var(--ui-f);white-space:nowrap}
  .hp-band .fd-vnote[data-fd-short]::before{content:attr(data-fd-short) / ""}
  .hp-band .property-stand-site>dd{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:24px;height:20px;padding:0 6px;border-radius:4px;background:var(--ui-stone-2);box-shadow:inset 0 0 0 1px var(--ui-line-2);color:var(--ui-ink);font:620 13px/1 var(--ui-f)}
  .hp-band details.property-stand-restriction>summary{display:inline-flex;align-items:center;gap:4px;box-sizing:border-box;height:20px;min-height:0;margin:0;padding:0 7px;border-radius:10px;background:var(--ui-stone-2);color:var(--ui-ink-2);font:600 12px/1 var(--ui-f);list-style:none}
  .hp-band .property-stand-restriction>summary::-webkit-details-marker{display:none}
  .hp-band .property-stand-restriction-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .hp-band .property-stand-restriction .fd-short{display:inline}
  .hp-band [data-restriction=yes]>summary{background:var(--ui-clay-tint);color:var(--ui-clay)}
  .hp-band [data-restriction=seasonal]>summary{background:var(--ui-warn-tint);color:var(--ui-warn-ink)}
  .hp-band .property-stand-inventory{box-sizing:border-box;height:20px;padding:0 8px 0 6px;border-radius:10px;background:var(--ui-stone-2);color:var(--ui-ink-2)}
  .hp-band .property-stand-inventory>dd{font:600 12px/1 var(--ui-f);white-space:nowrap}
  .hp-band [data-fd-tone="1"]{background:var(--ui-ochre-tint);color:var(--ui-ochre-ink)}
  .hp-band [data-fd-tone="2"]{background:var(--ui-warn-tint);color:var(--ui-warn-ink)}
  .hp-band [data-fd-tone="3"]{background:var(--ui-clay-tint);color:var(--ui-clay)}
  .hp-band .property-stand-cutting .fd-mk,.hp-band .property-stand-inventory .fd-mk{width:14px;height:14px;color:inherit}
}
@media print{.hp-corner,.hp-panel,.hp-scrim,.hp-q{display:none}}
@media (forced-colors:active){.hp-panel{border:1px solid ButtonText}.hp-n{border:1px solid CanvasText}}
}

/* /forest/lmf-page-design.css */
@layer pages{
/* B4 DL3 (decisions 182, 186): Iestatījumi › Dizains, the design library "Katalogs". A family page sheet (family.test.cjs): tokens
   only, type on the scale, no !important, no id selector. Prefix dl-. The markup is built by lmf-design-library.js (shell, rail,
   cards), lmf-design-pictures.js (specimens, place pictures), lmf-design-select.js (filters, bar, drawers) and lmf-design-brief.js.
   Solid means live; a dashed amber outline means a proposal or a trial. */

/* ---------- 1. the settings page gives the library its whole width ---------- */
.workspace-settings[data-settings-section="design"]{max-width:1560px}
.workspace-settings[data-settings-section="design"] .workspace-settings-layout{grid-template-columns:minmax(0,1fr);gap:var(--ui-sp-4)}
/* B4 OF2 package 6: the library takes the page's width; the settings sections' 880 px cap (lmf-page-dialogs.css) squeezed its main
   column to about 380 px, so its colour rows folded over themselves and its sliders covered their labels */
.workspace-settings[data-settings-section="design"] .workspace-settings-panels>*{max-width:none}
.workspace-settings[data-settings-section="design"] .workspace-settings-nav{flex-direction:row;flex-wrap:wrap}
.workspace-settings[data-settings-section="design"] .workspace-settings-nav>[role="tab"]{width:auto;border-top:0}
/* B4 OF2 package 6: on a phone the list over the library is one sideways strip, never a ragged grid */
@media (max-width:700px){.workspace-settings[data-settings-section="design"] .workspace-settings-nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.workspace-settings[data-settings-section="design"] .workspace-settings-nav>[role="tab"]{flex:none;white-space:nowrap}}

/* ---------- 2. shell ---------- */
.dl{position:relative;display:flex;flex-direction:column;gap:var(--ui-sp-3);min-width:0;color:var(--ui-ink);font:var(--ui-t-body);font-variant-numeric:tabular-nums}
.dl-head{display:flex;align-items:flex-end;gap:var(--ui-sp-4);flex-wrap:wrap}
.dl-head-t{display:grid;gap:var(--ui-sp-1);flex:1 1 320px;min-width:0}
.dl-title{margin:0;font:var(--ui-t-win);color:var(--ui-ink)}
.dl-lead{margin:0;max-width:78ch;font:var(--ui-t-body);color:var(--ui-ink-2)}
.dl-built{display:inline-flex;align-items:center;gap:var(--ui-sp-1);font:var(--ui-t-meta);color:var(--ui-muted)}
.dl-views{align-self:flex-start;max-width:100%}
.dl-offline{display:flex;align-items:center;gap:var(--ui-sp-2);margin:0;padding:var(--ui-sp-2) var(--ui-sp-3);border-radius:var(--ui-r);background:var(--ui-warn-tint);color:var(--ui-warn-ink)}
.dl-offline svg{flex:none;width:var(--ui-ic);height:var(--ui-ic)}
.dl-note,.dl-empty{margin:0;font:var(--ui-t-body);color:var(--ui-muted)}
.dl-empty{padding:var(--ui-sp-5) 0}
.dl-code{display:inline-block;max-width:100%;padding:1px 5px;border-radius:var(--ui-r-plate);background:var(--ui-stone-2);color:var(--ui-ink-2);font:var(--ui-t-micro);font-family:ui-monospace,"Cascadia Mono",Consolas,monospace;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.dl-sp{flex:1 1 auto}
.dl-toast-live{position:fixed;left:50%;bottom:84px;z-index:1061;transform:translateX(-50%);margin:0;padding:var(--ui-sp-2) var(--ui-sp-4);border-radius:var(--ui-r);background:var(--ui-ink);color:var(--ui-on-fill);font:var(--ui-t-data);box-shadow:var(--ui-pop-sh)}
.dl-toast-live:empty{display:none}

/* ---------- 3. catalogue: rail and main ---------- */
.dl-lib{display:grid;grid-template-columns:216px minmax(0,1fr);gap:var(--ui-sp-5);align-items:start}
.dl-rail{position:sticky;top:calc(var(--ui-bar-h) + var(--ui-env-offset) + var(--ui-sp-3));display:flex;flex-direction:column;gap:var(--ui-sp-4);max-height:calc(100vh - var(--ui-bar-h) - var(--ui-env-offset) - var(--ui-sp-5));overflow:auto;scrollbar-width:thin}
.dl-rail ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1px}
.dl-rail-h{margin:0 var(--ui-sp-2) var(--ui-sp-1);font:var(--ui-t-head);color:var(--ui-muted)}
/* a rail item is the family's quiet button (its own padding and round ends, B4 OF2 package 6), laid out as a row: the word left, the count right */
.b.q.dl-rail-i{justify-content:flex-start;gap:var(--ui-sp-2);width:100%;text-align:left}
.dl-rail-i>.l{flex:1 1 auto;min-width:0}
.dl-rail-n{flex:none;font:var(--ui-t-meta);color:var(--ui-muted)}
.dl-rail-none{padding:0 var(--ui-sp-2);font:var(--ui-t-meta);color:var(--ui-muted)}
.dl-main{min-width:0}
.dl-gsel{display:none}
.dl-hd{display:flex;align-items:baseline;gap:var(--ui-sp-3);flex-wrap:wrap;padding:0 0 var(--ui-sp-3)}
.dl-hd-t{margin:0;font:var(--ui-t-step)}
.dl-hd-m{margin:0;font:var(--ui-t-meta);color:var(--ui-muted)}

/* ---------- 4. filters ---------- */
.dl-flt{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0;padding:0 0 var(--ui-sp-4)}
.dl-flt-q{flex:0 1 260px;margin:0}
.dl-flt-q .in{width:100%}
.dl-flt .chev{transform:rotate(90deg)}
.dl-flt-d{flex:none;width:1px;height:18px;margin:0 var(--ui-sp-1);background:var(--ui-line-2)}
.dl-by,.dl-unnamed{display:inline-flex;align-items:center;gap:6px;font:var(--ui-t-meta);color:var(--ui-ink-2)}
.dl-fsrc{margin:var(--ui-sp-1) 0;padding:var(--ui-sp-2);border:1px solid var(--ui-line);border-radius:var(--ui-r)}
.dl-fsrc label{display:block}

/* ---------- 5. the element cards ---------- */
.dl-list{display:flex;flex-direction:column;gap:var(--ui-sp-2);max-width:1240px}
.dl-el{border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface)}
.dl-el.is-open{border-color:var(--ui-line-2)}
.dl-el-h{display:grid;grid-template-columns:176px minmax(0,1fr) auto auto;gap:var(--ui-sp-4);align-items:center;box-sizing:border-box;min-height:62px;padding:var(--ui-sp-2) var(--ui-sp-3) var(--ui-sp-2) var(--ui-sp-2);border-radius:var(--ui-r-card);cursor:pointer}
.dl-el-h:hover{background:var(--ui-wash)}
.dl-el.is-open>.dl-el-h{border-bottom:1px solid var(--ui-line);border-bottom-left-radius:0;border-bottom-right-radius:0}
.dl-el-s{display:grid;place-items:center;min-height:46px;padding:var(--ui-sp-1);border-radius:var(--ui-r);background:var(--ui-stone-2);overflow:hidden}
.dl-el-x{display:flex;flex-direction:column;gap:2px;min-width:0}
.dl-el-r1{display:flex;align-items:center;gap:var(--ui-sp-2);min-width:0}
.dl-el-r1 b{min-width:0;font:var(--ui-t-row);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dl-el-one{font:var(--ui-t-meta);color:var(--ui-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dl-el-n{font:var(--ui-t-meta);color:var(--ui-ink-2);white-space:nowrap}
.dl-el-n b{font:var(--ui-t-data);color:var(--ui-ink)}
.dl-el-chev{transform:rotate(90deg)}
.dl-el.is-open .dl-el-chev{transform:rotate(-90deg)}
.dl-el-b{padding:var(--ui-sp-4) var(--ui-sp-4) var(--ui-sp-4)}
.dl-el-2{display:flex;flex-wrap:wrap;gap:var(--ui-sp-4) var(--ui-sp-5);align-items:flex-start;padding-bottom:var(--ui-sp-4)}
.dl-el-say{flex:1 1 340px;min-width:0}
.dl-say{margin:0 0 var(--ui-sp-3);max-width:64ch;font:var(--ui-t-body);font-size:var(--ui-fs-l);line-height:1.5}
.dl-yn,.dl-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--ui-sp-1) var(--ui-sp-3);margin:0 0 var(--ui-sp-3);font:var(--ui-t-body)}
.dl-yn dt,.dl-facts dt{font:var(--ui-t-head);color:var(--ui-pine)}
.dl-facts dt{color:var(--ui-muted)}
.dl-yn dt.is-no{color:var(--ui-clay)}
.dl-yn dd,.dl-facts dd{margin:0;min-width:0;color:var(--ui-ink-2)}
.dl-sh{padding:var(--ui-sp-3) 0 var(--ui-sp-2);border-top:1px solid var(--ui-line)}
.dl-sec{margin:0 0 var(--ui-sp-4)}
.dl-sec>.dl-sh{border-top:0}

/* ---------- 6. states ---------- */
.dl-sts{display:flex;flex-wrap:wrap;gap:var(--ui-sp-4);align-items:flex-end;max-width:100%;padding:var(--ui-sp-3) var(--ui-sp-4) var(--ui-sp-2);border-radius:var(--ui-r);background:var(--ui-stone-2)}
.dl-st{display:inline-flex;flex-direction:column;align-items:center;gap:6px}
.dl-st-c{font:var(--ui-t-micro);color:var(--ui-muted)}

/* ---------- 7. places ---------- */
.dl-places{display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:var(--ui-sp-3)}
.dl-pl{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0;padding:6px 6px var(--ui-sp-2);border:1px solid transparent;border-radius:var(--ui-r-card);cursor:grab}
.dl-pl:hover{background:var(--ui-stone-2)}
.dl-pl.is-picked{background:var(--ui-pine-soft);border-color:var(--ui-a)}
.dl-pl.is-dragged{opacity:.4}
.dl-pl-x{display:flex;align-items:flex-start;gap:var(--ui-sp-2);min-width:0;padding:2px var(--ui-sp-1) 0;cursor:pointer}
.dl-pl-x .ck{margin-top:1px}
.dl-pl-t{display:flex;flex-direction:column;align-items:flex-start;gap:3px;flex:1 1 auto;min-width:0}
.dl-pl-n{flex:none;font:var(--ui-t-meta);color:var(--ui-muted)}
.dl-pl-tag{position:absolute;right:12px;top:12px}
.dl-pth{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 5px;min-width:0;margin:0;font:var(--ui-t-meta);color:var(--ui-muted)}
.dl-pth b{font:var(--ui-t-data);color:var(--ui-ink)}
.dl-sep{font-style:normal;color:var(--ui-ico-mute)}

/* ---------- 8. a place drawn small ---------- */
.dl-pic{pointer-events:none;user-select:none}
.dl-thumb{display:flex;align-items:center;height:104px;border:1px solid var(--ui-line);border-radius:var(--ui-r);background:var(--ui-surface);overflow:hidden}
.dl-thumb.is-prop,.dl-pl.has-prop .dl-thumb{border:1.5px dashed var(--ui-warn-ink);background:color-mix(in srgb,var(--ui-warn-tint) 28%,var(--ui-surface))}
.dl-scn{display:flex;flex-direction:column;justify-content:center;gap:7px;box-sizing:border-box;width:100%;flex:none;min-width:0;padding:10px 14px;zoom:.8}
.dl-s-l{display:flex;align-items:center;gap:var(--ui-sp-2);min-width:0}
.dl-s-mid{justify-content:center}
.dl-s-b{display:inline-flex;align-items:center;gap:6px;flex:none;max-width:100%}
.dl-s-col{display:flex;flex-direction:column;gap:1px;min-width:0}
.dl-s-t{font:var(--ui-t-row);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dl-s-m{font:var(--ui-t-meta);color:var(--ui-muted);white-space:nowrap}
.dl-s-h1{font:var(--ui-t-win);white-space:nowrap}
.dl-s-h2{font:var(--ui-t-step);white-space:nowrap}
.dl-s-hd{font:var(--ui-t-head);color:var(--ui-ink-2);white-space:nowrap}
.dl-s-th{display:flex;gap:var(--ui-sp-4);align-items:center;height:24px;padding:0 var(--ui-sp-2);border-radius:var(--ui-r-plate);background:var(--ui-th-bg)}
.dl-s-foot{display:flex;justify-content:flex-end;gap:var(--ui-sp-2);margin:2px -14px -10px;padding:9px 14px;border-top:1px solid var(--ui-line);background:var(--ui-stone-foot)}
.dl-s-card{display:flex;flex-direction:column;gap:var(--ui-sp-1);padding:9px 10px;border:1px solid var(--ui-line);border-radius:var(--ui-r);background:var(--ui-surface);box-shadow:var(--ui-card-sh)}
.dl-s-bar{display:flex;align-items:center;gap:var(--ui-sp-3);margin:-10px -14px 0;padding:var(--ui-sp-2) 14px;background:var(--ui-bar-bg)}
.dl-scn-card{align-self:stretch;background:var(--ui-stone-2)}
.dl-scn-map{align-self:stretch;padding:0}
.dl-s-map{display:flex;align-items:flex-start;gap:6px;box-sizing:border-box;height:100%;min-height:130px;padding:10px;background:linear-gradient(160deg,var(--ui-ab-forest-tint) 0%,var(--ui-pine-tint) 45%,var(--ui-ab-land-tint) 100%)}
.dl-sk{display:block;flex:none;height:8px;border-radius:3px;background:var(--ui-stone-3)}
.dl-sk-w1{width:12%}.dl-sk-w2{width:20%}.dl-sk-w3{width:30%}.dl-sk-w4{width:38%}.dl-sk-w5{width:46%}.dl-sk-w6{width:70%}
.dl-rule{display:block;flex:none;width:100%;height:1px;background:var(--ui-td-line)}
.dl-plate{display:inline-flex;align-items:center;min-height:var(--ui-h-s);padding:0 var(--ui-sp-2);border:1px dashed var(--ui-line-2);border-radius:var(--ui-r-plate);color:var(--ui-ink-2);font:var(--ui-t-meta)}
.dl-box{display:flex;flex-direction:column;gap:2px;min-width:120px}
.dl-mini{display:inline-flex;align-items:center;gap:var(--ui-sp-2);min-width:150px}
.dl-menu{display:inline-flex;flex-direction:column;min-width:120px;padding:var(--ui-sp-1);border:1px solid var(--ui-line-2);border-radius:var(--ui-r-pop);background:var(--ui-pop-bg);box-shadow:var(--ui-pop-sh)}
.dl-toast{position:static}
.dl-win{display:flex;flex-direction:column;gap:6px;box-sizing:border-box;width:150px;padding:var(--ui-sp-2) var(--ui-sp-3) var(--ui-sp-3);border-radius:var(--ui-r-card);background:var(--ui-dlg-bg);box-shadow:var(--ui-pop-sh)}
.dl-win-sheet{border-radius:var(--ui-sheet-r) var(--ui-sheet-r) 0 0}
.dl-win-h{display:flex;align-items:center;gap:var(--ui-sp-2)}
.dl-win-h svg{width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-ico-mute)}
.dl-type{color:var(--ui-ink);white-space:nowrap}
.dl-type-page{font:var(--ui-t-page)}.dl-type-win{font:var(--ui-t-win)}.dl-type-step{font:var(--ui-t-step)}.dl-type-row{font:var(--ui-t-row)}.dl-type-body{font:var(--ui-t-body)}
.dl-type-data{font:var(--ui-t-data)}.dl-type-head{font:var(--ui-t-head);color:var(--ui-ink-2)}.dl-type-meta{font:var(--ui-t-meta);color:var(--ui-muted)}.dl-type-micro{font:var(--ui-t-micro);color:var(--ui-muted)}.dl-type-score{font:var(--ui-t-score)}
.dl-depth{display:block;width:72px;height:30px;border:1px solid var(--ui-line);border-radius:var(--ui-r);background:var(--ui-surface)}
.dl-depth-raised{border-color:var(--ui-raise-line);background:var(--ui-raise-bg);box-shadow:var(--ui-raise-sh)}
.dl-depth-low{box-shadow:var(--ui-card-sh)}
.dl-depth-sunk{border-color:var(--ui-sink-line);background:var(--ui-sink-bg);box-shadow:var(--ui-sink-sh)}
.dl-depth-float{border-color:var(--ui-line-2);box-shadow:var(--ui-pop-sh)}
/* a trial look: not in the family, drawn only here. "Klusais rīks": the capsule with only a fine line */
.b.t.dl-qt{border-color:var(--ui-line-2);background:transparent;box-shadow:none;text-shadow:none}
.b.t.dl-qt.dl-fx-h{background:var(--ui-wash)}
.b.t.dl-qt.dl-fx-p{background:var(--ui-wash-p)}

/* ---------- 9. now beside proposed ---------- */
.dl-pair{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:6px;align-items:end}
.dl-pair-s{display:flex;flex-direction:column;gap:var(--ui-sp-1);min-width:0}
.dl-pair-c{font:var(--ui-t-micro);color:var(--ui-muted)}
.dl-pair-c.is-prop{color:var(--ui-warn-ink)}
.dl-pair-a{display:grid;place-items:center;height:80px;color:var(--ui-ico-mute)}
.dl-pair-a svg{width:var(--ui-ic);height:var(--ui-ic)}
.dl-pair .dl-thumb{height:80px}
.dl-pair .dl-scn{zoom:.62}
.dl-cmp{display:flex;flex-direction:column;gap:var(--ui-sp-3)}
.dl-cmp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:var(--ui-sp-4)}
.dl-cmp-i{display:flex;flex-direction:column;gap:6px;min-width:0}

/* ---------- 10. the bar under a selection ---------- */
.dl-bar-host{position:sticky;bottom:var(--ui-sp-4);z-index:30;display:flex;justify-content:center;height:0;pointer-events:none}
.dl-selbar{position:absolute;bottom:0;display:flex;align-items:center;gap:var(--ui-sp-2);max-width:100%;box-sizing:border-box;padding:var(--ui-sp-2) var(--ui-sp-2) var(--ui-sp-2) var(--ui-sp-4);border:1px solid var(--ui-line-2);border-radius:var(--ui-r-pop);background:var(--ui-surface);box-shadow:var(--ui-dlg-sh);white-space:nowrap;pointer-events:auto}
.dl-selbar-n{margin-right:6px;font:var(--ui-t-data)}
.dl-list{padding-bottom:72px}

/* ---------- 11. the drawer (a sheet on a phone) ---------- */
.dl-scrim{display:none}
/* above the floating help and "Uz augšu" buttons, under the help panel, a window and a menu */
.dl-drawer{position:fixed;top:calc(var(--ui-bar-h) + var(--ui-env-offset));right:0;bottom:var(--tab-bar-h);z-index:1060;display:flex;flex-direction:column;box-sizing:border-box;width:432px;max-width:100vw;border-left:1px solid var(--ui-line-2);background:var(--ui-surface);box-shadow:var(--ui-dlg-sh)}
.dl-drawer:focus{outline:0}
.dl-pn-h{display:flex;align-items:center;gap:var(--ui-sp-2);flex:none;min-height:52px;padding:0 var(--ui-sp-3) 0 var(--ui-gut-in);border-bottom:1px solid var(--ui-line)}
.dl-pn-t{margin:0;font:var(--ui-t-win)}
.dl-pn-t:focus{outline:0}
.dl-pn-b{display:flex;flex-direction:column;gap:var(--ui-sp-3);flex:1 1 auto;min-height:0;margin:0;padding:var(--ui-sp-3) var(--ui-gut-in);overflow:auto;scrollbar-width:thin}
.dl-pn-q{margin:0;font:var(--ui-t-data)}
.dl-pn-f{display:flex;flex-direction:column;gap:var(--ui-sp-2);flex:none;padding:var(--ui-sp-3) var(--ui-gut-in);border-top:1px solid var(--ui-line);background:var(--ui-stone-foot)}
.dl-pn-fb{display:flex;justify-content:flex-end;gap:var(--ui-sp-2)}
.dl-pn-note{margin:0;font:var(--ui-t-meta);color:var(--ui-muted)}
.dl-opts{display:flex;flex-direction:column;gap:2px;margin:0 -6px}
.dl-opt{display:grid;grid-template-columns:18px 132px minmax(0,1fr);gap:10px;align-items:center;min-height:44px;padding:var(--ui-sp-1) var(--ui-sp-2);border-radius:var(--ui-r);cursor:pointer}
.dl-opt:hover{background:var(--ui-wash)}
.dl-opt.is-on{background:var(--ui-pine-soft);box-shadow:inset 0 0 0 1px var(--ui-a-line)}
.dl-opt.is-no{cursor:default}
.dl-opt.is-no .dl-opt-s{opacity:.45}
.dl-opt.is-no:hover{background:transparent}
.dl-opt-s{display:flex;justify-content:flex-start;min-width:0;overflow:hidden}
.dl-opt-x,.dl-tg-x{display:flex;flex-direction:column;min-width:0}
.dl-opt-x b,.dl-tg-x b{font:var(--ui-t-data)}
.dl-opt-x>span,.dl-tg-x>span{font:var(--ui-t-meta);color:var(--ui-muted)}
.dl-tg{display:grid;grid-template-columns:132px minmax(0,1fr);gap:10px;align-items:center;min-height:58px;padding:6px var(--ui-sp-3);border:1.5px dashed var(--ui-line-2);border-radius:var(--ui-r-card)}
.dl-tg.is-hot{border-style:solid;border-color:var(--ui-a);background:var(--ui-pine-soft);box-shadow:var(--ui-halo)}
.dl-tg.is-no{border-style:solid;border-color:var(--ui-line);opacity:.5}

/* ---------- 12. the brief ---------- */
.dl-br-ta{min-height:84px;font:var(--ui-t-body)}
.dl-br-what{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px var(--ui-sp-3);align-items:center}
.dl-br-what .fl{grid-row:span 2;align-self:start;margin:0;padding-top:6px}
.dl-br-sw{display:flex;align-items:center;gap:var(--ui-sp-2)}
.dl-br-sw>svg{width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-ico-mute)}
.dl-br-wn{font:var(--ui-t-meta);color:var(--ui-muted)}
.dl-br-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--ui-sp-2)}
.dl-br-r{display:grid;grid-template-columns:20px 112px minmax(0,1fr);gap:10px;align-items:center}
.dl-br-r .dl-thumb{height:62px}
.dl-br-r .dl-scn{zoom:.5;padding:8px 12px}
.dl-br-n{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--ui-ink);color:var(--ui-on-fill);font:var(--ui-t-micro)}
.dl-br-x{display:flex;flex-direction:column;gap:3px;min-width:0}
.dl-br-code{display:flex;gap:var(--ui-sp-1);min-width:0}
.dl-br-f{font:var(--ui-t-micro);color:var(--ui-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dl-br-pre{margin:var(--ui-sp-2) 0 0;padding:var(--ui-sp-3);border-radius:var(--ui-r);background:var(--ui-stone-2);color:var(--ui-ink-2);font:var(--ui-t-meta);font-family:ui-monospace,"Cascadia Mono",Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}
.dl-br-words{margin:0 0 var(--ui-sp-2);max-width:78ch;font:var(--ui-t-body);white-space:pre-wrap}

/* ---------- 13. proposals and briefs as lists ---------- */
.dl-page{display:flex;flex-direction:column;gap:var(--ui-sp-3);max-width:1240px}
.dl-prop{display:flex;flex-direction:column;gap:var(--ui-sp-3)}
.dl-prop-h{display:flex;align-items:center;gap:var(--ui-sp-2);flex-wrap:wrap}
.dl-prop-t{font:var(--ui-t-row)}
.dl-prop-m{font:var(--ui-t-meta);color:var(--ui-muted)}
.dl-prop-f{display:flex;justify-content:flex-end;gap:var(--ui-sp-2);flex-wrap:wrap}

/* ---------- 14. room for the drawer on a wide screen ---------- */
@media (min-width:1280px){
  .dl.has-drawer{padding-right:448px}
}

/* ---------- 15. narrow: one column, the rail is a dropdown, the drawer is a sheet ---------- */
@media (max-width:900px){
  .dl-lib{grid-template-columns:minmax(0,1fr)}
  .dl-rail{display:none}
  .dl-gsel{display:block;margin:0 0 var(--ui-sp-3)}
  .dl-gsel .sel{width:100%}
  .dl-gsel>.fl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}   /* B4 OF2 package 6: the value says what it is */
}
@media (max-width:700px){
  .dl-built{display:none}
  .dl{max-width:100%;overflow-x:clip}
  .dl-views{display:flex;align-self:stretch;min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:none}
  .dl-views>button{flex:none}
  .dl-el-r1 b{white-space:normal}
  .dl-flt{flex-wrap:nowrap;overflow:auto;scrollbar-width:none}
  .dl-flt>*{flex:none}
  .dl-flt-q{flex:0 0 200px}
  .dl-el-h{grid-template-columns:112px minmax(0,1fr) auto;gap:10px;min-height:68px}
  .dl-el-s{zoom:.82}
  .dl-el-n{display:none}
  .dl-el-r1 .dl-code{display:none}
  .dl-el-one{white-space:normal}
  .dl-el-b{padding:var(--ui-sp-3)}
  .dl-sts{flex-wrap:nowrap;overflow:auto;scrollbar-width:none}
  .dl-places{grid-template-columns:minmax(0,1fr);gap:var(--ui-sp-2)}
  .dl-cmp-grid{grid-template-columns:minmax(0,1fr)}
  /* the bar sits above the two floating buttons of the page's corner (help, "Uz augšu") */
  .dl-bar-host{bottom:calc(124px + env(safe-area-inset-bottom,0px))}
  .dl-selbar{left:0;right:0;justify-content:space-between;padding-left:var(--ui-sp-3)}
  .dl-selbar .b .l{display:none}
  .dl-selbar-n{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
  .dl-scrim{display:block;position:fixed;inset:0;z-index:1059;background:color-mix(in srgb,var(--ui-ink) 38%,transparent)}
  .dl-drawer{top:64px;left:0;width:auto;border:0;border-radius:var(--ui-sheet-r) var(--ui-sheet-r) 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
  .dl-opt{grid-template-columns:18px 104px minmax(0,1fr);min-height:48px}
  .dl-pn-fb .b.pri{flex:1 1 auto;min-width:0}
  .dl-pair .dl-scn{zoom:.42}
  .dl-br-r{grid-template-columns:20px 96px minmax(0,1fr)}
  .dl-br-r .dl-scn{zoom:.4}
  .dl-toast-live{bottom:184px;max-width:calc(100vw - 32px)}
}
/* ---------- 16. "Krāsas un izmēri": the live design settings ---------- */
.dl-ds{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,460px);gap:var(--ui-sp-5);align-items:start}
.dl-ds-main{display:flex;flex-direction:column;gap:var(--ui-sp-3);min-width:0}
.dl-ds-side{position:sticky;top:calc(var(--ui-bar-h) + var(--ui-env-offset) + var(--ui-sp-3));display:flex;flex-direction:column;gap:var(--ui-sp-3);min-width:0;max-height:calc(100vh - var(--ui-bar-h) - var(--ui-env-offset) - var(--ui-sp-5));overflow:auto;scrollbar-width:thin}
.dl-ds-card{display:flex;flex-direction:column;gap:var(--ui-sp-2)}
.dl-ds-h{margin:0;font:var(--ui-t-row)}
.dl-ds-hr{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-sp-3);flex-wrap:wrap}
.dl-ds-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto 92px 200px 26px;gap:var(--ui-sp-2);align-items:center;min-height:36px;padding:2px var(--ui-sp-1);border-radius:var(--ui-r)}
.dl-ds-row.is-ch{background:color-mix(in srgb,var(--ui-warn-tint) 45%,transparent)}
/* B4 OF2 package 6: the label has its own 140 px (it collapsed to 28 px under the slider; a longer one wraps), the slider the rest, never under 96 px */
.dl-ds-num{grid-template-columns:140px minmax(96px,1fr) 56px 26px}   /* one label width per card, so every slider starts at one line */
.dl-ds-sw{display:block}
/* the colour well is the family's colour field (.in.s.col, B4 OF2 package 6) */
.dl-ds-nm{display:flex;align-items:baseline;gap:var(--ui-sp-2);flex-wrap:wrap;min-width:0}
.dl-ds-nm b{font:var(--ui-t-data)}
.dl-ds-sc{font:var(--ui-t-meta);color:var(--ui-muted)}
.dl-ds-hex{width:92px;font-family:ui-monospace,"Cascadia Mono",Consolas,monospace}
.dl-ds-al{font:var(--ui-t-meta);color:var(--ui-muted)}   /* a family slider row (.rgl) */
.dl-ds-al>span:first-child{white-space:nowrap}   /* the opacity value stays on one line (it wrapped digit by digit in 132 px) */
/* every slider is the family slider (.rg) in its label row (.rgl, B4 OF2 package 6); the rows only place the reset beside it */
.dl-ds-out{font:var(--ui-t-data);text-align:right;white-space:nowrap}
.dl-ds-nr{display:block;width:26px}
.dl-ds-more{padding:var(--ui-sp-1) var(--ui-sp-1) 0}
.dl-ds-g{border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface)}
.dl-ds-g.is-open{border-color:var(--ui-line-2)}
.dl-ds-gh{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:var(--ui-sp-3);align-items:center;min-height:52px;padding:var(--ui-sp-1) var(--ui-sp-3);border-radius:var(--ui-r-card);cursor:pointer}
.dl-ds-gh:hover{background:var(--ui-wash)}
.dl-ds-gt{display:flex;flex-direction:column;gap:1px;min-width:0}
.dl-ds-gt b{font:var(--ui-t-row)}
.dl-ds-gt span{font:var(--ui-t-meta);color:var(--ui-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dl-ds-gn{font:var(--ui-t-meta);color:var(--ui-muted)}
.dl-ds-dots{display:flex}
.dl-ds-dot{display:block;width:16px;height:16px;margin-left:-4px;border:1px solid var(--ui-surface);border-radius:50%;box-shadow:0 0 0 1px var(--ui-line-2)}
.dl-ds-g.is-open .dl-el-chev{transform:rotate(-90deg)}
.dl-ds-gb{display:flex;flex-direction:column;gap:1px;padding:var(--ui-sp-2) var(--ui-sp-2) var(--ui-sp-3);border-top:1px solid var(--ui-line)}
.dl-ds-board{display:flex;flex-direction:column;gap:var(--ui-sp-3);padding:var(--ui-sp-4);border:1.5px dashed var(--ui-warn-ink);border-radius:var(--ui-r-card);background:var(--ui-canvas)}
.dl-ds-bt{display:flex;align-items:baseline;gap:var(--ui-sp-3)}
.dl-ds-ba{display:flex;flex-direction:column;gap:var(--ui-sp-2);padding:var(--ui-sp-3);border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface)}
.dl-ds-bn{font:var(--ui-t-head);color:var(--ui-ink-2)}
.dl-ds-br{display:flex;align-items:center;gap:var(--ui-sp-2);flex-wrap:wrap}
.dl-ds-map{min-height:64px;border-radius:var(--ui-r)}
.dl-ds-ck{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--ui-sp-1);font:var(--ui-t-meta);color:var(--ui-ink-2)}
.dl-ds-ck li{display:flex;align-items:flex-start;gap:6px}
.dl-ds-ck svg{flex:none;width:var(--ui-ic);height:var(--ui-ic);margin-top:1px;color:var(--ui-ico-mute)}
.dl-ds-ck .is-ok svg{color:var(--ui-pine)}
.dl-ds-ck .is-bad{color:var(--ui-clay)}
.dl-ds-ck .is-bad svg{color:var(--ui-clay)}
.dl-ds-status{margin:0}
.dl-ds-do{display:flex;flex-direction:column;gap:var(--ui-sp-2);padding:var(--ui-sp-3);border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface)}
.dl-ds-acts{display:flex;gap:var(--ui-sp-2);flex-wrap:wrap;justify-content:flex-end}
.dl-ds-vers{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--ui-sp-1)}
.dl-ds-ver{display:flex;align-items:center;gap:var(--ui-sp-2);flex-wrap:wrap;min-height:var(--ui-h-m);font:var(--ui-t-body)}
.dl-ds-vm{flex:1 1 140px;min-width:0;font:var(--ui-t-meta);color:var(--ui-muted)}
.dl-ds-diff{display:flex;flex-direction:column;gap:1px}
.dl-ds-df{display:grid;grid-template-columns:minmax(0,1.2fr) auto minmax(0,1fr) 16px minmax(0,1fr);gap:6px;align-items:center;min-height:28px;border-top:1px solid var(--ui-td-line);font:var(--ui-t-meta)}
.dl-ds-df>svg{width:var(--ui-ic);height:var(--ui-ic);color:var(--ui-ico-mute)}
.dl-ds-v{display:inline-flex;align-items:center;gap:5px;min-width:0;overflow:hidden;white-space:nowrap}
.dl-ds-chip{display:block;flex:none;width:14px;height:14px;border:1px solid var(--ui-line-2);border-radius:4px}
.dl-ds-help{display:flex;flex-direction:column;gap:var(--ui-sp-2)}
.dl-ds-help .fl{margin:0}
.dl-ds-ids{display:flex;flex-wrap:wrap;gap:var(--ui-sp-1);margin:0}
.dl-ds-ack{display:flex;align-items:flex-start;gap:var(--ui-sp-2);font:var(--ui-t-body);cursor:pointer}
/* beside an open drawer there is room for one column only */
.dl.has-drawer .dl-ds{grid-template-columns:minmax(0,1fr)}
.dl.has-drawer .dl-ds-side{display:contents}
.dl.has-drawer .dl-ds-do{order:-1}
@media (max-width:1100px){
  .dl-ds{grid-template-columns:minmax(0,1fr)}
  /* one column: what you can do first, the controls, then the board and the versions */
  .dl-ds-side{display:contents}
  .dl-ds-do{order:-1}
}
@media (max-width:700px){
  .dl-ds-row{grid-template-columns:40px minmax(0,1fr) 92px 34px;row-gap:2px}
  .dl-ds-row>.tag,.dl-ds-row>span:empty{display:none}
  .dl-ds-al{grid-column:2 / span 2}
  .dl-ds-num{grid-template-columns:minmax(0,1fr) 56px 34px}
  .dl-ds-num>input{grid-column:1 / -1;grid-row:2}
  .dl-ds-dots{display:none}
  .dl-ds-gh{grid-template-columns:minmax(0,1fr) auto auto}
  .dl-ds-acts .b{flex:1 1 auto}
  .dl-ds-df{grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr)}
  .dl-ds-df>.dl-code{grid-column:1 / -1}
  .dl-ds-df>.dl-ds-sc{display:none}
}
}

/* /forest/lmf-page-video.css */
@layer pages{
/* B4 VP1 (decision 203), permanent since B4 VP2 (decisions 234, 237): Iestatījumi > "Video" (lmf-video.js), sheet lmf-page-video.css.
   The player is Media Chrome's <media-controller> (assets/vendor/media-chrome-4.19.5.js) dressed in LMF tokens through its own
   --media-* properties: the picture on the patina, the bar on the top bar's patina with a brass hairline, the time bar's fill and
   its chapter segments in brass. The buttons are the family's (.b.t.ic, .seg.s); on the dark bar they wear the top bar's control
   values, as the language and account controls there do. Colours: lmf-tokens.css only (--ui-vid-* beside the bar's). */
.vid{display:flex;flex-direction:column;gap:var(--ui-sp-4)}
.vid .workspace-settings-section-heading{margin:0}
.vid h3{margin:0;font:620 var(--ui-fs-l)/1.3 var(--ui-f);color:var(--ui-ink)}
.vid-note{margin:0;color:var(--ui-ink-2);font:400 var(--ui-fs-m)/1.45 var(--ui-f)}
.vid-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* the player and its chapters: side by side on a PC, the chapters under it on a narrow window */
.vid-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(232px,296px);gap:var(--ui-sp-4);align-items:start}
.vid-col{display:flex;flex-direction:column;gap:var(--ui-sp-2);min-width:0}
.vid-head{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-sp-3);flex-wrap:wrap}
.vid-title{min-width:0;overflow-wrap:anywhere}
.vid-sum{margin:0;color:var(--ui-ink-2);font:400 var(--ui-fs-m)/1.45 var(--ui-f);max-width:72ch}
.vid-sum:empty{display:none}

.vid-player{display:block;width:100%;aspect-ratio:16/9;border-radius:var(--ui-r-card);overflow:hidden;background:var(--ui-bar-bg);box-shadow:var(--ui-card-sh);
  --media-font-family:var(--ui-f);--media-font-size:var(--ui-fs-s);--media-font-weight:600;
  --media-primary-color:var(--ui-bar-ink-on);--media-secondary-color:transparent;--media-icon-color:var(--ui-bar-ink-on);
  --media-control-background:transparent;--media-control-hover-background:transparent;--media-text-color:var(--ui-bar-ink-on);
  --media-background-color:var(--ui-bar-bg);--media-focus-box-shadow:0 0 0 2px var(--ui-bar-focus);
  --media-range-bar-color:var(--ui-bar-brass);--media-range-track-background:var(--ui-vid-track);--media-time-range-buffered-color:var(--ui-vid-buffer);
  --media-range-track-height:5px;--media-range-track-border-radius:3px;--media-range-segments-gap:3px;--media-range-segment-hover-height:9px;
  --media-range-thumb-background:var(--ui-bar-brass-2);--media-range-thumb-width:13px;--media-range-thumb-height:13px;--media-range-thumb-box-shadow:var(--ui-vid-thumb-sh);
  --media-preview-background:var(--ui-vid-cap-bg);--media-preview-chapter-background:var(--ui-vid-cap-bg);--media-preview-time-background:var(--ui-vid-cap-bg);
  --media-preview-border-radius:var(--ui-r-in);--media-preview-chapter-border-radius:var(--ui-r-in);--media-preview-time-border-radius:var(--ui-r-in);
  --media-preview-chapter-text-shadow:none;--media-preview-time-text-shadow:none;--media-preview-chapter-padding:4px 8px;--media-preview-time-padding:2px 8px}
.vid-player:focus-visible{outline:2px solid var(--ui-bar-focus);outline-offset:2px}
.vid-video{display:block;width:100%;height:100%;object-fit:contain;background:var(--ui-bar-bg)}
.vid-player:fullscreen{border-radius:0;aspect-ratio:auto}

.vid-bar{width:100%;display:flex;align-items:center;gap:var(--ui-sp-2);padding:var(--ui-sp-1) var(--ui-sp-3);background:var(--ui-bar-patina);border-top:1px solid var(--ui-bar-hair)}
.vid-seek{flex:1 1 auto;min-width:80px;height:var(--ui-h-m);padding:0 var(--ui-sp-1)}
.vid-time{flex:none;min-width:9ch;color:var(--ui-bar-ink);font:620 var(--ui-fs-s)/1 var(--ui-f);font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap}
/* the family's tool button on the dark bar: the top bar's control values */
.vid-bar .b.t{background:transparent;border-color:transparent;box-shadow:none;color:var(--ui-bar-ctl-ink)}
.vid-bar .b.t svg{color:var(--ui-bar-ctl-ink)}
.vid-bar .b.t:hover{background:var(--ui-bar-ctl-bg-h);border-color:transparent;box-shadow:none}
.vid-bar .b.t:active,.vid-bar .b.t[aria-pressed="true"]{background:var(--ui-bar-ctl-bg-p);border-color:var(--ui-bar-hair);box-shadow:none;color:var(--ui-bar-ink-on)}
.vid-bar .b.t[aria-pressed="true"] svg{color:var(--ui-bar-ink-on)}
.vid-bar .b.t:focus-visible{outline:2px solid var(--ui-bar-focus);outline-offset:1px}
.vid-bar .b.t:disabled{opacity:.45}
.vid-cc-mark{display:inline-grid;place-items:center;min-width:21px;height:16px;padding:0 3px;border:1.5px solid currentColor;border-radius:3px;font:600 var(--ui-fs-micro)/1 var(--ui-f);letter-spacing:.02em}
.vid-cc[aria-pressed="true"] .vid-cc-mark{background:var(--ui-bar-brass);border-color:var(--ui-bar-brass);color:var(--ui-bar-bg)}

/* the big play button and the "not yet" words, in the middle of the picture */
.vid-big[hidden],.vid-empty[hidden]{display:none}
.vid-empty{display:flex;flex-direction:column;align-items:center;gap:var(--ui-sp-1);max-width:36ch;padding:var(--ui-sp-4);text-align:center;color:var(--ui-bar-ink-on)}
.vid-empty p{margin:0}
.vid-empty-t{font:620 var(--ui-fs-l)/1.3 var(--ui-f)}
.vid-empty-l{font:400 var(--ui-fs-m)/1.4 var(--ui-f);color:var(--ui-bar-ink)}

/* captions: drawn by LMF from the WebVTT cues, white on a soft ink plate, the word being said in brass */
.vid-cap{align-self:center;max-width:min(88%,62ch);margin:0 auto var(--ui-sp-2);text-align:center;pointer-events:none}
.vid-cap[hidden]{display:none}
.vid-cap-l{display:inline;padding:3px 10px;border-radius:var(--ui-r-in);background:var(--ui-vid-cap-bg);color:var(--ui-vid-cap-ink);font:620 var(--ui-fs-vcap)/1.55 var(--ui-f);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.vid-player:fullscreen .vid-cap-l{font-size:var(--ui-fs-vcap-full)}
.vid-cap-l .is-said{color:var(--ui-bar-brass)}

/* the chapter list */
.vid-chapters{display:flex;flex-direction:column;gap:var(--ui-sp-2);min-width:0}
.vid-ch-list{list-style:none;margin:0;padding:var(--ui-sp-1);display:flex;flex-direction:column;gap:2px;border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface);box-shadow:var(--ui-card-sh);max-height:min(62vh,560px);overflow:auto}
.vid-ch-list:empty{display:none}
.vid-ch{flex:none;display:flex;align-items:center;gap:var(--ui-sp-1);border-radius:var(--ui-r-in)}
.vid-ch-go{flex:1 1 auto;min-width:0;height:auto;min-height:var(--ui-h-l);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;gap:var(--ui-sp-2);padding:6px var(--ui-sp-2);border:0;border-radius:var(--ui-r-in);background:transparent;color:var(--ui-ink);font:400 var(--ui-fs-m)/1.35 var(--ui-f);text-align:left;cursor:pointer}
.vid-ch-go:hover{background:var(--ui-pine-soft)}
.vid-ch-go:focus-visible{outline:2px solid var(--ui-pine);outline-offset:-2px}
.vid-ch-n{color:var(--ui-ink-2);font-variant-numeric:tabular-nums}
.vid-ch-t{overflow-wrap:anywhere}
.vid-ch-tm{color:var(--ui-ink-2);font:540 var(--ui-fs-s)/1 var(--ui-f);font-variant-numeric:tabular-nums}
.vid-ch.is-now{background:var(--ui-pine-tint);box-shadow:inset 3px 0 0 var(--ui-pine)}
.vid-ch.is-now .vid-ch-go{font-weight:620}
.vid-ch.is-now .vid-ch-n,.vid-ch.is-now .vid-ch-tm{color:var(--ui-pine)}
.vid-ch-copy{flex:none;margin-right:2px}
.vid-ch-copy.is-done svg{color:var(--ui-pine)}

/* the library: every video as a card */
.vid-lib{display:flex;flex-direction:column;gap:var(--ui-sp-2)}
.vid-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:var(--ui-sp-3)}
.vid-card{width:100%;height:100%;display:flex;flex-direction:column;align-items:flex-start;gap:var(--ui-sp-1);padding:var(--ui-sp-3);border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface);box-shadow:var(--ui-card-sh);color:var(--ui-ink);text-align:left;cursor:pointer;transition:box-shadow var(--ui-t),border-color var(--ui-t)}
.vid-card:hover{border-color:var(--ui-line-2);box-shadow:var(--ui-over-sh)}
.vid-card:focus-visible{outline:2px solid var(--ui-pine);outline-offset:2px}
.vid-card[aria-current="true"]{border-color:var(--ui-pine);box-shadow:inset 0 0 0 1px var(--ui-pine),var(--ui-card-sh)}
.vid-card-t{font:620 var(--ui-fs-m)/1.35 var(--ui-f);overflow-wrap:anywhere}
.vid-card-m{display:flex;gap:var(--ui-sp-2);color:var(--ui-ink-2);font:620 var(--ui-fs-s)/1.3 var(--ui-f);font-variant-numeric:tabular-nums}
.vid-card-soon{color:var(--ui-ochre-ink)}
.vid-card-s{color:var(--ui-ink-2);font:400 var(--ui-fs-s)/1.45 var(--ui-f);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

@media (max-width:1100px){
 .vid-main{grid-template-columns:minmax(0,1fr)}
 .vid-ch-list{max-height:none}
}
@media (max-width:700px),(pointer:coarse){
 .vid-bar{gap:2px;padding:2px var(--ui-sp-1)}
 .vid-seek{min-width:60px}
 .vid-time{min-width:0}
 .vid-cards{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:380px){.vid-time{display:none}}
@media (prefers-reduced-motion:reduce){.vid-card{transition:none}}
@media (forced-colors:active){
 .vid-ch.is-now{outline:2px solid Highlight}
 .vid-card[aria-current="true"]{outline:2px solid Highlight}
 .vid-cap-l{background:Canvas;color:CanvasText}
 .vid-cap-l .is-said{color:Highlight}
}
}

/* /forest/lmf-page-company.css */
@layer pages{
/* LMF page layout: lmf-page-company.css, owned by B4 C1 (decisions 255(d), 264): the "Rekvizīti" block (lmf-company-details.js) in
   the partner window, the contact window (companies) and Iestatījumi > Uzņēmums, and its editor window. Family tokens only.
   The block sizes itself by its own width (container query): beside a narrow side column the label stands over its value; in a wide
   one label and value share a row. The editor: two columns on a PC, one on a phone, where it is a full-height sheet. */

/* ---- the block ------------------------------------------------------------------------------------------------------------ */
.cd-sec{container-type:inline-size;box-sizing:border-box;width:100%;align-self:stretch;display:flex;flex-direction:column;gap:8px;min-width:0}
.cd-head{display:flex;align-items:center;gap:6px;min-width:0;min-height:var(--ui-h-s)}
.cd-head h3{margin:0;color:var(--ui-ink-2);font:var(--ui-t-head)}
.cd-sp{flex:1}
.cd-facts{display:grid;grid-template-columns:minmax(104px,max-content) minmax(0,1fr);gap:6px 14px;margin:0}
.cd-r{display:contents}
.cd-r dt{padding-top:1px;color:var(--ui-muted);font:var(--ui-t-micro)}
.cd-r dd{margin:0;min-width:0;color:var(--ui-ink);font:var(--ui-t-body);overflow-wrap:anywhere}
.cd-name{font:var(--ui-t-data);color:var(--ui-ink)}
.cd-num{font-variant-numeric:tabular-nums}
.cd-iban{font-variant-numeric:tabular-nums;letter-spacing:.02em}
.cd-none,.cd-sep{color:var(--ui-muted)}
.cd-iban-mark{margin-left:8px;vertical-align:1px;background:var(--ui-warn-tint);color:var(--ui-warn-ink)}
.cd-msg{margin:0}
.cd-load{display:flex;flex-direction:column;gap:8px}
.cd-load .v31-skel{display:block;height:12px}
.cd-live:empty{display:none}
.cd-live{color:var(--ui-pine);font:var(--ui-t-micro)}
.cd-sec>.b{align-self:flex-start}
/* R2-POLISH: Iestatījumi › Rekvizīti: the block inside the settings card's padding (as .bz-set), not on its edge */
.cd-settings [data-cd-self]{padding:0 20px 16px}
@media (max-width:700px){.cd-settings [data-cd-self]{padding:0 14px 14px}}
/* NX settings housekeeping: «Logotips rēķinā» under the company: the logo as it prints, then the file and date */
.cd-logo-b{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:16px 24px;align-items:start;padding:0 20px 16px}
.cd-logo-pv{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;min-height:96px;padding:14px;border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface)}
.cd-logo-img{display:block;max-width:100%;max-height:68px;width:auto;height:auto}
.cd-logo-none{color:var(--ui-muted);font:var(--ui-t-meta)}
.cd-logo-f{display:grid;grid-template-columns:minmax(0,1fr) 13em;gap:12px 16px;align-items:end}
.cd-logo-pickrow{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-height:var(--ui-h-m)}
.cd-logo-pick{position:relative;cursor:pointer}
.cd-logo-in{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.cd-logo-pick:focus-within{outline:2px solid var(--ui-a);outline-offset:2px}
.cd-logo-name{min-width:0;color:var(--ui-ink-2);font:var(--ui-t-meta);overflow-wrap:anywhere}
.cd-logo-a{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 12px}
.cd-logo-msg{grid-column:1/-1;margin:0;font:var(--ui-t-micro);color:var(--ui-ink-2)}
.cd-logo-msg:empty{display:none}
@media (max-width:700px){
  .cd-logo-b{grid-template-columns:minmax(0,1fr);padding:0 14px 14px}
  .cd-logo-f{grid-template-columns:minmax(0,1fr)}
  .cd-logo-a>.b{flex:1 1 auto;min-height:44px}
}
@container (max-width:320px){
  .cd-facts{grid-template-columns:minmax(0,1fr);gap:0}
  .cd-r dd{margin-bottom:8px}
  .cd-iban-mark{margin:4px 0 0}
}

/* ---- the editor window ---------------------------------------------------------------------------------------------------- */
dialog.cd-dlg{box-sizing:border-box;width:640px;max-width:calc(100vw - 32px);max-height:min(760px,calc(100vh - 32px));margin:auto;padding:0;overflow:hidden;color:var(--ui-ink);font:var(--ui-t-body)}
dialog.cd-dlg[open]{display:flex;flex-direction:column}
dialog.cd-dlg *,dialog.cd-dlg *::before,dialog.cd-dlg *::after{box-sizing:border-box}
.cd-dlg-h{flex:none;display:flex;align-items:flex-start;gap:12px;padding:18px 16px 12px 24px;border-bottom:1px solid var(--ui-line)}
.cd-dlg-htx{flex:1;min-width:0}
.cd-dlg-htx h2{margin:0;overflow-wrap:anywhere}
.cd-dlg-htx .hint{margin:2px 0 0}
.cd-dlg-b{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 24px 4px}
.cd-dlg-msg{flex:none;margin:0;padding:0 24px}
.cd-dlg-msg:empty{display:none}
.cd-dlg-msg:not(.errm){color:var(--ui-muted);font:var(--ui-t-micro)}
.cd-dlg-f{flex:none;display:flex;justify-content:flex-end;gap:8px;padding:12px 24px 18px;border-top:1px solid var(--ui-line);background:var(--ui-stone-foot)}
.cd-form{margin:0}
.cd-grp{margin:0 0 18px;padding:0;border:0;min-width:0}
.cd-grp legend{margin:0 0 8px;padding:0;color:var(--ui-ink-2);font:var(--ui-t-head)}
.cd-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px}
.cd-wide{grid-column:1/-1}
.cd-fl{display:flex;flex-direction:column;gap:4px;min-width:0}
.cd-fl[hidden]{display:none}
.cd-lbl{color:var(--ui-ink-2);font:var(--ui-t-micro)}
.cd-lbl i{color:var(--ui-muted);font-style:normal;font-weight:400}
.cd-err{color:var(--ui-muted);font:var(--ui-t-micro)}
.cd-err:empty{display:none}
.cd-fl.is-bad .cd-err{color:var(--ui-clay)}
.cd-fl.is-bad .in,.cd-fl.is-bad .sel{border-color:var(--ui-clay)}
.cd-fl.is-warn .cd-err{color:var(--ui-warn-ink)}
.cd-fl [data-cd-f=iban],.cd-fl [data-cd-f=regNo],.cd-fl [data-cd-f=vatNo],.cd-fl [data-cd-f=bic]{font-variant-numeric:tabular-nums;letter-spacing:.02em}

@media (max-width:700px){
  dialog.cd-dlg{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0}
  .cd-dlg-h{padding:14px 12px 10px 16px}
  .cd-dlg-b{padding:14px 16px 4px}
  .cd-dlg-msg{padding:0 16px}
  .cd-dlg-f{padding:10px 16px calc(14px + env(safe-area-inset-bottom,0px))}
  .cd-dlg-f>.ui-dlg-pair{display:flex;width:100%;gap:var(--ui-gap)}
  .cd-grid{grid-template-columns:minmax(0,1fr)}
}
}

/* /forest/lmf-page-env.css */
@layer pages{
/* LMF page layout: lmf-page-env.css, NX N0 (decisions 269, 270). The "not live" bar (lmf-environment.js): a thin terracotta strip
   above the top bar on every copy but live, on every page, PC and phone. Terracotta is the family's refusal colour; the faint
   diagonal hatch keeps it from reading as an ordinary notice. Live never draws the element, so nothing here applies there.
   Tokens: --ui-env-* in lmf-tokens.css. */
.lmf-env{position:sticky;top:0;z-index:1210;display:flex;align-items:center;justify-content:center;gap:10px;min-height:var(--ui-env-h);
  padding:3px 16px;box-sizing:border-box;background:var(--ui-env-hatch),var(--ui-env-bg);border-bottom:1px solid var(--ui-env-rule);
  color:var(--ui-env-ink);font:540 var(--ui-fs-s)/1.25 var(--ui-f);text-align:center}
.lmf-env-ic{flex:none;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lmf-env-label{font-weight:750;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap}
.lmf-env-line{color:var(--ui-env-ink-2)}
/* Everything pinned to the top of the window moves under the strip by one shared token, --ui-env-offset (lmf-tokens.css: 0px,
   so live is unchanged). lmf-environment.js writes the strip's measured height on <html> while it is shown; this is the value
   until it does. Each of these adds the token to its own top offset (Sol UI review 2, 3):
   the PC top bar (workspace-navigation-one.css #workspace-navigation, workspace-shell.css .workspace-topnav) and the page's
   scroll-padding-top (lmf-page-nav.css); Help (lmf-page-help.css .hp-panel, and the phone's Help sheet .hp-panel.is-sheet, its
   height); Visits: the trips map (workspace-trips.css .tr-mapw), the phone's add sheet (.tr-page.tp-adding .tr-panel) and the
   phone's trip sheets' heights (.tp-sheet, .tr-ask); the Pārlūks table header JS holds on a page scroll
   (workspace-property-list.js LMFStickyHead reads the token); the phone's focus table (workspace-mobile-table.css
   .mobile-table-host); the design library's rails and drawer (lmf-page-design.css .dl-rail, .dl-ds-side, .dl-drawer); the
   planner's sorting side (lmf-page-deals.css .pl2::before, .pl-tri, fallback of the measured --pl2-top); the full-window map
   (lmf-map.css #search-map-section.is-map-overlay). Left alone: sticky table heads and side panels inside their own scroll
   box, everything inside a <dialog> (the top layer, above the strip), full-window scrims (the strip stays above them), and
   off-screen print capture. */
.lmf-env-on{--ui-env-offset:var(--ui-env-h)}
/* the help's picture of it (help-shared.js «Izstrādes kopija» and the others) */
.lmf-env.lmf-env-sample{position:static;display:inline-flex;gap:6px;max-width:100%;min-height:24px;padding:2px 10px;border-radius:var(--ui-r-in);border:0;text-align:left}
.lmf-env-sample .lmf-env-label{white-space:normal;letter-spacing:.04em}
@media (max-width:600px){
  /* phone: the name, then the line on its own row; never wider than the screen */
  .lmf-env{flex-wrap:wrap;gap:2px 8px;padding:4px 12px}
  .lmf-env-line{flex-basis:100%;font-size:var(--ui-fs-label);line-height:1.2}
  /* the help's narrow picture column on a phone: the name on two short lines */
  .lmf-env.lmf-env-sample{width:min-content;flex-wrap:nowrap;padding:4px 8px}
}
@media print{.lmf-env{position:static}}
@media (forced-colors:active){
  .lmf-env{forced-color-adjust:none;background:Mark;color:MarkText;border-bottom-color:MarkText}
  .lmf-env-line{color:MarkText}
}
/* D1 Skatīt kā (lmf-see-as.js): the red "viewing as" bar, right under the copy's strip (it sticks at the strip's height,
   --ui-env-strip-h, 0 when there is no strip); its height counts in --ui-env-offset, so everything pinned to the top moves
   under both. Solid deep red, no hatch: a different thing from the strip. One action: Beigt. */
.lmf-see-as{position:sticky;top:var(--ui-env-strip-h,0px);z-index:1209;display:flex;align-items:center;justify-content:center;gap:4px 10px;
  min-height:var(--ui-seeas-h);padding:3px 10px 3px 16px;box-sizing:border-box;background:var(--ui-seeas-bg);
  color:var(--ui-seeas-ink);font:540 var(--ui-fs-s)/1.25 var(--ui-f)}
.lmf-see-as-on:not(.lmf-env-on){--ui-env-offset:var(--ui-seeas-h)}
.lmf-see-as-on.lmf-env-on{--ui-env-offset:calc(var(--ui-env-h) + var(--ui-seeas-h))}
.lmf-see-as-ic{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lmf-see-as-label{font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.lmf-see-as-line{color:var(--ui-seeas-ink-2)}
.lmf-see-as-short{display:none}
.b.q.lmf-see-as-stop{flex:none;margin-left:6px;min-height:26px;padding:2px 12px;border:1px solid currentColor;color:var(--ui-seeas-ink);font-weight:750}
.b.q.lmf-see-as-stop:hover{background:var(--ui-seeas-hover);color:var(--ui-seeas-ink)}
.b.q.lmf-see-as-stop:focus-visible{outline:2px solid var(--ui-seeas-ink);outline-offset:2px}
.lmf-see-as.lmf-see-as-sample{position:static;display:inline-flex;gap:6px;max-width:100%;min-height:24px;padding:2px 10px;border-radius:var(--ui-r-in);border:0}
/* Lietotāji: the «Skatīt kā» button next to «Labot piekļuvi» */
.accounts-user-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:end}
@media (max-width:600px){
  /* phone: the name and Beigt on the first row, the line under them; never wider than the screen */
  .lmf-see-as{flex-wrap:wrap;justify-content:space-between;padding:4px 8px 4px 12px}
  .lmf-see-as-label{flex:1 1 0}
  .b.q.lmf-see-as-stop{order:3;min-height:32px}
  .lmf-see-as-line{order:4;flex-basis:100%;font-size:var(--ui-fs-label);line-height:1.2}
  .lmf-see-as-long{display:none}
  .lmf-see-as-short{display:inline}
  .accounts-user-actions{grid-column:1/-1;justify-content:stretch}
  .accounts-user-actions>button{flex:1}
}
@media print{.lmf-see-as{position:static}}
@media (forced-colors:active){
  .lmf-see-as{forced-color-adjust:none;background:Highlight;color:HighlightText;border-bottom-color:HighlightText}
  .lmf-see-as-line{color:HighlightText}
  .b.q.lmf-see-as-stop{border-color:HighlightText;color:HighlightText}
}
}

/* /forest/lmf-page-money.css */
@layer pages{
/* LMF page layout: lmf-page-money.css, owned by NX B1b (BUILD-PLAN B1b; DESIGN-A 2.1-2.3): the deal's Dokumenti block, the invoice
   draft editor, the issue confirmation, the invoice preview and the upload window (workspace-deal-docs.js), the buyer's class line
   on the Rekvizīti block, and the business settings under Uzņēmums (workspace-biz-settings.js). Family tokens only.
   PARAUGS is one solid clay tag wherever a sample shows (row, window title, confirmation), so a sample is never mistaken. */

/* ---- the block (inside .pw-money, the history's row parts) ------------------------------------------------------------------ */
.bz{display:flex;flex-direction:column;gap:6px;min-width:0}
.bz-bar{flex-wrap:wrap;gap:6px}
.bz-bar>.pw-h{margin-right:auto}
.bz-row .pw-te-tx b{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
.bz-row-t{display:inline-flex;align-items:center;gap:4px}
.tag.bz-sample{background:var(--ui-clay);border-color:var(--ui-clay);color:var(--ui-surface);font-weight:700;letter-spacing:.04em}
.bz-pdf-miss{display:inline-flex;color:var(--ui-warn-ink)}
.bz-note{margin:0;color:var(--ui-pine);font:var(--ui-t-micro)}
/* NX B2: a document's state as a word in a tag (the tint helps, the word says it) */
.tag.bz-st.is-paid,.tag.bz-st.is-approved{background:var(--ui-pine-tint);border-color:var(--ui-pine-tint);color:var(--ui-ink)}
.tag.bz-st.is-part{background:var(--ui-ochre-tint);border-color:var(--ui-ochre-tint);color:var(--ui-ink)}
.tag.bz-st.is-overdue{background:var(--ui-clay-tint);border-color:var(--ui-clay-line);color:var(--ui-warn-ink)}
.tag.bz-st.is-credited{color:var(--ui-muted)}
.pw-money-link{flex-direction:row;align-items:center;gap:8px;cursor:pointer}
.pw-money-link input{width:18px;height:18px;margin:0;accent-color:var(--ui-pine)}

/* ---- the windows (the family frame of the company details editor) ---------------------------------------------------------- */
dialog.bz-dlg{box-sizing:border-box;width:640px;max-width:calc(100vw - 32px);max-height:min(820px,calc(100vh - 32px));margin:auto;padding:0;overflow:hidden;color:var(--ui-ink);font:var(--ui-t-body)}
dialog.bz-dlg[open]{display:flex;flex-direction:column}
dialog.bz-dlg *,dialog.bz-dlg *::before,dialog.bz-dlg *::after{box-sizing:border-box}
dialog.bz-ed{width:960px}
dialog.bz-pv{width:860px}
dialog.bz-cf,dialog.bz-upd,dialog.bz-lnk{width:480px}
dialog.bz-pin{width:640px}
.bz-dlg-h{flex:none;display:flex;align-items:flex-start;gap:12px;padding:18px 16px 12px 24px;border-bottom:1px solid var(--ui-line)}
.bz-dlg-htx{flex:1;min-width:0}
.bz-dlg-htx h2{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;overflow-wrap:anywhere}
.bz-dlg-htx .hint{margin:2px 0 0}
.bz-dlg-b{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 24px 8px}
.bz-dlg-msg{flex:none;margin:0;padding:0 24px 6px}
.bz-dlg-msg:empty{display:none}
.bz-dlg-msg:not(.errm){color:var(--ui-muted);font:var(--ui-t-micro)}
.bz-dlg-f{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:12px 24px 18px;border-top:1px solid var(--ui-line);background:var(--ui-stone-foot)}
.bz-sp{flex:1}
.bz-fl{display:flex;flex-direction:column;gap:4px;min-width:0}
.bz-lbl,.bz-elbl{color:var(--ui-ink-2);font:var(--ui-t-micro)}
.bz-lbl i{color:var(--ui-muted);font-style:normal;font-weight:400}
.bz-hint,.bz-set-in{margin:0;color:var(--ui-muted);font:var(--ui-t-micro)}
.bz-num{font-variant-numeric:tabular-nums;text-align:right}
.bz-msg{margin:0}.bz-msg:not(.errm){color:var(--ui-muted);font:var(--ui-t-micro)}
.bz-msg:empty{display:none}
/* NX B2: the incoming invoice form and the link window */
.bz-pin-g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bz-pin-g .bz-wide{grid-column:1/-1}
.bz-pin-sum{grid-column:2;align-items:flex-end}
.bz-pin-sum b{padding:4px 12px 0 0;font:var(--ui-t-data)}
.bz-pin-ae{margin:10px 0 0}
.bz-ferr{color:var(--ui-warn-ink);font:var(--ui-t-micro)}.bz-ferr:empty{display:none}
.bz-lnk-h{margin:0 0 8px;padding:0;color:var(--ui-ink-2);font:var(--ui-t-head)}
.bz-lnk-ls{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-direction:column;gap:6px}
.bz-lnk-l{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px}
.bz-lnk-f{margin:0 0 12px;padding:0;border:0;display:flex;flex-direction:column;gap:6px}
.bz-lnk-c{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:40px;padding:4px 8px;border:1px solid var(--ui-line);border-radius:var(--ui-r-card);cursor:pointer}
.bz-lnk-c:has(input:checked){border-color:var(--ui-pine);background:var(--ui-pine-tint)}
.bz-lnk-c input{margin:0;accent-color:var(--ui-pine)}
.bz-lnk-a{max-width:14em}

/* ---- the editor ------------------------------------------------------------------------------------------------------------- */
.bz-sec{margin:0 0 16px}
.bz-sec h3{margin:0 0 8px;color:var(--ui-ink-2);font:var(--ui-t-head)}
.bz-dev{display:flex;align-items:center;gap:8px;margin:0 0 14px;padding:8px 12px;border:1px solid var(--ui-line);border-radius:var(--ui-r);background:var(--ui-wash);color:var(--ui-ink-2);font:var(--ui-t-meta)} /* R2-POLISH: as .mp-sample-note */
.bz-buyer-n{margin:0;font:var(--ui-t-data)}
.bz-buyer-f{margin:2px 0 0;color:var(--ui-ink-2);font-variant-numeric:tabular-nums}
.bz-buyer-tax{margin:6px 0 0;color:var(--ui-ink-2)}
.bz-head-f{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.bz-lines{display:flex;flex-direction:column;gap:8px;margin:0 0 8px}
.bz-line{display:grid;grid-template-columns:20px minmax(0,1fr) 84px 96px 100px 128px 112px 32px;gap:8px;align-items:end;padding:0 0 8px;border-bottom:1px solid var(--ui-line)}
.bz-ln-n{align-self:center;color:var(--ui-muted);font:var(--ui-t-micro);font-variant-numeric:tabular-nums}
/* on a PC the column words stand over the first line only (the later lines keep them for screen readers) */
@media (min-width:701px){.bz-line+.bz-line .bz-lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
.bz-ln-ref{margin-top:4px}
.bz-ln-sum{align-self:center;padding-bottom:6px;text-align:right;font:var(--ui-t-data);font-variant-numeric:tabular-nums}
.bz-ln-x{align-self:center}
/* an exempt line: its reason under the line's fields (printed on the invoice; .bz-elbl: its label shows on every line) */
.bz-ln-e{grid-column:2/-2}
.bz-sum dl{display:grid;grid-template-columns:max-content max-content;justify-content:end;gap:4px 24px;margin:0}
.bz-sum dl>div{display:contents}
.bz-sum dt{color:var(--ui-ink-2)}
.bz-sum dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.bz-sum-t dt,.bz-sum-t dd{font:var(--ui-t-data);font-weight:700}
.bz-rc{margin:8px 0 0;text-align:right;color:var(--ui-ink-2);font:var(--ui-t-micro)}
.bz-sum .bz-hint{text-align:right;margin-top:4px}
.bz-blocks,.bz-warns{padding:10px 12px;border-radius:var(--ui-r-card)}
.bz-blocks{border:1px solid var(--ui-clay-line);background:var(--ui-clay-tint)}
.bz-warns{border:1px solid var(--ui-ochre-line);background:var(--ui-ochre-tint)}
.bz-blocks h3{color:var(--ui-clay)}
.bz-warns h3{color:var(--ui-ochre-ink)}
.bz-blocks ul,.bz-warns ul{margin:0;padding-left:18px}
.bz-notes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.bz-del{color:var(--ui-clay)}

/* ---- the confirmation, the preview, the upload ------------------------------------------------------------------------------ */
.bz-cf-l{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 16px;margin:0 0 12px}
.bz-cf-l>div{display:contents}
.bz-cf-l dt{color:var(--ui-ink-2)}
.bz-cf-l dd{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font:var(--ui-t-data);font-variant-numeric:tabular-nums}
.bz-cf-w{margin:0;padding:8px 10px;border-radius:var(--ui-r-card);background:var(--ui-ochre-tint);color:var(--ui-ink)}
dialog.bz-pv .bz-dlg-b{background:var(--ui-stone-2);padding:16px}
.bz-paper{max-width:760px;margin:0 auto}
.bz-pv-note{flex:1 1 100%;margin:0;color:var(--ui-clay);font:var(--ui-t-micro);font-weight:700}
.bz-pv-miss{color:var(--ui-warn-ink);font:var(--ui-t-micro)}
.bz-up-f{display:flex;flex-direction:column;gap:12px}
.bz-dlg .next-file-row{min-height:var(--ui-h-field)} /* R2-POLISH: the settings' file recipe (fileField) */

/* ---- the buyer's class on the Rekvizīti block ------------------------------------------------------------------------------- */
.bz-tax{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--ui-line)}
.bz-tax-k{color:var(--ui-muted);font:var(--ui-t-micro)}
.bz-tax-v{flex:1;min-width:0;color:var(--ui-ink)}
.bz-tax-f{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.bz-tax-a{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}
.bz-tax-f .bz-msg{grid-column:1/-1}

/* ---- settings under Uzņēmums ------------------------------------------------------------------------------------------------ */
.bz-sets{display:flex;flex-direction:column;gap:16px}
.bz-set{padding-bottom:16px}
.bz-set>:not(.ts-head){margin-left:20px;margin-right:20px}
.bz-set-a>.bz-fl{margin:0}
.bz-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;margin:0 0 8px}
.bz-wide{grid-column:1/-1}
.bz-check{display:flex;align-items:center;gap:8px;grid-column:1/-1}
.bz-scroll{overflow-x:auto;margin:0 0 8px}
.bz-tbl{border-collapse:collapse;width:100%}
.bz-tbl th,.bz-tbl td{padding:6px 8px;border-bottom:1px solid var(--ui-line);text-align:left;vertical-align:middle}
.bz-tbl thead th{color:var(--ui-ink-2);font:var(--ui-t-micro)}
.bz-tbl tbody th{font-weight:400}
.bz-pre{width:9em;text-transform:uppercase}
.bz-set-a{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:8px}
.bz-set-from{width:13em}
.bz-set-st{margin:0 0 10px;padding:8px 10px;border-radius:var(--ui-r-card)}
.bz-set-st.is-ok{background:var(--ui-pine-tint);color:var(--ui-ink)}
.bz-set-st.is-wait{background:var(--ui-ochre-tint);color:var(--ui-ink)}
/* NX settings housekeeping (R-195 gap 7): a number with its unit after it (IIN %, VID day); VAT by kind of work as a form */
.bz-unit{display:flex;align-items:center;gap:6px}
.bz-unit>.in{width:6em;flex:none}
.bz-unit>span{color:var(--ui-ink-2);font:var(--ui-t-meta)}
.bz-vw-al{display:flex;flex-wrap:wrap;gap:4px 14px}
.bz-vw-c{display:inline-flex;align-items:center;gap:6px;min-height:var(--ui-h-s);white-space:nowrap}
.bz-vw .sel{min-width:10em}
@media (max-width:700px){
  /* the phone: each kind of work is a block of its own (name, then its three choices), no sideways scroll */
  .bz-vw thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .bz-vw,.bz-vw tbody,.bz-vw tr,.bz-vw th,.bz-vw td{display:block;width:100%}
  .bz-vw tr{padding:8px 0;border-bottom:1px solid var(--ui-line)}
  .bz-vw th,.bz-vw td{padding:4px 0;border:0}
  .bz-vw tbody th{font-weight:620}
  .bz-vw .sel{width:100%;min-height:44px}
  .bz-vw-al{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
  .bz-vw-c{min-height:44px}
  .bz-vw td[data-l]::before{content:attr(data-l);display:block;margin-bottom:2px;color:var(--ui-ink-2);font:var(--ui-t-micro)}
}

/* ---- NX B6: the credit note editor (each invoice line: what it was, what is left, Pilnībā / Daļēji / Nē) ----------------- */
.bz-kr-ls{display:flex;flex-direction:column;gap:0}
.bz-kr-l{display:grid;grid-template-columns:minmax(0,1fr) auto 128px;grid-template-areas:"t m sum" "p p p";gap:8px 16px;align-items:center;padding:10px 0;border-bottom:1px solid var(--ui-line)}
.bz-kr-l:first-child{border-top:1px solid var(--ui-line)}
.bz-kr-t{grid-area:t;display:flex;flex-direction:column;gap:2px;min-width:0}
.bz-kr-t b{font:var(--ui-t-data);overflow-wrap:anywhere}
.bz-kr-t .bz-hint{font-variant-numeric:tabular-nums}
.bz-kr-m{grid-area:m;justify-self:start;align-self:center;display:inline-flex;align-items:stretch;gap:2px;padding:2px;border-radius:var(--ui-r-seg);background:var(--ui-track-bg);box-shadow:var(--ui-track-sh)} /* R2-POLISH: the family .seg */
.bz-kr-o{position:relative;display:flex;align-items:stretch;min-height:0;margin:0;padding:0;cursor:pointer}
.bz-kr-o input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.bz-kr-o span{display:flex;align-items:center;min-height:32px;padding:0 12px;border-radius:var(--ui-r-ctl);color:var(--ui-ink-2);font:var(--ui-fw) var(--ui-fs-m)/1 var(--ui-f);transition:background var(--ui-t),color var(--ui-t)}
.bz-kr-o:hover span{color:var(--ui-ink);background:var(--ui-track-hover)}
.bz-kr-o:has(input:checked) span{background:var(--ui-raise-bg);color:var(--ui-a-ink);text-shadow:var(--ui-edge);box-shadow:var(--ui-thumb-sh)}
.bz-kr-o:has(input:focus-visible) span{outline:2px solid var(--ui-a);outline-offset:2px}
.bz-kr-l .bz-ln-sum{grid-area:sum;padding:0}
.bz-kr-l.is-none .bz-ln-sum{color:var(--ui-muted)}
.bz-kr-p{grid-area:p;display:grid;grid-template-columns:120px 120px minmax(0,1fr);gap:8px 12px;align-items:end}
.bz-kr-ph{align-self:center}
.bz-kr-l.is-done{grid-template-areas:"t m m"}
.bz-kr-done{grid-area:m;color:var(--ui-muted);font:var(--ui-t-micro)}
.bz-kr-r input{max-width:640px}
.bz-cf-k{margin:0 0 10px;font:var(--ui-t-data);font-variant-numeric:tabular-nums}

/* ---- the phone: windows are full sheets; each line a card; totals and Izrakstīt stay in reach ---------------------------- */
@media (max-width:700px){
  dialog.bz-dlg{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0}
  .bz-dlg-h{padding:14px 12px 10px 16px}
  .bz-dlg-b{padding:14px 16px 8px}
  dialog.bz-pv .bz-dlg-b{padding:8px}
  .bz-dlg-msg{padding:0 16px 6px}
  .bz-dlg-f{padding:10px 16px calc(14px + env(safe-area-inset-bottom,0px))}
  .bz-dlg-f>.ui-dlg-pair{display:flex;flex:1 1 100%;gap:var(--ui-gap)}
  .bz-dlg-f>.ui-dlg-pair>.b:not(.q){flex:1 1 auto}
  .bz-head-f,.bz-notes,.bz-grid,.bz-tax-f{grid-template-columns:minmax(0,1fr)}
  .bz-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;grid-template-areas:"name name x" "q u u" "p v v" "sum sum sum";padding:10px;border:1px solid var(--ui-line);border-radius:var(--ui-r-card)}
  .bz-ln-n{display:none}
  .bz-line.has-e{grid-template-areas:"name name x" "q u u" "p v v" "e e e" "sum sum sum"}.bz-ln-e{grid-area:e}
  .bz-ln-name{grid-area:name}.bz-ln-q{grid-area:q}.bz-ln-u{grid-area:u}.bz-ln-p{grid-area:p}.bz-ln-v{grid-area:v}.bz-ln-sum{grid-area:sum;padding:0}.bz-ln-x{grid-area:x;align-self:start;min-width:44px;min-height:44px}
  .bz-sum{position:sticky;bottom:-8px;margin:0 -16px 12px;padding:10px 16px;border-top:1px solid var(--ui-line);background:var(--ui-dlg-bg)}
  .bz-del{flex:1 1 100%}
  .bz-row-t .b,.bz-bar>.b,.bz-tax .b{min-height:44px}
  .bz-row-t .b.ic{min-width:44px}
  .bz-pin-g{grid-template-columns:minmax(0,1fr)}
  .bz-pin-sum{grid-column:auto}
  .bz-lnk-c,.bz-lnk-l .b,.pw-money-t [data-bz-link]{min-height:44px}
  .bz-lnk-a{max-width:none}
  .bz-set>:not(.ts-head){margin-left:14px;margin-right:14px}
  .bz-set-from{width:auto;flex:1 1 100%}
  .bz-kr-l{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t t" "m sum" "p p";padding:10px;margin:0 0 8px;border:1px solid var(--ui-line);border-radius:var(--ui-r-card)}
  .bz-kr-l:first-child{border-top:1px solid var(--ui-line)}
  .bz-kr-l.is-done{grid-template-areas:"t t" "m m"}
  .bz-kr-o span{min-height:40px;padding:0 14px}
  .bz-kr-p{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .bz-kr-ph{grid-column:1/-1}
}
/* ---- NX B3: Darījumi › Rēķini and › Eksports (workspace-money-pages.js; DESIGN-A 2.5, 2.8). The register sits on the archive's
   parts (filters, totals, table on a PC, rows on a phone); the export page is two cards (a new ZIP, the books' lock) above the
   earlier exports. The lock is a word and a stamp, never colour alone. Family tokens only. ---------------------------------------- */
.mp{display:flex;flex-direction:column;gap:var(--ui-sp-3);min-width:0}
.mp-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-sp-2)}
.mp-head>.v31-ar-filters{flex:1 1 480px;min-width:0}
.mp-kind{flex:none}
.mp-num{font:var(--ui-t-data);font-variant-numeric:tabular-nums;white-space:nowrap}
.mp-open{font:var(--ui-t-data);font-variant-numeric:tabular-nums;white-space:nowrap}
.mp-who{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mp-deal{max-width:220px}
.mp-deal-b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-2)}
.mp-st{white-space:nowrap}
.mp-st>.tag+.tag,.mp-st>.tag+.mp-lock{margin-inline-start:4px}
.mp-lock{display:inline-grid;place-items:center;vertical-align:middle;color:var(--ui-ink-2)}
.mp-lock svg{width:14px;height:14px}
.mp-locked-note{display:inline-flex;align-items:center;gap:4px;color:var(--ui-ink-2)}
.mp-locked-note svg{width:12px;height:12px}
.mp-list .rw-t{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.mp-list .v31-ar-figs b{color:var(--ui-ink);font-weight:620}
/* the export page */
.mp-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:var(--ui-sp-3);align-items:start}
.mp-card{display:flex;flex-direction:column;gap:var(--ui-sp-2);min-width:0;padding:14px 16px;border:1px solid var(--ui-line);border-radius:var(--ui-r);background:var(--ui-surface)}
.mp-h{margin:0;font:var(--ui-t-head);color:var(--ui-ink)}
.mp-form{display:flex;flex-direction:column;gap:var(--ui-sp-2)}
.mp-form--row{flex-direction:row;flex-wrap:wrap;align-items:flex-end}
.mp-field{display:flex;flex-direction:column;gap:4px;min-width:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.mp-field>.sel,.mp-field>.in{min-width:180px;color:var(--ui-ink)}
.mp-contents{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.mp-lockbox{align-items:flex-start;gap:8px;font:var(--ui-t-body);color:var(--ui-ink)}
.mp-lockbox>input{flex:none;margin-top:2px}
.mp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-sp-2)}
.mp-msg{margin:0;min-height:1em;color:var(--ui-pine);font:var(--ui-t-meta)}
.mp-msg:empty{display:none}
.mp-msg.is-err{color:var(--ui-warn-ink)}
.mp-lock-h{display:flex;align-items:flex-start;gap:10px}
.mp-lock-h>svg{flex:none;width:20px;height:20px;margin-top:2px;color:var(--ui-ink-2)}
.mp-lock-t{margin:0;font:var(--ui-t-head);color:var(--ui-ink)}
.mp-lock-s{margin:2px 0 0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.mp-exports{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}
.mp-exp{border-top:1px solid var(--ui-line)}
.mp-exp:first-child{border-top:0}
.mp-exp-row{display:flex;align-items:center;gap:var(--ui-sp-2);padding:8px 0}
.mp-exp-m{flex:1 1 auto;min-width:0}
.mp-exp-t{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;font:var(--ui-t-data);font-variant-numeric:tabular-nums;color:var(--ui-ink)}
.mp-exp-s{margin:2px 0 0;color:var(--ui-ink-2);font:var(--ui-t-meta);overflow:hidden;text-overflow:ellipsis}
.tag.mp-tag-lock{display:inline-flex;align-items:center;gap:4px;color:var(--ui-ink-2)}
.tag.mp-tag-lock svg{width:12px;height:12px}
.mp-view{display:flex;flex-direction:column;gap:var(--ui-sp-2);padding:0 0 12px}
.mp-files,.mp-prev-t{border-collapse:collapse;font:var(--ui-t-meta);color:var(--ui-ink)}
.mp-files{width:100%}
.mp-files th,.mp-prev-t th{padding:4px 8px;border-bottom:1px solid var(--ui-line);background:var(--ui-stone-2);color:var(--ui-ink-2);text-align:start;white-space:nowrap}
.mp-files td,.mp-prev-t td{padding:4px 8px;border-top:1px solid var(--ui-line);white-space:nowrap}
.mp-files .num{text-align:end;font-variant-numeric:tabular-nums}
.mp-fn{overflow-wrap:anywhere;white-space:normal}
.mp-sha{color:var(--ui-muted);font-variant-numeric:tabular-nums}
.mp-prev-h{margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.mp-prev-wrap{overflow-x:auto;border:1px solid var(--ui-line);border-radius:var(--ui-r-in)}
.mp-sample-note{padding:8px 12px;border:1px solid var(--ui-line);border-radius:var(--ui-r);background:var(--ui-wash)}
/* PHONE-SEAM (B3): one column; the register's kind switch takes the whole line; an export's buttons go under its words */
@media (max-width:700px){
  .mp-grid{grid-template-columns:minmax(0,1fr)}
  .mp-kind{flex:1 1 100%}
  .mp-kind>button{flex:1 1 0}
  .mp-exp-row{flex-direction:column;align-items:stretch}
  .mp-form--row{flex-direction:column;align-items:stretch}
  .mp-field>.sel,.mp-field>.in{min-width:0;width:100%}
  .mp-actions>.b{flex:1 1 auto;justify-content:center}
  .mp-files th:last-child,.mp-files .mp-sha{display:none} /* the digest stays in MANIFEST.txt and on a PC */
}
/* ---- NX B4: Darījumi › Pārskats and Mēneša pārbaude (workspace-money-overview.js; DESIGN-A 2.6, 2.8). The figures are one strip
   (a label, the value, one line), not a card per number; the chart has one axis, two series in the two colours below (dataviz
   validator: lightness, chroma, colour-blind separation and contrast pass on white; the tokens hold the dark pair for a later dark
   theme); the month table carries every number, and is the only view on a phone. */
.mo{--mo-in:var(--ui-chart-in);--mo-out:var(--ui-chart-out)}
.mo-head{justify-content:space-between;align-items:flex-end}
.mo-compare{align-items:center;gap:8px;min-height:36px;font:var(--ui-t-body);color:var(--ui-ink)}
.mo-range{margin:0;display:flex;flex-wrap:wrap;gap:4px 10px;font:var(--ui-t-data);color:var(--ui-ink);font-variant-numeric:tabular-nums}
.mo-vs{color:var(--ui-ink-2);font:var(--ui-t-meta)}
.mo-figs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;border:1px solid var(--ui-line);border-radius:var(--ui-r);background:var(--ui-surface)}
.mo-fig{display:flex;flex-direction:column;gap:4px;min-width:0;padding:12px 16px;border-left:1px solid var(--ui-line);border-top:1px solid var(--ui-line)}
.mo-fig:nth-child(4n+1){border-left:0}
.mo-fig:nth-child(-n+4){border-top:0}
.mo-fig>dt{margin:0;color:var(--ui-ink-2);font:var(--ui-t-head)}
.mo-fig>dd{margin:0;display:flex;flex-direction:column;gap:2px;min-width:0}
.mo-val{align-self:flex-start;font:var(--ui-t-step);color:var(--ui-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
button.mo-val{padding:0;min-height:0;text-decoration:underline;text-decoration-color:var(--ui-line-2);text-underline-offset:4px}
button.mo-val:hover{text-decoration-color:currentColor}
.mo-sub,.mo-dl{color:var(--ui-ink-2);font:var(--ui-t-meta);font-variant-numeric:tabular-nums}
.mo-d.is-up,.mo-d.is-down{color:var(--ui-ink)}
.mo-d-was{color:var(--ui-muted)}
.mo-months{gap:var(--ui-sp-3)}
.mo-chart{margin:0;display:flex;flex-direction:column;gap:8px}
.mo-cap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 16px}
.mo-legend{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.mo-key{display:inline-block;flex:none;width:10px;height:10px;border-radius:2px;background:var(--mo-in);vertical-align:-1px;margin-inline-end:4px}
.mo-key.is-out{background:var(--mo-out);margin-inline-start:10px}
.mo-tip .mo-key.is-out{margin-inline-start:0}
.mo-plot{position:relative}
.mo-plot svg{display:block;width:100%;height:auto;overflow:visible}
.mo-grid{stroke:var(--ui-line);stroke-width:1}
.mo-base{stroke:var(--ui-line-2);stroke-width:1}
.mo-ax{fill:var(--ui-ink-2);font:var(--ui-t-micro);font-variant-numeric:tabular-nums}
.mo-bar.is-in{fill:var(--mo-in)}.mo-bar.is-out{fill:var(--mo-out)}
.mo-hit{fill:transparent;cursor:default;outline:none}
.mo-hit.is-on,.mo-hit:focus-visible{fill:var(--ui-ink);fill-opacity:.05}
.mo-hit:focus-visible{stroke:var(--ui-pine);stroke-width:2}
.mo-tip{position:absolute;top:0;z-index:2;width:220px;padding:8px 12px;border:1px solid var(--ui-line-2);border-radius:var(--ui-r-card);background:var(--ui-surface);box-shadow:var(--ui-pop-sh);pointer-events:none}
.mo-tip p{margin:0;display:flex;align-items:center;gap:4px;font:var(--ui-t-meta);color:var(--ui-ink)}
.mo-tip b{margin-inline-start:auto;font:var(--ui-t-data);font-variant-numeric:tabular-nums}
.mo-tip .mo-tip-h{font:var(--ui-t-head);margin-bottom:4px}
.mo-tip .mo-tip-s{color:var(--ui-ink-2)}
.mo-tip p+.mo-tip-s:not(.mo-tip-s+.mo-tip-s){margin-top:4px}
.mo-tip b{white-space:nowrap}
.mo-tablewrap{overflow-x:auto}
.mo-table{width:100%;border-collapse:collapse;font:var(--ui-t-meta);color:var(--ui-ink)}
.mo-table thead th{padding:4px 8px;border-bottom:1px solid var(--ui-line);background:var(--ui-stone-2);color:var(--ui-ink-2);text-align:start;white-space:nowrap}
.mo-table tbody th,.mo-table td{padding:4px 8px;border-top:1px solid var(--ui-line)}
.mo-table .num{text-align:end;font-variant-numeric:tabular-nums}
.mo-table th[scope=row]{text-align:left;font:var(--ui-t-data);white-space:nowrap;background:none}
.mo-table td{font-variant-numeric:tabular-nums;white-space:nowrap}
.mo-table .mo-total th,.mo-table .mo-total td{border-top:1px solid var(--ui-line-2);font-weight:620}
/* NX B4 fix (Sol 4): the month table as rows on a phone (every figure of every month, nothing cut off); hidden on PC */
.mo-mlist{display:none;margin:0;padding:0;list-style:none;flex-direction:column}
.mo-mrow{padding:8px 0;border-top:1px solid var(--ui-line)}
.mo-mrow:first-child{border-top:0}
.mo-mrow.mo-total{border-top:1px solid var(--ui-line-2)}
.mo-mrow-h{display:block;font:var(--ui-t-data);font-weight:620;color:var(--ui-ink)}
.mo-mrow-v{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px var(--ui-sp-3);margin:4px 0 0}
.mo-mrow-v>div{display:flex;flex-direction:column;min-width:0}
.mo-mrow-v dt{font:var(--ui-t-meta);color:var(--ui-ink-2)}
.mo-mrow-v dd{margin:0;font:var(--ui-t-data);font-variant-numeric:tabular-nums;color:var(--ui-ink);overflow-wrap:anywhere}
.mo-mrow.mo-total dd{font-weight:620}
.mo-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-sp-3);align-items:start}
.mo-rank{margin:0;padding:0;list-style:none;counter-reset:mo;display:flex;flex-direction:column}
.mo-rank li{counter-increment:mo;display:grid;grid-template-columns:24px minmax(0,1fr) auto;grid-template-areas:"n name v" "n sub v";align-items:center;column-gap:8px;padding:6px 0;border-top:1px solid var(--ui-line)}
.mo-rank li:first-child{border-top:0}
.mo-rank li::before{content:counter(mo);grid-area:n;color:var(--ui-muted);font:var(--ui-t-data);font-variant-numeric:tabular-nums}
.mo-rank-n{grid-area:name;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--ui-t-data);color:var(--ui-ink)}
.mo-rank-s{grid-area:sub;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.mo-rank-v{grid-area:v;font:var(--ui-t-data);font-variant-numeric:tabular-nums;color:var(--ui-ink)}
.mo-buckets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--ui-sp-2);margin:0}
.mo-buckets--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.mo-bucket{display:flex;flex-direction:column;gap:2px;min-width:0;padding:8px 10px;border-radius:var(--ui-r-plate);background:var(--ui-stone-2)}
.mo-bucket.is-late{background:var(--ui-clay-tint)}
.mo-bucket>dt{margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.mo-bucket>dd{margin:0;display:flex;flex-direction:column;gap:2px}
.mo-bucket b{font:var(--ui-t-data);color:var(--ui-ink);font-variant-numeric:tabular-nums}
.mo-rt{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.mo-rt .mp-contents{margin-top:2px}
/* the review page */
.mo-rv-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-sp-2) var(--ui-sp-3)}
.mo-title{margin:0;margin-inline-end:auto;font:var(--ui-t-win);color:var(--ui-ink)}
.mo-title:focus{outline:none}
.mo-back-ic{transform:scaleX(-1)}
.mo-check{display:flex;align-items:flex-start;gap:8px;margin:0;padding:8px 12px;border-radius:var(--ui-r-plate);background:var(--ui-pine-soft);color:var(--ui-ink);font:var(--ui-t-body)}
.mo-check.is-problems,.mo-check.is-error{background:var(--ui-warn-tint);color:var(--ui-warn-ink)}
.mo-check svg{flex:none;margin-top:2px}
.mo-people{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:4px 20px;font:var(--ui-t-meta);color:var(--ui-ink-2)}
.mo-people b{color:var(--ui-ink);font-weight:620}
.mo-rtable td{vertical-align:top}
.mo-what{font-variant-numeric:tabular-nums;color:var(--ui-ink);overflow-wrap:anywhere}
.mo-why{display:block;margin-top:2px;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.tag.mo-k{white-space:nowrap}
.tag.mo-k.is-credit,.tag.mo-k.is-unlock,.tag.mo-k.is-iban{background:var(--ui-ochre-tint);border-color:var(--ui-ochre-line);color:var(--ui-ink)}
.tag.mo-wait{background:var(--ui-warn-tint);border-color:var(--ui-warn-tint);color:var(--ui-warn-ink)}
.mo-rv{display:inline-flex;align-items:center;gap:4px;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.mo-rv svg{color:var(--ui-pine)}
.mo-rlist{display:none}
.mo-ritem{display:flex;flex-direction:column;gap:4px;padding:10px 0;border-top:1px solid var(--ui-line)}
.mo-ritem .rw-t{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.mo-ritem .rw-s{color:var(--ui-ink-2);font:var(--ui-t-meta)}
.mo-sign .mp-field>.in{min-width:0;width:min(100%,560px)}
.mo-signed{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;font:var(--ui-t-meta);color:var(--ui-ink-2)}
@media (max-width:1100px){.mo-figs{grid-template-columns:repeat(2,minmax(0,1fr))}.mo-fig:nth-child(n){border-left:1px solid var(--ui-line);border-top:1px solid var(--ui-line)}.mo-fig:nth-child(2n+1){border-left:0}.mo-fig:nth-child(-n+2){border-top:0}}
/* PHONE-SEAM (B4): two figures a row; no chart (the month table, as rows with every figure, is the view); one column; the review list as rows */
@media (max-width:700px){
.mo-head{align-items:stretch}
.mo-head .mp-form--row{flex-direction:column;align-items:stretch}
.mo-head .mp-field>.sel,.mo-head .mp-field>.in{min-width:0;width:100%}
.mo-fig{padding:10px 12px}
.mo-val{font:var(--ui-t-step)}
.mo-chart{display:none}
.mo-months .mo-tablewrap{display:none}
.mo-mlist{display:flex}
.mo-two{grid-template-columns:minmax(0,1fr)}
.mo-buckets{grid-template-columns:repeat(2,minmax(0,1fr))}
.mo-buckets--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.mo-rtable{display:none}
.mo-rlist{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.mo-rv-head .mp-field{width:100%}
.mo-rv-head .mp-field>.sel{width:100%;min-width:0}
.mo-sign .mp-actions>.b{width:100%;justify-content:center}
}
/* NX B5: Darījumi › Izmaksas (owner payouts, the VID month) and the payout sheet (workspace-money-payouts.js) */
.po{display:flex;flex-direction:column;gap:var(--ui-sp-3);min-width:0}
.po-head{justify-content:space-between}
.po-mswitch{display:flex;align-items:center;gap:4px}
.po-mlabel{margin:0;min-width:11ch;text-align:center;font:var(--ui-t-head);color:var(--ui-ink)}
.po-rules{display:flex;align-items:flex-start;gap:6px;margin:0;color:var(--ui-ink-2);font:var(--ui-t-meta);max-width:72ch}
.po-rules>svg{flex:none;width:14px;height:14px;margin-top:2px}
.po-vid-h{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--ui-sp-2)}
.po-vid-h .tag{display:inline-flex;align-items:center;gap:4px}
.po-vid-h .tag svg{width:12px;height:12px}
.po-due>svg{width:14px;height:14px}
.po-table .num,.po-calc .num{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}
.po-table tfoot th,.po-table tfoot td{padding:8px 12px;border-top:1px solid var(--ui-line);background:var(--ui-stone-2);font-weight:620;text-align:start}
.po-table tfoot td{text-align:end}
.po-code{font:var(--ui-t-data);font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ui-ink-2)}
.po-totals{margin:0}
.po-list .rw-t{white-space:normal}
.po-list .rw-t .mp-num{white-space:normal;overflow-wrap:anywhere;min-width:0}
.po-count{color:var(--ui-ink-2);font-weight:400;font-variant-numeric:tabular-nums}
.po-confirm{display:flex;flex-direction:column;gap:var(--ui-sp-2);padding:12px;border:1px solid var(--ui-line);border-radius:var(--ui-r-in);background:var(--ui-wash)}
.po-confirm>p{margin:0;color:var(--ui-ink);font:var(--ui-t-body)}
.po-note,.po-marks{color:var(--ui-ink-2)}
.tag.po-st.is-calculated{color:var(--ui-ink-2)}
.tag.po-st.is-reported{background:var(--ui-pine-tint);border-color:var(--ui-pine);color:var(--ui-ink)}
/* the sheet */
/* PC only: on the phone the sheet stays full screen (dialog.bz-dlg) */
@media (min-width:701px){dialog.po-ed{width:640px}dialog.po-pv{width:780px}}
dialog.po-pv .bz-dlg-b{background:var(--ui-stone-2);padding:16px}
.po-pv-st{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 12px;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.po-sheet{display:flex;flex-direction:column;gap:var(--ui-sp-3)}
.po-owner{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--ui-line);border-radius:var(--ui-r-in);background:var(--ui-wash)}
.po-owner-n{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0;color:var(--ui-ink)}
.po-owner-n>svg,.po-code-line>svg{flex:none;width:16px;height:16px;color:var(--ui-ink-2)}
.po-owner-n .hint{color:var(--ui-ink-2);font:var(--ui-t-meta)}
.po-code-line{display:flex;align-items:center;gap:8px;margin:0;font:var(--ui-t-meta);color:var(--ui-ink-2)}
.po-code-line b{font:var(--ui-t-data);font-variant-numeric:tabular-nums;color:var(--ui-ink)}
.po-code-form .in{font-variant-numeric:tabular-nums}
.po-fields{display:flex;flex-direction:column;gap:var(--ui-sp-2)}
.po-basis{align-self:flex-start}
.po-proven{align-items:center;gap:8px;font:var(--ui-t-body);color:var(--ui-ink)}
.po-gross{max-width:16ch;text-align:end;font-variant-numeric:tabular-nums}
.po-calc{width:100%;border-collapse:collapse;font:var(--ui-t-body);color:var(--ui-ink)}
.po-calc th{padding:6px 0;border:0;background:none;text-align:start;font-weight:400;color:var(--ui-ink-2)}
.po-calc td{padding:6px 0}
.po-calc tr{border-bottom:1px solid var(--ui-line)}
.po-calc .po-iin td{color:var(--ui-ink)}
.po-calc .po-net th,.po-calc .po-net td{padding-top:10px;border-top:2px solid var(--ui-ink);font:var(--ui-t-head);color:var(--ui-ink)}
.po-calc .po-net{border-bottom:0}
.po-rules-from{margin:6px 0 0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.po-blocks{padding:12px;border:1px solid var(--ui-clay-line);border-radius:var(--ui-r-in);background:var(--ui-clay-tint)}
.po-h{display:flex;align-items:center;gap:6px;margin:0 0 6px;font:var(--ui-t-head);color:var(--ui-warn-ink)}
.po-h>svg{width:16px;height:16px}
.po-blocks ul{margin:0;padding-inline-start:20px;color:var(--ui-ink);font:var(--ui-t-meta)}
.po-blocks li+li{margin-top:4px}
dialog.po-ed .bz-dlg-f{align-items:center}
.po-sp{flex:1 1 auto}
.po-confirm-t{flex:1 1 100%;margin:0;color:var(--ui-ink);font:var(--ui-t-body)}
/* PHONE-SEAM (B5): the month switch over the rules line; the sheet's buttons share the bottom line; the gross field full width */
@media (max-width:700px){
  .po-head{flex-direction:column;align-items:stretch}
  .po-mswitch{justify-content:space-between}
  .po-gross{max-width:none}
  .po-basis{align-self:stretch}
  .po-basis>button{flex:1 1 0}
  dialog.po-ed .bz-dlg-f{flex-wrap:wrap}
  dialog.po-ed .bz-dlg-f>.b{flex:1 1 auto;justify-content:center;min-height:44px}
  .po-sp{display:none}
  dialog.po-pv .bz-dlg-b{padding:8px}
}
/* R2-POLISH fix round (decision 276 point 4): Pārskats and Eksports take the Rēķini period chip. In their form row the chip keeps
   its own size (the filter bar's flex basis would turn into height in the phone's column) and the compare tick sits on its line */
.mp-form>.sel.v31-ar-sel{flex:0 0 auto;align-self:flex-start;max-width:min(100%,240px)}
.mo-head .mp-form--row:not(:has(.mp-field)){align-items:center}
.mo-head .mp-form--row:not(:has(.mp-field))>.sel.v31-ar-sel{align-self:center}
@media (max-width:700px){.mo-head .mp-form--row:not(:has(.mp-field)){flex-direction:row;flex-wrap:wrap;align-items:center}}
}

/* /forest/lmf-page-admin.css */
@layer pages{
/* LMF page layout: lmf-page-admin.css, the admin console (decision 279, Plan B's first release; workspace-admin-console.js).
   Area: people (mineral slate) through data-area. Mockups admin-console-mockups B0-B2. Phone changes only in the PHONE-SEAM block. */
.ui-ad{display:grid;gap:16px;min-width:0}
.ui-ad-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ui-ad-head h2{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0;color:var(--ui-ink);font:var(--ui-t-page);letter-spacing:-.01em}
.ui-ad-crumb{margin:0 0 4px;color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-ad-crumb a{display:inline-flex;align-items:center;gap:4px;color:inherit;text-decoration:underline;text-decoration-color:var(--ui-lk-line);text-underline-offset:3px}
.ui-ad-scope{padding:3px 8px;border-radius:999px;background:var(--ui-a-soft);color:var(--ui-a-ink);font:var(--ui-t-micro);letter-spacing:.02em}
.ui-ad-acts{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-gap)}
.ui-ad-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px;align-items:start}
.ui-ad-side{display:grid;gap:2px;position:sticky;top:12px}
.ui-ad-g{margin:12px 0 4px;padding:0 10px;color:var(--ui-muted);font:var(--ui-t-head)}
.ui-ad-g:first-child{margin-top:0}
.ui-ad-nav{display:flex;align-items:center;gap:8px;min-height:var(--ui-h-m);padding:0 10px;border-radius:var(--ui-r-in);color:var(--ui-ink);font:var(--ui-t-row);text-decoration:none}
.ui-ad-nav:hover{background:var(--ui-wash)}
.ui-ad-nav:focus-visible{outline:2px solid var(--ui-a);outline-offset:1px}
.ui-ad-nav.is-on{background:var(--ui-a-soft);color:var(--ui-a-ink);font-weight:620}
.ui-ad-main{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
.ui-ad-panel{min-width:0;overflow:hidden;border:1px solid var(--ui-line);border-radius:var(--ui-r-card);background:var(--ui-surface);box-shadow:var(--ui-card-sh)}
.ui-ad-pad{padding:14px 18px}
.ui-ad-ph{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--ui-line)}
.ui-ad-ph h3{margin:0;color:var(--ui-ink);font:var(--ui-t-step)}
.ui-ad-ph p{margin:2px 0 0;color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-ad-foot{margin:0;padding:10px 18px;border-top:1px solid var(--ui-line);background:var(--ui-wash);color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-ad-note{display:flex;gap:10px;align-items:flex-start;padding:10px 14px;border:1px solid var(--ui-line);border-radius:var(--ui-r-pop);background:var(--ui-wash);color:var(--ui-ink-2);font:var(--ui-t-body)}
.ui-ad-note p{margin:0;max-width:75ch;line-height:1.5}
.ui-ad-note b{color:var(--ui-ink);font-weight:620}
.ui-ad-note svg{flex:none;margin-top:3px}
.ui-ad-note[data-k=warn]{border-color:var(--ui-warn-tint);background:var(--ui-warn-tint);color:var(--ui-warn-ink)}
.ui-ad-note[data-k=warn] b{color:var(--ui-warn-ink)}
.ui-ad-done{margin:0;padding:8px 12px;border-radius:var(--ui-r-pop);background:var(--ui-pine-tint);color:var(--ui-pine);font:var(--ui-t-row)}
.ui-ad-loading,.ui-ad-empty{margin:0;padding:22px 18px;color:var(--ui-muted);font:var(--ui-t-body)}
.ui-ad-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.ui-ad-search{position:relative;display:flex;align-items:center;flex:1 1 220px;max-width:340px;margin:0}
.ui-ad-search svg{position:absolute;left:11px;color:var(--ui-muted);pointer-events:none}
.ui-ad-search .in{width:100%;padding-left:32px}
.ui-ad-chips{display:flex;flex-wrap:wrap;gap:6px}
.ui-ad-chip{display:inline-flex;align-items:center;gap:6px;min-height:var(--ui-h-s);padding:0 11px;border:1px solid var(--ui-line-2);border-radius:999px;background:var(--ui-surface);color:var(--ui-ink-2);font:var(--ui-t-row);font-size:12px;white-space:nowrap;cursor:pointer}
.ui-ad-chip:hover{background:var(--ui-wash)}
.ui-ad-chip:focus-visible{outline:2px solid var(--ui-a);outline-offset:1px}
.ui-ad-chip[aria-pressed=true]{border-color:transparent;background:var(--ui-a-soft);color:var(--ui-a-ink)}
.ui-ad-w{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:5px;background:var(--ui-stone-2);color:var(--ui-ink);font:var(--ui-t-micro)}
.ui-ad-t{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.ui-ad-t th{padding:9px 12px;border-bottom:1px solid var(--ui-line);background:var(--ui-stone-2);color:var(--ui-ink-2);font:var(--ui-t-head);text-align:left;white-space:nowrap}
.ui-ad-t td{padding:10px 12px;border-bottom:1px solid var(--ui-line);color:var(--ui-ink);font:var(--ui-t-body);vertical-align:middle}
.ui-ad-t th:first-child,.ui-ad-t td:first-child{padding-left:18px}
.ui-ad-t tr:last-child td{border-bottom:0}
.ui-ad-row{cursor:pointer}
.ui-ad-row:hover>td{background:var(--ui-wash)}
.ui-ad-t .num{text-align:right}
.ui-ad-go{text-align:right;white-space:nowrap}
.ui-ad-go .b{text-decoration:none}
.ui-ad-who{display:flex;align-items:center;gap:10px;min-width:0}
.ui-ad-who b{display:block;font:var(--ui-t-row);white-space:nowrap}
.ui-ad-who small{display:block;color:var(--ui-muted);font:var(--ui-t-meta);white-space:nowrap}
.ui-ad-av{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--ui-slate-tint);color:var(--ui-slate-ink);font:var(--ui-t-micro);font-weight:700}
.ui-ad-av[data-k=tech]{background:var(--ui-stone-3);color:var(--ui-ink-2)}
.ui-ad-when b{display:block;font:var(--ui-t-data)}
.ui-ad-when small{display:block;color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-ad-none{color:var(--ui-muted);font:var(--ui-t-meta);font-style:italic}
.ui-ad-n,.ui-ad-data{font:var(--ui-t-data)}
.ui-ad-st{white-space:normal}
.ui-ad-tag{display:inline-flex;align-items:center;gap:5px;min-height:20px;margin:2px 6px 2px 0;padding:0 8px;border-radius:5px;background:var(--ui-stone-2);color:var(--ui-ink-2);font:var(--ui-t-micro);white-space:nowrap}
.ui-ad-tag[data-k=ok]{background:var(--ui-pine-tint);color:var(--ui-pine)}
.ui-ad-tag[data-k=bad]{background:var(--ui-clay-tint);color:var(--ui-clay)}
.ui-ad-tag[data-k=slate]{background:var(--ui-slate-tint);color:var(--ui-slate-ink)}
.ui-ad-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.ui-ad-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ui-ad-dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 20px;margin:0}
.ui-ad-dl div{min-width:0}
.ui-ad-dl dt{margin-bottom:3px;color:var(--ui-muted);font:var(--ui-t-head)}
.ui-ad-dl dd{margin:0;color:var(--ui-ink);font:var(--ui-t-data)}
.ui-ad-dl dd.is-bad{color:var(--ui-clay)}
.ui-ad-dl dd.is-r{font-weight:400}
.ui-ad-sess{display:grid;margin:0;padding:0;list-style:none}
.ui-ad-sess li{display:grid;grid-template-columns:minmax(0,1.4fr) 1fr 1fr auto;gap:16px;align-items:center;padding:12px 18px;border-bottom:1px solid var(--ui-line)}
.ui-ad-sess li:last-child{border-bottom:0}
.ui-ad-dev{display:flex;align-items:center;gap:10px;min-width:0}
.ui-ad-dev b{display:block;font:var(--ui-t-row)}
.ui-ad-dev small{display:block;color:var(--ui-a-ink);font:var(--ui-t-meta)}
.ui-ad-plate{display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid var(--ui-line);border-radius:var(--ui-r-in);background:var(--ui-wash);color:var(--ui-ink-2)}
.ui-ad-confirm{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid var(--ui-clay-line);border-radius:var(--ui-r-pop);background:var(--ui-clay-tint);color:var(--ui-ink)}
.ui-ad-confirm[data-k=one]{border-color:var(--ui-line);background:var(--ui-wash)}
.ui-ad-confirm p{margin:0;max-width:70ch;font:var(--ui-t-body);line-height:1.45}
.ui-ad-hist{display:grid;margin:0;padding:4px 18px;list-style:none}
.ui-ad-hist li{display:grid;grid-template-columns:110px 160px minmax(0,1fr);gap:12px;align-items:start;padding:10px 0;border-bottom:1px solid var(--ui-line)}
.ui-ad-hist li:last-child{border-bottom:0}
.ui-ad-hist li.ui-ad-start{grid-template-columns:1fr;color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-ad-t1 b{display:block;font:var(--ui-t-data)}
.ui-ad-t1 small{display:block;color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-ad-actor{font:var(--ui-t-row)}
.ui-ad-what{display:grid;gap:4px;min-width:0}
.ui-ad-diff{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;font:var(--ui-t-data)}
.ui-ad-diff s{color:var(--ui-muted);font-weight:400}
.ui-ad-diff svg{color:var(--ui-muted)}
.ui-ad-why{color:var(--ui-ink-2);font:var(--ui-t-meta)}
.ui-ad-why span{color:var(--ui-muted)}

/* Phase 4 «Pārskats» (workspace-admin-overview.js; mockup B3): counts as a quiet two-column list of links, alerts with their
   level and one «Atzīmēt kā redzētu», the three health signals in a row. Same panels, tags and chips as the pages above. */
.ui-ad-tag[data-k=warn]{background:var(--ui-warn-tint);color:var(--ui-warn-ink)}
.ui-ad-ph h3 .ui-ad-w{margin-left:8px;vertical-align:2px}
.ui-ao-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:start}
.ui-ao-fl-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:0;list-style:none}
.ui-ao-fl-list li{min-width:0;border-bottom:1px solid var(--ui-line)}
.ui-ao-fl-list li:nth-child(odd){border-right:1px solid var(--ui-line)}
.ui-ao-fl-list li:nth-last-child(-n+2){border-bottom:0}
.ui-ao-fact{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;align-items:center;min-height:56px;padding:10px 14px 10px 18px;color:var(--ui-ink);text-decoration:none}
.ui-ao-fact>svg:first-child{color:var(--ui-muted)}
.ui-ao-fact>svg:last-child{color:var(--ui-line-2);transition:color .15s ease-out,transform .15s ease-out}
.ui-ao-fact:hover{background:var(--ui-wash)}
.ui-ao-fact:hover>svg:last-child{color:var(--ui-ink-2);transform:translateX(2px)}
.ui-ao-fact:focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
.ui-ao-fl{color:var(--ui-ink-2);font:var(--ui-t-body);line-height:1.3}
.ui-ao-fl small{display:block;color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-ao-fv{text-align:right;white-space:nowrap}
.ui-ao-fv small{display:block;color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-ao-n{font:var(--ui-t-data);font-variant-numeric:tabular-nums}
.ui-ao-fact[data-k=bad] .ui-ao-n{color:var(--ui-clay)}
.ui-ao-quiet{display:flex;align-items:center;gap:10px;margin:0;padding:16px 18px;border-bottom:1px solid var(--ui-line);color:var(--ui-ink-2);font:var(--ui-t-body)}
.ui-ao-quiet svg{flex:none;color:var(--ui-pine)}
.ui-ad-panel>.ui-ao-quiet:last-child{border-bottom:0}
.ui-ao-alerts{display:grid;margin:0;padding:0;list-style:none}
.ui-ao-alerts li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 18px;border-bottom:1px solid var(--ui-line)}
.ui-ao-alerts li:last-child{border-bottom:0}
.ui-ao-alerts li[data-level=high]{background:color-mix(in srgb,var(--ui-clay-tint) 35%,transparent)}
.ui-ao-lv{margin:0;min-width:76px;justify-content:center}
.ui-ao-at{min-width:0}
.ui-ao-at b{display:block;color:var(--ui-ink);font:var(--ui-t-row)}
.ui-ao-at small{display:block;margin-top:2px;color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-ao-sep{margin:0 6px;color:var(--ui-line-2)}
.ui-ao-who{color:var(--ui-ink-2);text-decoration:underline;text-decoration-color:var(--ui-lk-line);text-underline-offset:3px}
.ui-ao-who:hover{color:var(--ui-ink)}
.ui-ao-alerts .b{white-space:nowrap}
.ui-ao-done{margin:12px 18px 0}
.ui-ao-seen{border-top:1px solid var(--ui-line)}
.ui-ao-seen summary{display:flex;align-items:center;gap:8px;min-height:var(--ui-h-m);padding:0 18px;color:var(--ui-ink-2);font:var(--ui-t-row);cursor:pointer}
.ui-ao-seen summary:hover{background:var(--ui-wash)}
.ui-ao-seen summary:focus-visible{outline:2px solid var(--ui-a);outline-offset:-2px}
.ui-ao-seen .ui-ao-alerts li{grid-template-columns:auto minmax(0,1fr);background:none}
.ui-ao-seen .ui-ao-at b{color:var(--ui-ink-2);font-weight:400}
.ui-ao-health{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:0;list-style:none}
.ui-ao-health li{display:grid;gap:10px;align-content:start;padding:14px 18px;border-right:1px solid var(--ui-line)}
.ui-ao-health li:last-child{border-right:0}
.ui-ao-hn b{display:block;color:var(--ui-ink);font:var(--ui-t-row)}
.ui-ao-hn small{display:block;margin-top:2px;color:var(--ui-muted);font:var(--ui-t-meta);line-height:1.4}
.ui-ao-hs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.ui-ao-hs .ui-ad-tag{margin:0}
.ui-ao-hs small{color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-ao-small,.ui-ao-intro{margin:0;max-width:80ch;color:var(--ui-muted);font:var(--ui-t-meta);line-height:1.5}
.ui-ao-intro{color:var(--ui-ink-2);font:var(--ui-t-body)}
.ui-ao-long{color:var(--ui-clay)}
@media (prefers-reduced-motion:reduce){.ui-ao-fact>svg:last-child{transition:none}.ui-ao-fact:hover>svg:last-child{transform:none}}
@media (max-width:1100px){.ui-ao-grid{grid-template-columns:minmax(0,1fr)}}

/* PHONE-SEAM (up to 700 px, checked at 390 and 320): the side list becomes a row of links; tables become one card per row,
   each value under its own label (data-l); session rows stack with the button full width */
@media (max-width:700px){
.ui-ad-layout{grid-template-columns:minmax(0,1fr);gap:14px}
.ui-ad-side{position:static;display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;padding-bottom:2px}
.ui-ad-g{display:none}
.ui-ad-nav{flex:none;min-height:var(--ui-h-m);border:1px solid var(--ui-line-2);border-radius:999px}
.ui-ad-head{align-items:flex-start}
.ui-ad-acts{width:100%}
.ui-ad-acts .b{flex:1 1 0}
.ui-ad-search{max-width:none;flex-basis:100%}
.ui-ad-t thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ui-ad-t,.ui-ad-t tbody,.ui-ad-t tr,.ui-ad-t td{display:block}
.ui-ad-t tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;padding:12px 14px;border-bottom:1px solid var(--ui-line)}
.ui-ad-t tr:last-child{border-bottom:0}
.ui-ad-t td,.ui-ad-t th:first-child,.ui-ad-t td:first-child{padding:0;border:0}
.ui-ad-t td:first-child{grid-column:1/-1}
.ui-ad-t td[data-l]::before{content:attr(data-l);display:block;margin-bottom:2px;color:var(--ui-muted);font:var(--ui-t-head)}
.ui-ad-t td:first-child[data-l]::before{display:none}
.ui-ad-t td.num{text-align:left}
.ui-ad-t td.ui-ad-go{position:absolute;top:10px;right:12px}
.ui-ad-t tr{position:relative}
.ui-ad-who b,.ui-ad-who small{white-space:normal}
.ui-ad-dl{grid-template-columns:1fr 1fr}
.ui-ad-sess li{grid-template-columns:1fr 1fr;gap:10px 12px;padding:12px 14px}
.ui-ad-sess .ui-ad-dev{grid-column:1/-1}
.ui-ad-sess .b{grid-column:1/-1;width:100%}
.ui-ad-hist{padding:4px 14px}
.ui-ad-hist li{grid-template-columns:1fr;gap:4px}
.ui-ad-ph{flex-wrap:wrap;padding:12px 14px}
.ui-ad-pad{padding:12px 14px}
.ui-ad-foot{padding:10px 14px}
.ui-ao-fl-list{grid-template-columns:minmax(0,1fr)}
.ui-ao-fl-list li:nth-child(odd){border-right:0}
.ui-ao-fl-list li:nth-last-child(2){border-bottom:1px solid var(--ui-line)}
.ui-ao-fact{padding:10px 12px 10px 14px}
.ui-ao-quiet{padding:14px}
.ui-ao-alerts li{grid-template-columns:auto minmax(0,1fr);padding:12px 14px}
.ui-ao-alerts li .b{grid-column:1/-1;width:100%;justify-content:center}
.ui-ao-done{margin:12px 14px 0}
.ui-ao-seen summary{padding:0 14px}
.ui-ao-health{grid-template-columns:minmax(0,1fr)}
.ui-ao-health li{border-right:0;border-bottom:1px solid var(--ui-line);padding:12px 14px}
.ui-ao-health li:last-child{border-bottom:0}
.ui-ad-head .ui-ad-acts .ui-ad-chips{width:100%}
.ui-ad-head .ui-ad-acts .ui-ad-chip{flex:1 1 0;justify-content:center}
}
}

/* /forest/lmf-page-history.css */
@layer pages{
/* LMF page layout: lmf-page-history.css, admin console phase 2 (decision 279; workspace-setting-history.js): «Pēdējās izmaiņas»
   under every shared setting and the one changes list in Administrēšana › Izmaiņas. The panel, rows and table come from the admin
   console's own sheet (lmf-page-admin.css: ui-ad-panel, ui-ad-hist, ui-ad-diff, ui-ad-t); this sheet adds only what is new.
   Area: people (mineral slate) through data-area. Phone changes only in the PHONE-SEAM block. */
.ui-sh-wrap{display:grid;gap:12px;margin-top:20px;min-width:0}
.ui-sh-wrap:empty{display:none}
.ui-sh .ui-ad-ph .lk{flex:none;font:var(--ui-t-row)}
.ui-sh-body{min-width:0}
.ui-sh .ui-ad-hist li{grid-template-columns:96px 150px minmax(0,1fr)}
.ui-sh-t1 b,.ui-sh .ui-ad-t1 b{white-space:nowrap}
.ui-sh-who{display:grid;gap:2px;min-width:0}
.ui-sh-who small{color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-ad-what{line-height:1.45}
.ui-ad-what .ui-ad-diff+.ui-ad-diff{margin-left:0}
.ui-sh-f{color:var(--ui-ink-2);font-weight:400}
.ui-sh-arr{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ui-ad-diff b{font-weight:620;overflow-wrap:anywhere}
.ui-ad-diff s{text-decoration-thickness:1px;overflow-wrap:anywhere}
.ui-sh-empty,.ui-sh-more{margin:0;padding:14px 18px;color:var(--ui-muted);font:var(--ui-t-body)}
.ui-sh-more{padding-top:0;font:var(--ui-t-meta)}
.ui-sh-mk{padding:12px 18px 4px;border-bottom:1px solid var(--ui-line)}
.ui-sh-mk:last-child{border-bottom:0}
.ui-sh-mk h4{margin:0;color:var(--ui-ink);font:var(--ui-t-row);font-weight:620}
.ui-sh-mk .ui-ad-hist{padding:0}
.ui-sh-mk .ui-ad-t1{display:grid;justify-items:start;gap:4px}
.ui-sh-why{display:grid;gap:4px;max-width:520px}
.ui-sh-why .in{width:100%}
.ui-sh-why .hint{margin:0;color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-sh-stale{margin:0}
.ui-sh-stale[hidden]{display:none}
/* Administrēšana › Izmaiņas */
.ui-sh-page{display:grid;gap:14px;min-width:0}
.ui-sh-intro{margin:0;max-width:75ch;color:var(--ui-ink-2);font:var(--ui-t-body)}
.ui-sh-tools{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px;margin:0}
.ui-sh-fi{display:grid;gap:4px;min-width:0}
.ui-sh-fi span{color:var(--ui-muted);font:var(--ui-t-head)}
.ui-sh-fi .sel{min-width:176px}
.ui-sh-fi .in{min-width:140px}
.ui-sh-quiet{padding-top:10px;border-top:1px solid var(--ui-line)}
.ui-sh-ta{display:flex;flex-wrap:wrap;gap:var(--ui-gap);margin-left:auto}
.ui-sh-ta .b .icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ui-sh-msg{margin:0;min-height:0;color:var(--ui-ink-2);font:var(--ui-t-meta)}
.ui-sh-msg:empty{display:none}
.ui-sh-t td{vertical-align:top}
.ui-sh-t td:nth-child(1){width:96px}
.ui-sh-t td:nth-child(2){width:150px}
.ui-sh-t td:nth-child(5){max-width:28ch;color:var(--ui-ink-2)}
.ui-sh-t1{display:grid}
.ui-sh-t1 small{color:var(--ui-muted);font:var(--ui-t-meta)}
.ui-sh-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.ui-sh-pg{display:flex;gap:var(--ui-gap)}
.ui-sh-legal{margin:0;max-width:75ch;color:var(--ui-muted);font:var(--ui-t-meta);line-height:1.5}

/* PHONE-SEAM (up to 700 px, checked at 390): history rows stack (when and who on one line, the change under them); the filters
   take the full width two by two; the table is the admin sheet's one card per row */
@media (max-width:700px){
.ui-sh-wrap{margin-top:16px}
.ui-sh .ui-ad-hist li{grid-template-columns:auto minmax(0,1fr);gap:2px 12px}
.ui-sh .ui-ad-what{grid-column:1/-1;margin-top:4px}
.ui-sh .ui-ad-t1{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}
.ui-sh-mk{padding:12px 14px 4px}
.ui-sh-empty{padding:12px 14px}
.ui-sh-more{padding:0 14px 12px}
.ui-sh-tools{display:grid;grid-template-columns:1fr 1fr}
.ui-sh-fi .sel,.ui-sh-fi .in{min-width:0;width:100%}
.ui-sh-fi:nth-child(-n+2){grid-column:1/-1}
.ui-sh-ta{grid-column:1/-1;margin-left:0}
.ui-sh-ta .b{flex:1 1 0}
.ui-sh-t td:nth-child(n){width:auto;max-width:none}
.ui-sh-t td.ui-ad-what,.ui-sh-t td:nth-child(5){grid-column:1/-1}
.ui-sh-pager .ui-sh-pg{width:100%}
.ui-sh-pager .ui-sh-pg .b{flex:1 1 0}
}
}

/* /forest/lmf-page-admin-settings.css */
@layer pages{
/* LMF page layout: lmf-page-admin-settings.css, owned by the admin console phase 3 (decision 279): Iestatījumi › Administrēšana ›
   «Visi iestatījumi» (workspace-admin-settings.js). Family tokens only. A PC reads one table: rows under their group, the group's
   name as a quiet band; a search turns it into one flat list. On a phone each setting is a small card: name, value, then the
   rest as labelled lines. Read-only: no field here saves anything. */

.as{display:flex;flex-direction:column;gap:14px;min-width:0}
.as-head{display:flex;align-items:center;gap:10px;min-width:0}
.as-head h2{margin:0;font:var(--ui-t-win);letter-spacing:-.015em;color:var(--ui-ink)}
.as-head .tag:empty{display:none}
.as-lead{margin:-6px 0 0;max-width:68ch;color:var(--ui-ink-2);font:var(--ui-t-body)}

/* ---- search, group and filters ---- */
.as-ctl{display:flex;flex-direction:column;gap:10px;min-width:0}
.as-bar{display:flex;gap:8px;min-width:0}
.as-q{position:relative;flex:1 1 auto;min-width:0;display:flex}
.as-q>.v31-i{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--ui-muted);pointer-events:none}
.as-q .in{flex:1;min-width:0;padding-left:34px}
.as-gr{flex:none;display:flex}
.as-gr .sel{max-width:240px}
.as-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.as-chips .b .tag{height:18px;padding:0 6px;background:var(--ui-stone-2)}
.as-chips .b[aria-pressed="true"] .tag{background:var(--ui-pine-tint);color:var(--ui-pine)}
.as-sep{width:1px;height:18px;margin:0 4px;background:var(--ui-line)}

/* ---- the list ---- */
.as-status{margin:0;color:var(--ui-muted);font:var(--ui-t-micro)}
.as-scroll{min-width:0;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-box-bg);box-shadow:var(--ui-card-sh);overflow:hidden}
.as-t{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}
.as-t col{width:auto}
.as-t thead th{position:sticky;top:0;z-index:1;padding:9px 12px;background:var(--ui-canvas);border-bottom:1px solid var(--ui-line);color:var(--ui-muted);font:var(--ui-t-micro);text-align:left;white-space:nowrap}
.as-t thead th:nth-child(1){width:26%}
.as-t thead th:nth-child(2){width:17%}
.as-t thead th:nth-child(3){width:21%}
.as-t thead th:nth-child(4){width:13%}
.as-t thead th:nth-child(5){width:12%}
.as-t thead th:nth-child(6){width:11%}
.as-gh th{padding:14px 12px 6px;border-top:1px solid var(--ui-line);text-align:left;font:var(--ui-t-head);color:var(--ui-ink-2)}
.as-g:first-of-type .as-gh th{border-top:0}
.as-gh th>span:first-child{margin-right:8px}
.as-row>*{padding:9px 12px;border-top:1px solid var(--ui-line-2);vertical-align:top;text-align:left;font:var(--ui-t-body);color:var(--ui-ink);min-width:0;overflow-wrap:anywhere}
.as-gh+.as-row>*{border-top:0}
.as-row>*{background:transparent}
.as-row:hover>*{background:var(--ui-canvas)}
.as-name{font-weight:620}
.as-t .as-row>th.as-name{border-top:1px solid var(--ui-line-2);background:transparent}
.as-gh+.as-row>th.as-name{border-top:0}
.as-t .as-row:hover>th.as-name{background:var(--ui-canvas)}
.as-n{display:inline-flex;align-items:flex-start;gap:4px}
.as-name small{display:block;margin-top:2px;color:var(--ui-muted);font:var(--ui-t-micro)}
.as-help{--_h:22px;flex:none;margin:-2px 0 -2px 2px;min-width:22px;opacity:.55}
.as-row:hover .as-help,.as-help:focus-visible{opacity:1}
.as-v{display:inline-flex;align-items:baseline;gap:5px;flex-wrap:wrap}
.as-v>.v31-i{align-self:center;flex:none}
.as-v.q{color:var(--ui-muted)}
.as-v.m-lock>.v31-i,.as-v.m-user>.v31-i{color:var(--ui-muted)}
.as-v.m-warn{color:var(--ui-warn-ink)}
.as-def{color:var(--ui-muted);font:var(--ui-t-micro)}
.as-wh{display:block;min-width:0}
.as-wh>span{display:block;color:var(--ui-ink-2)}
.as-where code{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-muted);font:var(--ui-t-micro);font-family:inherit}
.as-who{color:var(--ui-ink-2)}
.as-pl{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.as-api{color:var(--ui-muted);font:var(--ui-t-micro)}
.as-go{display:inline-flex;align-items:center;gap:2px;min-height:24px;font:var(--ui-t-micro);font-weight:600}
.as-go .v31-i{width:12px;height:12px}
.as-ch{color:var(--ui-ink-2);white-space:nowrap}
.as-ch.q{color:var(--ui-muted);white-space:normal;font:var(--ui-t-micro)}

/* ---- states ---- */
.as-load{display:flex;flex-direction:column;gap:10px;padding:6px 0}
.as-load .v31-skel{display:block;height:14px}
.as-msg,.as-empty{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:18px;border:1px dashed var(--ui-line);border-radius:12px}
.as-msg p,.as-empty p{margin:0;font:var(--ui-t-body)}
.as-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0;color:var(--ui-muted);font:var(--ui-t-micro)}
.as-foot>.v31-i{flex:none}
.as-foot>span:not(.as-at){flex:1 1 32ch}
.as-at{white-space:nowrap}

/* ---- phone: each setting a small card ---- */
@media (max-width:700px){
  .as-bar{flex-direction:column}
  .as-gr .sel{max-width:none;width:100%}
  .as-gr{width:100%}
  .as-chips{flex-wrap:nowrap;overflow-x:auto;margin:0 -2px;padding:2px 2px 6px;scrollbar-width:thin}
  .as-chips .b{flex:none}
  .as-scroll{border:0;background:none;box-shadow:none;border-radius:0;overflow:visible}
  .as-t,.as-t tbody,.as-t tr,.as-t th,.as-t td{display:block;width:auto}
  .as-t thead{display:none}
  .as-gh th{padding:16px 2px 8px;border:0;background:none}
  .as-row{margin:0 0 8px;padding:12px 14px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-box-bg);box-shadow:var(--ui-card-sh)}
  .as-row>*{padding:0;border:0}
  .as-row:hover>*{background:none}
  .as-t .as-row>th.as-name{margin-bottom:6px;border-top:0;background:none}
  .as-row>td{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px;padding:5px 0;border-top:1px solid var(--ui-line-2)}
  .as-row>td::before{content:attr(data-l);color:var(--ui-muted);font:var(--ui-t-micro);padding-top:2px}
  .as-row>td.as-val{border-top:0}
  .as-where code{white-space:normal}
  .as-pl{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}
  .as-go{min-height:32px}
  .as-help{opacity:1}
}
}

