:root{font-family:"Inter",system-ui,-apple-system,sans-serif;color:#202321;background:#f5f6f3;--ink:#202321;--muted:#5d645e;--line:#e1e4de;--orange:#c64925;--cream:#fff4ee;--white:#fff;--dark:#171a19}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #dc6a42;outline-offset:3px}
svg{width:20px;height:20px;vertical-align:middle;flex:none}
.top{background:var(--dark);color:white;height:72px;position:relative;z-index:1}
.top-inner{height:100%;display:grid;grid-template-columns:230px 1fr auto;align-items:center;gap:28px;padding:0 34px}
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:max-content}
.brand-logo{display:block;width:198px;height:auto}
.brand small{color:#e1e3dd;letter-spacing:.16em;font-size:.67rem;font-weight:750;line-height:1;margin-left:8px}
.search-trigger{height:40px;border:1px solid #414540;background:#272a27;color:#dfe2da;border-radius:8px;display:flex;align-items:center;text-align:left;gap:10px;padding:0 11px;max-width:440px;width:100%;font-size:.9rem}
.search-trigger svg{width:17px}
kbd{margin-left:auto;background:#383c38;border:1px solid #4c534b;border-radius:4px;padding:0 6px;font-size:.75rem;line-height:20px;color:#e3e5e0}
.account{display:flex;gap:9px;align-items:center;color:#d1d5cd;font-size:.85rem;white-space:nowrap}
.account svg{width:16px;color:#f1845e}
.layout{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:calc(100vh - 72px)}
.rail{background:#fff;border-right:1px solid var(--line);padding:28px 15px 22px;display:flex;flex-direction:column;justify-content:space-between;gap:40px}
.rail nav{display:grid;gap:5px}
.nav-link{display:flex;align-items:center;gap:11px;border-radius:8px;padding:12px;color:#525952;font-size:.91rem;font-weight:600}
.nav-link:hover{background:#f2f4ef;color:var(--ink)}
.nav-link[aria-current=page]{background:#fcece3;color:#9d371d;font-weight:750}
.rail-footer{border-top:1px solid var(--line);display:grid;justify-items:start;gap:5px;padding:16px 9px 0}
.rail-footer img{display:block;width:132px;height:auto}
.rail-footer small{font-size:.75rem;color:var(--muted);font-weight:500;margin-left:5px}
main{padding:30px clamp(22px,3.6vw,54px) 50px;max-width:1560px;width:100%;margin:auto;align-self:start;outline:none}
.hero{min-height:300px;border-radius:14px;overflow:hidden;position:relative;background:#1b201e;color:#fff;display:flex;align-items:center;padding:36px 44px;isolation:isolate}
.hero::before{content:"";position:absolute;inset:0 0 0 auto;width:min(55%,320px);z-index:-1;background:var(--hero,none) center 46%/cover no-repeat;mask-image:linear-gradient(90deg,transparent,#000 24%)}
.hero p:first-child{margin:0 0 12px;font-size:.82rem;color:#ff9c75;font-weight:800;letter-spacing:.17em;text-transform:uppercase}
h1,h2,h3,p{margin-top:0}
.hero h1{font-size:clamp(2.45rem,5.1vw,4rem);line-height:.97;letter-spacing:-.068em;margin:0 0 15px;font-weight:900;max-width:515px}
.hero p:last-child{color:#e0e2db;margin:0;line-height:1.5;max-width:460px}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:24px 0 12px}
.section-head h2,.panel h2{font-size:1.22rem;letter-spacing:-.032em;margin:0}
.shortcut-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
.shortcut,.panel,.entry,.empty{background:#fff;border:1px solid var(--line);border-radius:12px}
.shortcut{padding:15px 14px;display:flex;gap:11px;align-items:center;min-height:82px;text-align:left;color:inherit}
.shortcut:hover{border-color:#e4a38b;background:#fffcfa}
.tile-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:9px;background:#fceee6;color:#ad3d20;flex:none}
.tile-icon.green{background:#e7f1e9;color:#286345}
.tile-icon.blue{background:#e9f0f6;color:#305c7c}
.tile-icon.slate{background:#eceeea;color:#45534a}
.shortcut strong,.row strong{font-size:.92rem;display:block}
.shortcut small,.row small{display:block;color:var(--muted);font-size:.78rem;margin-top:3px;line-height:1.3}
.home-columns{display:grid;grid-template-columns:1.13fr 1fr;gap:15px;margin-top:20px}
.panel{padding:17px 18px}
.panel-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;min-height:26px}
.text-link{font-size:.82rem;font-weight:750;color:#a4391e;white-space:nowrap}
.text-link:hover{text-decoration:underline}
.row{display:flex;gap:11px;align-items:center;padding:11px 0;border-top:1px solid #edf0eb;width:100%;background:none;border-right:0;border-left:0;border-bottom:0;text-align:left;color:inherit}
.row .tile-icon{width:35px;height:35px}
.row .tile-icon svg{width:17px;height:17px}
.row:first-child{border-top:0}
.row:hover strong{color:#a4391e}
.row-end{margin-left:auto;color:#687168}
.mini-empty{padding:15px 0 10px;color:var(--muted);margin:0;line-height:1.5;font-size:.9rem}
.page-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:6px 0 23px}
.page-head h1{font-size:clamp(2rem,4vw,3.2rem);letter-spacing:-.06em;line-height:1.05;margin:0 0 8px}
.page-head p{color:var(--muted);line-height:1.5;margin:0}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;border:1px solid transparent;background:#b74020;color:white;padding:9px 13px;font-size:.88rem;font-weight:750;min-height:40px;white-space:nowrap}
.button:hover{background:#9e361a}
.button.secondary{background:#fff;color:#343b34;border-color:#dce1d9}
.button.secondary:hover{background:#f4f6f1}
.button svg{width:17px;height:17px}
.manage{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:16px;padding:13px 15px;border:1px solid #e5d6cc;background:#fff9f4;border-radius:10px;color:#674e43;font-size:.88rem;line-height:1.5}
.entries{display:grid;gap:9px}
.entry{padding:13px 15px;display:flex;gap:12px;align-items:center}
.entry-copy{flex:1;min-width:0;overflow-wrap:anywhere}
.entry h3,.entry p{margin:0}
.entry h3{font-size:1rem}
.entry p{font-size:.87rem;color:var(--muted);line-height:1.45;margin-top:4px}
.entry .entry-meta{font-size:.77rem;color:#515951;font-weight:650}
.entry-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.empty{padding:40px 22px;text-align:center;color:var(--muted);line-height:1.5}
.empty .tile-icon{margin:0 auto 14px}
.empty h2{font-size:1.12rem;color:var(--ink);margin-bottom:5px}
.empty p{margin:0}
.section-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 15px}
.section-tab[aria-pressed=true]{color:#9d371d;background:#fcece3;border-color:#efd1c2}
.source-links{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.icon-button{display:grid;place-items:center;width:36px;height:36px;background:transparent;border:1px solid transparent;border-radius:8px;color:#505850;flex:none}
.icon-button:hover{background:#f2f3ef;border-color:var(--line)}
dialog{width:min(560px,calc(100% - 24px));border:1px solid var(--line);padding:22px;border-radius:14px;color:var(--ink);box-shadow:0 18px 65px #171a1944;max-height:calc(100dvh - 30px)}
dialog::backdrop{background:#151916a0}
.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.dialog-top h2{margin:0;letter-spacing:-.035em}
form{display:grid;gap:12px}
form label{display:grid;gap:5px;font-size:.89rem;font-weight:700}
input,select,textarea{width:100%;min-width:0;border:1px solid #cdd3cb;border-radius:7px;padding:9px;color:var(--ink);background:#fff}
textarea{resize:vertical;min-height:83px}
form small,.detail-meta{color:var(--muted);font-weight:500;line-height:1.4}
.form-actions{display:flex;justify-content:space-between;align-items:center;gap:8px}
.form-actions span{margin-left:auto}
.danger{border:0;background:none;color:#9e361a;font-weight:750;padding:8px 0}
.form-error{color:#a23520;margin:0;font-size:.88rem}
.search-input{display:flex;align-items:center;gap:8px;margin-bottom:12px}
#search-results{max-height:45dvh;overflow:auto}
.detail-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
#toast{display:none;position:fixed;right:20px;bottom:20px;z-index:3;background:#212822;color:white;border-radius:9px;padding:12px 15px;max-width:calc(100% - 40px)}
#toast:not(:empty){display:block}
.loading{color:var(--muted)}
[hidden]{display:none!important}
@media(max-width:1200px){.shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1070px){.layout{grid-template-columns:190px minmax(0,1fr)}.top-inner{grid-template-columns:175px 1fr auto}.brand-logo{width:165px}}
@media(max-width:740px){.top{height:61px}.top-inner{grid-template-columns:auto 1fr auto;gap:12px;padding:0 14px}.account span:last-child,kbd{display:none}.search-trigger{font-size:.8rem;height:36px}.brand-logo{width:clamp(108px,29vw,152px)}.brand small{font-size:.55rem;margin-left:4px}.layout{display:block}.rail{padding:8px;border-right:0;border-bottom:1px solid var(--line)}.rail nav{display:flex;overflow:auto;gap:3px}.nav-link{flex:none;padding:9px;gap:6px;font-size:.8rem}.nav-link svg{width:16px;height:16px}.rail-footer{display:none}main{padding:15px 14px 35px}.hero{min-height:240px;padding:25px 22px}.hero::before{width:65%;mask-image:linear-gradient(90deg,transparent,#000 36%)}.hero>div{max-width:57%}.hero p:last-child{max-width:210px}.home-columns{grid-template-columns:1fr;gap:12px}.entry,.manage{flex-wrap:wrap}.entry-actions{width:100%;padding-left:51px}.page-head{align-items:start;flex-wrap:wrap}.shortcut{min-height:72px;padding:10px;gap:7px}.shortcut .tile-icon{width:33px;height:33px}.shortcut small{font-size:.73rem}}
@media(max-width:370px){.account{display:none}.top-inner{grid-template-columns:auto 1fr}.shortcut small{display:none}}

.hero{--hero:url("/hero.webp")}

.account-link{background:none;border:0;padding:4px 0;color:#e1e3dd;font-weight:650;white-space:nowrap}
.account-link:hover{text-decoration:underline}
.login-body{min-height:100vh;background:#191d1a}
.login-shell,.accounts-shell{margin:0 auto;padding:clamp(24px,5vw,58px) 18px;width:min(100%,480px)}
.accounts-shell{width:min(100%,780px);display:grid;gap:14px}
.accounts-shell>a{justify-self:start}
.login-logo{display:block;width:min(75%,310px);height:auto;margin:0 auto 22px}
.login-panel{padding:clamp(18px,4vw,28px)}
.login-panel h1{font-size:1.55rem;margin:0 0 14px}
.login-panel p{line-height:1.5;color:var(--muted)}
.login-panel form button{justify-self:start}
#login-help{margin:16px 0 0;font-size:.88rem}
#new-account{grid-template-columns:minmax(0,1fr) auto;align-items:end}
#new-account input,#new-account>.button{min-height:42px}
.accounts-shell .section-head{align-items:center;flex-wrap:wrap;gap:10px}
.account-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;align-items:center;padding:14px 0;border-top:1px solid var(--line);font-size:.9rem}
.account-identity{display:grid;gap:3px;overflow-wrap:anywhere}
.account-identity small{color:var(--muted);font-size:.8rem}
.account-actions{display:grid;grid-template-columns:9.25rem 5.25rem;gap:8px}
.account-actions .button{width:100%;min-height:42px;padding-inline:8px;white-space:normal;text-align:center}
.account-permissions{grid-column:1/-1;min-width:0;border:1px solid var(--line);border-radius:8px;background:#f8f9f6}
.account-permissions summary{padding:10px 12px;cursor:pointer;font-weight:700}
.account-permissions summary:focus-visible{outline:3px solid #dc6a42;outline-offset:2px}
.account-permissions[open] summary{border-bottom:1px solid var(--line)}
.account-permissions form{gap:10px;padding:12px}
.account-permissions .account-permission{grid-template-columns:1.125rem minmax(0,1fr);align-items:center;gap:10px;min-height:32px}
.account-permission input{width:1.125rem;height:1.125rem;margin:0;padding:0;accent-color:#b74020}
.account-permission:has(input:disabled){color:var(--muted)}
.account-permissions small{margin:0 0 2px}
@media(max-width:540px){
  .account-row{grid-template-columns:minmax(0,1fr)}
  .account-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:380px){
  #new-account{grid-template-columns:minmax(0,1fr)}
}
.account-invites{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:8px}
.account-invites label{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin:9px 0;font-size:.88rem}
.account-invites label input{grid-column:1}
@media(max-width:740px){.top-inner:has(.account-link){gap:8px}.account:has(.account-link){display:flex;gap:7px}.account-link{font-size:.72rem}.top-inner:has(.account-link) .brand-logo{width:clamp(90px,25vw,120px)}.top-inner:has(.account-link) .search-trigger>span:nth-child(2){display:none}}
@media(max-width:370px){.top-inner:has(.account-link){grid-template-columns:auto minmax(36px,1fr) auto}}

.incident-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:16px;align-items:start}
.incident-panel{max-width:660px}
.incident-note{margin:8px 0 16px;color:var(--muted);line-height:1.5}
.incident-panel form button{justify-self:start}
.incident-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.incident-confirmation{margin:0;color:#286345;font-weight:650}
.incident-summary{border-bottom:1px solid var(--line)}
.incident-summary button{display:grid;gap:4px;width:100%;border:0;background:none;text-align:left;padding:11px 2px;color:inherit;overflow-wrap:anywhere}
.incident-summary button:hover{text-decoration:underline}
.incident-summary small{color:var(--muted)}
@media(max-width:950px){.incident-layout{grid-template-columns:1fr}}
@media(max-width:480px){.incident-fields{grid-template-columns:1fr}}

.incident-status{display:inline-flex;justify-self:start;padding:3px 8px;border-radius:6px;background:#eef1f5;color:#344356;font-size:.8rem;font-weight:700}
.incident-status[data-status=in_progress]{background:#f8e9cc;color:#704707}
.incident-status[data-status=actioned]{background:#e0f0e5;color:#235738}
.incident-detail-meta{margin-top:12px}
.incident-follow-up{border-top:1px solid var(--line);padding-top:15px}
.incident-follow-up h3{margin-bottom:8px}
.incident-follow-up form button{justify-self:start}
.incident-history{list-style:none;padding:0;margin:0 0 15px}
.incident-history li{border-bottom:1px solid var(--line);padding:8px 0}
.incident-history p{margin:4px 0 0}
.incident-history small{color:var(--muted)}

.warranty-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:16px;align-items:start}
.warranty-panel{min-width:0}
.warranty-panel form{margin-top:14px}
.warranty-panel form .button{justify-self:start}
.warranty-record{margin:12px 0 0;padding:12px;border:1px solid #e5b5af;border-left:4px solid #a93226;border-radius:8px;background:#fff4f1}
.warranty-record[data-registered=true]{border-color:#a9cfb7;border-left-color:#337454;background:#f1f8f2}
.warranty-record-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;flex-wrap:wrap}
.warranty-record h3{margin:0}
.warranty-status{padding:3px 7px;border-radius:6px;background:#f5d9d4;color:#8a291d;font-size:.8rem;font-weight:750}
.warranty-record[data-registered=true] .warranty-status{background:#d7ecdd;color:#215437}
.warranty-record dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.warranty-record dt{font-size:.78rem;color:var(--muted)}
.warranty-record dd{margin:3px 0 0;font-family:ui-monospace,monospace;overflow-wrap:anywhere}
.warranty-record .detail-meta{margin:8px 0 0}
.warranty-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.warranty-actions .danger{color:#9e361a}
@media(max-width:980px){.warranty-layout{grid-template-columns:1fr}}
@media(max-width:510px){.warranty-record dl{grid-template-columns:1fr}}

.task-layout{display:grid;gap:16px;align-items:start}
.task-layout:has(#assign-task){grid-template-columns:minmax(0,1fr) minmax(0,.85fr)}
.task-panel{min-width:0;max-width:760px}
.task-panel form{margin-top:14px}
.task-panel form .button{justify-self:start}
.task-card{margin-top:12px;border:1px solid #e5b5af;border-left:4px solid #a93226;border-radius:8px;background:#fff4f1}
.task-card[data-complete=true]{border-color:#a9cfb7;border-left-color:#337454;background:#f1f8f2}
.task-card button{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:5px 10px;width:100%;padding:12px;border:0;border-radius:7px;background:none;color:inherit;text-align:left;overflow-wrap:anywhere}
.task-card button:hover strong{text-decoration:underline}
.task-card small{grid-column:1/-1;color:var(--muted)}
.task-status{display:inline-block;padding:3px 7px;border-radius:6px;background:#f5d9d4;color:#8a291d;font-size:.8rem;font-weight:750}
.task-status[data-complete=true]{background:#d7ecdd;color:#215437}
.task-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:950px){.task-layout:has(#assign-task){grid-template-columns:minmax(0,1fr)}}

