/* v10.9 extends the accepted v10.8 tokens and components. */
.v8-sidebar .v109-module-icon {display:block;flex:0 0 20px;width:20px;height:20px;}
.v109-module-icon.dot-green {color:var(--green);}.v109-module-icon.dot-navy {color:var(--navy);}.v109-module-icon.dot-amber {color:var(--amber);}.v109-module-icon.dot-blue {color:var(--focus);}
.v8-sidebar .v8-module-list a {min-height:38px;padding-top:8px;padding-bottom:8px;}
.v8-sidebar .v8-chevron {margin-left:auto;}
.v8-sidebar .v109-legacy {display:none;}
.v8-sidebar .v8-side-bottom>a.active {background:var(--tint);color:var(--navy);}
.v109-legacy {margin:12px 10px 4px;font-size:11px;color:var(--muted);}
.v109-legacy summary {cursor:pointer;padding:10px 0;}
.v109-legacy nav {display:grid;gap:2px;}
.v109-legacy nav a {padding:8px;border-radius:8px;color:var(--ink);}
.v109-legacy nav a:hover {background:var(--tint);}
.v109-heading {gap:20px;}
.v109-actions {display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.v109-heading>.v109-actions {flex:0 0 auto;}
.v109-demo {margin:-8px 0 20px;font-size:11px;color:var(--muted);}
.v109-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 14px;}
.v109-summary>button {display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:20px 24px;border:1px solid var(--line);border-radius:var(--card-radius);background:var(--card-background);text-align:left;color:var(--ink);font:inherit;cursor:pointer;}
.v109-summary>button[aria-pressed=true] {border-color:var(--green);background:var(--mint);}
.v109-summary>button>span {font-size:12px;}
.v109-summary strong {font-size:32px;font-weight:500;color:var(--navy);}
.v109-summary small {font-size:11px;color:var(--muted);}
.v109-alert,.v109-summary .v109-alert {color:var(--red);}
.v109-status-summary {display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin-bottom:24px;}
.v109-status-summary button {display:flex;flex-direction:column;justify-content:space-between;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);padding:12px;font:inherit;font-size:10px;text-align:left;min-height:78px;cursor:pointer;}
.v109-status-summary button b {font-size:18px;color:var(--navy);font-weight:500;}
.v109-status-summary button:hover {background:var(--tint);}
.v109-register {padding:24px;min-width:0;}
.v109-switch {display:flex;gap:3px;background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:3px;}
.v109-switch button {padding:8px 14px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer;}
.v109-switch button[aria-pressed=true] {background:var(--paper);color:var(--navy);box-shadow:0 1px 4px #17335412;}
.v109-toolbar {display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:18px 0;}
.v109-toolbar>.v8-search {flex:1;min-width:160px;margin:0;}
.v109-toolbar>label:not(.v8-search) {display:grid;gap:5px;font-size:10px;color:var(--muted);}
.v109-toolbar select {min-height:39px;max-width:210px;}
.v109-toolbar input,.v109-toolbar select,.v109-dialog input,.v109-dialog select,.v109-dialog textarea {padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px;min-width:0;max-width:100%;box-sizing:border-box;}
.v109-toolbar .v8-search input {border:0;background:transparent;width:100%;}
.v109-table-wrap {width:100%;overflow:auto;}
.v109-table {width:100%;border-collapse:collapse;text-align:left;font-size:12px;line-height:1.5;}
.v109-table th {background:var(--soft);font-weight:500;font-size:11px;color:var(--muted);padding:12px;text-align:left;}
.v109-table td {padding:16px 12px;border-bottom:1px solid var(--line);vertical-align:top;}
.v109-table td:first-child {width:28%;min-width:180px;}
.v109-table td small {display:block;font-size:10px;color:var(--muted);margin-top:6px;}
.v109-table td small.v109-alert {color:var(--red);}
.v109-table tr:last-child td {border-bottom:0;}
.v109-table tbody tr:hover {background:var(--soft);}
.v109-client {font-weight:600;color:var(--navy);text-decoration:none;}
.v109-client:hover {text-decoration:underline;}
.v109-amount {white-space:nowrap;font-variant-numeric:tabular-nums;}
.v109-code {display:block;font-size:10px;letter-spacing:.3px;color:var(--muted);margin-top:7px;}
.v109-status {display:inline-block;padding:5px 8px;border-radius:8px;font-size:10px;line-height:1.4;color:var(--navy);background:var(--ice);}
.v109-status.status-0,.v109-status.status-1 {background:var(--soft);color:var(--muted);}
.v109-status.status-3,.v109-status.status-4 {background:var(--sand);color:var(--amber);}
.v109-status.status-5,.v109-status.status-6 {background:var(--mint);color:var(--green);}
.v109-status.status-7 {background:var(--rose);color:var(--red);}
.v109-kanban {display:grid;grid-template-columns:repeat(8,230px);gap:12px;overflow-x:auto;align-items:start;padding:0 0 14px;}
.v109-column {background:var(--soft);border:1px solid var(--line);border-radius:14px;padding:12px;min-height:300px;}
.v109-column>header {display:flex;justify-content:space-between;gap:8px;min-height:34px;align-items:start;}
.v109-column>header h3 {margin:0;font-size:11px;font-weight:500;}
.v109-column>header b {font-size:11px;color:var(--muted);}
.v109-column-total {font-size:11px;color:var(--muted);margin:6px 0 15px;}
.v109-kanban-card {display:flex;flex-direction:column;gap:9px;padding:14px;margin-top:10px;background:var(--paper);border:1px solid var(--line);border-radius:12px;color:var(--ink);font-size:11px;line-height:1.5;text-decoration:none;}
.v109-kanban-card:hover {border-color:var(--focus);}
.v109-kanban-card>strong {font-size:13px;color:var(--navy);}
.v109-kanban-card>b {font-size:13px;font-weight:500;}
.v109-kanban-card small {font-size:10px;}
.v109-card-next {border-top:1px solid var(--line);padding-top:8px;}
.v109-empty {text-align:center;padding:44px 16px;font-size:12px;}
.v109-notice {padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--tint);font-size:12px;line-height:1.6;}
.v109-notice[hidden] {display:none;}
.v109-scenario-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:24px;}
.v109-scenario-card {display:flex;align-items:center;gap:16px;padding:24px;border:1px solid var(--line);border-radius:var(--card-radius);background:var(--card-background);text-decoration:none;color:var(--navy);font-size:13px;}
.v109-scenario-card:hover {border-color:var(--focus);}
.v109-scenario-number {font-size:20px;color:var(--blue);}
.v109-scenario-card>span:last-child {margin-left:auto;}
.v109-placeholder>h2 {font-size:18px;font-weight:500;}
.v109-placeholder>.v109-notice {margin-top:20px;}
.v109-dialog {width:900px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto;padding:28px;}
.v109-dialog h3 {font-size:14px;font-weight:500;color:var(--navy);margin:24px 0 14px;}
.v109-dialog p {font-size:12px;line-height:1.6;}
.v109-dialog .v8-dialog-head h2 {font-size:20px;}
.v109-dialog .v8-dialog-head {position:sticky;top:-28px;z-index:1;background:var(--paper);padding:12px 0;margin-top:-12px;}
.v109-card-heading {display:flex;gap:20px;align-items:center;justify-content:space-between;margin:10px 0 22px;}
.v109-card-heading h3 {font-size:22px;margin:8px 0;}
.v109-card-heading p {margin:0;}
.v109-card-facts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--soft);}
.v109-card-facts>div {display:flex;flex-direction:column;gap:8px;font-size:12px;}
.v109-card-facts span,.v109-card-facts small {font-size:10px;color:var(--muted);}
.v109-card-facts strong {font-weight:500;}
.v109-form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0;}
.v109-form-grid label,.v109-mapping label,.v109-source {display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--muted);}
.v109-form-grid input,.v109-form-grid select {width:100%;min-height:42px;}
.v109-form-grid textarea {width:100%;min-height:90px;resize:vertical;}
.v109-wide {grid-column:1/-1;}
.v109-card-actions {display:flex;flex-wrap:wrap;gap:8px;padding:18px 0;border-bottom:1px solid var(--line);}
.v109-documents {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.v109-document {display:flex;flex-direction:column;gap:8px;padding:16px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--paper);font:inherit;font-size:12px;color:var(--ink);cursor:pointer;}
.v109-document:hover {border-color:var(--focus);}
.v109-document small,.v109-document span {font-size:11px;color:var(--muted);}
.v109-history {list-style:none;padding:0;margin:0;}
.v109-history li {display:flex;gap:18px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;}
.v109-history time {white-space:nowrap;color:var(--muted);font-size:11px;}
.v109-picker {display:grid;gap:10px;}
.v109-source {max-width:320px;margin:16px 0;}
.v109-source[hidden] {display:none;}
.v109-mapping {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.v109-dialog #v109-import-preview table {min-width:730px;font-size:11px;}
.v109-dialog #v109-import-preview td {padding:10px;}
.v109-dialog #v109-import-preview td:first-child {min-width:110px;width:auto;}
.v109-import-success {padding:16px 0 24px;}
:is(.v109-summary button,.v109-switch button,.v109-status-summary button,.v109-scenario-card,.v109-kanban-card,.v109-dialog button):focus-visible {outline:3px solid var(--focus);outline-offset:2px;}
@media(hover:hover) {
 .v8-sidebar.v108-preview {width:272px;}
 .v8-sidebar.v108-preview .v8-chevron {display:inline;}
 .v8-sidebar.v108-preview .v109-legacy {display:block;}
 .v8-sidebar.v108-preview .v8-scenarios {padding-bottom:8px;}
}
@media(max-width:1100px) {
 .v109-heading {flex-wrap:wrap;}
 .v109-heading>.v109-actions {flex:1 1 100%;}
 .v109-status-summary {grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(max-width:760px) {
 .v109-summary {grid-template-columns:1fr;gap:8px;}
 .v109-summary>button {padding:14px 18px;display:grid;grid-template-columns:1fr auto;gap:6px;}
 .v109-summary strong {grid-column:2;grid-row:1/3;font-size:26px;}
 .v109-status-summary {grid-template-columns:repeat(2,minmax(0,1fr));}
 .v109-register {padding:14px;}
 .v109-register>.v8-section-head {flex-wrap:wrap;gap:10px;}
 .v109-toolbar {align-items:stretch;}
 .v109-toolbar>.v8-search {flex-basis:100%;}
 .v109-toolbar>label:not(.v8-search) {width:100%;}
 .v109-toolbar select {width:100%;max-width:100%;}
 .v109-table {min-width:850px;}
 .v109-dialog {padding:18px;max-width:calc(100vw - 20px);}
 .v109-dialog .v8-dialog-head {top:-18px;}
 .v109-form-grid,.v109-card-facts,.v109-documents,.v109-mapping,.v109-scenario-grid {grid-template-columns:1fr;}
 .v109-card-heading {flex-direction:column;align-items:flex-start;}
 .v109-card-heading h3 {font-size:19px;}
 .v109-history li {flex-direction:column;gap:6px;}
 .v109-heading>.v109-actions>* {width:100%;}
 .v109-dialog .v109-table {min-width:550px;}
 .v109-scenario-card {padding:18px;font-size:12px;}
 .v109-source {max-width:100%;}
}
/* Keep bottom navigation visible; only favorites scroll on shorter screens. */
.v8-sidebar {padding-top:12px;}
.v8-sidebar .v8-current {font-size:11px;line-height:1.3;margin:6px 10px;}
.v8-sidebar .v105-home-nav {padding:3px 0;margin:3px 0;}
.v8-sidebar .v105-home-nav a {min-height:34px;padding-top:7px;padding-bottom:7px;}
.v8-sidebar .v8-module-list {gap:1px;}
.v8-sidebar .v8-module-list a {min-height:32px;padding-top:6px;padding-bottom:6px;}
.v8-sidebar .v8-scenarios {margin-top:8px;padding-top:8px;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;}
.v8-sidebar .v8-scenario-link>a {min-height:30px;padding-top:6px;padding-bottom:6px;}
.v8-sidebar .v8-side-bottom>* {min-height:34px;padding-top:7px;padding-bottom:7px;}
.v8-sidebar .v109-legacy {display:block;margin:8px 0 0;}
.v109-legacy-entry {display:flex;gap:10px;align-items:center;min-height:36px;padding:8px 13px;color:var(--muted);border:0;border-radius:10px;background:transparent;font:inherit;font-size:11px;cursor:pointer;text-align:left;}
.v109-legacy-entry:hover {background:var(--tint);}
.v8-sidebar .v109-legacy-entry>span {display:none;}
.v109-legacy-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px;}
@media(hover:hover) {.v8-sidebar.v108-preview .v109-legacy-entry>span {display:inline;}}
@media(max-width:760px) {.v109-legacy-grid {grid-template-columns:1fr;}}
