:root{
  --bg:#f7fbff;
  --surface:#ffffff;
  --surface-soft:#f2f7fc;
  --line:#dbe6f1;
  --line-strong:#c9d9e8;
  --text:#10263b;
  --muted:#698097;
  --blue:#0b5aa5;
  --blue-2:#0f6dc5;
  --blue-soft:#eaf4fd;
  --blue-faint:#f5faff;
  --green:#0f9870;
  --red:#c64b59;
  --shadow:0 16px 40px rgba(17,66,111,.08);
}
html[data-theme='dark']{
  --bg:#07111d;
  --surface:#0c1826;
  --surface-soft:#101f31;
  --line:#203247;
  --line-strong:#2b4057;
  --text:#eaf4fd;
  --muted:#8ca3ba;
  --blue:#6bb8ff;
  --blue-2:#8ac7ff;
  --blue-soft:#112a42;
  --blue-faint:#0a1d2f;
  --green:#48c59e;
  --red:#ef7a87;
  --shadow:none;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif}
body{padding-bottom:96px;overflow-x:hidden}
a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.muted{color:var(--muted)}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.horizon-topbar{height:76px;display:grid;grid-template-columns:minmax(280px,1fr) minmax(220px,420px) minmax(300px,1fr);align-items:center;gap:22px;padding:0 28px;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.horizon-topbar__left,.horizon-topbar__right{display:flex;align-items:center;gap:14px}.horizon-topbar__right{justify-content:flex-end}.horizon-logo-link{display:flex;align-items:center}.horizon-logo-full{width:190px;height:auto;display:block;object-fit:contain}.horizon-product-label{font-size:.82rem;color:var(--muted);padding-left:14px;border-left:1px solid var(--line)}
.command-trigger{height:40px;border:1px solid var(--line);background:var(--surface-soft);color:var(--muted);border-radius:12px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:20px;cursor:pointer;transition:.18s ease}.command-trigger:hover{border-color:var(--line-strong);background:var(--surface)}.command-trigger kbd{font-size:.73rem;padding:4px 7px;border:1px solid var(--line);border-bottom-color:var(--line-strong);border-radius:6px;background:var(--surface);color:var(--muted)}
.icon-button,.quiet-button{border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer}.icon-button{width:40px;height:40px;border-radius:12px}.quiet-button{height:40px;padding:0 13px;border-radius:12px;font-weight:700}.icon-button:hover,.quiet-button:hover{background:var(--surface-soft)}
.horizon-user{display:flex;align-items:center;gap:10px}.horizon-user__avatar{width:38px;height:38px;border-radius:12px;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:800}.horizon-user__copy{display:flex;flex-direction:column;line-height:1.15}.horizon-user__copy strong{font-size:.88rem}.horizon-user__copy small{font-size:.76rem;color:var(--muted);margin-top:3px}
.horizon-main{max-width:1560px;margin:0 auto;padding:0 32px}.horizon-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:42px 0 26px;border-bottom:1px solid var(--line)}.horizon-breadcrumb{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--blue);font-weight:800}.horizon-hero h1{margin:9px 0 0;font-size:clamp(2rem,3vw,3.3rem);letter-spacing:-.04em;line-height:1}.horizon-hero p{margin:10px 0 0;color:var(--muted);max-width:720px}.horizon-hero__mark img{width:96px;height:auto;display:block;object-fit:contain}
.horizon-stage{padding:26px 0 24px;animation:stageIn .28s ease both}.message-strip{padding-top:18px}.notice{padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.notice.error{border-color:#ebc0c6;color:var(--red);background:color-mix(in srgb,var(--red) 6%,var(--surface))}
.horizon-dock{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:7px;background:var(--surface);border:1px solid var(--line);box-shadow:0 18px 55px rgba(15,64,112,.18);border-radius:20px;z-index:60}.dock-item{min-width:86px;height:52px;padding:0 12px;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-weight:700;font-size:.85rem;transition:.18s ease}.dock-item:hover,.dock-item.active{background:var(--blue-soft);color:var(--blue)}.dock-button{border:0;background:transparent;cursor:pointer}.dock-icon{font-size:1rem}.dock-brand{width:46px;height:46px;border-radius:14px;background:#fff;border:1px solid #e4e8ed;display:grid;place-items:center;margin:0 3px}.dock-brand img{width:36px;height:36px;object-fit:contain}
.signal-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.signal-strip article{padding:21px 22px;border-right:1px solid var(--line)}.signal-strip article:last-child{border-right:0}.signal-strip span,.signal-strip small{display:block;color:var(--muted)}.signal-strip strong{display:block;font-size:1.65rem;margin:8px 0 4px}.signal-strip small{font-size:.82rem}
.runway-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:28px;margin-top:30px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}.section-head span,.table-canvas__head span{display:block;color:var(--blue);font-size:.74rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.section-head h2,.table-canvas__head strong{margin:5px 0 0;font-size:1.2rem}.section-head>small{color:var(--muted)}
.runway-track{border-top:1px solid var(--line)}.runway-step{display:grid;grid-template-columns:58px 1fr auto;gap:14px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.runway-step b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted)}.runway-step strong,.runway-step small{display:block}.runway-step small{color:var(--muted);margin-top:3px}.runway-step>span{font-size:.78rem;color:var(--muted);font-weight:800}.runway-step.done>span{color:var(--green)}.runway-step.current{background:linear-gradient(90deg,var(--blue-faint),transparent);padding-left:12px;margin-left:-12px}.runway-step.current>span{color:var(--blue)}
.focus-panel{border-left:1px solid var(--line);padding-left:28px}.focus-links{display:grid}.focus-links a{display:grid;grid-template-columns:1fr auto;gap:2px 16px;padding:15px 0;border-bottom:1px solid var(--line);align-items:center}.focus-links strong{font-weight:800}.focus-links small{color:var(--muted)}.focus-links a>span{grid-column:2;grid-row:1/3;color:var(--blue);font-size:1.1rem}.focus-links a:hover strong{color:var(--blue)}
.module-toolbar,.record-titlebar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.module-toolbar>div:first-child{display:flex;flex-direction:column}.module-meta{color:var(--muted);font-size:.82rem}.module-toolbar strong{font-size:1.05rem;margin-top:3px}.module-actions{display:flex;gap:8px;flex-wrap:wrap}.primary-button,.ghost-button,.danger-button{height:40px;border-radius:10px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;cursor:pointer;border:1px solid transparent;transition:.16s ease}.primary-button{background:var(--blue);color:#fff}.primary-button:hover{background:var(--blue-2);transform:translateY(-1px)}.ghost-button{background:var(--surface);color:var(--text);border-color:var(--line)}.ghost-button:hover{background:var(--surface-soft)}.danger-button{background:var(--red);color:#fff}.full{width:100%}
.filter-shelf{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0 20px;margin-bottom:24px}.filter-shelf__title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.filter-shelf__title span{display:block;color:var(--blue);font-size:.74rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.filter-shelf__title strong{display:block;margin-top:3px}.filter-shelf__title a{color:var(--blue);font-weight:700;font-size:.9rem}.filter-shelf__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.filter-shelf label,.document-field{display:flex;flex-direction:column;gap:7px}.filter-shelf label span,.document-field>span,.login-form label>span{font-size:.8rem;font-weight:800;color:var(--muted)}.filter-shelf select,.document-field input,.document-field select,.document-field textarea,.login-form input{width:100%;border:1px solid var(--line-strong);background:var(--surface);color:var(--text);border-radius:10px;padding:10px 11px;outline:none}.filter-shelf select:focus,.document-field input:focus,.document-field select:focus,.document-field textarea:focus,.login-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 12%,transparent)}.filter-shelf__actions{display:flex;justify-content:flex-end;margin-top:14px}
.table-canvas{border:1px solid var(--line);background:var(--surface);border-radius:14px;overflow:hidden}.table-canvas__head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--line)}.table-canvas__head small{color:var(--muted)}.table-scroll{overflow:auto}.horizon-table{width:100%;border-collapse:collapse;min-width:980px}.horizon-table thead th{position:sticky;top:0;z-index:2;text-align:left;padding:11px 13px;background:var(--surface-soft);border-bottom:1px solid var(--line-strong);font-size:.73rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.horizon-table tbody td{padding:13px;border-bottom:1px solid var(--line);font-size:.9rem;vertical-align:middle}.horizon-table tbody tr:last-child td{border-bottom:0}.horizon-table tbody tr{transition:.12s ease}.horizon-table tbody tr:hover td{background:var(--blue-faint)}.soft-tag{display:inline-flex;padding:4px 7px;border-radius:6px;background:var(--blue-soft);color:var(--blue);font-size:.78rem;font-weight:700;margin:1px 4px 1px 0}.status-dot-label{display:inline-flex;align-items:center;gap:7px;font-size:.8rem;font-weight:800}.status-dot-label i{width:7px;height:7px;border-radius:50%;background:currentColor}.status-dot-label.on{color:var(--green)}.status-dot-label.off{color:var(--red)}.row-menu{display:flex;gap:10px}.row-menu a{color:var(--blue);font-weight:800;font-size:.82rem}.empty-table{text-align:center;padding:30px!important}.empty-table strong,.empty-table span{display:block}.empty-table span{color:var(--muted);margin-top:4px}.table-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--line);font-size:.84rem}.table-pagination a{color:var(--blue);font-weight:800}.table-pagination span{color:var(--muted)}
.form-canvas{display:grid;grid-template-columns:240px minmax(0,1fr);gap:36px;align-items:start}.form-index{position:sticky;top:100px;display:flex;flex-direction:column;align-items:flex-start}.form-index>span{font-size:.74rem;text-transform:uppercase;letter-spacing:.08em;color:var(--blue);font-weight:800;margin-top:26px}.form-index strong{margin-top:6px}.form-index small{margin-top:6px;color:var(--muted);line-height:1.5}.back-link{color:var(--blue);font-weight:700;font-size:.9rem}.document-form{border-left:1px solid var(--line);padding-left:34px}.document-form__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.document-field.span-2{grid-column:span 2}.document-field textarea{min-height:110px;resize:vertical}.document-field small{color:var(--muted);font-size:.78rem}.document-field em{font-style:normal;color:var(--red);font-size:.78rem}.document-form__actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.record-titlebar h2{margin:12px 0 5px;font-size:1.45rem}.record-titlebar p{margin:0;color:var(--muted)}.record-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:34px}.record-main{display:grid;gap:28px}.record-section{border-top:1px solid var(--line)}.record-section header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:15px 0 11px}.record-section header span{font-weight:800}.record-section header small{color:var(--muted)}.record-section dl{margin:0}.record-section dl div{display:grid;grid-template-columns:180px 1fr;gap:20px;padding:13px 0;border-top:1px solid var(--line)}.record-section dt{color:var(--muted);font-weight:700}.record-section dd{margin:0}.record-note{padding:14px 0;border-top:1px solid var(--line)}.record-note p{margin:0 0 10px}.record-side{border-left:1px solid var(--line);padding-left:28px}.record-side__label{font-size:.74rem;text-transform:uppercase;letter-spacing:.08em;color:var(--blue);font-weight:800}.record-side dl{margin:12px 0 0}.record-side dl div{padding:13px 0;border-bottom:1px solid var(--line)}.record-side dt{color:var(--muted);font-size:.82rem;font-weight:700}.record-side dd{margin:5px 0 0}
.command-backdrop{position:fixed;inset:0;background:rgba(5,16,28,.34);z-index:100;display:grid;place-items:start center;padding-top:12vh;opacity:0;transition:.16s ease}.command-open .command-backdrop{opacity:1}.command-palette{width:min(620px,calc(100vw - 28px));background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 30px 90px rgba(7,38,68,.25);transform:translateY(-10px) scale(.99);transition:.16s ease;overflow:hidden}.command-open .command-palette{transform:none}.command-palette__head{display:grid;grid-template-columns:42px 1fr 36px;gap:10px;align-items:center;padding:12px;border-bottom:1px solid var(--line)}.command-palette__head img{width:38px;height:38px;object-fit:contain}.command-palette__head input{border:0;background:transparent;color:var(--text);font-size:1rem;outline:none}.command-palette__head button{border:0;background:transparent;color:var(--muted);font-size:1.4rem;cursor:pointer}.command-palette__body{padding:8px}.command-group-label{display:block;padding:8px 10px 5px;color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.command-palette__body a{display:block;padding:11px 12px;border-radius:10px}.command-palette__body a:hover{background:var(--blue-soft)}.command-palette__body strong,.command-palette__body small{display:block}.command-palette__body small{color:var(--muted);margin-top:3px}.command-palette__foot{display:flex;justify-content:space-between;gap:16px;padding:10px 14px;border-top:1px solid var(--line);color:var(--muted);font-size:.76rem}
.login-horizon{min-height:100vh;background:var(--bg);padding-bottom:0}.login-horizon__top{height:84px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--surface)}.login-logo-full{width:235px;height:auto;display:block;object-fit:contain}.login-horizon__main{min-height:calc(100vh - 84px);max-width:1280px;margin:0 auto;padding:70px 36px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.7fr);gap:84px;align-items:center}.login-story{max-width:720px}.story-kicker{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--blue);font-weight:800}.login-story h1{margin:16px 0 20px;font-size:clamp(3.2rem,6vw,6.7rem);letter-spacing:-.065em;line-height:.9}.login-story>p{margin:0;color:var(--muted);font-size:1.08rem;line-height:1.65;max-width:620px}.story-line{height:1px;background:var(--line);margin:36px 0 0}.story-points{display:grid;grid-template-columns:repeat(3,1fr)}.story-points div{padding:16px 16px 0 0;border-right:1px solid var(--line)}.story-points div+div{padding-left:16px}.story-points div:last-child{border-right:0}.story-points strong{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--blue);font-size:.8rem}.story-points span{display:block;margin-top:5px;font-weight:800}.login-box{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:28px;box-shadow:var(--shadow)}.login-box__head{display:flex;align-items:center;gap:13px;margin-bottom:22px}.login-box__head img{width:76px;height:auto;object-fit:contain}.login-box__head span{display:block;color:var(--muted);font-size:.8rem}.login-box__head h2{margin:4px 0 0;font-size:1.5rem}.login-form{display:grid;gap:16px}.login-form label{display:flex;flex-direction:column;gap:7px}.password-box{position:relative}.password-box input{padding-right:84px}.password-box button{position:absolute;right:6px;top:6px;bottom:6px;border:0;border-radius:6px;background:var(--blue-soft);color:var(--blue);padding:0 10px;font-weight:800;cursor:pointer}.login-legal{margin:18px 0 0;text-align:center;color:var(--muted);font-size:.8rem}
@keyframes stageIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(max-width:1100px){.horizon-topbar{grid-template-columns:1fr auto}.command-trigger{display:none}.horizon-main{padding:0 24px}.signal-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.signal-strip article:nth-child(2){border-right:0}.signal-strip article:nth-child(-n+2){border-bottom:1px solid var(--line)}.runway-layout,.record-layout,.login-horizon__main{grid-template-columns:1fr}.focus-panel,.record-side{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:24px}.filter-shelf__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-canvas{grid-template-columns:1fr}.form-index{position:static}.document-form{border-left:0;padding-left:0}.login-horizon__main{gap:46px}.login-story h1{font-size:clamp(3rem,8vw,5rem)}}
@media(max-width:760px){body{padding-bottom:82px}.horizon-topbar{height:68px;padding:0 14px}.horizon-logo-full{width:155px}.horizon-product-label,.horizon-user{display:none}.horizon-main{padding:0 16px}.horizon-hero{padding:28px 0 20px}.horizon-hero__mark{display:none}.horizon-dock{bottom:12px;width:calc(100vw - 24px);justify-content:space-between;border-radius:16px}.dock-item{min-width:0;flex:1;height:46px;padding:0 7px;font-size:.76rem}.dock-brand{display:none}.signal-strip{grid-template-columns:1fr}.signal-strip article{border-right:0;border-bottom:1px solid var(--line)}.signal-strip article:last-child{border-bottom:0}.filter-shelf__grid,.document-form__grid,.story-points{grid-template-columns:1fr}.document-field.span-2{grid-column:auto}.module-toolbar,.record-titlebar{align-items:flex-start;flex-direction:column}.module-actions{width:100%}.module-actions a,.module-actions button{flex:1}.record-section dl div{grid-template-columns:1fr}.table-pagination{font-size:.78rem}.login-horizon__top{padding:0 18px}.login-logo-full{width:190px}.login-horizon__main{padding:44px 20px}.login-story h1{font-size:3.1rem}.story-points div,.story-points div+div{padding:12px 0;border-right:0;border-bottom:1px solid var(--line)}.story-points div:last-child{border-bottom:0}.login-box{padding:22px}}

