/* Isolated Home preview. Operational modules retain their own presentation. */
#homeDesktop{filter:none;border-radius:0}
.workspace:not(.has-view)>.dashboard-header{display:none}
#homeDesktop .home-welcome{padding:8px 32px 38px;gap:16px;height:calc(100% - 36px);min-height:0;margin:0;clip-path:none;border-radius:0;background:none;overflow-y:auto;scrollbar-width:none}
#homeDesktop .home-heading>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-right:0}
#homeDesktop .home-greeting-copy{min-width:0}
#homeDesktop h1{font-size:clamp(26px,3.4cqw,36px)}
#homeDesktop .home-intro{font-size:12px;margin:8px 0 0;max-width:60ch}
#homeDesktop .home-footer{display:none}
#homeDesktop .home-overview{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch;flex:none}
#homeDesktop .home-focus,#homeDesktop .home-port{display:flex;flex-direction:column;min-width:0;padding:18px;border-radius:20px;border:0;box-shadow:0 12px 26px -20px #000b;background:var(--home-card)}
#homeDesktop .home-focus{background:var(--home-card)}
#homeDesktop :is(.home-focus,.home-port) header{display:flex;justify-content:flex-start;align-items:center;gap:10px;margin-bottom:16px}
#homeDesktop .home-section-kicker{font-size:9px;font-weight:600;letter-spacing:.13em;color:#baa2c3}
#homeDesktop :is(.home-focus,.home-port,.home-metrics) h2{font-size:13px;font-weight:600;margin:0;letter-spacing:-.02em}
#homeDesktop .home-brief-list{flex:1;display:grid;align-content:start;min-height:0}
#homeDesktop .home-brief-row{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:10px;padding:11px 0;border:0;border-bottom:1px solid #ffffff08;background:none;color:#dfe2ea;text-align:left;cursor:pointer;width:100%}
#homeDesktop .home-brief-row strong{display:block;font-size:12px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#homeDesktop .home-brief-row small{display:block;font-size:10px;color:#9ea7b6;margin-top:4px}
#homeDesktop .home-focus-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:16px;margin-top:auto}
#homeDesktop .home-focus-footer>span{font-size:10px;color:#929bab}
#homeDesktop .home-focus-footer button,#homeDesktop .home-port header button{border:1px solid #ffffff10;border-radius:10px;background:#ffffff07;color:#d6c5e2;padding:8px 11px;font-size:11px;cursor:pointer;white-space:nowrap}
#homeDesktop .home-port-list{display:grid;gap:8px;flex:1}
#homeDesktop .home-berth{display:flex;position:relative;isolation:isolate;overflow:hidden;align-items:center;padding:10px;border:0;border-radius:15px;background:var(--home-inset)}
#homeDesktop .home-berth strong{display:block;font-size:12px;font-weight:600;line-height:1.4}
#homeDesktop .home-berth small{display:block;color:#a2aebe;font-size:10px;margin-top:5px;line-height:1.4}
#homeDesktop .home-data-message{color:#aab3c1;font-size:12px;line-height:1.7;margin:12px 0}
#homeDesktop .home-data-message strong{color:#dce2eb;display:block;font-size:14px;font-weight:550}
#homeDesktop .home-overview button:focus-visible{outline:2px solid #baa6d8;outline-offset:3px}
#homeDesktop .home-overview button:active{transform:translateY(1px)}
@media(prefers-reduced-motion:reduce){#homePages:not([hidden]) #homeDesktop .home-metrics,#homePages:not([hidden]) #homeDesktop .home-main-grid,#homePages:not([hidden]) #homeDesktop .home-access{animation:none}#homeDesktop .home-metric{transition:none}}


#homeDesktop .home-focus{padding:20px}
#homeDesktop .home-focus header{margin-bottom:8px}
#homeDesktop :is(.home-focus,.home-port) header{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:10px;row-gap:0}
#homeDesktop :is(.home-focus,.home-port) header>div{display:contents}
#homeDesktop :is(.home-focus,.home-port) header .home-section-kicker{grid-column:2;grid-row:1}
#homeDesktop :is(.home-focus,.home-port) header h2{grid-column:2;grid-row:2}
#homeDesktop :is(.home-focus,.home-port) header .home-heading-icon{grid-column:1;grid-row:2}
#homeDesktop .home-focus-footer{padding-top:10px;justify-content:space-between}
#homeDesktop .home-brief-row{padding:9px 0}
#homeDesktop .home-brief-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;overflow:hidden;background:#8e739633;color:#bdabc9;font-size:11px;font-weight:600}
#homeDesktop .home-brief-avatar img{width:100%;height:100%;object-fit:cover}

/* Two columns share existing Home data and navigation. */
#homeDesktop{background:transparent;--home-hover-shadow:var(--scan-card-hover-shadow);--home-shortcut-shadow:0 5px 12px -9px #0008;--home-reflection:#b6b3ef15;--home-neon-peak:.95;--home-neon-fade:.5;--home-surface:#292f39;--home-card:var(--scan-card-surface);--home-inset:linear-gradient(135deg,#303845,#272f3b);--home-depth:0 9px 22px -12px #0008, inset 0 1px #ffffff04}
#homeDesktop .home-focus-shell{position:relative;isolation:isolate;border-radius:20px;grid-column:auto}
#homeDesktop .home-focus{position:relative;border-radius:inherit;cursor:pointer;height:100%;box-sizing:border-box}
#homeDesktop .home-port{position:relative;cursor:pointer}
#homeDesktop .home-focus-shell.has-pending-recados::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background:linear-gradient(120deg,#4679ff,#9659f4);filter:blur(10px);opacity:0;animation:homeRecadoPulse 3s ease-out infinite}
@keyframes homeRecadoPulse{0%,12%,100%{opacity:0;transform:scale(1)}22%{opacity:var(--home-neon-peak);transform:scale(1.015)}50%{opacity:var(--home-neon-fade);transform:scale(1.035)}82%{opacity:0;transform:scale(1.05)}}
#homeDesktop :is(.home-focus,.home-port):focus-visible{outline:2px solid #baa6d8;outline-offset:4px}
@container(max-width:720px){#homeDesktop .home-overview{grid-template-columns:repeat(2,minmax(0,1fr))}#homeDesktop .home-welcome{padding:18px 24px 46px}#homeDesktop .scanlog-home-primary,#homeDesktop .scanlog-home-secondary{gap:24px}}
@media(prefers-reduced-motion:reduce){#homeDesktop .home-focus-shell.has-pending-recados::before{animation:none;opacity:0}}

#homeDesktop .home-theme-tools{display:flex;justify-content:flex-end;padding:0 24px 2px;flex:none}
#homeDesktop .home-theme-tools #scanlogThemeToggle{width:38px;height:38px}
#homeDesktop :is(.home-focus,.home-port,.home-metrics,.home-access){box-shadow:var(--scan-card-shadow)}
#homeDesktop .home-heading-icon{display:grid;place-items:center;flex:none;width:22px;height:24px;border-radius:0;background:none;box-shadow:none;color:#b6add4}
#homeDesktop .home-heading-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#homeDesktop :is(.home-metrics>h2,.home-access-head h2){display:flex;align-items:center;gap:10px}
#homeDesktop :is(.home-metrics>h2,.home-access-head h2) .home-heading-icon{width:22px;height:24px;background:none;box-shadow:none;border-radius:0}
#homeDesktop :is(.home-metrics>h2,.home-access-head h2) svg{width:20px;height:20px}

/* Module shortcuts reuse existing navigation; no illustrative counters. */
#homeDesktop .home-heading{padding-bottom:4px}
#homeDesktop .home-launch{display:flex;flex-direction:column;gap:12px;min-width:0;padding:18px;border:0;border-radius:23px;background:var(--home-card);box-shadow:var(--scan-card-shadow);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
#homeDesktop .home-launch[hidden]{display:none}
#homeDesktop .home-launch header{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;column-gap:10px;row-gap:0}
#homeDesktop .home-launch header>div{display:contents}
#homeDesktop .home-launch header h2{grid-column:2;grid-row:1}
#homeDesktop .home-launch header p{grid-column:2;grid-row:2}
#homeDesktop .home-launch header .home-heading-icon{grid-column:1;grid-row:1}
#homeDesktop .home-launch h2{font-size:13px;line-height:1.25;margin:0;font-weight:600}
#homeDesktop .home-launch p{font-size:12px;line-height:1.6;color:#a3adbc;margin:6px 0 0}
#homeDesktop .home-launch .home-heading-icon{width:22px;height:24px;background:none;box-shadow:none;border-radius:0}
#homeDesktop .home-feature{display:flex;flex-direction:column;justify-content:center;gap:6px;flex:1;padding:12px;border-radius:17px;background:var(--home-inset);min-height:100px}
#homeDesktop .home-feature strong{font-size:16px;font-weight:600;line-height:1.4}
#homeDesktop .home-feature img{width:100%;height:150px;object-fit:contain;border-radius:10px}
#homeDesktop .home-start{background:linear-gradient(135deg,#fff4a6,#f5e470);color:#202734}
#homeDesktop .home-start-data{display:flex;align-items:center;gap:20px;flex:1;padding:14px 0}
#homeDesktop .home-start-value>strong{font-size:58px;font-weight:600;line-height:1}
#homeDesktop .home-start-data span{font-size:12px;line-height:1.5}
#homeDesktop .home-start-data small{display:block;margin-top:8px;color:#535647}
#homeDesktop .home-launch-label{display:block;text-align:center;background:#242b36;border-radius:13px;padding:12px;font-size:12px}
#homeDesktop .home-pending-summary{font-size:11px;color:#a3adbc;margin:4px 0 10px}
#homeDesktop .home-launch:focus-visible{outline:2px solid #baa6d8;outline-offset:4px}
#homeDesktop .home-launch:hover{box-shadow:var(--home-hover-shadow)}
html[data-theme="light"] #homeDesktop .home-launch{color:#353a4a}
html[data-theme="light"] #homeDesktop .home-launch p,html[data-theme="light"] #homeDesktop .home-pending-summary{color:#687187}
html[data-theme="light"] #homeDesktop .home-start{background:linear-gradient(135deg,#fff4a6,#f5e470)}
html[data-theme="light"] #homeDesktop .home-start-data small{color:#687187}
html[data-theme="light"] #homeDesktop .home-launch-label{background:#e8eaf4}
@container(max-width:480px){#homeDesktop .home-overview{grid-template-columns:1fr}#homeDesktop .home-focus-shell{grid-column:auto}#homeDesktop .home-launch{padding:20px}}
@media(prefers-reduced-motion:reduce){#homeDesktop .home-launch{transition:none}}

#homeDesktop .home-start h2,#homeDesktop .home-occurrences h2{color:#202734}
#homeDesktop .home-start p{color:#535647}
#homeDesktop .home-start .home-heading-icon{color:inherit}
#homeDesktop .home-start-value{min-width:0}
#homeDesktop .home-start-value>strong{font-size:42px}
#homeDesktop .home-start-value>span{display:block;margin-top:7px}
#homeDesktop .home-occurrences{background:linear-gradient(135deg,#f0f2f8,#dfe3ee);color:#252b38}
#homeDesktop .home-occurrences p{color:#626b7e}
#homeDesktop .home-occurrences header{align-self:start;align-content:start;row-gap:3px}
#homeDesktop .home-occurrences header p{margin:0;line-height:1.35}
#homeDesktop .home-occurrences .home-heading-icon{color:#343b4e}
#homeDesktop .home-document-art{position:relative;flex:1;min-height:84px;width:65%;align-self:center;margin:4px 0}
#homeDesktop .home-document-art i{position:absolute;width:65%;height:80%;top:0;left:8%;border-radius:15px;background:linear-gradient(135deg,#a59cc5,#d7d8e5);box-shadow:0 15px 24px -12px #62668055}
#homeDesktop .home-document-art i:nth-child(2){top:12%;left:20%;background:linear-gradient(135deg,#cbcde2,#eceef5)}
#homeDesktop .home-document-art i:nth-child(3){top:24%;left:32%;background:linear-gradient(135deg,#f8f9fc,#d4d9e7);padding:22px 16px;box-sizing:border-box}
#homeDesktop .home-document-art span{display:block;height:5px;margin-bottom:10px;border-radius:3px;background:#9a9db9}
#homeDesktop .home-dssma .home-feature{position:relative;overflow:hidden;background:repeating-radial-gradient(ellipse at 110% -30%,transparent 0 9px,#9ca4cc18 10px 11px,transparent 12px 18px),linear-gradient(140deg,#26303e,#3d4560);justify-content:flex-end;min-height:84px}
#homeDesktop .home-dssma .home-feature:has(img){background:var(--home-inset)}
#homeDesktop #homeDssmaPreview{color:#b9c5df}
#homeDesktop #homeDssmaPreview strong{color:#edf0fa}
#homeDesktop .home-access{display:flex;flex-direction:column;gap:10px;margin:0;padding:16px;border-radius:23px;background:var(--home-card);min-width:0}
#homeDesktop .home-access-head{padding:0}
#homeDesktop .home-shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#homeDesktop .home-shortcut{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;min-height:34px;padding:6px;gap:7px;border:0;border-radius:12px;background:var(--home-inset);box-shadow:var(--home-shortcut-shadow)}
#homeDesktop .home-shortcut-icon{width:29px;height:32px;flex:none;border-radius:9px;background:var(--home-inset)}
#homeDesktop .home-shortcut-icon svg{width:24px;height:24px}
#homeDesktop .home-shortcut-name{font-size:10px;line-height:1.35;text-align:left;overflow-wrap:anywhere}
#homeDesktop .home-shortcut:hover{transform:translateY(-2px)}
#homeDesktop .home-port,#homeDesktop .home-focus{padding:16px;border-radius:23px}
#homeDesktop .home-brief-row strong{white-space:normal}
#homeDesktop .home-pending-summary{line-height:1.6}
html[data-theme="light"] #homeDesktop .home-start{color:#202734}
html[data-theme="light"] #homeDesktop .home-start p{color:#535647}
html[data-theme="light"] #homeDesktop .home-occurrences{color:#252b38}

#homeDesktop .home-focus-shell.has-pending-recados::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background:linear-gradient(100deg,#416dff,#9757ed);filter:blur(16px);animation:homeRecadoPulse 3s ease-out infinite;opacity:0}
#homeDesktop #homeDssmaPreview strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:clamp(20px,2.1cqw,26px);font-weight:650;letter-spacing:.035em;line-height:1.2}
#homeDesktop #homeGreeting{min-height:1.2em}
#homeDesktop .home-greeting-word{display:inline-block;white-space:nowrap}
#homeDesktop .home-greeting-letter{display:inline-block;animation:homeLetterReveal .4s ease-out both}
#homeDesktop .home-greeting-tint{background:linear-gradient(120deg,#96b8ed,#b19bdf,#d0bdeb);background-clip:text;-webkit-background-clip:text;color:transparent}
@keyframes homeLetterReveal{from{opacity:0;transform:translateX(-5px)}to{opacity:1;transform:translateX(0)}}
html[data-theme="light"] #homeDesktop .home-greeting-tint{background-image:linear-gradient(120deg,#486a9e,#775399,#765791)}
@media(prefers-reduced-motion:reduce){#homeDesktop .home-greeting-letter{animation:none}#homeDesktop .home-focus-shell.has-pending-recados::after{animation:none;opacity:0}}

@media(min-width:1100px) and (max-height:820px){#homeDesktop .home-welcome{gap:10px}#homeDesktop .home-overview{gap:18px}#homeDesktop h1{font-size:28px}#homeDesktop .home-launch{padding:14px;gap:8px}#homeDesktop .home-start-data{padding:4px 0}#homeDesktop .home-port header{margin-bottom:8px}#homeDesktop .home-heading-icon{width:22px;height:24px}#homeDesktop .home-berth{padding:6px}#homeDesktop .home-access{padding:14px;gap:8px}#homeDesktop .home-shortcut-grid{gap:6px}}

#homeDesktop #homeDssmaPreview .home-data-message{margin:0}
#homeDesktop #homeDssmaPreview strong::after{content:"";display:block;width:38px;height:3px;margin-top:10px;border-radius:2px;background:#b3a3d6}
#homeDesktop .home-berth .tvv-vessel-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
#homeDesktop .home-berth.has-photo::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#101827d9,#10182778 48%,#1018270a 85%);z-index:-1}
#homeDesktop .home-berth-copy{min-width:0;position:relative}
#homeDesktop .home-berth-number{display:inline-block;padding:2px 7px;margin-bottom:4px;border-radius:6px;background:#1b243aca;color:#e5e8f4;font-size:10px;font-weight:600}
#homeDesktop .home-berth.has-photo strong{color:#f3f5fb}
#homeDesktop .home-berth.has-photo small{color:#d9dfed}
#homeDesktop .home-occurrence-list:empty{display:none}
#homeDesktop .home-occurrences{position:relative}
#homeDesktop .home-occurrence-list{position:relative;z-index:1;display:grid;gap:4px;flex:1;align-content:center}
#homeDesktop .home-occurrence-row{padding:5px 9px;background:#ffffffc9;border-radius:12px;min-width:0;color:#303649}
#homeDesktop .home-occurrence-row small{display:block;font-size:10px;color:#625f7b;margin-bottom:2px}
#homeDesktop .home-occurrence-row strong{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;font-family:inherit;font-size:12px;font-weight:600;letter-spacing:normal;line-height:1.45}
#homeDesktop .home-occurrences.has-occurrences .home-document-art{display:none}

#homeDesktop .home-soft-bars{display:flex;align-items:flex-end;justify-content:center;gap:10px;flex:0 0 44%;height:128px;transform:translate(var(--parallax-x,0),var(--parallax-y,0));transition:transform .25s ease}
#homeDesktop .home-soft-bars i{width:27%;height:55%;border-radius:10px;background:linear-gradient(110deg,#d7dced,#939cb8);box-shadow:inset 3px 3px 5px #ffffff70,inset -4px -2px 7px #59648633,0 10px 12px -6px #5d567745}
#homeDesktop .home-soft-bars i:nth-child(2){height:85%;background:linear-gradient(110deg,#d7cce9,#a699c0)}
#homeDesktop .home-soft-bars i:nth-child(3){height:100%;background:linear-gradient(110deg,#eef0f4,#b8c2d2)}
#homeDesktop .home-dssma .home-feature{justify-content:center}

#homeDesktop .home-berth .tvv-vessel-photo{transition:transform .45s ease}
#homeDesktop .home-overview>:is(.home-launch,.home-focus-shell,.home-port,.home-access){position:relative;transition:transform .3s ease,box-shadow .3s ease}
#homeDesktop .home-overview>:not(.home-focus-shell)::after,#homeDesktop .home-focus::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:radial-gradient(circle at var(--light-x,50%) var(--light-y,50%),var(--home-reflection),transparent 65%);opacity:0;transition:opacity .25s}
#homeDesktop .home-overview>.home-hover::after,#homeDesktop .home-hover .home-focus::after{opacity:1}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
#homeDesktop .home-overview>.home-hover{transform:perspective(1000px) translateY(-3px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));box-shadow:var(--home-hover-shadow)}
#homeDesktop .home-berth:hover .tvv-vessel-photo{transform:scale(1.02)}
#homeDesktop .home-document-art{transform:translate(var(--parallax-x,0),var(--parallax-y,0));transition:transform .25s}
#homeDesktop .home-occurrence-row:hover{background:#fff;box-shadow:0 4px 10px #54607815}
}
@media(min-height:900px) and (min-width:1200px){#homeDesktop .home-launch{padding-block:24px}#homeDesktop .home-port,#homeDesktop .home-focus,#homeDesktop .home-access{padding-block:22px}}
@media(prefers-reduced-motion:reduce){#homeDesktop .home-soft-bars,#homeDesktop .home-berth .tvv-vessel-photo{transition:none}}
#homePendingPage .central-tabs{display:flex;gap:8px;padding:8px 0 16px}
#homePendingPage .central-tabs button{padding:10px 18px;border:0;border-radius:12px;background:#333c4c;color:#dce1ed;cursor:pointer}
#homePendingPage .central-tabs [aria-selected="true"]{background:linear-gradient(110deg,#775874,#495f7f);color:white}
#homePendingPage .central-tabs button:focus-visible{outline:2px solid #baa6d8;outline-offset:3px}
#homePendingPage #centralCreate{align-self:flex-start;margin-bottom:12px}
#homePendingPage .pending-actions .recado-chip{align-self:center}
