/* Nasher design layer (matches Nasher_UI_UX_Redesign_10_Screens). Loaded after site.css and finance-system.css; tokens in tokens.css.
   Violet-navy rail, lavender canvas, soft translucent panels, icon tiles. Logical properties keep RTL and LTR in sync. */

body{background:#f0f0fd}
.workspace{min-height:100vh;background:
  radial-gradient(520px 200px at 28% -40px,#e4e0fd 0,rgb(228 224 253/0) 72%),
  radial-gradient(700px 420px at 100% 12%,rgb(214 210 250/.45) 0,rgb(214 210 250/0) 70%),
  linear-gradient(180deg,#f3f2fe 0,#efeffd 100%)}

/* Icons and tiles */
.ico{stroke-width:1.7}
.tile{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--accent-soft);color:var(--accent-ink);flex-shrink:0}
.tile .ico{width:19px;height:19px}
.tile.solid{background:linear-gradient(135deg,#8a67fb,#5b30ee);color:#fff;box-shadow:0 6px 14px -4px var(--accent-glow)}
.tile.green{background:#eaf8f0;color:var(--pos)}
.tile.amber{background:#fcf0db;color:#d97706}
.tile.sky{background:var(--sky-soft);color:var(--sky)}
.tile.rose{background:#fdeaee;color:var(--neg)}
.tile.lg{width:48px;height:48px;border-radius:15px}
.tile.lg .ico{width:24px;height:24px}

/* Sidebar */
.sidebar{width:230px;background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 230 520' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%236d46f2' stop-opacity='0'/%3E%3Cstop offset='.55' stop-color='%236d46f2' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23a58bff' stop-opacity='.15'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M-20 520C40 400 120 330 260 250' fill='none' stroke='url(%23g)' stroke-width='1.6'/%3E%3Cpath d='M-20 520C60 430 150 360 260 300' fill='none' stroke='url(%23g)' stroke-width='1.2'/%3E%3Cpath d='M-20 520C80 470 170 420 260 380' fill='none' stroke='url(%23g)' stroke-width='1'/%3E%3Cpath d='M-20 520C20 380 90 300 260 170' fill='none' stroke='url(%23g)' stroke-width='.9' opacity='.6'/%3E%3C/svg%3E") no-repeat bottom/100% 52%,
  radial-gradient(260px 300px at 100% 100%,rgb(98 70 230/.38) 0,rgb(98 70 230/0) 70%),
  linear-gradient(180deg,#12153a 0,#14143e 60%,#11153b 100%);
  padding:20px 14px 16px;border-inline-end:1px solid rgb(255 255 255/.04)}
.portal .workspace{margin-inline-start:230px}
.brand{padding:4px 10px 22px;margin-bottom:10px;border-bottom:1px solid rgb(255 255 255/.07);gap:12px}
.brand-mark{width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,#8a67fb,#5b30ee);box-shadow:0 8px 18px -6px var(--accent-glow)}
.brand-mark .ico{width:21px;height:21px;stroke:#fff}
.brand-name{font-size:27px;font-weight:800;line-height:1.1;letter-spacing:0}
.brand small{font-size:12px;color:#b8bde8;margin-top:4px}
.sidebar nav{gap:6px;margin-top:10px}
.sidebar nav a{min-height:44px;padding:9px 14px;border-radius:13px;font-size:15px;font-weight:600;color:#dfe1f8;gap:14px;transition:background-color .3s var(--ease),color .3s var(--ease),box-shadow .3s var(--ease)}
.sidebar nav a .ico{width:19px;height:19px;color:#aeb3e6}
.sidebar nav a:hover{background:rgb(255 255 255/.06);color:#fff}
.sidebar nav a.selected{background:linear-gradient(90deg,#7a50f6,#4f26eb);color:#fff;box-shadow:0 12px 24px -8px var(--accent-glow)}
[dir=ltr] .sidebar nav a.selected{background:linear-gradient(90deg,#4f26eb,#7a50f6)}
.sidebar nav a.selected .ico{color:#fff}
.profile{border-top:1px solid rgb(255 255 255/.07);padding:16px 10px 4px;gap:12px}
.profile strong{font-size:13px;font-weight:700}
.profile small{color:#b8bde8;font-size:11.5px}
.avatar{background:#262a6b;color:#d9d2ff;box-shadow:inset 0 0 0 1px rgb(255 255 255/.1);font-weight:700}
.avatar.light{background:#e7e2fd;color:#4f26eb;box-shadow:none}

/* Top bar */
.topbar{height:52px;padding:0 28px;gap:18px;background:rgb(247 246 253/.82);backdrop-filter:blur(10px);border-bottom:1px solid rgb(220 218 245/.6);box-shadow:none;position:sticky;top:0;z-index:15}
.topbar-label{display:inline-flex;align-items:center;gap:9px;font-size:14px;font-weight:700;color:#1d1f4d}
.topbar-label .ico{width:17px;height:17px;color:#4b4f86}
.topbar-label .chev{width:14px;height:14px}
.top-search{width:min(430px,100%);min-height:36px;background:#efeffc;border:1px solid #e0def8;border-radius:14px;padding-inline:14px;box-shadow:inset 0 1px 2px rgb(60 50 160/.05)}
.top-search input{font-size:13.5px}
.top-search kbd{font:600 11px var(--mono);background:#f8f8ff;border:1px solid #dcdaf4;color:#4b4f86;border-radius:8px;padding:1px 8px}
.top-actions{gap:10px}
.text-button{font-size:13px;font-weight:700;color:#1d1f4d;display:inline-flex;align-items:center;gap:8px}
.text-button:hover{background:#e8e6fb;color:#4f26eb}
.text-button.logout .ico{width:16px;height:16px}
.main-content{padding:26px 28px 44px;max-width:1500px}
.footer{padding:16px 28px;color:#74799c;border-top:1px solid rgb(220 218 245/.7)}

/* Page heading */
.page-heading,.setup-head{align-items:center;margin-bottom:22px}
.page-heading h1,.setup-head h1{display:flex;align-items:center;gap:14px;font-size:34px;font-weight:800;letter-spacing:0;line-height:1.35;margin:0 0 4px;color:#08092a}
.page-heading h1 .tile,.setup-head h1 .tile{width:42px;height:42px;border-radius:13px}
.page-heading p,.setup-head p{font-size:15px;color:#5a5f85}
.setup-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px;color:#5a5f85}
.crumb{display:inline-block;color:#4f26eb;font-size:14px;font-weight:700;margin-bottom:6px}
.crumb:hover{color:#4318d0}

/* Buttons */
.btn{min-height:42px;border-radius:13px;font-size:14.5px;font-weight:700;gap:9px;padding:8px 18px;transition:background-color .3s var(--ease),border-color .3s var(--ease),color .3s var(--ease),box-shadow .3s var(--ease),transform .12s var(--ease)}
.btn .ico{width:17px;height:17px}
.btn-primary{background:linear-gradient(90deg,#7f55f9,#4f26eb);border:0;color:#fff;box-shadow:0 12px 22px -10px var(--accent-glow),inset 0 1px 0 rgb(255 255 255/.25)}
[dir=ltr] .btn-primary{background:linear-gradient(90deg,#4f26eb,#7f55f9)}
.btn-primary:hover,.btn-primary:focus,.btn-primary:active{background:linear-gradient(90deg,#7f55f9,#4318d0)!important;box-shadow:0 16px 26px -10px var(--accent-glow)!important;border:0!important}
.btn-light,.btn-outline-secondary{background:#fdfdff;border:1px solid #dedcf6;color:#1d1f4d;box-shadow:0 1px 2px rgb(60 50 160/.06)}
.btn-light:hover,.btn-outline-secondary:hover{background:#f4f2ff;border-color:#c9c4f1;color:#4f26eb}
.btn-outline-danger{background:#fffafb;border:1px solid #f4b8c2;color:var(--neg)}
.btn-outline-danger:hover{background:var(--neg-soft);border-color:var(--neg)}
.btn-sm{min-height:34px;padding:4px 14px;font-size:13px;border-radius:11px}
.icon-btn{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;border:1px solid transparent;background:#ece8fe;color:#4f26eb;transition:background-color .3s var(--ease),color .3s var(--ease),box-shadow .3s var(--ease);padding:0}
.icon-btn:hover{background:#ddd5fd;color:#4318d0;text-decoration:none}
.icon-btn .ico{width:17px;height:17px}
.icon-btn.danger{background:#fdeaee;color:var(--neg)}
.icon-btn.danger:hover{background:#fad7de;color:var(--neg)}
.icon-btn.outline{background:#fdfdff;border-color:#dedcf6;color:#1d1f4d}
.icon-btn.outline:hover{background:#f4f2ff}

/* Forms */
.form-label{font-size:14px;font-weight:700;color:#0b0d2b;margin-bottom:8px}
.form-control,.form-select{min-height:44px;border:1px solid #dedcf6;border-radius:13px;background-color:#fff;font-size:14.5px;font-family:var(--font)}
.form-control:focus,.form-select:focus{border-color:#7f55f9;box-shadow:0 0 0 4px rgb(127 85 249/.15)}
.form-control::placeholder{color:#8a8fb0}
textarea.form-control{min-height:110px}
.input-icon{position:relative}
.input-icon>.ico{position:absolute;inset-inline-start:14px;top:50%;margin-top:-9px;width:18px;height:18px;color:#6a6fa0;pointer-events:none}
[dir=rtl] .input-icon>.form-control{padding-right:44px}
[dir=ltr] .input-icon>.form-control{padding-left:44px}
.form-check-input{width:20px;height:20px;border:1.5px solid #bdb9e8;border-radius:6px}
.form-check-input:checked{background-color:#5b30ee;border-color:#5b30ee}
input[type=checkbox]{accent-color:#5b30ee}
.alert{display:flex;align-items:center;gap:12px;border-radius:15px;padding:14px 18px;font-weight:600}
.alert-success{background:#e6f8ef;border:1px solid #bfeed6;color:#0b6b3d;box-shadow:0 6px 18px -10px rgb(11 114 64/.4)}
.alert-success .ico{width:22px;height:22px;color:#0b7240;flex-shrink:0}
.alert-danger,.finance-error{border-radius:15px;background:#fdecef;border-color:#f7c5cd;color:#a8142d}

/* Panels */
.panel{background:rgb(253 253 255/.9);border:1px solid #e8e7fb;border-radius:22px;box-shadow:var(--shadow-sm);backdrop-filter:blur(6px);overflow:hidden}
.panel-heading{padding:20px 24px 16px;border-bottom:0}
.panel-heading h2,.card-head h2{font-size:20px;font-weight:800;color:#0b0d2b;margin:0}
.panel-heading p,.card-head p{font-size:13.5px;color:#5a5f85}
.head-line{display:flex;align-items:center;gap:12px;min-width:0}
.subtle-link{font-size:13px;font-weight:700;color:#4f26eb;display:inline-flex;align-items:center;gap:6px}

/* Status and chips */
.status{border:1px solid transparent;padding:3px 13px;font-size:12.5px;font-weight:700;gap:8px}
.status::before{width:7px;height:7px}
.status.active{background:var(--pos-soft);color:var(--pos);border-color:var(--pos-line)}
.status.draft{background:var(--warn-soft);color:var(--warn);border-color:var(--warn-line)}
.status.scheduled{background:var(--sky-soft);color:var(--sky);border-color:var(--sky-line)}
.status.inactive{background:var(--idle-soft);color:var(--idle);border-color:var(--idle-line)}
.status.expired{background:var(--neg-soft);color:var(--neg);border-color:var(--neg-line)}
.chip{font-weight:700}
.chip.done{background:var(--pos-soft);color:var(--pos);border:1px solid var(--pos-line)}
.chip.todo{background:var(--warn-soft);color:var(--warn);border:1px solid var(--warn-line)}
.chip.neutral{background:#eeeefb;color:#4b4f86}
.role-badge{background:#eeeefb;color:#4b4f86;padding:5px 16px;font-weight:700;font-size:13px}
.role-badge.admin{background:#0b0d2b;color:#fff}
.dot.green{background:#0b9a57}.dot.amber{background:#e37704}.dot.grey{background:#74799c}
.s-live{background:#0b8a4f!important}.s-scheduled{background:#2f7be0!important}.s-draft{background:#e37704!important}.s-paused{background:#74799c!important}.s-ended{background:#d6203f!important}

/* Tables */
.page-table{font-size:14px}
.page-table th{background:#efeefc;color:#2b2f57;font-size:13.5px;font-weight:700;padding:13px 18px;border-bottom:0;white-space:nowrap}
.page-table thead th:first-child{border-start-start-radius:14px;border-end-start-radius:14px}
.page-table thead th:last-child{border-start-end-radius:14px;border-end-end-radius:14px}
.page-table td{padding:14px 18px;border-bottom:1px solid #ececfb;color:#0b0d2b}
.page-table tbody tr:hover td{background:#f7f6ff}
.table-responsive{padding:0 18px 14px}
.page-title{font-weight:700;color:#0b0d2b;font-size:14.5px}
a.page-title:hover{color:#4f26eb}
.document-icon{width:38px;height:38px;border-radius:12px;background:#ece8fe;color:#5b30ee}
.document-icon .ico{width:18px;height:18px}
.date-cell{color:#0b0d2b;font-weight:500}
.row-actions{gap:8px 10px;align-items:center}
.row-actions a{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:2px 14px;border-radius:11px;background:#fdfdff;border:1px solid #dedcf6;color:#1d1f4d;font-size:13px;font-weight:700;box-shadow:0 1px 2px rgb(60 50 160/.06);transition:background-color .3s var(--ease),color .3s var(--ease)}
.row-actions a:hover{background:#f4f2ff;color:#4f26eb;text-decoration:none}
.row-actions a .ico{width:15px;height:15px}
.row-actions a.soft{background:#ece8fe;border-color:transparent;color:#4f26eb}
.copy-button{border-radius:9px;color:#6a6fa0}
.co-chip{gap:9px;color:#2b2f57}
.co-chip img,.logo-thumb{border-radius:9px;border-color:#e0def8}
.co-chip img{width:26px;height:26px}
.page-url a{color:#5a5f85}

/* Overview metrics */
.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible;margin-bottom:20px}
.metrics.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.metric{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label tile" "value tile" "note tile";align-items:start;column-gap:12px;background:rgb(253 253 255/.92);border:1px solid #e8e7fb;border-radius:20px;box-shadow:var(--shadow-sm);padding:16px 18px}
.metric>span:first-child{grid-area:label;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:#2b2f57}
.metric>.tile{grid-area:tile;align-self:center;display:grid;place-items:center;gap:0;font-size:inherit}
.metric strong{grid-area:value;font-size:40px;font-weight:800;line-height:1.15;margin:2px 0 4px;color:#08092a;letter-spacing:0}
.metric small{grid-area:note;font-size:13px;color:#5a5f85;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.metric.featured strong{color:#4f26eb}
.trend{display:inline-flex;align-items:center;gap:5px;padding:1px 10px;border-radius:999px;background:#d6f9ea;color:#0b7240;font-size:12px;font-weight:700;direction:ltr}
.trend.down{background:#fdeaee;color:var(--neg)}
.trend .ico{width:12px;height:12px}

/* Boards toolbar, view toggle, cards */
.fin-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin:0 0 16px}
.fin-toolbar .field{display:flex;align-items:center;gap:8px;margin:0}
.fin-toolbar .form-control,.fin-toolbar .form-select{min-height:42px;width:auto;min-width:150px}
.fin-toolbar .fin-search{flex:1 1 240px;min-width:200px;position:relative}
.fin-toolbar .fin-search input{width:100%;padding-inline-start:42px;border-radius:14px}
.fin-toolbar .fin-search .ico{position:absolute;inset-inline-start:14px;top:50%;margin-top:-9px;width:18px;height:18px;color:#6a6fa0;pointer-events:none}
.view-toggle{display:inline-flex;padding:3px;gap:2px;background:#ebe9fb;border:1px solid #dedcf6;border-radius:14px;margin-inline-start:auto}
.view-toggle button{display:inline-grid;place-items:center;width:38px;height:34px;border:0;border-radius:11px;background:transparent;color:#5a5f85;transition:background-color .3s var(--ease),color .3s var(--ease),box-shadow .3s var(--ease)}
.view-toggle button:hover{color:#4f26eb}
.view-toggle button[aria-pressed=true]{background:#fff;color:#4f26eb;box-shadow:0 2px 8px -2px rgb(79 38 235/.35)}
[data-view=cards] .table-view,[data-view=table] .card-view{display:none}
.dash-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px}
.dash-card{display:flex;flex-direction:column;gap:12px;padding:18px 18px 14px;background:rgb(253 253 255/.94);border:1px solid #e8e7fb;border-radius:20px;box-shadow:var(--shadow-sm);transition:box-shadow .3s var(--ease),border-color .3s var(--ease)}
.dash-card:hover{box-shadow:var(--shadow-md);border-color:#d8d4f6}
.dash-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.dash-card-title{display:flex;gap:12px;min-width:0;flex:1}
.dash-card-title .page-title{display:block;overflow-wrap:anywhere;line-height:1.5;font-size:16px}
.dash-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.7fr) auto;gap:10px 12px;margin:0;padding-block:6px 4px;border:0}
.dash-meta div{min-width:0}
.dash-meta dt{display:flex;align-items:center;gap:5px;font-size:12px;color:#5a5f85;font-weight:600}
.dash-meta dt .ico{width:13px;height:13px;color:#6a6fa0}
.dash-meta dd{margin:2px 0 0;font-size:13.5px;font-weight:700;color:#0b0d2b;overflow-wrap:anywhere}
.dash-meta dd[dir=ltr]{white-space:nowrap}
.dash-card-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;border-top:1px solid #ececfb;padding-top:12px}
.dash-card-foot .row-actions{flex:1}
.fin-empty[hidden]{display:none}

/* Overview grids */
.ov-grid{gap:16px}
.ov-legend li{font-weight:600}
.ov-rank li{align-items:center}
.ov-rank b{display:inline-grid;place-items:center;min-width:38px;height:28px;padding-inline:8px;border-radius:9px;background:#ece8fe;color:#4f26eb;font-weight:800;font-size:13px}
.ov-rank a{font-weight:700;color:#4f26eb}
.empty-state{padding:36px 20px 40px}
.empty-icon{width:58px;height:58px;border-radius:18px;background:#ece8fe;color:#5b30ee}
.empty-illustration{display:grid;place-items:center;gap:6px;padding:20px 20px 30px;color:#5a5f85;font-size:14px;text-align:center}
.empty-illustration svg{width:130px;height:96px}
.empty-inline{color:#5a5f85;font-size:14px;padding:10px 0}

/* Tabs */
.tabs{display:flex;gap:6px;border-bottom:1px solid #dedcf6;margin:0 0 22px;padding:0}
.tabs button{display:inline-flex;align-items:center;gap:9px;border:0;border-bottom:3px solid transparent;background:transparent;padding:12px 18px;font-size:15px;font-weight:700;color:#4b4f86;border-radius:14px 14px 0 0;margin-bottom:-1px;transition:background-color .3s var(--ease),color .3s var(--ease)}
.tabs button:hover{background:rgb(255 255 255/.6);color:#4f26eb}
.tabs button[aria-selected=true]{color:#4f26eb;border-bottom-color:#5b30ee;background:rgb(255 255 255/.7)}
.tabs button .ico{width:17px;height:17px}
.tab-count{display:inline-grid;place-items:center;min-width:26px;height:24px;padding-inline:7px;border-radius:999px;background:#eeeefb;color:#4b4f86;font-size:12.5px;font-weight:800}
.tabs button[aria-selected=true] .tab-count{background:#e3dcfd;color:#4f26eb}

/* Setup step cards */
.step-card{padding:22px 24px;border-radius:22px}
.card-head{display:flex;align-items:flex-start;gap:12px}
.card-head>div{flex:1;min-width:0}
.step-no{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#12153a;color:#fff;font-weight:800;font-size:14px;flex-shrink:0}
.file-card{border:1px solid #e0def8;background:#faf9ff;border-radius:16px;padding:12px 14px}
.dropzone,.upload-zone{position:relative;border:1.5px dashed #b9a8f6;background:rgb(247 245 255/.8);border-radius:18px;padding:26px 20px;text-align:center;color:#5a5f85;transition:background-color .3s var(--ease),border-color .3s var(--ease)}
.dropzone:hover,.dropzone:focus-within,.upload-zone:hover{background:#f1edff;border-color:#7f55f9}
.dropzone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.dropzone .dz-icon{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 10px;border-radius:14px;background:#ece8fe;color:#5b30ee}
.dropzone .dz-icon .ico{width:22px;height:22px}
.dropzone strong{display:block;color:#08092a;font-size:15px;font-weight:800}
.dropzone small{display:block;margin-top:4px;color:#5a5f85;font-size:12.5px}
.dropzone.big{padding:36px 20px}
.dropzone.big .dz-icon{width:64px;height:64px;border-radius:20px;background:#fff;box-shadow:0 10px 26px -10px rgb(79 38 235/.45)}
.dropzone.big .dz-icon .ico{width:30px;height:30px}
.dropzone.big strong{font-size:19px}
.dropzone .btn{margin-top:14px;pointer-events:none}
.dropzone.has-file{border-style:solid;background:#f1edff}

/* Membership and users */
.member-list{display:grid;gap:10px}
.membership-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 14px;border:1px solid #e0def8;border-radius:16px;background:#faf9ff}
.membership-row strong{flex:1;min-width:0;font-weight:700;overflow-wrap:anywhere}
.membership-row label{display:inline-flex;align-items:center;gap:8px;font-weight:600;margin:0}
.access-list{display:grid;margin-top:14px;border:1px solid #e0def8;border-radius:16px;background:#faf9ff;overflow:hidden;gap:0}
.access-head,.access-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 150px;align-items:center;gap:16px;padding:12px 18px}
.access-head{background:#efeefc;font-weight:800;color:#2b2f57;font-size:14px}
.access-head span{display:inline-flex;align-items:center;gap:8px}
.access-head .ico{width:17px;height:17px;color:#4f26eb}
.access-head span:not(:first-child){justify-content:center}
.access-row{border-top:1px solid #ececfb;background:#fff}
.access-row strong{display:flex;align-items:center;gap:12px;font-weight:700;overflow-wrap:anywhere}
.access-row label{justify-content:center;display:flex}
.user-identity{gap:14px}
.user-identity strong{font-size:15px;font-weight:800}
.user-identity small{font-size:13.5px;color:#5a5f85}
.user-identity .avatar{width:44px;height:44px}
.user-actions{display:flex;align-items:center;gap:8px}
.role-options label{position:relative}
.role-options label>span{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:14px;border:1px solid #dedcf6;border-radius:16px;padding:14px 16px 14px 56px;background:#fff}
[dir=ltr] .role-options label>span{padding:14px 56px 14px 16px}
.role-options label>span>.tile{grid-row:1/3}
.role-options label>span>strong,.role-options label>span>small{grid-column:2}
.role-options input:checked+span{border-color:#6a46f5;background:#f1edff;box-shadow:0 0 0 1px #6a46f5 inset}
.role-options .radio-dot{position:absolute;inset-inline-end:18px;top:50%;margin-top:-10px;width:20px;height:20px;border-radius:50%;border:2px solid #b9b5e6;background:#fff}
.role-options input:checked~.radio-dot{border-color:#5b30ee;box-shadow:inset 0 0 0 4px #fff;background:#5b30ee}
.secondary-actions{border-top:1px solid #ececfb;gap:0;padding-top:16px;margin-top:14px;flex-wrap:nowrap}
.secondary-actions>*{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:14px;text-align:center;min-height:38px}
.secondary-actions>*+*{border-inline-start:1px solid #dedcf6}
.secondary-actions a{color:#4f26eb}
.secondary-actions .text-button{color:#0b0d2b;border-radius:0}
.account-form{padding:22px 24px}
.account-form>h2{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:800;margin-bottom:18px}
.account-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:none;gap:16px}

/* Notes and attachments */
.notes-compose{border:1px solid #e0def8;border-radius:18px;background:#faf9ff;padding:18px 20px}
.note-item{border:1px solid #e0def8;border-radius:16px;background:#fff;padding:14px 18px}
.attach-table .document-icon.xls{background:#e5f6ec;color:#0b7240}

/* Login */
.login-story{background:
  radial-gradient(420px 320px at 100% 100%,rgb(98 70 230/.4) 0,rgb(98 70 230/0) 70%),
  linear-gradient(180deg,#12153a 0,#14143e 100%)}
.login-card h2{font-weight:800}

/* Responsive */
@media(max-width:1200px){.sidebar{width:210px}.portal .workspace{margin-inline-start:210px}.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.metrics:not(.three)>.metric:last-child:nth-child(odd){grid-column:1/-1}.account-layout{grid-template-columns:1fr}}
@media(max-width:900px){.portal .workspace{margin:0}.topbar{position:static}.metrics:not(.three){grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading h1,.setup-head h1{font-size:26px}.top-search kbd{display:none}.topbar-label{display:none}}
@media(max-width:650px){.main-content{padding:20px 14px 36px}.metrics,.metrics.three{grid-template-columns:1fr}.access-head,.access-row{grid-template-columns:minmax(0,1fr) 70px 70px;gap:8px;padding-inline:12px}.metric strong{font-size:32px}.top-search{min-width:0}.panel-heading{padding-inline:16px}.table-responsive{padding-inline:8px}.fin-toolbar .field,.fin-toolbar .form-select{width:100%}.view-toggle{margin-inline-start:0}.dash-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.secondary-actions{flex-wrap:wrap}}
[data-item][hidden]{display:none!important}
.masked-input{-webkit-text-security:disc}
@media(prefers-reduced-motion:reduce){.dash-card,.btn,.sidebar nav a,.tabs button,.dropzone,.icon-btn{transition:none}}

/* Overview details */
.tile.sm{width:32px;height:32px;border-radius:10px}
.tile.sm .ico{width:16px;height:16px}
.ov-chart .bar{fill:#5429ed}
.ov-chart .bar-zero{fill:#d9d6f3}
.ov-axis{color:#5a5f85;font-weight:600}
.ov-stack{height:14px;background:#e3e1f6}
.ov-rank{padding:4px 22px 14px}
.ov-rank li{justify-content:flex-start;gap:12px;border-top:1px solid #ececfb;padding:10px 0}
.ov-rank li>div{flex:1;min-width:0}
.ov-rank li>b{margin-inline-start:auto}
.ov-rank small{color:#5a5f85;font-size:12.5px}
.ov-table summary{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:#1d1f4d;border:1px solid #dedcf6;border-radius:12px;padding:6px 14px;background:#fff;cursor:pointer;list-style:none}
.ov-table summary::-webkit-details-marker{display:none}
.ov-table[open] summary .ico{transform:rotate(90deg)}

/* Companies */
.row-actions a.link-plain{background:none;border:0;box-shadow:none;padding:0;color:#4f26eb;min-height:0}
.row-actions a.link-plain:hover{background:none;color:#4318d0;text-decoration:underline}
.logo-current{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid #e0def8;border-radius:16px;background:#f4f2ff;margin-bottom:12px}
.logo-current img{width:72px;height:72px;object-fit:contain;background:#fff;border:1px solid #e0def8;border-radius:16px;padding:6px}
.logo-remove{cursor:pointer}
.logo-remove:has(input:checked){background:var(--neg);color:#fff;border-color:var(--neg)}
.logo-remove:has(input:focus-visible){outline:2px solid #7f55f9;outline-offset:2px}
.check-line.switch-line{display:flex;align-items:flex-start;gap:12px;border-top:1px solid #ececfb;padding-top:14px;margin-top:6px}
.switch-line strong{display:block;font-size:14.5px}
.switch-line small{display:block;color:#5a5f85;font-size:12.5px;margin-top:2px}
.side-stack{display:grid;gap:16px;align-content:start}
.check-row{display:flex;gap:24px;margin-block:12px}
.check-row label{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.card-form-plain{display:grid;gap:4px}
.card-form-plain .btn{justify-self:start;margin-top:10px}
.title-with-logo{align-items:center}
.title-with-logo .logo-thumb{width:44px;height:44px;border-radius:13px;padding:3px}

/* Users */
.users-search{display:flex;gap:10px;padding:0 24px 18px;max-width:640px}
.users-search .form-control{flex:1;min-width:0;border-radius:14px}
.user-table .count-cell{font-weight:800;font-size:15px}
details.menu{position:relative;display:inline-block}
details.menu>summary{list-style:none;cursor:pointer}
details.menu>summary::-webkit-details-marker{display:none}
.menu-list{position:fixed;z-index:60;min-width:210px;padding:6px;background:#fff;border:1px solid #e0def8;border-radius:16px;box-shadow:0 18px 40px -12px rgb(60 50 160/.35);display:grid;gap:2px}
.menu-list a,.menu-list button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border:0;border-radius:11px;background:transparent;color:#1d1f4d;font:700 13.5px var(--font);text-align:start;text-decoration:none}
.menu-list a:hover,.menu-list button:hover{background:#f1edff;color:#4f26eb;text-decoration:none}
.menu-list .danger{color:var(--neg)}
.menu-list .danger:hover{background:var(--neg-soft);color:var(--neg)}
.menu-list form{margin:0}
.menu-list .ico{width:16px;height:16px}
.role-options label>span>.tile{background:#ece8fe;color:#4f26eb;border:0;padding:0}
.role-options legend{font-size:14px;font-weight:700;margin-bottom:12px}
.switch-row{display:flex;align-items:center;justify-content:space-between}
.switch-row strong{font-size:14.5px}
.switch-row .form-check-input{margin:0}

/* Setup page: notes and attachments */
.head-line h3,h3.head-line{font-size:17px;font-weight:800;margin:0}
.compose-title{margin-bottom:12px}
.compose-title label{font-size:17px;font-weight:800;margin:0}
.notes-compose{margin:18px 0 8px;display:block}
.compose-foot{display:flex;justify-content:flex-end;margin-top:14px}
.notes-list-head,.attach-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #ececfb;padding-top:18px;margin-top:20px}
.count-chip{display:inline-flex;align-items:center;padding:3px 14px;border-radius:999px;background:#eeeefb;color:#4f26eb;font-weight:800;font-size:13px}
.note-list{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:12px}
.note-list .note-item{padding:14px 18px;border:1px solid #e0def8}
.note-item p{text-align:start;font-size:16px;font-weight:700;color:#0b0d2b;margin:0 0 12px;overflow-wrap:anywhere}
.note-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.note-meta{display:flex;align-items:center;gap:8px;color:#5a5f85;font-size:13px;font-weight:600}
.note-meta .ico{width:15px;height:15px}
.note-meta .avatar{width:28px;height:28px;font-size:12px}
.note-sep{opacity:.6}
.note-actions{display:flex;align-items:center;gap:10px}
.note-actions form{margin:0}
.note-actions .danger-link{display:inline-flex;align-items:center;gap:6px;color:var(--neg);font-weight:700;background:none;border:0;padding:4px 8px;border-radius:10px}
.note-actions .danger-link:hover{background:var(--neg-soft)}
.note-actions .icon-btn{width:34px;height:34px}
.attach-form{display:grid;gap:12px}
.attach-form>.btn{justify-self:start}
.attach-tools{display:flex;align-items:center;gap:10px}
.sort-box{position:relative;display:flex;align-items:center}
.sort-box .ico{position:absolute;inset-inline-start:12px;width:16px;height:16px;color:#5a5f85;pointer-events:none}
.sort-box .form-select{min-height:38px;padding-inline-start:36px;border-radius:12px;min-width:150px}
.attach-wrap{margin-top:12px}
.attach-wrap .table-responsive{padding:0}
.attach-wrap[data-view=cards] table,.attach-wrap[data-view=cards] tbody{display:block}
.attach-wrap[data-view=cards] thead{display:none}
.attach-wrap[data-view=cards] tbody{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.attach-wrap[data-view=cards] tr{display:grid;gap:10px;padding:16px;border:1px solid #e0def8;border-radius:18px;background:#fff}
.attach-wrap[data-view=cards] td{display:block;padding:0;border:0;background:transparent!important}
.step-card .tile{align-self:flex-start}
.card-head .step-no+div{flex:1}

/* Top bar search (base) */
.topbar{display:flex;align-items:center;justify-content:space-between}
.top-search{display:flex;align-items:center;gap:8px;margin-inline:auto;color:#5a5f85;transition:border-color .3s var(--ease),box-shadow .3s var(--ease),background-color .3s var(--ease)}
.top-search:focus-within{background:#fff;border-color:#7f55f9;box-shadow:0 0 0 4px rgb(127 85 249/.15)}
.top-search input{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;font:inherit;color:var(--ink);outline:0;padding:0;min-height:0}
.top-search input::placeholder{color:#74799c}
.top-search .ico{width:16px;height:16px;flex-shrink:0}
.top-search kbd{direction:ltr}
.page-table .row-actions{flex-wrap:nowrap}
.page-table .row-actions a{white-space:nowrap}

/* Narrow screens: the rail becomes a top bar */
@media(max-width:900px){
  .sidebar{width:100%;position:static;background:linear-gradient(135deg,#12153a,#1b1e52);padding:12px 16px}
  .sidebar nav a{min-height:40px;padding:6px 12px;font-size:14px;gap:10px}
  .sidebar nav{flex-wrap:nowrap}
  .brand{border:0;padding:0;margin:0}
  .brand-name{font-size:22px}
  .profile{border:0;padding:0;margin:0}
}

/* Overview: open meeting follow-ups under "needs attention" */
.ov-scroll{max-height:470px;overflow:auto}
.ov-group{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 22px 0;padding:12px 0 6px;border-top:1px solid #ececfb;font-size:13px;font-weight:800;color:#2b2f57}
.ov-fu-list{list-style:none;margin:0;padding:0 14px 8px;display:grid;gap:8px}
.ov-fu{display:grid;grid-template-columns:4px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid #ececfb;border-radius:14px;background:#fff}
.ov-fu:hover{background:#faf9ff;border-color:#d8d4f6}
.ov-fu-bar{align-self:stretch;border-radius:4px;background:#b6a6f6}
.ov-fu.late .ov-fu-bar{background:#d6203f}
.ov-fu-main a{display:block;font-weight:700;font-size:13.5px;color:#0b0d2b;overflow-wrap:anywhere}
.ov-fu-main a:hover{color:#4f26eb}
.ov-fu-main small{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:2px;color:#5a5f85;font-size:12px}
.ov-fu-main small .ico{width:13px;height:13px}
.ov-fu-side{display:grid;justify-items:end;gap:4px;text-align:end}
.ov-fu-date{font-size:12px;font-weight:600;color:#2b2f57;font-variant-numeric:tabular-nums}
.ov-fu-date.muted{color:#74799c;font-weight:500}
.ov-fu.late .ov-fu-date{color:#d6203f}
.ov-fu .fu-late{margin:0}
.ov-more{margin:4px 22px 14px;color:#5a5f85;font-size:12.5px}
.panel-heading .count-chip{margin-inline-start:auto}