/* ========================================================================
   DMH Horizon V9 — interaction, contrast, launcher, glass actions, toasts
   ======================================================================== */
[hidden]{display:none!important}
:root{
  --surface-elevated:#ffffff;
  --heading:#071d31;
  --blue-glow:rgba(11,90,165,.24);
  --pink:#cf4aa8;
  --pink-soft:#faeaf5;
  --amber:#c38310;
  --amber-soft:#fff5dc;
}
html[data-theme='dark']{
  --bg:#06111d;
  --surface:#0a1725;
  --surface-soft:#0e2032;
  --surface-elevated:#102235;
  --line:#21364b;
  --line-strong:#31506d;
  --text:#e8f3fd;
  --heading:#ffffff;
  --muted:#9fb5c9;
  --blue:#70baff;
  --blue-2:#93ccff;
  --blue-soft:#102c46;
  --blue-faint:#0a2034;
  --green:#55d1a7;
  --red:#ff8490;
  --pink:#f184d0;
  --pink-soft:#321b31;
  --amber:#ffc85d;
  --amber-soft:#332818;
  --shadow:0 18px 52px rgba(0,0,0,.26);
}
html[data-theme='dark'] .horizon-logo-link,
html[data-theme='dark'] .login-logo-plate{background:#fff;border-radius:12px;padding:7px 10px;box-shadow:0 8px 24px rgba(0,0,0,.18)}
html[data-theme='dark'] .horizon-logo-full{filter:none}
.horizon-hero h1,.section-head h2,.record-titlebar h2,.table-canvas__head strong,.filter-shelf__title strong,.form-index strong,.record-section header span{color:var(--heading)}
.horizon-hero__mark{display:none!important}
.horizon-topbar,.horizon-main,.dmh-center-dock,.command-backdrop,.module-launcher-backdrop,.sileo-stack{isolation:isolate}
.horizon-topbar{z-index:80}
.icon-button,.quiet-button,.command-trigger,.dmh-launcher-trigger{position:relative;z-index:2;pointer-events:auto}
.theme-switch{overflow:hidden;display:grid;place-items:center}.theme-icon{position:absolute;transition:.24s ease}.theme-icon--sun{opacity:1;transform:rotate(0) scale(1)}.theme-icon--moon{opacity:0;transform:rotate(-30deg) scale(.65)}
html[data-theme='dark'] .theme-icon--sun{opacity:0;transform:rotate(30deg) scale(.65)}html[data-theme='dark'] .theme-icon--moon{opacity:1;transform:rotate(0) scale(1)}

/* Only DMH at bottom */
.horizon-dock{display:none!important}
.dmh-center-dock{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:90;pointer-events:none}
.dmh-launcher-trigger{pointer-events:auto;width:66px;height:66px;border-radius:22px;border:1px solid color-mix(in srgb,var(--line) 70%,transparent);background:color-mix(in srgb,var(--surface) 86%,transparent);backdrop-filter:blur(18px) saturate(140%);box-shadow:0 18px 55px rgba(3,33,61,.24);display:grid;place-items:center;cursor:pointer;transition:.24s cubic-bezier(.2,.8,.2,1);overflow:visible}
.dmh-launcher-trigger:hover{transform:translateY(-4px) scale(1.04);box-shadow:0 22px 70px rgba(11,90,165,.26)}
.dmh-launcher-trigger img{width:48px;height:48px;object-fit:contain;border-radius:13px;background:#fff;padding:3px;transition:.25s ease}
.launcher-halo{position:absolute;inset:-8px;border:1px solid color-mix(in srgb,var(--blue) 26%,transparent);border-radius:28px;opacity:.75;animation:haloBreathe 2.8s ease-in-out infinite;pointer-events:none}
.launcher-dots{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,4px);grid-auto-rows:4px;gap:4px;place-content:center;opacity:0;transition:.2s ease;pointer-events:none}
.launcher-dots i{width:4px;height:4px;border-radius:50%;background:var(--blue)}
.launcher-open .dmh-launcher-trigger img{opacity:0;transform:scale(.7) rotate(-8deg)}.launcher-open .launcher-dots{opacity:1;transform:rotate(90deg)}

/* Module launcher */
.module-launcher-backdrop,.command-backdrop{pointer-events:none}
.module-launcher-backdrop{position:fixed;inset:0;background:rgba(3,15,27,.34);backdrop-filter:blur(8px);z-index:130;opacity:0;transition:.22s ease;display:grid;place-items:end center;padding:24px 20px 104px}
.launcher-open .module-launcher-backdrop{opacity:1;pointer-events:auto}
.module-launcher{width:min(1040px,calc(100vw - 32px));max-height:min(720px,calc(100vh - 150px));background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:0 34px 100px rgba(3,31,56,.28);overflow:hidden;transform:translateY(22px) scale(.985);opacity:.7;transition:.24s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column}
.launcher-open .module-launcher{transform:none;opacity:1}
.module-launcher__head,.module-launcher__foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border-bottom:1px solid var(--line)}
.module-launcher__foot{border-top:1px solid var(--line);border-bottom:0;color:var(--muted);font-size:.76rem}
.module-launcher__brand{display:flex;align-items:center;gap:12px}.module-launcher__brand img{width:48px;height:48px;object-fit:contain;background:#fff;border-radius:12px;padding:4px;border:1px solid #e5ebf1}.module-launcher__brand strong,.module-launcher__brand small{display:block}.module-launcher__brand small{color:var(--muted);margin-top:2px}
.launcher-close{width:38px;height:38px;border-radius:12px;border:1px solid var(--line);background:var(--surface-soft);color:var(--text);font-size:1.35rem;cursor:pointer}
.module-launcher__body{display:grid;grid-template-columns:460px minmax(0,1fr);min-height:420px;overflow:hidden}
.module-launcher__grid{padding:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-content:start;overflow:auto;border-right:1px solid var(--line);background:var(--surface-soft)}
.module-tile{min-height:112px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);padding:14px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:4px;cursor:pointer;transition:.18s ease;text-align:left}
.module-tile:hover,.module-tile.active{border-color:color-mix(in srgb,var(--blue) 38%,var(--line));box-shadow:0 14px 34px rgba(15,75,126,.1);transform:translateY(-2px)}
.module-tile.active{background:var(--blue-faint)}.module-tile__icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font-weight:900;margin-bottom:auto}.module-tile strong{font-size:.9rem}.module-tile small{color:var(--muted);font-size:.75rem}
.module-launcher__detail{padding:22px;overflow:auto}.module-detail-panel{display:none;animation:panelIn .2s ease}.module-detail-panel.active{display:block}.module-detail-kicker{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--blue);font-weight:900}.module-detail-panel h2{margin:7px 0 8px;color:var(--heading);font-size:1.55rem}.module-detail-panel>p{margin:0 0 18px;color:var(--muted);line-height:1.55}
.module-subgrid{display:grid;gap:8px}.module-subgrid a,.module-subgrid button{width:100%;display:grid;grid-template-columns:1fr auto;gap:2px 12px;align-items:center;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--text);padding:12px 13px;text-align:left;cursor:pointer;transition:.16s ease}.module-subgrid a:hover,.module-subgrid button:hover{background:var(--blue-faint);border-color:color-mix(in srgb,var(--blue) 34%,var(--line));transform:translateX(2px)}.module-subgrid strong,.module-subgrid small{display:block}.module-subgrid small{color:var(--muted);margin-top:2px}.module-subgrid a>span,.module-subgrid button>span{grid-column:2;grid-row:1/3;color:var(--blue);font-weight:900}

