:root{--bg:#f5f5f1;--paper:#fff;--ink:#242a25;--muted:#737870;--line:#e2e5de;--accent:#d7f49e;--green:#346542;--red:#a74336;--amber:#8c601c;--radius:15px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #83a950;outline-offset:3px}a{color:inherit}button{border:1px solid var(--line);background:white;border-radius:9px;color:var(--ink);padding:11px 15px;min-height:43px;font-weight:600}button:hover{background:#f0f3eb}button.primary{background:var(--ink);border-color:var(--ink);color:#fff}button.primary:hover{background:#3d4a3d}button.accent{background:var(--accent);border-color:var(--accent)}button.danger{color:var(--red)}.app-shell{display:flex;min-height:100vh}.sidebar{width:224px;flex-shrink:0;padding:39px 21px 25px;background:#fff;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{font-size:38px;font-weight:800;letter-spacing:-2.1px;text-decoration:none;line-height:1;margin:0 14px 50px}.brand span{display:block;font-size:9px;letter-spacing:4.5px;margin:10px 0 0 3px;font-weight:600}.workspace-label{font-size:9px;letter-spacing:1.3px;color:var(--muted);margin:0 12px 15px}nav{display:flex;flex-direction:column;gap:7px}nav button{border:0;text-align:left;background:none;font-weight:500;color:var(--muted);display:flex;gap:12px;align-items:center;padding:13px}.nav-icon{font-size:19px;line-height:1;width:23px;text-align:center}nav button.active{background:#ecf2e5;color:#263f29;font-weight:650}.sidebar-bottom{margin-top:auto;padding:22px 13px 0;border-top:1px solid var(--line);font-size:12px}.sidebar-bottom p{color:var(--muted);line-height:1.8}.sidebar-bottom a{font-size:11px;text-decoration:none;display:block;margin-top:14px}.demo-dot{width:7px;height:7px;background:#82a64e;border-radius:50%;display:inline-block;margin-right:6px}main{margin-left:224px;flex:1;min-width:0}.topbar{height:83px;border-bottom:1px solid var(--line);padding:0 42px;display:flex;align-items:center;justify-content:space-between;background:#fafbf7}.crumb{font-size:12px;color:var(--muted)}.crumb span{margin:0 15px;color:#bec5b7}.crumb strong{color:var(--ink);font-weight:500}.top-right{display:flex;align-items:center;gap:19px}.connection{font-size:11px;color:var(--muted)}.connection:before{content:"";display:inline-block;width:6px;height:6px;background:#84a654;border-radius:50%;margin-right:7px}.avatar{background:#e9edde;border:1px solid #dde3d0;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;font-size:11px;font-weight:700}.mobile-brand{display:none}.content{max-width:1530px;padding:39px 42px 20px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:var(--muted);margin:0 0 12px;font-weight:600}h1{font-size:32px;line-height:1.2;letter-spacing:-1px;margin:0 0 10px;font-weight:650}.subtitle{color:var(--muted);font-size:12px;line-height:1.6;margin:0}.heading>button{white-space:nowrap;font-size:12px}.scopebar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 23px}.segmented{display:flex;background:#eaece5;padding:4px;border-radius:10px;gap:3px}.segmented button{font-size:11px;padding:7px 13px;border:0;min-height:31px;background:transparent;color:#747b6d;white-space:nowrap}.segmented button.selected{background:#fff;color:var(--ink);box-shadow:0 1px 4px #0000000c}.scopebar p{color:var(--muted);font-size:10px;text-align:right}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:25px}.stat{border:1px solid var(--line);border-radius:var(--radius);padding:21px 23px;background:var(--paper)}.stat.highlight{background:#e8efd9;border-color:#dce7c9}.stat-label{font-size:11px;color:#68745e;display:flex;align-items:center;justify-content:space-between;gap:10px}.stat-value{display:block;font-size:28px;font-weight:600;letter-spacing:-.9px;margin:13px 0 7px;font-variant-numeric:tabular-nums}.stat-note{font-size:10px;color:var(--muted);line-height:1.6}.toolbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:15px}.search{flex:1;min-width:190px;background:#fff}.toolbar input,.toolbar select{height:41px;font-size:11px}.toolbar select{max-width:165px}.filter-more{font-size:11px}.price-filters{display:flex;gap:8px;align-items:center;margin-bottom:15px}.price-filters input{width:135px;font-size:12px}.results-line{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted);margin:21px 0 13px}.results-line b{color:#55644b;font-weight:500}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.device{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;text-align:left;padding:0;display:block;min-width:0;transition:border-color .15s,box-shadow .15s}.device:hover{background:#fff;border-color:#b4c4a1;box-shadow:0 5px 15px #26322609}.device-photo{height:210px;position:relative;background:#e8ebe3;overflow:hidden}.device-photo img{width:100%;height:100%;object-fit:cover;object-position:center 52%;display:block}.photo-empty{height:100%;display:grid;place-items:center;color:#85917c;font-size:12px;font-weight:400}.photo-status{position:absolute;top:12px;left:12px;background:#fffffff2;border-radius:6px;padding:5px 8px;font-size:9px;font-weight:600;box-shadow:0 1px 6px #0001}.photo-status.sold{background:#e9ebe7;color:#64715e}.photo-status.reserved{background:#fff3dc;color:#8d671e}.photo-note{position:absolute;bottom:8px;left:10px;background:#1b251bc4;color:#fff;font-size:8px;letter-spacing:.3px;padding:4px 6px;border-radius:4px;font-weight:400}.device-body{padding:17px 17px 15px}.device-id{font-size:9px;color:var(--muted);letter-spacing:.4px;font-weight:500;display:flex;justify-content:space-between}.device h2{font-size:16px;font-weight:650;margin:9px 0 6px;letter-spacing:-.2px}.device-meta{font-size:10px;color:var(--muted);line-height:1.7;font-weight:400;overflow-wrap:anywhere}.device-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:16px;padding-top:13px;border-top:1px solid #eef0eb}.price{font-size:19px;font-weight:650;letter-spacing:-.6px}.age{font-size:9px;color:var(--muted);font-weight:500}.age.stale{color:var(--amber);background:#fcf3e3;padding:5px 6px;border-radius:5px}.pub-dot{font-size:9px;color:var(--green)}footer{font-size:10px;color:#89907f;display:flex;justify-content:space-between;padding:30px 0 8px;gap:15px;border-top:1px solid var(--line);margin-top:32px}.empty{padding:55px 20px;text-align:center;border:1px dashed #cdd4c5;border-radius:var(--radius);background:#fafbf7}.empty h2{font-size:19px;margin:0 0 10px}.empty p{font-size:12px;line-height:1.7;color:var(--muted);max-width:420px;margin:0 auto 18px}.loading{padding:70px;text-align:center;color:var(--muted)}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:23px;margin:17px 0}.panel h2{font-size:17px;margin:0 0 7px;font-weight:600}.panel>p{font-size:11px;color:var(--muted);line-height:1.8}.period{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.period label{font-size:11px;max-width:190px}.period input{margin-top:6px}.report-row{padding:17px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.report-row:first-child{border-top:0}.report-row strong{font-size:13px}.report-row p{margin:5px 0 0;font-size:10px;color:var(--muted)}.report-row .amount{font-size:18px;font-weight:650;color:var(--green)}.bar{height:4px;background:#e5eed9;border-radius:4px;margin-top:10px;grid-column:1/-1;overflow:hidden}.bar i{height:100%;display:block;background:#9abc6b}.request-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.request-group{background:white;padding:22px;border:1px solid var(--line);border-radius:var(--radius)}.request-group h2{font-size:18px;margin:0 0 8px}.request-count{font-size:10px;background:#ebf2df;color:var(--green);border-radius:6px;padding:6px 8px;display:inline-block}.request-item{display:flex;gap:10px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:15px;padding-top:13px;font-size:12px}.request-item small{display:block;color:var(--muted);margin-top:5px;font-size:10px;overflow-wrap:anywhere}.request-item button{font-size:10px;padding:7px 10px;min-height:35px}.ad-table{width:100%;border-collapse:collapse;font-size:12px}.ad-table th{text-align:left;font-size:10px;color:var(--muted);font-weight:500}.ad-table td,.ad-table th{padding:15px 10px;border-bottom:1px solid var(--line)}.ad-table th:first-child,.ad-table td:first-child{padding-left:0}.ad-table small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.table-scroll{overflow-x:auto}.ad-table button{font-size:10px;min-height:34px;padding:5px 10px}dialog{width:min(720px,calc(100% - 32px));max-height:calc(100dvh - 40px);border:1px solid var(--line);border-radius:20px;padding:0;box-shadow:0 25px 100px #15231230;color:var(--ink);background:var(--bg)}dialog::backdrop{background:#15201270;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:23px 26px;border-bottom:1px solid var(--line);background:white;border-radius:20px 20px 0 0}.dialog-head h2{font-size:20px;margin:0;letter-spacing:-.5px}.dialog-head p{font-size:10px;color:var(--muted);margin:7px 0 0}.close{padding:5px;width:35px;min-height:35px;border:0;background:#f0f2ec;font-size:20px;font-weight:400;flex-shrink:0}.dialog-body{padding:25px 26px}.dialog-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:23px;justify-content:flex-end}.dialog-actions button{font-size:12px}.step-track{display:flex;gap:5px;margin:0 0 24px}.step-track span{height:4px;border-radius:5px;background:#e0e5d8;flex:1}.step-track span.done{background:#6e9252}.step-label{font-size:10px;color:var(--green);margin-bottom:12px}.step-title{font-size:24px;letter-spacing:-.6px;margin:0 0 8px}.step-description{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:23px}.choices{display:flex;gap:8px;flex-wrap:wrap}.choices button{font-size:12px;background:white;font-weight:500}.choices button.chosen{background:#e6f0d6;border-color:#9ebc78;color:#304b26}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}label{display:block;font-size:12px;font-weight:500}label>small{display:block;font-size:10px;line-height:1.6;color:var(--muted);font-weight:400;margin-top:6px}input,select,textarea{border:1px solid #d8ded0;border-radius:8px;background:#fff;color:var(--ink);padding:12px;width:100%;min-width:0}label input,label select,label textarea{margin-top:8px}textarea{resize:vertical;min-height:95px}.full{grid-column:1/-1}.form-error{background:#faece8;color:#9b3d30;border-radius:8px;padding:12px;font-size:12px;line-height:1.7;margin-top:16px}.help{font-size:11px;color:var(--muted);line-height:1.8}.note{background:#eef2e6;border:1px solid #dce5cc;padding:13px 15px;border-radius:9px;font-size:11px;line-height:1.8;color:#586b45;margin:16px 0}.warning{background:#fff3df;border-color:#eaddbb;color:#815d22}.preview-photos{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.preview-photos figure{position:relative;margin:0;width:98px}.preview-photos img{width:98px;height:108px;border-radius:8px;object-fit:cover}.preview-photos button{position:absolute;right:3px;top:3px;padding:0;min-height:25px;width:25px;background:white;font-size:15px}.detail-image{width:100%;height:285px;border-radius:12px;object-fit:cover}.detail-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.detail-facts div{font-size:14px;font-weight:600}.detail-facts span{font-size:10px;color:var(--muted);display:block;margin-bottom:7px;font-weight:400}.detail-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:20px}.detail-buttons button{font-size:11px}.detail-text{font-size:12px;line-height:1.8;color:#65705d;white-space:pre-wrap;overflow-wrap:anywhere}.publication{padding:15px;background:white;border:1px solid var(--line);border-radius:10px;margin-top:20px}.publication h3{font-size:12px;margin:0 0 8px}.publication p{font-size:11px;color:var(--muted);line-height:1.8;margin:0;overflow-wrap:anywhere}.publication a{font-size:11px;display:inline-block;margin-top:10px;color:var(--green)}.publication button{font-size:11px;margin-top:12px}.history{list-style:none;padding:0;font-size:11px;color:var(--muted);line-height:1.7}.history li{padding:9px 0;border-top:1px solid var(--line)}.preview-caption{white-space:pre-wrap;background:white;padding:20px;border-radius:12px;border:1px solid var(--line);font-size:13px;line-height:1.9}.draft-actions{display:flex;gap:8px;margin-top:15px;justify-content:center}.draft-actions button{font-size:11px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10;background:#263325;color:#fff;padding:15px 22px;border-radius:12px;box-shadow:0 4px 25px #0002;max-width:calc(100% - 30px);width:max-content;font-size:12px;line-height:1.7}#toast.error{background:#803c2b}.result-negative{color:var(--red)!important}
@media(min-width:1450px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.device-photo{height:225px}}
@media(max-width:1100px){.sidebar{width:190px;padding-inline:16px}main{margin-left:190px}.content{padding:30px 25px 20px}.topbar{padding-inline:25px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:18px}.stat-value{font-size:24px}.scopebar p{max-width:220px}}
@media(max-width:700px){.sidebar{position:fixed;inset:auto 0 0;width:100%;height:calc(66px + env(safe-area-inset-bottom));padding:5px 10px calc(5px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);z-index:5;background:#fffffff5}.sidebar .brand,.workspace-label,.sidebar-bottom{display:none}nav{flex-direction:row;justify-content:space-around;gap:3px}nav button{flex:1;flex-direction:column;gap:5px;padding:7px 3px;font-size:9px;min-height:52px;border-radius:8px}.nav-icon{font-size:18px}main{margin:0 0 72px}.topbar{height:65px;padding:0 19px}.mobile-brand{display:block;font-size:25px;font-weight:800;letter-spacing:-1px}.mobile-brand span{font-size:8px;letter-spacing:1px;margin-left:9px;color:var(--muted);font-weight:500}.crumb,.avatar{display:none}.top-right{gap:0}.connection{font-size:9px}.content{padding:25px 17px 15px}.heading{gap:10px;align-items:flex-start;margin-bottom:22px}.eyebrow{font-size:7px;letter-spacing:1px;margin-bottom:9px}h1{font-size:28px;margin-bottom:8px}.subtitle{font-size:11px;max-width:240px}.heading>button{font-size:10px;padding:11px 10px;margin-top:16px;white-space:normal;min-width:105px;max-width:120px}.scopebar{flex-direction:column;align-items:stretch;gap:7px;margin-bottom:18px}.segmented{width:100%}.segmented button{flex:1;font-size:10px}.scopebar p{text-align:left;max-width:none;font-size:9px;margin:2px 0}.stats{gap:8px;margin-bottom:18px}.stat{padding:14px 10px;border-radius:11px}.stat-label{font-size:9px;line-height:1.5}.stat-value{font-size:21px;letter-spacing:-.6px;margin-top:10px}.stat-note{font-size:8px;line-height:1.6}.toolbar{gap:7px}.toolbar .search{flex-basis:100%;font-size:12px}.toolbar select{flex:1;max-width:none;width:40%;font-size:10px}.toolbar button{font-size:10px;padding-inline:10px}.grid{gap:11px}.device-photo{height:175px}.photo-status{top:8px;left:7px;font-size:8px;padding:4px 6px}.photo-note{font-size:7px;left:6px;bottom:6px}.device-body{padding:12px 10px}.device-id{font-size:8px}.device h2{font-size:14px;line-height:1.4;margin:7px 0 5px}.device-meta{font-size:9px}.device-bottom{flex-direction:column;align-items:flex-start;margin-top:10px;padding-top:10px;gap:7px}.price{font-size:18px}.age{font-size:8px}.results-line{font-size:9px;margin-top:18px}.pub-dot{font-size:8px}footer{font-size:8px;line-height:1.8;flex-wrap:wrap;margin-top:25px;padding-top:19px}.panel{padding:18px}.panel h2{font-size:16px}.request-grid{grid-template-columns:1fr}.period{gap:8px}.period label{width:calc(50% - 4px);max-width:none}.period button{width:100%;font-size:11px}.ad-table{font-size:10px;min-width:550px}dialog{width:calc(100% - 16px);max-height:calc(100dvh - 24px);border-radius:16px}.dialog-head{padding:18px;border-radius:16px 16px 0 0}.dialog-head h2{font-size:18px}.dialog-body{padding:20px 18px}.field-grid{gap:13px}.detail-image{height:250px}.detail-facts{gap:12px}.detail-facts div{font-size:12px}.detail-facts span{font-size:9px}.step-title{font-size:22px}.choices button{font-size:11px;padding:10px 11px}.detail-buttons button{font-size:10px;padding:11px 8px}.preview-caption{font-size:12px;padding:15px}#toast{bottom:88px}.loading{padding:45px 15px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Mobile forms and direct wizard navigation. */
.field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.field-grid>*,.period>*,label{min-width:0}
input,select,textarea{max-width:100%;min-inline-size:0;caret-color:#174c29;scroll-margin-block:90px}
input[type=date]{display:block;min-width:0;min-inline-size:0;max-width:100%;width:100%;-webkit-appearance:none;appearance:none}
input::-webkit-date-and-time-value{min-width:0;text-align:left}
input:focus,textarea:focus,select:focus{border-color:#608d47;box-shadow:0 0 0 2px #608d4725}
.battery-stepper{display:flex;margin-top:8px;background:white;border:1px solid #d8ded0;border-radius:8px;overflow:hidden;min-width:0}
.battery-stepper input{margin:0;border:0;border-radius:0;flex:1;width:0;min-width:0}
.battery-stepper>div{display:grid;grid-template-rows:1fr 1fr;width:44px;flex-shrink:0;border-left:1px solid var(--line)}
.battery-stepper button{padding:0;min-height:25px;border:0;border-radius:0;font-size:10px;background:#f0f4e9}
.battery-stepper button+button{border-top:1px solid var(--line)}
.step-track{flex-direction:row;gap:4px;margin-bottom:22px}
.step-track button{display:flex;flex:1;min-width:0;min-height:58px;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:5px 1px;background:transparent;border:0;color:var(--muted);font-size:10px;font-weight:500}
.step-track button b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;border:1px solid #cdd7c1;font-size:11px;background:white;color:#69785b}
.step-track button span{height:auto;flex:none;background:transparent;border-radius:0;overflow-wrap:anywhere;line-height:1.3}
.step-track button.current{color:#274b25;font-weight:700;background:#e8efdd}
.step-track button.current b,.step-track button.done b{color:white;background:#527b3c;border-color:#527b3c}
.preview-photos.sortable{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.preview-photos .sortable-photo{width:auto;min-width:0;border:1px solid var(--line);border-radius:10px;padding:4px;background:white;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.preview-photos .sortable-photo.dragging{opacity:.55;border:2px solid #507638;background:#e4eed5;cursor:grabbing}
.sortable-photo img{width:100%;height:130px;object-fit:cover;border-radius:7px;pointer-events:none;-webkit-touch-callout:none}
.photo-order{padding:7px 3px;font-size:11px;color:#486332;font-weight:600;pointer-events:none}
.preview-photos .remove-photo{top:7px;right:7px}
.photo-move{display:flex;gap:5px;padding:0 2px 3px}
.preview-photos .photo-move button{position:static;flex:1;width:auto;min-height:32px;padding:3px;border:1px solid var(--line);background:#f5f7f0}
.photo-move button:disabled{cursor:default}
.request-group.has-stock{border-color:#a5bd88}.stock-badge{display:inline-block;margin-left:6px;border-radius:6px;padding:6px 8px;background:#dcefc8;color:#325224;font-size:10px}
.request-item>div{min-width:0}.request-item button{flex-shrink:0}.request-item .client-name{font-size:12px;font-weight:600;color:var(--ink)}.request-item .client-contact{font-size:12px;color:#375e32;user-select:text}
.request-stock{background:#f0f5e9;padding:10px;border-radius:9px;margin-top:10px;font-size:10px;color:#52723f}
.request-stock>span{display:block;margin-bottom:7px}.request-stock button{display:block;width:100%;text-align:left;font-size:11px;padding:8px 10px;margin-top:6px}
.request-stock button small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.request-flag{position:absolute;right:8px;top:12px;padding:5px 7px;border-radius:6px;background:#def0cb;color:#2c5026;font-size:9px;font-weight:600}
.note button{font-size:11px;margin-top:7px;padding:6px 10px;min-height:32px}
@media(max-width:700px){
 input,select,textarea,.toolbar input,.toolbar select,.price-filters input,.period input{font-size:16px!important;line-height:1.35}
 .toolbar select{height:46px}.toolbar input{height:46px}.price-filters{flex-wrap:wrap}.price-filters select{flex-basis:100%}.price-filters input{width:calc(50% - 4px)}
 .period{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.period label{width:auto;max-width:none}.period button{grid-column:1/-1}
 .period input{padding:10px 7px;min-height:46px}.field-grid input[type=date]{padding:12px 7px}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats>.stat:last-child:nth-child(3){grid-column:1/-1}.stat-value{font-size:22px;white-space:nowrap;letter-spacing:-.6px}.stat-label{font-size:10px}.stat-note{font-size:10px}
 .stat{padding:15px 13px}.step-track button{font-size:9px;min-height:58px}.step-track button b{width:24px;height:24px}.sortable-photo img{height:110px}.preview-photos.sortable{gap:8px}
 .request-flag{font-size:8px;top:8px;right:6px;padding:4px 6px}.dialog-body{padding-bottom:max(24px,env(safe-area-inset-bottom))}
}

.request-controls{display:flex;flex-direction:column;gap:6px;flex-shrink:0}.request-controls button{margin:0}

.date-control{display:flex;position:relative;align-items:center;min-width:0;max-width:100%;margin-top:8px;background:white;border:1px solid #d8ded0;border-radius:8px;overflow:hidden}
.date-control>input[data-date]{width:100%;min-width:0;max-width:100%;margin:0;padding:12px 42px 12px 10px;border:0;border-radius:0;background:transparent;font-variant-numeric:tabular-nums}
.date-control:focus-within{border-color:#608d47;box-shadow:0 0 0 2px #608d4725}
.date-picker{position:absolute;right:0;top:0;bottom:0;display:grid;place-items:center;width:38px;border-left:1px solid var(--line);color:#4d6840;font-size:19px;background:#f3f6ed;overflow:hidden}
.date-picker input.native-date{position:absolute;inset:0;opacity:0;width:100%;height:100%;padding:0!important;margin:0!important;border:0;cursor:pointer;min-height:0}
.history>li{padding:14px 0}.history time{display:block;font-size:10px;color:var(--muted);margin-bottom:4px}.event-title{display:block;font-size:12px;color:var(--ink)}.history>li>p{margin:5px 0 0}
.history-changes{list-style:none;margin:6px 0 0;padding:0}.history .history-changes>li{padding:6px 0;border:0}.history-changes strong{color:#59644e;font-size:10px}.history-changes li>div{display:flex;flex-wrap:wrap;gap:6px;white-space:pre-wrap;overflow-wrap:anywhere;color:#3d4b34}.old-value{color:#7e8279}.change-arrow{color:#6a8755}
.history details summary{cursor:pointer;color:#375e32;font-weight:600}.photo-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}.history-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.history-photos figure{min-width:0;margin:0}.history-photos img{width:100%;height:70px;object-fit:cover;border-radius:5px}.history-photos figcaption{font-size:9px}
@media(max-width:700px){.date-control>input[data-date]{padding:12px 33px 12px 8px;font-size:16px!important;letter-spacing:-.5px}.date-picker{width:30px;font-size:17px}.history-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:360px){.period,.field-grid{grid-template-columns:minmax(0,1fr)}.period button,.full{grid-column:1}}
