:root {
  color-scheme: light;
  --accent: #2563eb;
  --navy: #101c33;
  --line: #dbe4ef;
  --soft: #eef4ff;
  --surface: #fff;
  --text: #19283f;
  --muted: #62728a;
  font: 14px/1.55 "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #f3f6fb;
}
body { background: #f3f6fb; }
button, input, select, textarea { font: inherit; }
button, a, select, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #6b96f6; outline-offset: 2px; }
.shell { grid-template-columns: 266px minmax(0,1fr); }
.sidebar {
  background: linear-gradient(165deg, #152642 0%, #101c33 62%, #142e45 100%);
  color: #d7e4f4;
  padding: 23px 14px;
  gap: 26px;
  box-shadow: 8px 0 28px #15274810;
}
.sidebar .logo {
  width: 196px;
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
  padding: 8px 11px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px #07112344;
}
.sidebar nav { gap: 3px; }
.nav-label { padding-top: 20px; color: #90a7c4; font-size: 10px; letter-spacing: .15em; }
.nav { position: relative; min-height: 41px; border-radius: 10px; transition: background-color .17s ease, transform .17s ease, color .17s ease; }
.nav:hover { background: #263e60; color: #fff; transform: translateX(2px); }
.nav.active { background: #365c91; color: #fff; box-shadow: inset 3px 0 var(--accent); }
.nav i { color: #bdd2ee; font-size: 18px; }
.sidebar-foot { color: #b8c9df; border-top-color: #37516f; line-height: 1.7; }
.main { background: radial-gradient(circle at 90% 0%, #eaf1ff 0, transparent 400px), #f3f6fb; }
.top {
  min-height: 83px;
  padding: 17px clamp(22px,3vw,48px);
  background: #ffffffed;
  box-shadow: 0 2px 14px #19283f08;
  backdrop-filter: blur(14px);
}
.top h1 { font-size: 20px; font-weight: 750; letter-spacing: -.025em; color: #142743; }
.top small { color: var(--muted); }
.top-actions { gap: 9px; flex-wrap: wrap; }
.top-actions .input { width: min(270px, 38vw); }
.content { padding: 34px clamp(22px,3vw,48px) 56px; max-width: 1700px; }
.hero { align-items: center; margin-bottom: 24px; }
.hero h2 { color: #142743; font-size: clamp(26px, 2.3vw, 34px); font-weight: 760; letter-spacing: -.045em; }
.hero p { color: var(--muted); }
.card {
  border: 1px solid #e1e8f1;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 7px 25px #182a4410;
  padding: 22px;
  animation: rise .28s ease both;
}
.card h3 { color: #20314d; font-size: 16px; }
.stat { min-height: 138px; border-top: 3px solid var(--accent); color: var(--muted); }
.stat b { color: #142743; font-weight: 760; line-height: 1.1; }
.stats .card:nth-child(2) { border-top-color: #19a786; }
.stats .card:nth-child(3) { border-top-color: #e5a13d; }
.stats .card:nth-child(4) { border-top-color: #8b70d8; }
.btn {
  border-color: #ccd8e7;
  color: #234061;
  border-radius: 9px;
  font-weight: 650;
  box-shadow: 0 1px 2px #1427430c;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: 0 5px 15px #2147751a; }
.btn:active { transform: translateY(0) scale(.985); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(.94); color: #fff; }
.btn.warn { color: #ad513b; }
.field input, .field select, .field textarea, .input { border-color: #cbd7e7; color: var(--text); border-radius: 9px; transition: border-color .16s ease, box-shadow .16s ease; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #2f6de51e; outline: none; }
.field label { color: #2b405d; }
.tablewrap { border-color: #e2e9f2; border-radius: 12px; }
.table th { position: sticky; top: 0; background: #f1f5fb; color: #526681; z-index: 1; }
.table td { border-bottom-color: #e9eef5; }
.table tr:hover td { background: #f4f8ff; }
.table small, .position-card small, .role-grid small { color: var(--muted); }
.ref { color: #285bbb; }
.pill { background: #e8efff; color: #2d5daf; }
.pill.recu { background: #fff2db; color: #8c601a; }
.pill.cloture { background: #e0f6eb; color: #137052; }
.badge { background: #e5efff; color: #285bbb; }
.notice { background: #fffae8; border-color: #efe2af; color: #684f1b; }
.result { display: block; width: 100%; border-color: #dce5f0; transition: border-color .16s ease, transform .16s ease, background-color .16s ease; }
.result:hover { border-color: var(--accent); background: #f7faff; transform: translateX(2px); }
.modal-wrap { background: #09182bb3; backdrop-filter: blur(5px); }
.modal { border: 1px solid #dce4ef; border-radius: 18px; box-shadow: 0 24px 80px #07182a5c; animation: pop .2s ease both; }
.preview-modal { width: min(1120px, 100%); display: flex; flex-direction: column; overflow: hidden; }
.preview-modal .detail-head { flex: 0 0 auto; }
.preview-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; color: #536782; font-size: 12px; }
.preview-meta span:first-child { color: #183252; font-weight: 700; }
.preview-stage { display: grid; place-items: center; min-height: 250px; height: min(68vh, 760px); overflow: auto; border: 1px solid #dce5f0; border-radius: 12px; background: #eef3f9; }
.preview-frame { width: 100%; height: 100%; border: 0; background: white; }
.preview-image { max-width: 100%; max-height: 100%; object-fit: contain; }
.preview-text { align-self: stretch; justify-self: stretch; margin: 0; padding: 24px; background: white; color: #1c304b; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-unavailable { padding: 25px; color: #526681; text-align: center; }
.preview-actions { display: flex; justify-content: flex-end; padding-top: 12px; }
.login { background: radial-gradient(circle at 18% 15%, #325791, #101c33 58%, #091322 100%); }
.login-card { border: 1px solid #dbe6f2; box-shadow: 0 30px 80px #06132666; }
.login-card h1 { color: #152a49; }
.login-card p { color: var(--muted); }
.folder-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 17px; }
.folder-toolbar .hint { margin-left: auto; }
.count { margin-left: 4px; opacity: .72; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; margin-bottom: 20px; }
.folder-tile { display: flex; align-items: center; gap: 12px; min-height: 83px; width: 100%; padding: 15px; border: 1px solid #dce5f0; border-radius: 13px; background: #fff; box-shadow: 0 5px 18px #182a440b; color: var(--text); text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.folder-tile:hover, .folder-tile.selected { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 11px 24px #2a60bd21; }
.folder-tile strong { display: block; font-weight: 660; }
.folder-tile small { display: block; color: var(--muted); font-size: 11px; }
.folder-symbol { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 9px; background: #e6efff; color: #2a61b5; font-size: 21px; }
.folder-arrow { margin-left: auto; color: #7b8da7; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-heading h3 { margin: 0; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 9px; }
.role-grid > div { padding: 12px; border-radius: 9px; background: #f4f7fc; }
.role-grid strong, .role-grid small { display: block; }
.position-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 11px; }
.position-card { display: grid; gap: 12px; padding: 15px; border: 1px solid #e1e8f1; border-radius: 11px; background: #fbfcff; }
.position-card strong, .position-card small { display: block; }
.position-card .btn { justify-self: start; }
.position-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 12px; }
.active-dot { color: #137052; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 16px; }
.company-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: start; gap: 12px; padding: 20px; border: 1px solid #dfe7f1; border-radius: 15px; background: #fff; box-shadow: 0 6px 21px #1527480e; transition: transform .18s ease, box-shadow .18s ease; }
.company-card:hover { transform: translateY(-3px); box-shadow: 0 14px 29px #1527481b; }
.company-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #e8efff; color: #2b5dae; font-weight: 760; }
.company-card small { color: #677a94; font-size: 10px; letter-spacing: .06em; }
.company-card h3 { margin: 2px 0 0; line-height: 1.2; }
.company-card p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.company-card .pill { white-space: nowrap; }
.company-actions { grid-column: 2 / -1; }
.editor-modal { width: min(960px, 100%); }
.editor-toolbar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 11px; margin: 12px 0; border: 1px solid #dfe7f1; border-radius: 11px; background: #f5f8fc; }
.editor-toolbar select { margin-left: auto; max-width: 210px; padding: 7px 9px; border: 1px solid #cbd7e7; border-radius: 8px; background: #fff; color: var(--text); }
.editor-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor-layout textarea { min-height: 300px; }
.editor-preview { display: grid; grid-template-rows: auto 1fr; gap: 6px; margin-bottom: 12px; }
.editor-preview > strong { font-size: 13px; color: #2b405d; }
.editor-paper { min-height: 180px; padding: 19px 21px; border: 1px solid #e0e7f0; border-radius: 9px; background: #fff; box-shadow: inset 0 2px 6px #1b38540b; line-height: 1.7; overflow-wrap: anywhere; }
.editor-bullet { color: var(--accent); font-weight: 800; }
.login { padding: clamp(14px, 3vw, 42px); min-height: 100dvh; background: #e8eef7; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(370px, .88fr); width: min(1200px, 100%); min-height: min(735px, calc(100dvh - 84px)); overflow: hidden; border: 1px solid #cfdaea; border-radius: 26px; background: #fff; box-shadow: 0 28px 80px #152c5030; }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(30px, 4.2vw, 58px); color: #fff; background: linear-gradient(135deg, #142b4d, #10233d 55%, #0c3549); }
.login-story::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .27; background: repeating-linear-gradient(155deg, transparent 0 38px, #77b7d11a 39px 40px); }
.login-story > * { position: relative; z-index: 1; }
.login-story-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.login-story-top img { width: 178px; max-width: 48%; border-radius: 10px; box-shadow: 0 8px 22px #06152e55; }
.login-story-top span { font-size: 10px; font-weight: 750; letter-spacing: .16em; color: #b9cce5; text-align: right; }
.login-eyebrow { color: #64d9c1; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.login-story h1 { max-width: 620px; margin: 14px 0 20px; font-size: clamp(32px, 3.35vw, 52px); font-weight: 720; letter-spacing: -.052em; line-height: 1.14; }
.login-story h1 em { color: #92ebd9; font-style: normal; }
.login-story-body > p { max-width: 460px; margin: 0 0 36px; color: #c6d7e8; font-size: 15px; line-height: 1.7; }
.login-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 19px; border-top: 1px solid #bdd0e23a; }
.login-flow > div { display: grid; gap: 2px; min-width: 0; }
.login-flow span { color: #68d4bf; font: 700 11px/1.5 ui-monospace, Consolas, monospace; }
.login-flow strong { font-size: 13px; }
.login-flow small { color: #b6cadc; font-size: 11px; }
.login-brands { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid #bdd0e23a; }
.login-brands > span { color: #bdd0e2; font-size: 11px; }
.login-brands > div { display: flex; gap: 8px; }
.login-brands img { width: 100px; height: 48px; object-fit: contain; padding: 5px; border-radius: 7px; background: #fff; }
.login-entry { display: grid; place-items: center; padding: clamp(24px, 4.5vw, 72px); background: radial-gradient(circle at 80% 10%, #edf5ff, transparent 45%), #fff; }
.login-card { width: min(390px, 100%); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.login-mobile-logo { display: none; }
.login-card .login-eyebrow { color: #176d73; }
.login-card h2 { margin: 13px 0 8px; color: #142743; font-size: clamp(27px, 2.4vw, 34px); letter-spacing: -.045em; }
.login-card p { margin: 0 0 31px; color: #61748e; }
.login-card .field { margin-bottom: 17px; }
.login-card .field label { margin-bottom: 3px; }
.login-card .field input { min-height: 48px; background: #fff; }
.password-field { position: relative; }
.password-field input { padding-right: 92px; }
.password-field button { position: absolute; right: 7px; top: 6px; bottom: 6px; border: 0; border-radius: 6px; padding: 0 10px; background: #eef4fb; color: #305374; font-size: 12px; font-weight: 700; }
.password-field button:hover { background: #e1edfa; }
.login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 49px; margin-top: 26px; padding: 11px 16px; }
.login-submit span { font-size: 21px; line-height: 1; }
.login-footnote { margin-top: 21px; color: #72839b; font-size: 12px; text-align: center; }
.dashboard-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; padding: 27px 30px; border: 1px solid #d5e2ef; border-radius: 17px; background: linear-gradient(115deg, #fff, #f6faff 72%, #e9f4f7); }
.dashboard-kicker { color: #287a7d; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.dashboard-intro h2 { margin: 5px 0 1px; color: #142743; font-size: clamp(25px, 2.6vw, 34px); letter-spacing: -.045em; }
.dashboard-intro p { margin: 0; color: #61748e; }
.dashboard-intro-actions, .dashboard-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.stat small { display: block; margin-top: 6px; color: #71839a; font-size: 11px; }
.dashboard-panels .card { padding: 0; overflow: hidden; }
.dashboard-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 21px 14px; }
.dashboard-panel-head h3 { margin: 2px 0 0; font-size: 17px; }
.dashboard-total { color: #a0542f; font-size: 11px; font-weight: 750; }
.dashboard-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 10px 21px; border: 0; border-top: 1px solid #edf1f6; background: #fff; color: #22354e; text-align: left; transition: background-color .16s ease; }
.dashboard-row:hover { background: #f4f8fd; }
.dashboard-row-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 9px; background: #e9f1fd; color: #2464b9; font-size: 17px; }
.dashboard-row-icon.late { background: #fff0e7; color: #b35628; font-weight: 800; }
.dashboard-row-main { flex: 1; min-width: 0; }
.dashboard-row-main strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-row-main small { display: block; color: #71839a; font-size: 11px; }
.dashboard-empty { padding: 24px 21px; border-top: 1px solid #edf1f6; color: #71839a; font-size: 13px; }
.dashboard-shortcuts { padding: 18px 21px; border-top: 1px solid #edf1f6; }
.dashboard-shortcuts .btn { padding: 7px 10px; font-size: 11px; }
.icon { width: 17px; height: 17px; flex: none; vertical-align: -.2em; }
.nav .icon { width: 18px; height: 18px; }
.btn .icon { margin-right: 5px; }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow: auto; scrollbar-width: thin; scrollbar-color: #4b6689 transparent; }
.nav.active { background: #234c79; box-shadow: inset 3px 0 #6ce0c6, 0 6px 16px #06172b26; }
.nav:focus-visible, .folder-tile:focus-visible, .ged-company:focus-visible { outline: 3px solid #8cdbc9; outline-offset: 2px; }
.content { animation: workspace-arrive .28s ease-out both; }
.card, .folder-tile, .ged-company, .btn { transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease; }
.card:hover { box-shadow: 0 10px 28px #182a4416; }
.ged-companies { margin-bottom: 25px; padding: 21px; border: 1px solid #dce7f1; border-radius: 17px; background: linear-gradient(125deg, #fff, #f8fbff); box-shadow: 0 6px 22px #1328420b; }
.ged-companies .section-heading { margin-bottom: 15px; }
.ged-companies h3 { margin: 2px 0 0; color: #173354; font-size: 18px; }
.ged-company-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 9px; }
.ged-company { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 68px; padding: 10px 12px; border: 1px solid #dbe5f1; border-radius: 11px; background: #fff; color: #233a57; text-align: left; }
.ged-company:hover { border-color: #7ca7d9; transform: translateY(-2px); box-shadow: 0 8px 19px #1b4a8022; }
.ged-company.selected { border-color: #4b83c7; background: #edf5ff; }
.ged-company-mark { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 9px; background: #dcebf8; color: #245781; font-size: 11px; font-weight: 800; }
.ged-company > span:nth-child(2) { flex: 1; min-width: 0; }
.ged-company strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.ged-company small { display: block; color: #69819a; font-size: 10px; }
.access-company-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 13px; max-height: 360px; overflow: auto; padding: 7px 1px; }
.progress { position: fixed; z-index: 100; top: 16px; left: 50%; display: flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid #bed9e9; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px #1232522a; color: #24446b; font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%,-8px); transition: opacity .18s ease, transform .18s ease; }
.progress.visible { opacity: 1; transform: translate(-50%,0); }
.progress-ring { width: 16px; height: 16px; border: 2px solid #c8e7e3; border-top-color: var(--accent); border-radius: 50%; animation: progress-spin .65s linear infinite; }
.startup-error { display: grid; justify-items: start; gap: 14px; width: min(460px,calc(100% - 36px)); margin: min(18vh,130px) auto; padding: 30px; border: 1px solid #d8e3ee; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px #182a4418; }
.startup-error img { width: 170px; }.startup-error h1 { margin: 0; font-size: 23px; }.startup-error p { margin: 0; color: #637991; }
.report-bars { display: grid; gap: 17px; padding: 6px 0; }
.report-bar-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: #304560; font-size: 12px; }
.report-bar-row span { font-weight: 750; }
.report-track { height: 10px; overflow: hidden; border-radius: 99px; background: #e9eff7; }
.report-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2b66c8,#5cd1c0); transform-origin: left; animation: grow-bar .55s ease-out both; }
.report-completion { display: flex; flex-direction: column; align-items: center; }
.report-completion h3 { align-self: stretch; }
.report-completion p { margin: 14px 0 0; color: #60738b; font-size: 12px; }
.report-donut { display: grid; place-items: center; width: 165px; height: 165px; margin: 9px 0; border-radius: 50%; background: conic-gradient(#2c77c8 var(--completion),#e9eff7 0); }
.report-donut > span { display: grid; place-items: center; width: 126px; height: 126px; border-radius: 50%; background: #fff; color: #173554; font-size: 34px; font-weight: 800; }
.report-donut small { margin-top: -40px; font-size: 13px; color: #61748e; }
@keyframes grow-bar { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
@keyframes workspace-arrive { from { opacity: .6; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes progress-spin { to { transform: rotate(360deg); } }
@media (max-width: 850px) { .login-layout { grid-template-columns: 1fr; max-width: 560px; min-height: auto; } .login-story { gap: 18px; padding: 24px 30px; } .login-story-body { display: none; } .login-brands { padding-top: 12px; } .login-entry { padding: 38px 30px 45px; } }
@media (max-width: 480px) { .login { padding: 0; background: #fff; } .login-layout { min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; } .login-story { padding: 22px 24px; } .login-story-top { justify-content: center; } .login-story-top span, .login-brands { display: none; } .login-story-top img { max-width: none; width: 155px; } .login-entry { padding: 42px 24px; align-items: start; } }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 950px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { box-shadow: 14px 0 35px #0d1c3659; }
  .content { padding: 25px 20px 45px; }
}
@media (max-width: 620px) {
  .content { padding: 20px 14px 40px; }
  .top { padding: 13px 15px; }
  .top-actions .input { width: 100%; }
  .folder-grid { grid-template-columns: 1fr; }
  .company-card { grid-template-columns: 42px 1fr; }
  .company-card .pill { grid-column: 2; justify-self: start; }
  .company-actions { grid-column: 1 / -1; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-toolbar select { margin-left: 0; max-width: 100%; }
  .sidebar { position: fixed; }
  .ged-company-grid, .access-company-list { grid-template-columns: 1fr; }
}
/* Courispha workstation: compact signals, direct actions, and calm motion. */
body { background: #f4f7fb; }
.main { background: radial-gradient(circle at 92% 2%, #e5f1f4 0, transparent 370px), #f4f7fb; }
.sidebar { background: linear-gradient(175deg, #13253c 0%, #112138 58%, #102d3e 100%); }
.sidebar .nav.active { background: #ffffff1d; box-shadow: inset 3px 0 var(--accent), 0 4px 18px #07132622; }

/* 2026 workstation: compact hierarchy and clear, restrained motion. */
:root { --navy:#071c32; --line:#dbe5ee; --soft:#e7f5f1; --text:#102842; --muted:#61748a; font-family:Inter,"Segoe UI Variable","Segoe UI",Arial,sans-serif; }
body,.main { background:#f5f8fc; }
.shell { grid-template-columns:258px minmax(0,1fr); transition:grid-template-columns .24s cubic-bezier(.2,.8,.2,1); }
.sidebar { background:linear-gradient(180deg,#071c32,#0b2c42 80%,#063a42); border-right:1px solid #ffffff14; gap:12px; padding:19px 11px; }
.sidebar .logo { width:174px; max-height:65px; margin:3px 10px 7px; }
.sidebar-toggle { align-self:flex-end; display:grid; place-items:center; width:29px; height:29px; border:1px solid #ffffff38; border-radius:8px; background:#ffffff0f; color:#d8f5ed; cursor:pointer; }
.sidebar-toggle:hover { background:#ffffff27; }
.nav-group { border-top:1px solid #ffffff17; }
.nav-group:first-child { border-top:0; }
.nav-group summary { display:flex; align-items:center; justify-content:space-between; padding:15px 12px 8px; color:#9ebbc9; font-size:10px; font-weight:800; letter-spacing:.13em; cursor:pointer; list-style:none; }
.nav-group summary::-webkit-details-marker { display:none; }
.nav-group summary span { font-size:16px; line-height:1; transition:transform .18s; }
.nav-group[open] summary span { transform:rotate(180deg); }
.nav-group-items { display:grid; gap:3px; padding-bottom:8px; animation:nav-reveal .19s ease both; }
.sidebar .nav { min-height:42px; color:#cee0e9; font-weight:600; }
.sidebar .nav:hover { background:#ffffff15; }
.sidebar .nav.active { background:linear-gradient(90deg,#087d74,#075d62); color:white; box-shadow:inset 3px 0 #36dfb2,0 5px 16px #00182655; }
.sidebar .nav i { color:#8ce5d1; }
.sidebar-foot { font-size:11px; border-top:1px solid #ffffff2d; padding:15px 10px 4px; }
.sidebar-compact { grid-template-columns:72px minmax(0,1fr); }
.sidebar-compact .sidebar { overflow-x:hidden; }
.sidebar-compact .sidebar .logo { width:42px; height:42px; object-fit:cover; object-position:left; padding:4px; margin:2px 4px 9px; }
.sidebar-compact .nav-group summary { font-size:0; justify-content:center; padding:10px 0 4px; }
.sidebar-compact .nav-group summary span { font-size:15px; }
.sidebar-compact .nav-group-items { justify-items:center; }
.sidebar-compact .nav { width:47px; justify-content:center; padding:9px; }
.sidebar-compact .nav span,.sidebar-compact .sidebar-foot { display:none; }
.top { min-height:69px; padding:11px clamp(18px,2.4vw,38px); }
.top h1 { font-size:18px; }
.top-actions .btn,.top-actions .input { min-height:39px; }
.content { padding:28px clamp(18px,2.4vw,38px) 56px; }
.hero { margin-bottom:20px; }
.hero h2 { font-size:clamp(24px,2vw,31px); }
.hero p { max-width:730px; }
.card { border-radius:15px; box-shadow:0 7px 24px #1028420c; }
.card:hover { box-shadow:0 12px 29px #10284214; }
.table th { background:linear-gradient(180deg,#f0f5fa,#e8eef5); color:#334f6b; }
.table tr:hover td { background:#eef8f6; }
.btn.primary { background:linear-gradient(135deg,#0a8f77,#00685f); border-color:#087c70; box-shadow:0 4px 12px #006f6330; }
.btn.primary:hover { background:linear-gradient(135deg,#087a6d,#00574f); box-shadow:0 7px 17px #006f6340; }
.pill.cloture { background:#dcf7e8; color:#086b4d; }
.pill.recu { background:#fff0d8; color:#89561b; }
.row-actions { display:flex; gap:5px; flex-wrap:wrap; min-width:295px; }
.integration-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:16px; }
.integration-grid .card { display:grid; justify-items:start; gap:6px; }
.integration-grid p { margin:0; color:#63788b; font-size:12px; }
.eyebrow { color:#087a70; font-size:10px; font-weight:800; letter-spacing:.14em; }
.access-modal { width:min(740px,100%); }
.privilege-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 12px; max-height:54vh; overflow:auto; padding:8px 2px 15px; margin-bottom:15px; }
.privilege-row { display:flex; align-items:center; justify-content:space-between; gap:9px; min-height:57px; padding:8px 10px; border:1px solid #dce8ee; border-radius:10px; background:#f8fbfd; color:#193b54; font-weight:650; font-size:12px; }
.privilege-row span { min-width:0; }
.privilege-row small { display:block; color:#7b8b9d; font-size:10px; font-weight:400; }
.privilege-row select { min-width:116px; max-width:145px; padding:6px; border:1px solid #cddfe4; border-radius:7px; background:white; font-size:11px; }
.invite-shell { width:min(500px,calc(100% - 30px)); margin:auto; padding:35px; background:white; border-radius:20px; }
.invite-shell>img { width:180px; display:block; margin-bottom:25px; }
.invite-shell h2 { margin:9px 0; color:#102842; font-size:29px; }
.invite-shell .btn { margin-top:8px; }
.login { background:linear-gradient(135deg,#e6eff6,#f8fbff); }
.login-layout { border-radius:23px; box-shadow:0 28px 75px #0b28432c; }
.login-story { background:radial-gradient(circle at 73% 40%,#076674 0,transparent 44%),linear-gradient(145deg,#06182e,#0a2e47 68%,#044851); }
.login-story::after { opacity:.33; background:linear-gradient(155deg,transparent 45%,#0aa98835 45.5%,transparent 48%); }
.login-card h2 { font-size:clamp(29px,2.7vw,39px); }
.login-submit { min-height:54px; }
.manico-launch { position:fixed; z-index:9; right:20px; bottom:20px; display:flex; align-items:center; gap:7px; border:1px solid #a5dacb; border-radius:999px; padding:7px 13px 7px 6px; background:linear-gradient(135deg,#0e7d72,#065d64); color:white; font-weight:800; box-shadow:0 13px 32px #063d445c; cursor:pointer; transition:transform .2s,box-shadow .2s; }
.manico-launch:hover { transform:translateY(-3px); box-shadow:0 18px 36px #063d446e; }
.manico-launch svg { width:36px; height:36px; border-radius:50%; background:#fff; }
.manico-panel { position:fixed; z-index:12; right:20px; bottom:77px; display:flex; flex-direction:column; width:min(430px,calc(100vw - 24px)); height:min(620px,calc(100dvh - 110px)); border:1px solid #bcded8; border-radius:17px; background:#fff; box-shadow:0 22px 70px #06203955; overflow:hidden; animation:chat-open .22s cubic-bezier(.2,.8,.2,1) both; }
.manico-panel header { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 14px; background:linear-gradient(125deg,#0a344c,#006b66); color:white; }
.manico-identity { display:flex; align-items:center; gap:9px; }
.manico-identity svg { width:39px; height:39px; }
.manico-identity strong,.manico-identity small { display:block; }
.manico-identity small { color:#c9ebe6; font-size:10px; }
.manico-panel header .btn { background:#ffffff20; color:white; border-color:#ffffff50; }
.manico-messages { flex:1; min-height:0; overflow:auto; padding:18px; display:flex; flex-direction:column; gap:12px; background:linear-gradient(180deg,#f7fbfd,#fff); }
.manico-welcome { align-self:center; display:grid; justify-items:center; max-width:290px; margin:auto; text-align:center; color:#29495c; }
.manico-welcome svg { width:74px; margin-bottom:10px; }
.manico-welcome p { margin:5px 0; font-size:12px; color:#627a8d; }
.manico-bubble { display:flex; align-items:start; gap:7px; max-width:91%; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
.manico-bubble svg { width:30px; flex:none; }
.manico-bubble>div { padding:10px 12px; border:1px solid #d7e8e6; border-radius:12px 12px 12px 3px; background:#f0f8f6; }
.manico-bubble small { display:block; margin-top:8px; color:#4d7172; }
.manico-bubble.user { align-self:flex-end; }
.manico-bubble.user>div { border-color:#006c64; border-radius:12px 12px 3px 12px; background:#087a70; color:white; }
.manico-compose { display:grid; gap:7px; padding:11px 13px 13px; border-top:1px solid #dbeae7; background:white; }
.manico-context { display:flex; gap:5px; }
.manico-context select { width:33.33%; min-width:0; padding:7px 4px; border:1px solid #d5e4ea; border-radius:8px; background:#f8fbfd; font-size:11px; }
.manico-input { display:flex; gap:6px; }
.manico-input textarea { flex:1; min-height:55px; max-height:100px; resize:vertical; padding:9px; border:1px solid #cddfe4; border-radius:9px; }
.manico-input .btn { align-self:end; min-width:40px; }
.manico-compose>small { color:#657b89; font-size:10px; }
.manico-page { max-width:920px; min-height:560px; display:flex; flex-direction:column; padding:0; overflow:hidden; }
.manico-page .manico-messages { min-height:390px; }
.manico-page .manico-compose { padding:16px; }
@keyframes nav-reveal { from { opacity:.4; transform:translateY(-4px); } to { opacity:1; transform:none; } }
@keyframes chat-open { from { opacity:0; transform:translateY(12px) scale(.97); } to { opacity:1; transform:none; } }
@media(max-width:950px) { .shell,.sidebar-compact { grid-template-columns:1fr; } .sidebar { width:258px; } .sidebar-compact .sidebar { width:72px; } .sidebar-toggle { display:none; } }
@media(max-width:620px) { .privilege-list,.integration-grid { grid-template-columns:1fr; } .manico-launch { right:12px; bottom:12px; } .manico-panel { right:12px; bottom:69px; } .login-story { background:#092f49; } }
@media(prefers-reduced-motion:reduce) { .shell,.nav-group-items,.manico-panel,.manico-launch,.card,.btn,.content { animation:none!important; transition:none!important; } }
.nav:focus-visible { outline-offset: -2px; }
.top { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid #e2e9f2; }
.top-actions > .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.top-actions > .btn .icon { width: 16px; height: 16px; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: #dcebe9; color: #1d665e; font-size: 12px; font-weight: 800; }
.profile-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.command-trigger { color: #526781; background: #f6f8fc; border-color: #e0e7f0; }
.command-trigger kbd, .command-search kbd { margin-left: 12px; padding: 2px 6px; border: 1px solid #d7e0ed; border-radius: 5px; background: #fff; color: #71839a; font-family: inherit; font-size: 10px; line-height: 1.4; white-space: nowrap; }
.command-modal { width: min(590px,100%); padding-bottom: 10px; }
.command-modal .detail-head { align-items: center; }
.command-search { display: flex; align-items: center; gap: 10px; padding: 6px 11px; border: 1px solid #d5e0ed; border-radius: 12px; background: #f7f9fc; }
.command-search .icon { flex: 0 0 18px; color: #6b7e98; }
.command-search .input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; }
.command-search .input:focus { border: 0; outline: 0; box-shadow: none; }
.command-results { display: grid; gap: 3px; max-height: min(58vh,480px); overflow: auto; margin-top: 14px; }
.command-label { padding: 4px 8px 8px; color: #8291a4; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.command-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: #273e5b; text-align: left; }
.command-item .icon { width: 18px; height: 18px; color: #43729b; }
.command-item span:nth-child(2) { flex: 1; }
.command-item:hover, .command-item:focus-visible { background: #edf4fb; }
.command-item[hidden], [hidden] { display: none !important; }
.command-empty { padding: 15px; color: #71839a; text-align: center; }
.dashboard-intro { position: relative; min-height: 208px; align-items: center; overflow: hidden; padding: 30px 34px; border-color: #dbe6ee; background: linear-gradient(112deg,#fff 0%,#f7fbfd 67%,#e6f2f4 100%); box-shadow: 0 12px 35px #193c5010; }
.dashboard-intro::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55; background-image: radial-gradient(#b5d1dd 1px,transparent 1px); background-size: 19px 19px; mask-image: linear-gradient(90deg,transparent 55%,#000); }
.dashboard-intro-copy { position: relative; z-index: 1; }
.dashboard-intro h2 { font-size: clamp(27px,2.8vw,37px); }
.dashboard-intro-actions { margin-top: 19px; }
.dashboard-emblem { position: relative; flex: 0 0 160px; height: 146px; margin-right: clamp(6px,4vw,64px); }
.emblem-ring { position: absolute; inset: 7px 8px; border: 1px solid #bad8e1; border-radius: 44% 56% 51% 49%; transform: rotate(-21deg); }
.emblem-ring::before, .emblem-ring::after { content: ''; position: absolute; inset: 15px; border: 1px solid #d0e2e8; border-radius: 52% 48% 58% 42%; transform: rotate(39deg); }
.emblem-ring::after { inset: -14px; border-style: dashed; opacity: .6; }
.emblem-document { position: absolute; inset: 36px 44px 31px; display: grid; place-items: center; border: 1px solid #cbdfeb; border-radius: 19px; background: #fff; box-shadow: 0 18px 32px #28516a25; transform: rotate(-7deg); }
.emblem-document .icon { width: 38px; height: 38px; color: var(--accent); }
.emblem-check { position: absolute; right: 20px; bottom: 25px; display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid #f7fbfd; border-radius: 50%; background: #149478; color: #fff; font-weight: 800; }
.stat { position: relative; overflow: hidden; border-top: 0; min-height: 151px; transition: transform .18s ease, box-shadow .18s ease; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 14px 30px #1b355617; }
.stat::after { content: ''; position: absolute; top: 0; right: 0; width: 78px; height: 78px; border-radius: 0 0 0 100%; background: var(--stat-wash); }
.stat-blue { --stat-wash: #e8f1ff; --stat-ink: #2b66bc; }
.stat-teal { --stat-wash: #def6ef; --stat-ink: #138a70; }
.stat-amber { --stat-wash: #fff1dc; --stat-ink: #b7791e; }
.stat-violet { --stat-wash: #f1eafd; --stat-ink: #7954bb; }
.stat-icon { position: absolute; top: 20px; right: 20px; z-index: 1; display: grid; place-items: center; color: var(--stat-ink); }
.stat-icon .icon { width: 20px; height: 20px; }
.stat-label { display: block; padding-right: 32px; color: #5c6f86; font-size: 12px; font-weight: 650; }
.stat b { margin: 10px 0 2px; font-size: 35px; font-variant-numeric: tabular-nums; }
.stat small { color: #8291a3; }
.activity-panel { margin-bottom: 18px; padding: 18px 22px 14px; }
.activity-panel .section-heading { align-items: start; margin-bottom: 8px; }
.activity-panel h3 { margin: 2px 0 0; }
.activity-bars { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: clamp(8px,2vw,24px); height: 116px; align-items: end; }
.activity-day { display: grid; grid-template-rows: 66px 17px 18px; justify-items: center; gap: 2px; min-width: 0; color: #526c88; font-variant-numeric: tabular-nums; }
.activity-track { display: flex; align-items: end; width: min(100%,34px); height: 66px; overflow: hidden; border-radius: 8px 8px 3px 3px; background: #edf3f8; }
.activity-track span { width: 100%; min-height: 3px; border-radius: inherit; background: linear-gradient(0deg,#2a78bd,#53b9ac); transform-origin: bottom; animation: grow-column .35s ease-out both; }
.activity-day strong { font-size: 11px; }
.activity-day small { color: #8492a5; font-size: 11px; }
.dashboard-row { transition: background-color .16s ease, padding-left .16s ease; }
.dashboard-row:hover { padding-left: 25px; }
.ai-wait { display: grid; justify-items: start; gap: 10px; padding: 18px; border: 1px solid #dce8ef; border-radius: 12px; background: linear-gradient(120deg,#f8fbff,#f0f9f8); color: #28435f; }
.ai-wait-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: #deefeb; color: #218a7a; font-size: 20px; animation: ai-breathe 1.6s ease-in-out infinite; }
.ai-wait small { color: #71839b; }
.ai-wait-line { width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg,#e4ecf5 20%,#cce5e0 50%,#e4ecf5 80%); background-size: 220% 100%; animation: ai-sheen 1.6s linear infinite; }
.ai-wait-line.short { width: 68%; }
.progress-ring { width: 17px; height: 17px; border-width: 2px; box-shadow: inset 0 0 0 2px #fff; }
@keyframes grow-column { from { transform: scaleY(.08); } to { transform: scaleY(1); } }
@keyframes ai-breathe { 50% { transform: scale(1.07); opacity: .75; } }
@keyframes ai-sheen { to { background-position-x: -220%; } }
@media (max-width: 1100px) { .command-trigger kbd { display: none; } .dashboard-emblem { flex-basis: 120px; margin-right: 0; } }
@media (max-width: 620px) { .top { position: static; } .top-actions { gap: 6px; } .top-actions > .btn { padding: 8px; } .command-trigger > span, .notification-label, .profile-name, .command-trigger kbd { display: none; } .dashboard-intro { padding: 24px; } .dashboard-emblem { display: none; } .stat { min-height: 129px; } .activity-panel { padding: 16px 12px; } .activity-bars { gap: 5px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