/* Command palette */
.command-backdrop{z-index:150}.command-open .command-backdrop{pointer-events:auto}.command-palette__body{max-height:390px;overflow:auto}.command-result{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;border:0;background:transparent;color:var(--text);padding:11px 12px;border-radius:10px;text-align:left;cursor:pointer}.command-result:hover,.command-result.active{background:var(--blue-soft)}.command-result strong,.command-result small{display:block}.command-result small{color:var(--muted);margin-top:2px}.command-result b{color:var(--blue)}.command-empty{padding:24px 12px;color:var(--muted);text-align:center}

/* Glass action buttons */
.module-actions{align-items:center}.glass-button{--glass-rgb:11,90,165;position:relative;height:42px;border-radius:14px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(var(--glass-rgb),.26);background:linear-gradient(180deg,rgba(var(--glass-rgb),.14),rgba(var(--glass-rgb),.07));color:rgb(var(--glass-rgb));font-weight:850;cursor:pointer;backdrop-filter:blur(14px) saturate(145%);box-shadow:inset 0 1px 0 rgba(255,255,255,.42),0 8px 24px rgba(var(--glass-rgb),.10);transition:.2s cubic-bezier(.2,.8,.2,1);overflow:hidden}
.glass-button:before{content:"";position:absolute;left:18%;right:18%;top:-1px;height:2px;border-radius:999px;background:rgba(var(--glass-rgb),.75);box-shadow:0 0 12px rgba(var(--glass-rgb),.65)}
.glass-button:hover{transform:translateY(-2px);box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 12px 30px rgba(var(--glass-rgb),.16)}
.glass-blue{--glass-rgb:11,90,165}.glass-green{--glass-rgb:15,152,112}.glass-red{--glass-rgb:198,75,89}.glass-pink{--glass-rgb:207,74,168}.glass-neutral{--glass-rgb:98,121,145}
html[data-theme='dark'] .glass-button{color:color-mix(in srgb,rgb(var(--glass-rgb)) 74%,white);background:linear-gradient(180deg,rgba(var(--glass-rgb),.19),rgba(var(--glass-rgb),.09));border-color:rgba(var(--glass-rgb),.35)}
.row-action{display:inline-flex;padding:7px 9px;border-radius:9px;transition:.15s ease}.row-view{color:var(--blue)}.row-edit{color:#1c82ba}.row-action:hover{background:var(--blue-soft)}
.is-processing{pointer-events:none;opacity:.68}.is-processing:after{content:"";width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}

/* Action motion */
.motion-download{animation:downloadPulse .62s ease}.motion-edit{animation:editNudge .55s ease}.motion-delete{animation:deleteShake .48s ease}.motion-save{animation:savePop .52s ease}.motion-view{animation:viewFlash .45s ease}.motion-restore{animation:savePop .52s ease}

/* Sileo-like toasts */
.sileo-stack{position:fixed;top:max(18px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:220;width:min(460px,calc(100vw - 28px));display:flex;flex-direction:column;gap:10px;pointer-events:none}
.sileo-toast{--toast:#70baff;position:relative;display:grid;grid-template-columns:12px 1fr 28px;gap:12px;align-items:center;min-height:62px;padding:12px 12px 12px 15px;border-radius:18px;background:#111820;color:#f5f8fb;border:1px solid rgba(255,255,255,.08);box-shadow:0 20px 55px rgba(0,0,0,.24);overflow:hidden;opacity:0;transform:translateY(-18px) scale(.95);transition:.28s cubic-bezier(.22,.9,.3,1.15);pointer-events:auto}.sileo-toast.is-visible{opacity:1;transform:none}.sileo-toast.is-leaving{opacity:0;transform:translateY(-12px) scale(.96)}.sileo-success{--toast:#35cf9a}.sileo-error{--toast:#ff6978}.sileo-warning{--toast:#ffc55e}.sileo-download{--toast:#ef79c7}.sileo-info{--toast:#68b8ff}.sileo-cap{position:absolute;top:0;left:34%;right:34%;height:4px;border-radius:0 0 8px 8px;background:var(--toast);box-shadow:0 0 15px color-mix(in srgb,var(--toast) 68%,transparent)}.sileo-dot{width:10px;height:10px;border-radius:50%;background:var(--toast);box-shadow:0 0 0 5px color-mix(in srgb,var(--toast) 14%,transparent)}.sileo-copy strong{display:block;font-size:.88rem}.sileo-copy small{display:block;color:#aebbc8;margin-top:3px;font-size:.78rem;line-height:1.35}.sileo-close{width:28px;height:28px;border:0;border-radius:9px;background:rgba(255,255,255,.06);color:#ccd7e1;cursor:pointer}.sileo-progress{position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,var(--toast),transparent);animation:toastLife 3.6s linear forwards}

/* Partial-navigation transitions / progress */
.route-progress{position:fixed;left:0;right:0;top:0;height:3px;z-index:250;pointer-events:none;opacity:0}.route-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#0b5aa5,#69b7ff,#cf4aa8);box-shadow:0 0 12px rgba(105,183,255,.7)}.route-progress.active{opacity:1}.route-progress.active span{animation:routeLoading 1.8s ease-in-out infinite}
[data-app-view]{transition:opacity .16s ease,transform .16s ease}.view-leave{opacity:.35;transform:translateY(4px)}.view-enter{animation:viewEnter .34s ease both}

/* Better light/dark readability */
html[data-theme='dark'] .table-canvas,html[data-theme='dark'] .login-box{box-shadow:0 16px 44px rgba(0,0,0,.2)}
html[data-theme='dark'] .horizon-table thead th{background:#102238;color:#b6c9da}
html[data-theme='dark'] .horizon-table tbody tr:hover td{background:#0d2236}
html[data-theme='dark'] .filter-shelf select,html[data-theme='dark'] .document-field input,html[data-theme='dark'] .document-field select,html[data-theme='dark'] .document-field textarea,html[data-theme='dark'] .login-form input{background:#0c1a29;border-color:#29445f;color:#f0f7ff}
html[data-theme='dark'] .filter-shelf select option,html[data-theme='dark'] .document-field select option{background:#0c1a29;color:#f0f7ff}
html[data-theme='dark'] .command-trigger,html[data-theme='dark'] .quiet-button,html[data-theme='dark'] .icon-button{background:#0d1d2d;border-color:#29445f;color:#f0f7ff}
html[data-theme='dark'] .command-trigger kbd{background:#081521;border-color:#29445f;color:#b5c8d9}
html[data-theme='dark'] .login-horizon__top{background:#0a1725}
html[data-theme='dark'] .login-logo-full{background:#fff;border-radius:12px;padding:8px 12px}

@keyframes haloBreathe{0%,100%{transform:scale(.94);opacity:.35}50%{transform:scale(1.06);opacity:.8}}
@keyframes panelIn{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes downloadPulse{0%,100%{transform:none}40%{transform:translateY(2px) scale(.97)}70%{transform:translateY(-2px)}}
@keyframes editNudge{0%,100%{transform:none}40%{transform:translateX(3px) rotate(-1deg)}70%{transform:translateX(-1px)}}
@keyframes deleteShake{0%,100%{transform:none}25%{transform:translateX(-3px) rotate(-1deg)}50%{transform:translateX(3px) rotate(1deg)}75%{transform:translateX(-2px)}}
@keyframes savePop{0%,100%{transform:none}45%{transform:scale(.95)}70%{transform:scale(1.04)}}
@keyframes viewFlash{0%,100%{box-shadow:none}50%{box-shadow:0 0 0 5px var(--blue-soft)}}
@keyframes toastLife{from{transform:scaleX(1);transform-origin:left}to{transform:scaleX(0);transform-origin:left}}
@keyframes routeLoading{0%{width:0;margin-left:0}50%{width:55%;margin-left:20%}100%{width:10%;margin-left:100%}}
@keyframes viewEnter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}

@media(max-width:900px){
  .module-launcher__body{grid-template-columns:1fr}.module-launcher__grid{grid-template-columns:repeat(4,minmax(0,1fr));border-right:0;border-bottom:1px solid var(--line);max-height:260px}.module-tile{min-height:92px}.module-launcher__detail{min-height:260px}
}
@media(max-width:620px){
  .module-launcher-backdrop{padding:12px 10px 92px;place-items:end center}.module-launcher{width:100%;max-height:calc(100vh - 112px);border-radius:22px}.module-launcher__head{padding:12px}.module-launcher__brand small{display:none}.module-launcher__grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:12px;gap:8px}.module-tile{min-height:82px;padding:10px}.module-tile small{display:none}.module-launcher__detail{padding:16px}.module-subgrid{grid-template-columns:1fr}.module-launcher__foot{display:none}.dmh-launcher-trigger{width:60px;height:60px;border-radius:20px}.dmh-launcher-trigger img{width:44px;height:44px}.sileo-stack{top:max(10px,env(safe-area-inset-top))}
}
