@font-face { font-family: "Vazirmatn"; src: url("./fonts/Vazirmatn.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
[hidden] { display: none !important; }
:root {
  --ink: #17272b;
  --muted: #718085;
  --line: #dfe7e8;
  --surface: #ffffff;
  --canvas: #f4f7f6;
  --navy: #102b33;
  --navy-2: #183d46;
  --gold: #c89a3d;
  --teal: #0d8174;
  --teal-soft: #e5f5f2;
  --amber: #ae6b18;
  --amber-soft: #fff3dc;
  --blue: #246c91;
  --blue-soft: #e7f2f8;
  --red: #a44747;
  --red-soft: #faeaea;
  --violet: #675aa4;
  --violet-soft: #efecfb;
  --shadow: 0 14px 40px rgba(26, 55, 60, .08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif; min-height: 100vh; font-size: 1rem; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; }
.sidebar { position: fixed; right: 0; top: 0; bottom: 0; z-index: 30; width: 270px; background: var(--navy); color: #fff; padding: 26px 20px 20px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; background: var(--gold); color: var(--navy); font-size: 23px; font-weight: 800; }
.brand strong, .brand small { display: block; }.brand strong { font-size: 1.25rem; }.brand small { margin-top: 3px; color: #adc0c3; font-size: .75rem; }
.sidebar nav { margin-top: 24px; display: grid; gap: 8px; }
.nav-item { appearance: none; border: 0; background: transparent; color: #b9c9cc; padding: 13px 14px; border-radius: 12px; display: flex; align-items: center; gap: 12px; text-align: right; font-size: .94rem; }
.nav-item span { font-size: 1.2rem; width: 22px; text-align: center; }.nav-item b { margin-right: auto; background: rgba(255,255,255,.09); min-width: 26px; padding: 3px 7px; border-radius: 20px; font-size: .75rem; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }.nav-item.active { background: rgba(213,169,78,.14); color: #f1cf87; box-shadow: inset -3px 0 var(--gold); }
.nav-section-label { color: #718b90; font-size: .72rem; padding: 18px 14px 4px; }
.sidebar-foot { margin-top: auto; display: grid; gap: 18px; }.security-note { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px; display: flex; gap: 10px; }
.security-note > span { width: 27px; height: 27px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: #6ee1c5; background: rgba(110,225,197,.1); }.security-note strong, .security-note small { display: block; }.security-note strong { font-size: .78rem; }.security-note small { color: #9eb1b5; font-size: .68rem; line-height: 1.7; margin-top: 4px; }
.profile { padding-top: 17px; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 10px; }.profile .avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #315761; color: #fff; font-size: .8rem; }.profile strong, .profile small { display: block; }.profile strong { font-size: .8rem; }.profile small { color: #91a7ab; font-size: .7rem; margin-top: 3px; }.role-chip { color: #f1cf87; background: rgba(213,169,78,.13); border: 1px solid rgba(213,169,78,.2); border-radius: 20px; padding: 4px 8px; font-size: .65rem; margin-right: auto; }
main { grid-column: 2; min-width: 0; }.topbar { height: 82px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 34px; position: sticky; top: 0; z-index: 20; }
.global-search { display: flex; gap: 10px; align-items: center; width: min(480px, 50vw); color: #9aa7aa; }.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .86rem; }
.header-actions { margin-right: auto; display: flex; align-items: center; gap: 12px; }.primary-button, .secondary-button { border-radius: 11px; padding: 10px 16px; border: 0; font-weight: 700; font-size: .84rem; }.primary-button { background: var(--teal); color: white; box-shadow: 0 7px 18px rgba(13,129,116,.18); }.primary-button:hover { background: #096d63; }.secondary-button { background: var(--surface); color: #314348; border: 1px solid var(--line); }.secondary-button:hover { background: #f8faf9; }.icon-button { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); background: white; color: #52666b; position: relative; }.icon-button i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #cf5b55; top: 7px; right: 8px; border: 2px solid #fff; }.icon-button.small { width: 34px; height: 34px; }.mobile-menu { display: none; }
.connection-pill { display: inline-flex; gap: 7px; align-items: center; color: #547076; border: 1px solid var(--line); background: white; border-radius: 20px; padding: 7px 10px; font-size: .72rem; white-space: nowrap; }.connection-pill i { width: 7px; height: 7px; border-radius: 50%; background: #20a489; box-shadow: 0 0 0 3px #def4ef; }.connection-pill.offline { color: #8b662b; background: #fff8ea; border-color: #f0dcba; }.connection-pill.offline i { background: #d48b2d; box-shadow: 0 0 0 3px #f9e8cc; }
.view { display: none; padding: 30px 34px 45px; max-width: 1500px; margin: 0 auto; }.view.active { display: block; }.page-heading { display: flex; justify-content: space-between; align-items: end; margin: 4px 0 25px; gap: 16px; }.page-heading h1 { margin: 3px 0 0; font-size: 1.55rem; letter-spacing: -.5px; }.page-heading p { color: var(--muted); margin: 0; font-size: .78rem; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 18px; }.stat-card { background: var(--surface); border: 1px solid #e3e9e9; border-radius: 16px; min-height: 112px; padding: 18px; display: flex; align-items: center; gap: 15px; box-shadow: 0 3px 15px rgba(24,56,60,.035); }.stat-card.urgent { border-color: #f0d6ac; }.stat-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem; }.stat-icon.teal { background: var(--teal-soft); color: var(--teal); }.stat-icon.amber { background: var(--amber-soft); color: var(--amber); }.stat-icon.blue { background: var(--blue-soft); color: var(--blue); }.stat-icon.violet { background: var(--violet-soft); color: var(--violet); }.stat-card span, .stat-card small, .stat-card strong { display: block; }.stat-card span { color: #56686d; font-size: .76rem; }.stat-card strong { font-size: 1.65rem; margin: 5px 0 2px; }.stat-card small { color: #93a0a3; font-size: .68rem; }.stat-card em { font-style: normal; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(310px, .8fr); gap: 18px; }.panel { background: var(--surface); border: 1px solid #e1e8e8; border-radius: var(--radius); box-shadow: 0 4px 22px rgba(28,55,60,.035); }.panel-head { padding: 19px 21px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ebefef; }.panel-head h2 { margin: 0; font-size: .98rem; }.panel-head p { margin: 6px 0 0; color: #8a989b; font-size: .7rem; }.text-button { border: 0; background: none; color: var(--teal); font-size: .73rem; font-weight: 700; }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; min-width: 660px; }th { color: #879497; font-size: .68rem; font-weight: 500; text-align: right; padding: 12px 18px; background: #fbfcfc; }td { border-top: 1px solid #edf1f1; padding: 14px 18px; font-size: .75rem; color: #45585d; }tr.case-row { cursor: pointer; }tr.case-row:hover td { background: #f8fbfa; }.case-title { display: flex; align-items: center; gap: 10px; }.case-monogram { width: 34px; height: 34px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }.case-title strong, .case-title small { display: block; }.case-title strong { color: var(--ink); font-size: .76rem; }.case-title small { color: #95a1a4; margin-top: 4px; font-size: .66rem; }.lawyer-cell { display: flex; align-items: center; gap: 7px; }.mini-avatar { width: 25px; height: 25px; border-radius: 50%; background: #dbe7e8; display: grid; place-items: center; font-size: .62rem; color: #415a60; }.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 5px 9px; font-size: .65rem; font-weight: 700; white-space: nowrap; }.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }.status.active { background: var(--teal-soft); color: #087165; }.status.active::before { background: #1b9a89; }.status.pending { background: var(--amber-soft); color: #97611e; }.status.pending::before { background: #d18a2e; }.status.closed { background: #edf1f1; color: #6d7a7d; }.status.closed::before { background: #879497; }
.upcoming-list { padding: 9px 19px 4px; }.upcoming-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf1f1; }.date-tile { width: 42px; height: 45px; border-radius: 10px; background: #f2f6f5; display: grid; place-items: center; line-height: 1; }.date-tile strong { font-size: 1rem; }.date-tile small { color: #738387; font-size: .58rem; }.upcoming-item h3 { margin: 0 0 5px; font-size: .75rem; }.upcoming-item p { margin: 0; color: #879699; font-size: .65rem; }.priority-dot { width: 8px; height: 8px; border-radius: 50%; background: #b9c3c5; }.priority-dot.high { background: #d2584f; box-shadow: 0 0 0 4px #faecea; }.wide-ghost { width: calc(100% - 38px); margin: 10px 19px 18px; border: 1px dashed #b9c8c8; background: #fbfdfc; border-radius: 10px; padding: 10px; color: #587075; font-size: .73rem; }.wide-ghost:hover { border-color: var(--teal); color: var(--teal); }
.activity-panel { margin-top: 18px; }.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 19px 21px; gap: 0; }.activity-item { display: flex; gap: 11px; padding: 2px 15px; border-left: 1px solid #edf1f1; }.activity-item:last-child { border-left: 0; }.activity-icon { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; background: #eff5f4; color: var(--teal); flex: 0 0 auto; }.activity-item p { margin: 0; font-size: .7rem; line-height: 1.8; color: #4f6267; }.activity-item small { color: #98a4a6; font-size: .62rem; }
.list-panel { overflow: hidden; }.toolbar { padding: 16px 20px; display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }.inline-search { width: min(320px, 45%); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; color: #8a999c; display: flex; align-items: center; gap: 7px; }.inline-search input { border: 0; outline: 0; width: 100%; font-size: .74rem; }.filter-group { display: flex; gap: 6px; }.filter-group button { border: 1px solid var(--line); background: white; border-radius: 9px; padding: 8px 12px; font-size: .7rem; color: #66777b; }.filter-group button.active { background: var(--navy); color: white; border-color: var(--navy); }.full-table { min-width: 930px; }.kebab { border: 0; background: none; color: #758589; font-weight: 700; }.empty-state { text-align: center; padding: 60px 20px; }.empty-state > span { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #eff5f4; color: var(--teal); margin: auto; font-size: 1.4rem; }.empty-state h3 { margin: 15px 0 6px; font-size: .9rem; }.empty-state p { margin: 0; color: var(--muted); font-size: .74rem; }
.followup-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.board-column { background: #edf2f1; border-radius: 16px; padding: 13px; min-height: 420px; }.board-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 13px; }.board-head h2 { margin: 0; font-size: .83rem; }.board-head span { min-width: 25px; padding: 3px 8px; border-radius: 20px; background: white; text-align: center; font-size: .67rem; color: #708084; }.followup-card { background: white; border: 1px solid #e0e7e7; border-radius: 13px; padding: 14px; margin-bottom: 10px; box-shadow: 0 4px 14px rgba(24,55,60,.04); }.followup-card.high { border-right: 3px solid #d25b53; }.followup-card h3 { margin: 0 0 9px; font-size: .77rem; line-height: 1.7; }.followup-card p { margin: 0; color: #7f8e91; font-size: .67rem; }.followup-card footer { margin-top: 13px; padding-top: 10px; border-top: 1px solid #eef1f1; display: flex; justify-content: space-between; align-items: center; }.followup-card time { font-size: .65rem; color: #65767a; }.followup-card button { border: 0; background: var(--teal-soft); color: var(--teal); border-radius: 8px; padding: 6px 8px; font-size: .65rem; }
.documents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; }.document-card { border: 1px solid var(--line); border-radius: 13px; padding: 14px; display: flex; align-items: center; gap: 12px; }.file-icon { width: 40px; height: 46px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: .7rem; font-weight: 800; }.document-card strong, .document-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.document-card > div:nth-child(2) { min-width: 0; }.document-card strong { font-size: .72rem; }.document-card small { font-size: .62rem; color: #879699; margin-top: 5px; }.document-card button { border: 0; background: none; color: var(--teal); margin-right: auto; }
.document-library-toolbar,.document-pagination { min-height: 62px; padding: 12px 18px; display: flex; align-items: center; gap: 14px; background: #f7f1e7; }.document-library-toolbar { border-bottom: 1px solid #ded4c5; flex-wrap: wrap; }.document-library-toolbar label { display: flex; align-items: center; gap: 8px; color: #6f6558; font-size: .62rem; }.document-library-toolbar select { min-width: 125px; padding: 8px 10px; border: 1px solid #d1c3ad; border-radius: 6px; color: #4d4337; background: #fffdf8; font: .62rem inherit; }.document-library-toolbar > span { margin-right: auto; color: #7e725f; font-size: .6rem; }.document-group-mode { display: flex; gap: 5px; padding: 4px; border: 1px solid #d8c9ad; border-radius: 8px; background: #fffaf0; }.document-group-mode button { padding: 7px 10px; border: 0; border-radius: 5px; color: #746752; background: transparent; font: 700 .59rem inherit; cursor: pointer; }.document-group-mode button.active { color: #fff8e7; background: #745720; box-shadow: 0 3px 8px rgba(91,63,17,.18); }.document-library-content { padding: 4px 0; }.document-category { margin: 16px 18px; overflow: hidden; border: 1px solid #ded2be; border-radius: 11px; background: #fffdf9; }.document-category-head { min-height: 54px; padding: 10px 14px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #e5dac8; background: linear-gradient(90deg,#fbf4e7,#fffdf9); }.document-category-head > i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #b99343; border-radius: 50%; color: #8b661f; }.document-category-head div { display: grid; gap: 3px; }.document-category-head strong { color: #3d3428; font-size: .73rem; }.document-category-head small { color: #887b68; font-size: .57rem; }.document-category .documents-grid { padding: 14px; }.document-pagination { justify-content: space-between; border-top: 1px solid #ded4c5; }.document-pagination strong { color: #7e725f; font-size: .6rem; }.document-pagination button { min-height: 34px; padding: 7px 11px; border: 1px solid #d0b987; border-radius: 5px; color: #73541e; background: #fffaf0; font: 700 .6rem inherit; cursor: pointer; }.document-pagination button:disabled { opacity: .42; cursor: default; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(9,28,33,.38); opacity: 0; pointer-events: none; transition: .2s; }.drawer-backdrop.open { opacity: 1; pointer-events: auto; }.case-drawer { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: min(680px, 94vw); background: #f7f9f8; box-shadow: 20px 0 60px rgba(10,35,42,.22); transform: translateX(-102%); transition: transform .28s ease; overflow-y: auto; }.case-drawer.open { transform: none; }.drawer-hero { background: var(--navy); color: white; padding: 25px 27px 22px; }.drawer-close { float: left; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: white; width: 36px; height: 36px; border-radius: 10px; font-size: 1.2rem; }.drawer-hero small { color: #a9bec1; }.drawer-hero h2 { margin: 7px 0 14px; font-size: 1.22rem; }.drawer-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .7rem; color: #c1d0d2; }.drawer-meta b { color: #f0cf89; font-weight: 500; }.drawer-body { padding: 20px; }.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 17px; }.detail-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 13px; }.detail-card small, .detail-card strong { display: block; }.detail-card small { color: #879598; font-size: .63rem; margin-bottom: 6px; }.detail-card strong { font-size: .73rem; line-height: 1.7; }.drawer-section { background: white; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 13px; padding: 16px; }.drawer-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }.drawer-section h3 { margin: 0; font-size: .82rem; }.drawer-section-head button { border: 0; background: var(--teal-soft); color: var(--teal); border-radius: 8px; padding: 6px 9px; font-size: .65rem; }.case-description { color: #56696e; font-size: .73rem; line-height: 2; margin: 0; }.event-list { display: grid; gap: 12px; }.event { display: grid; grid-template-columns: 11px 1fr; gap: 10px; }.event-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); margin-top: 6px; box-shadow: 0 0 0 4px var(--teal-soft); }.event h4 { margin: 0 0 4px; font-size: .72rem; }.event p { margin: 0; color: #77888c; font-size: .65rem; line-height: 1.8; }.quick-form { display: none; margin-bottom: 12px; grid-template-columns: 1fr auto; gap: 8px; }.quick-form.open { display: grid; }.quick-form input { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: .7rem; }.quick-form button { border: 0; border-radius: 8px; background: var(--teal); color: white; padding: 8px 12px; font-size: .68rem; }
.modal { width: min(670px, calc(100vw - 28px)); border: 0; border-radius: 18px; padding: 0; color: var(--ink); box-shadow: 0 25px 80px rgba(8,33,40,.25); }.modal.compact { width: min(470px, calc(100vw - 28px)); }.modal::backdrop { background: rgba(8,28,34,.48); backdrop-filter: blur(3px); }.modal form { padding: 22px; }.modal-head { display: flex; justify-content: space-between; align-items: start; padding-bottom: 17px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }.modal-head h2 { margin: 4px 0 0; font-size: 1.15rem; }.modal-head small { color: var(--muted); }.modal-head button { border: 0; background: #f0f4f3; width: 34px; height: 34px; border-radius: 9px; color: #5a6c70; font-size: 1.3rem; }.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }.form-grid.one-col { grid-template-columns: 1fr; }.form-grid label { display: grid; gap: 7px; font-size: .7rem; color: #53666b; }.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid #d8e1e1; background: #fbfcfc; border-radius: 9px; padding: 10px 11px; outline: 0; color: var(--ink); }.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,129,116,.08); }.form-grid textarea { resize: vertical; }.span-2 { grid-column: span 2; }.modal-actions { display: flex; justify-content: end; gap: 9px; padding-top: 19px; margin-top: 18px; border-top: 1px solid var(--line); }.toast { position: fixed; z-index: 80; bottom: 24px; left: 24px; background: #17383f; color: white; border-radius: 11px; padding: 12px 16px; font-size: .75rem; transform: translateY(80px); opacity: 0; transition: .25s; box-shadow: var(--shadow); }.toast.show { transform: none; opacity: 1; }
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.activity-grid { grid-template-columns: 1fr; gap: 14px; }.activity-item { border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; }.activity-item:last-child { border-bottom: 0; }.documents-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .app-shell { display: block; }.sidebar { transform: translateX(105%); transition: transform .25s; width: 280px; box-shadow: -20px 0 50px rgba(7,27,33,.25); }.sidebar.open { transform: none; }.mobile-menu { display: block; border: 0; background: transparent; font-size: 1.2rem; margin-left: 8px; }.topbar { padding: 0 16px; height: 68px; }.global-search { width: auto; flex: 1; }.header-actions .icon-button { display: none; }.view { padding: 22px 16px 35px; }.page-heading { align-items: center; }.page-heading h1 { font-size: 1.25rem; }.stats-grid { grid-template-columns: repeat(2, 1fr); }.followup-board { grid-template-columns: 1fr; }.board-column { min-height: auto; }.toolbar { align-items: stretch; flex-direction: column; }.inline-search { width: 100%; }.filter-group { overflow-x: auto; }.documents-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .header-actions .primary-button { padding: 10px 11px; font-size: 0; }.header-actions .primary-button span { font-size: 1rem; }.global-search input::placeholder { color: transparent; }.stats-grid { grid-template-columns: 1fr; }.stat-card { min-height: 92px; }.page-heading .secondary-button { display: none; }.form-grid { grid-template-columns: 1fr; }.span-2 { grid-column: auto; }.detail-grid { grid-template-columns: 1fr; }.activity-panel { display: none; } }
.document-actions { margin-right: auto; display: flex; gap: 4px; }.document-actions button { margin: 0; width: 30px; height: 30px; border-radius: 8px; }.document-actions .delete-doc { color: var(--red); background: var(--red-soft); }
.security-banner { margin-bottom: 16px; border: 1px solid #cde3df; background: #edf8f6; border-radius: 15px; padding: 15px 18px; display: flex; align-items: center; gap: 13px; }.security-banner > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: white; color: var(--teal); font-size: 1.1rem; }.security-banner strong { font-size: .82rem; }.security-banner p { margin: 4px 0 0; color: #64797c; font-size: .72rem; }.security-banner.confidential { background: #fff7e8; border-color: #ecd7b1; }.security-banner.confidential > span { color: var(--amber); }
.user-cell { display: flex; align-items: center; gap: 10px; }.user-avatar { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-weight: 800; }.user-cell strong,.user-cell small { display: block; }.user-cell small { color: #8b999c; margin-top: 3px; font-size: .66rem; }.role-badge { border-radius: 20px; padding: 5px 9px; font-size: .68rem; font-weight: 700; background: #edf2f2; color: #637579; }.role-badge.admin { background: var(--violet-soft); color: var(--violet); }
.audit-list { padding: 4px 20px; }.audit-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }.audit-item:last-child { border-bottom: 0; }.audit-user { display: flex; gap: 9px; align-items: center; }.audit-item h3 { margin: 0 0 7px; font-size: .78rem; }.audit-item p { margin: 0; color: #708085; font-size: .7rem; line-height: 1.9; }.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }.diff > div { background: #f6f8f8; border: 1px solid #e6ebeb; border-radius: 9px; padding: 9px; }.diff small,.diff strong { display: block; }.diff small { color: #8c999c; font-size: .62rem; margin-bottom: 4px; }.diff strong { font-size: .7rem; font-weight: 500; }.audit-item time { color: #8a999c; font-size: .66rem; white-space: nowrap; }
.compact-stats { grid-template-columns: repeat(3,1fr); }.session-success { color: var(--teal); font-weight: 700; }.session-failed { color: var(--red); font-weight: 700; }
.backup-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 17px; }.settings-form { padding: 19px; display: grid; gap: 13px; }.settings-form label { display: grid; gap: 7px; font-size: .72rem; color: #5a6c70; }.settings-form select,.settings-form input { border: 1px solid var(--line); background: #fbfcfc; border-radius: 10px; padding: 10px 11px; color: var(--ink); }.switch input { display: none; }.switch span { display: block; width: 42px; height: 23px; border-radius: 20px; background: #c7d2d3; position: relative; transition: .2s; }.switch span::after { content: ''; width: 17px; height: 17px; border-radius: 50%; position: absolute; top: 3px; right: 3px; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: .2s; }.switch input:checked + span { background: var(--teal); }.switch input:checked + span::after { transform: translateX(-19px); }.backup-list { padding: 5px 20px; }.backup-item { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }.backup-item:last-child { border-bottom: 0; }.backup-item > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }.backup-item strong,.backup-item small { display: block; }.backup-item strong { font-size: .74rem; }.backup-item small { font-size: .64rem; color: #879699; margin-top: 4px; }.backup-item button { margin-right: auto; border: 1px solid var(--line); background: white; color: var(--teal); border-radius: 9px; padding: 7px 10px; font-size: .67rem; }
.dialog-hint { color: #6e8084; font-size: .74rem; line-height: 1.9; }.share-list { display: grid; gap: 8px; }.share-user { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }.share-user input { accent-color: var(--teal); width: 17px; height: 17px; }.share-user div { display: grid; }.share-user strong { font-size: .73rem; }.share-user small { color: #8b999c; font-size: .64rem; margin-top: 3px; }
.drawer-actions { display: flex; gap: 7px; margin-top: 15px; }.drawer-actions button { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: white; border-radius: 9px; padding: 7px 10px; font-size: .68rem; }
@media (max-width: 1100px) { .backup-layout { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .connection-pill { display: none; }.audit-item { grid-template-columns: 1fr; gap: 9px; }.diff { grid-template-columns: 1fr; } }
@media print { body > * { visibility: hidden !important; } .print-sheet { visibility: visible !important; display: block !important; position: absolute; inset: 0; background: white; color: #111; padding: 28px; direction: rtl; } .print-sheet * { visibility: visible !important; } }
.brand-version { display: inline-flex; margin-top: 7px; color: #f1cf87; font-size: .62rem; font-style: normal; border: 1px solid rgba(213,169,78,.22); border-radius: 20px; padding: 2px 7px; }
.version-badge { display: inline-flex; color: var(--teal); background: var(--teal-soft); border: 1px solid #c9e7e1; border-radius: 22px; padding: 7px 11px; font-size: .72rem; font-weight: 700; }
.product-identity-card { background: linear-gradient(135deg,#102b33 0%,#173f48 100%); color: #fff; border-radius: 22px; padding: 28px; display: grid; grid-template-columns: auto 1fr minmax(280px,.8fr); gap: 22px; align-items: center; box-shadow: var(--shadow); margin-bottom: 17px; }.product-mark { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--gold); color: var(--navy); font-size: 2rem; font-weight: 900; box-shadow: 0 12px 28px rgba(0,0,0,.16); }.product-intro > span { color: #b8cbce; font-size: .72rem; }.product-intro h2 { margin: 4px 0 7px; font-size: 1.45rem; }.product-intro p { margin: 0; color: #d4e0e1; font-size: .78rem; }.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }.product-tags b { font-size: .63rem; font-weight: 500; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.07); color: #d8e6e7; padding: 5px 8px; border-radius: 20px; }.product-facts { margin: 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 15px; padding: 5px 14px; }.product-facts div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }.product-facts div:last-child { border-bottom: 0; }.product-facts dt { color: #a9bec1; font-size: .66rem; }.product-facts dd { margin: 0; font-size: .7rem; font-weight: 700; text-align: left; }.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 17px; }.release-list { padding: 5px 20px; }.release-list article { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--line); }.release-list article:last-child { border-bottom: 0; }.release-list time { color: var(--teal); background: var(--teal-soft); border-radius: 8px; padding: 5px 7px; font-size: .68rem; text-align: center; font-weight: 800; }.release-list strong { display: block; font-size: .75rem; }.release-list p { margin: 5px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.8; }.release-list article > span { color: #fff; background: var(--teal); border-radius: 20px; padding: 4px 7px; font-size: .6rem; }.ownership-body { padding: 20px; }.ownership-body > strong { font-size: .9rem; }.ownership-body > p { color: #5e7074; font-size: .72rem; line-height: 2; }.ownership-note { color: #72521e; background: var(--amber-soft); border: 1px solid #f0d9b5; border-radius: 11px; padding: 12px; font-size: .68rem; line-height: 1.9; }
.mobile-bottom-nav { display: none; }
@media (max-width: 980px) { .product-identity-card { grid-template-columns: auto 1fr; }.product-facts { grid-column: 1 / -1; }.about-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  body { padding-bottom: 72px; }.view { padding-bottom: 28px; }.mobile-bottom-nav { position: fixed; display: grid; grid-template-columns: repeat(4,1fr); right: 10px; left: 10px; bottom: 8px; z-index: 35; background: rgba(16,43,51,.96); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.1); border-radius: 17px; padding: 5px; box-shadow: 0 12px 35px rgba(4,25,31,.25); }.mobile-bottom-nav button { border: 0; background: transparent; color: #9eb4b8; border-radius: 12px; display: grid; place-items: center; gap: 2px; padding: 6px 3px; font-size: .62rem; }.mobile-bottom-nav button span { font-size: 1rem; }.mobile-bottom-nav button.active { color: #f4d38d; background: rgba(213,169,78,.12); }
  .product-identity-card { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }.product-mark { margin: auto; }.product-facts { grid-column: auto; text-align: right; }.product-tags { justify-content: center; }
  .list-panel .table-wrap { overflow: visible; }.list-panel table,.cases-panel table { min-width: 0; display: block; }.list-panel thead,.cases-panel thead { display: none; }.list-panel tbody,.cases-panel tbody { display: grid; gap: 10px; padding: 12px; }.list-panel tr,.cases-panel tr { display: block; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #fff; }.list-panel td,.cases-panel td { border-top: 1px solid #edf1f1; padding: 10px 12px; display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; font-size: .72rem; }.list-panel td:first-child,.cases-panel td:first-child { display: block; border-top: 0; background: #fbfcfc; }.list-panel td::before,.cases-panel td::before { color: #8a989b; font-size: .63rem; }.list-panel td:first-child::before,.cases-panel td:first-child::before { display: none; }
  #allCasesBody td:nth-child(2)::before,#recentCasesBody td:nth-child(2)::before { content:'موضوع'; } #allCasesBody td:nth-child(3)::before { content:'طرف مقابل'; } #allCasesBody td:nth-child(4)::before,#recentCasesBody td:nth-child(3)::before { content:'وکیل مسئول'; } #allCasesBody td:nth-child(5)::before,#recentCasesBody td:nth-child(4)::before { content:'آخرین تغییر'; } #allCasesBody td:nth-child(6)::before,#recentCasesBody td:nth-child(5)::before { content:'وضعیت'; } #allCasesBody td:last-child { display:none; }
  #usersBody td:nth-child(2)::before { content:'نقش'; } #usersBody td:nth-child(3)::before { content:'دسترسی'; } #usersBody td:nth-child(4)::before { content:'آخرین ورود'; } #usersBody td:nth-child(5)::before { content:'وضعیت'; } #usersBody td:last-child { display:none; }
  #sessionsBody td:nth-child(2)::before { content:'زمان ورود'; } #sessionsBody td:nth-child(3)::before { content:'دستگاه'; } #sessionsBody td:nth-child(4)::before { content:'سیستم'; } #sessionsBody td:nth-child(5)::before { content:'شبکه'; } #sessionsBody td:nth-child(6)::before { content:'نتیجه'; }
}
@media (max-width: 540px) { .product-mark { width: 64px; height: 64px; border-radius: 18px; }.product-intro h2 { font-size: 1.25rem; }.product-facts div { align-items: start; }.release-list article { grid-template-columns: 48px 1fr; }.release-list article > span { grid-column: 2; justify-self: start; }.heading-actions { gap: 6px; }.page-heading { align-items: flex-start; }.version-badge { font-size: .64rem; }.security-banner { align-items: flex-start; }.compact-stats { grid-template-columns: 1fr; } }

/* Secure sign-in */
body.auth-active { background: #0d2931; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(430px, .95fr); background: #f7f9f8; }
.login-visual { position: relative; overflow: hidden; color: #fff; background: linear-gradient(145deg, rgba(8,32,39,.97), rgba(17,65,72,.95)), radial-gradient(circle at 20% 20%, #1f7d76, transparent 50%); }
.login-visual::before { content:''; position:absolute; width:420px; height:420px; border:1px solid rgba(255,255,255,.08); border-radius:50%; top:-130px; left:-120px; box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.018); }
.login-visual::after { content:''; position:absolute; width:260px; height:260px; border-radius:50%; background:radial-gradient(circle,rgba(213,169,78,.18),transparent 70%); bottom:-70px; right:-40px; }
.login-visual-content { position:relative; z-index:1; min-height:100vh; padding:46px clamp(38px,6vw,82px); display:flex; flex-direction:column; }
.login-product-lockup,.login-mobile-brand { display:flex; align-items:center; gap:13px; }.login-brand-mark { width:50px; height:50px; border-radius:15px; display:grid; place-items:center; background:var(--gold); color:var(--navy); font-size:1.35rem; font-weight:900; }.login-product-lockup strong,.login-product-lockup small,.login-mobile-brand strong,.login-mobile-brand small { display:block; }.login-product-lockup strong { font-size:1rem; margin-top:3px; }.login-product-lockup small { color:#b9cbce; font-size:.68rem; }
.login-message { margin:auto 0; max-width:650px; }.login-message > span { display:inline-flex; border:1px solid rgba(240,207,137,.25); color:#f0cf89; background:rgba(213,169,78,.08); border-radius:30px; padding:7px 11px; font-size:.7rem; }.login-message h1 { font-size:clamp(1.8rem,3.5vw,3.25rem); line-height:1.65; letter-spacing:-.04em; margin:18px 0 13px; }.login-message p { color:#c5d4d6; line-height:2; max-width:560px; font-size:.85rem; }.login-trust { display:flex; gap:9px; flex-wrap:wrap; }.login-trust span { color:#afc3c6; border-right:2px solid rgba(213,169,78,.55); padding:3px 9px; font-size:.68rem; }
.login-panel { display:grid; place-items:center; padding:38px; }.login-card { width:min(430px,100%); }.login-mobile-brand { display:none; }.auth-step { display:none; }.auth-step.active { display:block; animation:auth-in .25s ease both; }@keyframes auth-in { from { opacity:0; transform:translateY(8px); } }
.auth-heading > span { color:var(--teal); font-size:.72rem; font-weight:800; }.auth-heading h2 { font-size:1.65rem; margin:7px 0 8px; }.auth-heading p { color:var(--muted); font-size:.75rem; line-height:1.9; margin:0 0 24px; }.auth-step > label,.verify-code { display:grid; gap:8px; margin-bottom:15px; color:#4d6267; font-size:.72rem; }.auth-step input,.verify-code input { border:1px solid #d5dfe0; background:#fff; border-radius:11px; padding:13px 14px; outline:0; color:var(--ink); font-family:inherit; }.auth-step input:focus,.verify-code input:focus { border-color:var(--teal); box-shadow:0 0 0 4px rgba(13,129,116,.08); }.password-field { position:relative; }.password-field input { width:100%; padding-left:68px; }.password-field button { position:absolute; left:8px; top:7px; bottom:7px; border:0; background:#eff6f4; color:var(--teal); border-radius:8px; padding:0 10px; font-size:.65rem; }.login-options { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:3px 0 20px; font-size:.65rem; color:#6c7f83; }.login-options label { display:flex; gap:6px; align-items:center; }.login-options input { accent-color:var(--teal); }.login-options button { border:0; background:none; color:var(--teal); font-family:inherit; font-size:.65rem; }.login-primary { width:100%; display:flex; justify-content:space-between; align-items:center; border:0; background:var(--navy); color:#fff; border-radius:12px; padding:13px 16px; font:700 .76rem inherit; box-shadow:0 10px 24px rgba(16,43,51,.15); }.login-primary:hover { background:#173c45; }.demo-access { text-align:center; color:#8a999c; font-size:.63rem; margin:13px 0 0; }.demo-access b { color:#50676c; }.login-card > footer { display:flex; justify-content:space-between; color:#96a4a6; font-size:.6rem; margin-top:40px; padding-top:16px; border-top:1px solid #e2e8e8; }.auth-back { border:0; background:none; color:#738589; font-family:inherit; font-size:.68rem; padding:0; margin-bottom:25px; }.otp-user,.twofa-user { display:flex; align-items:center; gap:10px; border:1px solid var(--line); background:#fff; border-radius:12px; padding:11px; margin-bottom:17px; }.otp-user > span { width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--teal-soft);color:var(--teal);font-weight:800; }.otp-user div,.twofa-user div { min-width:0; flex:1; }.otp-user strong,.otp-user small,.twofa-user strong,.twofa-user small { display:block; }.otp-user strong,.twofa-user strong { font-size:.73rem; }.otp-user small,.twofa-user small { color:#8b999c;font-size:.62rem;margin-top:3px; }.otp-user > b,.twofa-state { color:var(--teal);background:var(--teal-soft);border-radius:20px;padding:5px 8px;font-size:.6rem;white-space:nowrap; }.otp-input { text-align:center; direction:ltr; letter-spacing:.55em; font-size:1.2rem; font-weight:800; }

/* Server clock and brand settings */
.dashboard-heading { display:grid; grid-template-columns:1fr auto auto; }.server-clock { min-width:190px; border:1px solid #d7e2e1; background:#fff; border-radius:14px; padding:10px 14px; display:grid; grid-template-columns:auto auto; gap:2px 12px; align-items:center; box-shadow:0 4px 16px rgba(28,55,60,.035); }.server-clock > span { color:var(--teal); background:var(--teal-soft); border-radius:20px; padding:4px 7px; font-size:.58rem; grid-row:1 / 3; }.server-clock strong { direction:ltr; font-size:1rem; letter-spacing:.04em; }.server-clock small { color:var(--muted); font-size:.58rem; }
.branding-layout { display:grid; grid-template-columns:1.1fr .9fr; gap:17px; }.brand-upload-body { padding:24px; display:grid; grid-template-columns:140px 1fr; gap:22px; align-items:center; }.logo-preview { width:140px; aspect-ratio:1; border:1px dashed #b8c8c8; background:#f7faf9; border-radius:20px; display:grid; place-items:center; overflow:hidden; }.logo-preview .brand-logo-fallback { width:74px;height:74px;border-radius:20px;display:grid;place-items:center;background:var(--navy);color:var(--gold);font-size:2rem;font-weight:900; }.brand-logo-image { object-fit:contain; max-width:100%; max-height:100%; }.logo-preview .brand-logo-image { width:100%;height:100%;padding:16px; }.brand-upload-body strong { font-size:.86rem; }.brand-upload-body p { color:var(--muted); font-size:.7rem; line-height:1.9; }.brand-buttons { display:flex;gap:8px;flex-wrap:wrap;margin-top:16px; }.brand-contexts { padding:20px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }.brand-contexts > div { min-height:130px; border-radius:14px; display:grid; place-items:center; align-content:center; gap:10px; padding:14px; }.context-dark { background:var(--navy); color:#c9d7d9; }.context-light { background:#f5f8f7; border:1px solid var(--line); color:#65777b; }.brand-contexts .brand-logo-fallback { width:58px;height:58px;border-radius:16px;display:grid;place-items:center;background:var(--gold);color:var(--navy);font-size:1.5rem;font-weight:900; }.brand-contexts .brand-logo-image { width:76px;height:76px; }.brand-contexts small { font-size:.62rem; }.brand-tip { margin:0 20px 20px; color:#6c551f; background:var(--amber-soft); border:1px solid #ecd5aa; border-radius:10px; padding:11px; font-size:.66rem; line-height:1.8; }.sidebar-logo { width:43px;height:43px;object-fit:contain;border-radius:12px;background:#fff;padding:3px; }.product-mark .brand-logo-image { width:100%;height:100%;padding:8px; }.login-product-lockup .brand-logo-image,.login-mobile-brand .brand-logo-image { width:50px;height:50px;border-radius:15px;object-fit:contain;background:#fff;padding:4px; }

/* Document actions and preview */
.document-card { transition:border-color .18s,box-shadow .18s,transform .18s; }.document-card:hover { border-color:#bcd2cf; box-shadow:0 8px 22px rgba(20,58,63,.07); transform:translateY(-1px); }.document-actions .view-doc { background:var(--teal-soft);color:var(--teal); }.document-actions .download-doc { background:var(--blue-soft);color:var(--blue); }.document-modal { width:min(980px,calc(100vw - 28px)); }.document-modal-shell { padding:22px; }.document-preview { min-height:460px; background:#e9eeee; border:1px solid #d9e1e1; border-radius:14px; overflow:hidden; position:relative; }.document-preview iframe { width:100%;height:460px;border:0;background:#fff; }.document-unavailable { position:absolute;inset:0;display:grid;place-items:center;align-content:center;text-align:center;padding:28px; }.document-unavailable span { font-size:2rem;color:var(--blue); }.document-unavailable h3 { margin:12px 0 5px;font-size:.9rem; }.document-unavailable p { margin:0;color:var(--muted);font-size:.7rem; }.document-info { display:grid;grid-template-columns:repeat(3,1fr) auto;gap:10px;align-items:center;padding-top:14px; }.document-info > div { display:grid;gap:4px; }.document-info small { color:var(--muted);font-size:.6rem; }.document-info strong { font-size:.7rem; }

/* Two-factor management */
.checkbox-row { display:flex !important;grid-template-columns:none !important;align-items:center;gap:9px !important;background:#f4f8f7;border:1px solid var(--line);border-radius:10px;padding:11px; }.checkbox-row input { width:18px !important;height:18px;accent-color:var(--teal); }.twofa-setup { display:grid;grid-template-columns:30px 1fr;gap:10px;margin:16px 0; }.twofa-setup > span { width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--teal-soft);color:var(--teal);font-weight:800; }.twofa-setup strong { font-size:.74rem; }.twofa-setup p { color:var(--muted);font-size:.66rem;line-height:1.8;margin:4px 0 0; }.secret-key { background:#f4f7f7;border:1px dashed #bdcaca;border-radius:11px;padding:11px;margin-bottom:14px; }.secret-key > small { color:var(--muted);font-size:.6rem; }.secret-key > div { display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:7px;direction:ltr; }.secret-key code { font-size:.78rem;font-weight:800;letter-spacing:.08em;color:var(--navy); }.secret-key button { border:0;background:#fff;color:var(--teal);border-radius:7px;padding:6px 9px;font:600 .62rem inherit; }.twofa-enabled,.twofa-disabled { border:0;border-radius:20px;padding:5px 9px;font:700 .64rem inherit;cursor:pointer; }.twofa-enabled { color:var(--teal);background:var(--teal-soft); }.twofa-disabled { color:#718085;background:#edf2f2; }.profile { width:100%;border:0;color:inherit;text-align:right;font-family:inherit;cursor:pointer; }

@media (max-width: 900px) { .login-screen { grid-template-columns:1fr; }.login-visual { display:none; }.login-panel { min-height:100vh;padding:28px 20px; }.login-mobile-brand { display:flex;margin-bottom:48px; }.login-mobile-brand strong { font-size:.85rem; }.login-mobile-brand small { color:var(--muted);font-size:.62rem;margin-top:3px; }.branding-layout { grid-template-columns:1fr; } }
@media (max-width: 820px) { body.auth-active { padding-bottom:0; } body.auth-active .mobile-bottom-nav { display:none !important; } .dashboard-heading { grid-template-columns:1fr auto; }.dashboard-heading .server-clock { grid-row:2;grid-column:1 / -1;width:100%;margin-top:12px; }.document-modal-shell { padding:14px; }.document-preview,.document-preview iframe { min-height:58vh;height:58vh; }.document-info { grid-template-columns:repeat(3,1fr); }.document-info .primary-button { grid-column:1 / -1; }.brand-upload-body { grid-template-columns:100px 1fr;padding:18px; }.logo-preview { width:100px; } #usersBody td:nth-child(5)::before { content:'ورود دومرحله‌ای'; } #usersBody td:nth-child(6)::before { content:'وضعیت'; } #usersBody td:nth-child(7) { display:none; } }
@media (max-width: 540px) { .login-panel { align-items:start; }.login-mobile-brand { margin-bottom:36px; }.auth-heading h2 { font-size:1.4rem; }.login-card > footer { margin-top:28px; }.server-clock { min-width:0; }.brand-upload-body { grid-template-columns:1fr;text-align:center; }.logo-preview { margin:auto; }.brand-buttons { justify-content:center; }.brand-contexts { grid-template-columns:1fr 1fr;padding:14px; }.document-info { grid-template-columns:1fr 1fr; }.document-info > div:nth-child(3) { grid-column:1 / -1; }.document-info .primary-button { grid-column:1 / -1; } }

/* Royal Justice design system — selected Product Design direction */
:root {
  --ink: #282219;
  --muted: #766f65;
  --line: #d8d0c3;
  --surface: #fffdf8;
  --canvas: #eee9df;
  --navy: #11120f;
  --navy-2: #22201a;
  --gold: #bd8d36;
  --gold-bright: #e2bd70;
  --teal: #22634c;
  --teal-soft: #e1eee6;
  --amber: #9a641b;
  --amber-soft: #f8edd8;
  --blue: #245c91;
  --blue-soft: #e5edf7;
  --red: #8d332f;
  --red-soft: #f5e3e1;
  --violet: #8d332f;
  --violet-soft: #f5e3e1;
  --shadow: 0 24px 80px rgba(17, 12, 6, .28);
  --radius: 10px;
}

body:not(.auth-active) {
  background-color: #18140f;
  background-image: url("./assets/legal-desk-bg.png");
  background-size: cover;
  background-position: left center;
  background-attachment: fixed;
  padding: 26px;
}

.app-shell {
  width: min(1500px, 100%);
  min-height: calc(100vh - 52px);
  margin: 0 auto;
  grid-template-columns: 244px minmax(0, 1fr);
  border: 1px solid rgba(210, 166, 80, .74);
  border-radius: 26px;
  overflow: hidden;
  background: #f5f0e7;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.35);
}

.sidebar {
  position: relative;
  inset: auto;
  width: auto;
  min-height: calc(100vh - 52px);
  grid-column: 1;
  grid-row: 1;
  padding: 27px 17px 19px;
  background-color: #11110f;
  background-image: url("./assets/court-atrium-bg.png");
  background-size: auto 115%;
  background-position: 52% center;
  background-blend-mode: multiply;
  border-left: 1px solid rgba(198,148,53,.5);
}

.brand {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 9px;
  padding: 2px 4px 22px;
  border-bottom-color: rgba(213,169,78,.34);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  color: #17130d;
  background: #d6aa59;
  border: 1px solid #f0d08d;
  box-shadow: inset 0 0 0 2px rgba(72,45,5,.15), 0 7px 24px rgba(0,0,0,.24);
}

.brand strong { color: #f3dfb7; font-size: 1.04rem; }
.brand small { color: #c4b99f; font-size: .63rem; }
.brand-version { color: #d8b56c; border-color: rgba(216,181,108,.24); }
.sidebar nav { margin-top: 17px; gap: 4px; overflow-y: auto; }
.nav-section-label { color: #877a62; padding: 13px 12px 3px; }
.nav-item {
  min-height: 43px;
  padding: 10px 12px;
  border-radius: 7px;
  color: #d3c9b5;
  gap: 11px;
  font-size: .76rem;
  border: 1px solid transparent;
}
.nav-item > i { width: 23px; color: #d3a94f; font-size: 1.26rem; text-align: center; }
.nav-item b { color: #dfbd78; background: rgba(219,177,95,.12); }
.nav-item:hover { color: #fff7e8; background: rgba(255,255,255,.045); }
.nav-item.active {
  color: #fff4df;
  background: rgba(175,126,45,.2);
  border-color: rgba(218,174,90,.58);
  box-shadow: inset -3px 0 #d1a34c, 0 6px 18px rgba(0,0,0,.12);
}
.security-note { display: none; }
.sidebar-foot { gap: 10px; }
.profile { border-top-color: rgba(213,169,78,.25); padding: 17px 4px 0; background: transparent; }
.profile .avatar, .topbar-user .avatar { border: 1px solid #c79b4d; background: #29261f; color: #e6c584; border-radius: 50%; }
.role-chip { color: #e5c17b; border-color: rgba(213,169,78,.35); background: rgba(213,169,78,.1); }

main { grid-column: 2; background: #f5f0e7; }
.topbar {
  position: sticky;
  top: 0;
  height: 82px;
  padding: 0 24px;
  gap: 12px;
  background-color: #12130f;
  background-image: url("./assets/court-atrium-bg.png");
  background-size: 170%;
  background-position: center 28%;
  background-blend-mode: multiply;
  border-bottom: 1px solid #cda04a;
  color: #eee1c9;
  box-shadow: 0 5px 20px rgba(35,25,10,.16);
}
.topbar-user {
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 0 0 16px;
  border-left: 1px solid rgba(209,166,83,.3);
  text-align: right;
}
.topbar-user .avatar { width: 43px; height: 43px; display: grid; place-items: center; font-size: .7rem; }
.topbar-user strong, .topbar-user small { display: block; }
.topbar-user strong { color: #f4e8d0; font-size: .72rem; }
.topbar-user small { color: #b8ab92; font-size: .58rem; margin-top: 3px; }
.topbar-user > i { color: #cda34f; }
.server-clock {
  min-width: 238px;
  min-height: 54px;
  display: flex;
  align-items: center;
  direction: ltr;
  border: 1px solid rgba(211,169,79,.72);
  background: #0c0e0b;
  border-radius: 4px;
  padding: 5px 10px;
  gap: 11px;
  color: #eadcc0;
  box-shadow: inset 0 0 0 2px #24241d, 0 4px 14px rgba(0,0,0,.2);
}
.server-clock > .carriage-clock-dial {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(218,177,92,.7);
  border-radius: 50%;
  color: #d9b45f;
  background: #151711;
  box-shadow: inset 0 0 0 2px rgba(218,177,92,.11);
  padding: 0;
  box-sizing: border-box;
}
.server-clock > .carriage-clock-dial i { color: inherit; font-size: 1.8rem; }
.server-clock > .server-clock-copy { min-width: 142px; display: grid; gap: 3px; direction: rtl; text-align: center; border-left: 1px solid rgba(211,169,79,.28); border-radius: 0; background: none; padding: 0 10px 0 0; color: inherit; font-size: inherit; grid-row: auto; }
.server-clock-copy > span { color: #ddd0b6; white-space: nowrap; font-size: .61rem; line-height: 1.4; }
.server-clock-copy strong { direction: ltr; color: #f0c86f; font-size: .72rem; line-height: 1.3; letter-spacing: .04em; text-align: center; }
.heritage-clock {
  position: relative;
  width: 198px;
  min-width: 198px;
  height: 73px;
  display: block;
  direction: ltr;
  padding: 0;
  color: #eadcc0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  isolation: isolate;
}
.heritage-clock-art { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.heritage-live-hands { position: absolute; z-index: 2; top: 49.8%; left: 21.85%; width: 0; height: 0; display: block; padding: 0; pointer-events: none; }
.heritage-hand { position: absolute; bottom: -2px; left: 0; display: block; padding: 0; border: 0; border-radius: 2px; background: linear-gradient(90deg,#896622,#e7c26f 50%,#8f6924); box-shadow: 0 0 1px rgba(0,0,0,.9); transform-origin: 50% calc(100% - 2px); }
.heritage-hour-hand { width: 2.4px; height: 10px; }
.heritage-minute-hand { width: 1.7px; height: 15px; }
.heritage-second-hand { width: 1px; height: 17px; background: #c9983e; }
.heritage-hand-hub { position: absolute; z-index: 3; top: 0; left: 0; width: 5px; height: 5px; display: block; padding: 0; border: 1px solid #6e4e18; border-radius: 50%; background: radial-gradient(circle at 40% 35%,#f0ce81,#aa7828 65%,#5b3e13); box-shadow: 0 0 0 1px rgba(0,0,0,.75); transform: translate(-50%,-50%); box-sizing: border-box; }
.heritage-clock-copy { position: absolute; z-index: 1; top: 18px; right: 15px; bottom: 13px; left: 70px; min-width: 0; display: grid; align-content: center; gap: 2px; direction: rtl; text-align: center; padding: 0 0 0 7px; border-left: 1px solid rgba(211,169,79,.45); }
.heritage-clock-copy > span { color: #ddd0b6; white-space: nowrap; font-size: .55rem; line-height: 1.4; text-shadow: 0 1px 1px #000; }
.heritage-clock-copy strong { direction: ltr; color: #f0c86f; font-size: .69rem; line-height: 1.3; letter-spacing: .025em; text-align: center; text-shadow: 0 1px 1px #000; }
.connection-pill { color: #c6bba5; border-color: rgba(215,176,99,.28); background: rgba(255,255,255,.04); }
.connection-pill i { background: #62b891; box-shadow: 0 0 0 3px rgba(76,164,124,.16); }
.global-search {
  width: clamp(250px, 31vw, 360px);
  min-width: 220px;
  min-height: 44px;
  margin-right: auto;
  padding: 0 11px;
  border: 1px solid rgba(224,192,128,.42);
  border-radius: 6px;
  background: rgba(8,9,7,.48);
  color: #c9af77;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}
.global-search > i { flex: 0 0 auto; font-size: 1rem; }
.global-search input { min-width: 0; color: #f4ead6; font-size: .69rem; text-align: right; }
.global-search input::placeholder { color: #a89d89; }
.global-search kbd { min-width: 47px; height: 24px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; direction: ltr; white-space: nowrap; line-height: 1; color: #bdb19b; border: 1px solid rgba(224,192,128,.22); border-radius: 4px; padding: 0 6px; font-size: .52rem; background: rgba(255,255,255,.045); }
.icon-button { border-color: rgba(220,181,104,.25); background: rgba(255,255,255,.035); color: #dfbd78; border-radius: 7px; }
.icon-button > i { position: static; width: auto; height: auto; border: 0; background: none; color: inherit; font-size: 1.18rem; }
.notification-button b { position: absolute; top: -6px; right: -4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #983f35; color: white; border: 2px solid #151611; font-size: .5rem; }

.view { max-width: 100%; padding: 31px 27px 40px; }
#dashboardView { background-color: #f6f2ea; }
.page-heading { margin: 3px 0 22px; }
.page-heading h1 { color: #211c16; font-size: 1.62rem; letter-spacing: -.03em; }
.page-heading p { color: #6f675c; line-height: 1.9; }
.dashboard-heading { display: flex; align-items: center; }
.dashboard-heading time { display: none; }
.primary-button, .secondary-button {
  border-radius: 7px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.primary-button {
  background: #171b17;
  color: #f5d998;
  border: 1px solid #bd8d36;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 7px 18px rgba(35,24,8,.14);
}
.primary-button:hover { background: #292920; color: #ffe7b2; }
.secondary-button { background: #fffdf8; border-color: #d3cabd; color: #4c4234; }
.secondary-button:hover { background: #f4eee4; }
.primary-button.compact { padding: 8px 12px; min-height: 35px; font-size: .68rem; }

.stats-grid { gap: 12px; margin-bottom: 16px; }
.stat-card {
  min-height: 132px;
  padding: 18px 16px;
  border-radius: 8px;
  border-color: #d8d0c4;
  background: #fffdf8;
  flex-direction: row-reverse;
  justify-content: space-between;
  box-shadow: 0 5px 17px rgba(79,59,30,.045);
}
.stat-card > div:last-child { flex: 1; text-align: right; }
.stat-icon { width: 58px; height: 58px; border-radius: 50%; font-size: 1.72rem; }
.stat-icon.teal { background: #dcece3; color: #176242; }
.stat-icon.blue { background: #dde9f7; color: #15569a; }
.stat-icon.amber { background: #f3e7cc; color: #8e5a12; }
.stat-icon.violet { background: #f0dddd; color: #8d2726; }
.stat-icon.classical {
  width: 56px;
  height: 56px;
  border: 1px solid #caa55f;
  border-radius: 8px;
  color: #6f4e18;
  background: #f1e5cd;
  box-shadow: inset 0 0 0 3px #fbf5e9, inset 0 0 0 4px #d9bd84;
  font-size: 1.48rem;
}
.stat-card:nth-child(2) .stat-icon.classical { color: #76551f; background: #eee1c8; }
.stat-card:nth-child(3) .stat-icon.classical { color: #7c571b; background: #f1e3c6; }
.stat-card:nth-child(4) .stat-icon.classical { color: #714b1d; background: #ecdfc8; }
.stat-card strong { font-size: 1.85rem; margin: 0; color: #33281b; }
.stat-card span { margin-top: 2px; color: #3e372e; font-size: .76rem; }
.stat-card small { margin-top: 13px; color: #898174; font-size: .61rem; }
.stat-card.urgent { border-color: #ded2bd; }

.dashboard-grid { direction: ltr; grid-template-columns: minmax(0, 1fr) 292px; gap: 12px; }
.dashboard-grid > * { direction: rtl; }
.cases-panel { grid-column: 1; }
.timeline-panel { grid-column: 2; }
.panel {
  border-color: #d7cec0;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 5px 17px rgba(79,59,30,.04);
}
.panel-head { min-height: 73px; padding: 15px 17px; border-bottom-color: #ddd5c8; }
.panel-head h2 { color: #252018; font-size: .91rem; }
.panel-head p { color: #8a8276; font-size: .62rem; }
.panel-actions { display: flex; align-items: center; gap: 8px; }
.text-button { color: #235488; display: inline-flex; align-items: center; gap: 5px; }
.table-wrap { scrollbar-color: #cbb98f transparent; }
.dashboard-grid .table-wrap table { min-width: 0; }
#usersView .full-table { min-width: 860px; }
.session-logout { color: #7c6b52; font-weight: 700; }
table { min-width: 650px; }
th { color: #6f6659; background: #f3eee6; padding: 11px 13px; }
td { border-top-color: #e5ded2; padding: 12px 13px; color: #4c4439; }
tr.case-row:hover td { background: #f6f1e8; }
.case-monogram { border-radius: 50%; background: #eee2c9; color: #72521c; }
.case-title strong { color: #2f281f; }
.mini-avatar { background: #e7dfd1; color: #514536; border: 1px solid #d2c7b5; }
.status { border-radius: 5px; }
.status.active { background: #dfeee5; color: #17613f; }
.status.pending { background: #f7ead0; color: #865918; }
.status.closed { background: #e8e6e1; color: #6c675e; }
.upcoming-list { padding: 8px 16px 3px; }
.upcoming-item { grid-template-columns: 52px minmax(0,1fr) 8px; gap: 12px; padding: 13px 0; border-bottom-color: #e4dccf; }
.date-tile {
  position: relative;
  width: 50px;
  height: 54px;
  overflow: hidden;
  grid-template-rows: 19px 1fr;
  border: 1px solid #b58a3e;
  border-radius: 5px;
  color: #533913;
  background: linear-gradient(145deg,#fffaf0,#eee1c8);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72), 0 3px 8px rgba(77,53,17,.1);
}
.date-tile::after {
  content: '';
  position: absolute;
  right: 5px;
  left: 5px;
  bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg,transparent,#c9ad76,transparent);
}
.date-tile small {
  grid-row: 1;
  width: 100%;
  height: 19px;
  display: grid;
  place-items: center;
  color: #efd28c;
  background: linear-gradient(180deg,#29291f,#191a16);
  border-bottom: 1px solid #a87c32;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.date-tile strong {
  grid-row: 2;
  align-self: center;
  color: #553a12;
  font-size: 1.05rem;
  font-weight: 900;
  text-shadow: 0 1px #fff;
}
.wide-ghost { border-color: #c6a760; background: #fbf7ef; color: #6f5626; border-radius: 6px; }
#dashboardView .activity-panel { display: none; }

.list-panel, .board-column, .followup-card, .document-card, .detail-card, .drawer-section, .security-banner, .product-identity-card { border-radius: 8px; }
.toolbar { border-bottom-color: #ddd5c8; }
.inline-search, .filter-group button { border-color: #d6cec1; border-radius: 6px; background: #fffdf8; }
.filter-group button.active { background: #1d1e19; border-color: #b78b3a; color: #f0d28d; }
.followup-board { gap: 12px; }
.board-column { background: #e9e3d8; }
.followup-card { border-color: #d6cec1; background: #fffdf8; }
.document-card { border-color: #d6cec1; background: #fffdf8; }
.file-icon { background: #e4ebf4; color: #285887; }
.drawer-hero { background-color: #151510; background-image: url("./assets/court-atrium-bg.png"); background-size: cover; background-position: center 28%; background-blend-mode: multiply; border-bottom: 1px solid #c69a48; }
.case-drawer { background: #eee8dd; }
.modal { border-radius: 10px; background: #fffdf8; border: 1px solid #c89a47; }
.modal::backdrop { background: rgba(13,10,6,.64); }
.modal-head button { border-radius: 6px; background: #eee8dd; }
.form-grid input, .form-grid select, .form-grid textarea, .auth-step input, .verify-code input { border-radius: 6px; background: #fffdf8; border-color: #d5ccbe; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .auth-step input:focus, .verify-code input:focus { border-color: #b48431; box-shadow: 0 0 0 3px rgba(180,132,49,.12); }
.amount-words { min-height: 36px; display: flex; align-items: center; padding: 7px 10px; border: 1px solid #ddcfb5; border-radius: 7px; background: #f8f1e4; color: #6f5425; font-size: .64rem; line-height: 1.8; }
#expenseAmountInput { direction: ltr; text-align: right; font-weight: 800; letter-spacing: .02em; }
.table-sort { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }.table-sort i { color: #a88a54; font-size: .72rem; }.table-sort.active { color: #7c571b; }
.audit-panel { border-color: #d8cdbc; }.audit-toolbar,.audit-pagination { min-height: 58px; padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #f7f1e7; }.audit-toolbar { border-bottom: 1px solid #ded4c5; }.audit-toolbar label { display: flex; align-items: center; gap: 9px; color: #6f6558; font-size: .62rem; }.audit-toolbar select { min-width: 105px; padding: 7px 9px; border: 1px solid #d1c3ad; border-radius: 5px; color: #4d4337; background: #fffdf8; font: .62rem inherit; }.audit-toolbar > span,.audit-pagination strong { color: #7e725f; font-size: .6rem; }.audit-pagination { border-top: 1px solid #ded4c5; }.audit-pagination button { min-height: 34px; padding: 7px 11px; border: 1px solid #d0b987; border-radius: 5px; color: #73541e; background: #fffaf0; font: 700 .6rem inherit; cursor: pointer; }.audit-pagination button:disabled { opacity: .42; cursor: default; }
.sessions-panel { border-color: #d8cdbc; overflow: hidden; }
.sessions-toolbar,.sessions-pagination { min-height: 58px; padding: 11px 18px; display: flex; align-items: center; gap: 14px; background: #f7f1e7; }
.sessions-toolbar { border-bottom: 1px solid #ded4c5; }
.sessions-toolbar label { display: flex; align-items: center; gap: 8px; color: #6f6558; font-size: .62rem; }
.sessions-toolbar select { min-width: 125px; padding: 7px 9px; border: 1px solid #d1c3ad; border-radius: 5px; color: #4d4337; background: #fffdf8; font: .62rem inherit; }
.sessions-toolbar > span { margin-right: auto; color: #7e725f; font-size: .6rem; }
.sessions-pagination { justify-content: space-between; border-top: 1px solid #ded4c5; }
.sessions-pagination strong { color: #7e725f; font-size: .6rem; }
.sessions-pagination button { min-height: 34px; padding: 7px 11px; border: 1px solid #d0b987; border-radius: 5px; color: #73541e; background: #fffaf0; font: 700 .6rem inherit; cursor: pointer; }
.sessions-pagination button:disabled { opacity: .42; cursor: default; }
.table-empty-cell { padding: 30px !important; text-align: center; color: #8d8171; }
.case-authorities-fact { align-items: start !important; }.authority-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }.authority-list li { display: grid; grid-template-columns: 23px minmax(0,1fr); gap: 6px; align-items: start; color: #554a3c; font-weight: 600; }.authority-list li > span { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #d1b77f; border-radius: 50%; color: #855f21; background: #f6ead3; font-size: .54rem; }.authority-list em { grid-column: 2; color: #876528; font-size: .5rem; font-style: normal; font-weight: 500; }.not-recorded { color: #9b8f7f; font-weight: 500; }
.security-banner { background: #edf3ed; border-color: #c9d9ca; }
.security-banner > i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: white; color: #236247; font-size: 1.15rem; }
.security-banner.confidential { background: #f7efdf; border-color: #dfcda9; }
.security-banner.confidential > i { color: #956421; }
.role-badge.viewer { color: #76551a; background: #f4e8ce; }
.managed-user { display: flex; align-items: center; gap: 10px; border: 1px solid #d8cfc1; border-radius: 7px; padding: 12px; background: #f8f3ea; }
.managed-user > div { flex: 1; }
.managed-user strong, .managed-user small { display: block; }
.managed-user small { color: #857d72; margin-top: 4px; font-size: .65rem; }
.danger-button { border: 1px solid #c99590; background: #f8e7e4; color: #8d332f; border-radius: 7px; padding: 10px 13px; font: 700 .72rem inherit; }
.danger-button.activate { border-color: #85ad92; background: #e5f0e8; color: #26613d; }
.split-actions { justify-content: space-between; }

/* Cinematic login: image remains free of decorative copy */
body.auth-active { padding: 0; background: #0f0f0d; }
.login-screen { direction: ltr; grid-template-columns: minmax(0, 1.16fr) minmax(420px, .84fr); background: #11110e; }
.login-visual {
  grid-column: 1;
  min-height: 100vh;
  background-image: url("./assets/lady-justice-login.png");
  background-size: cover;
  background-position: 43% center;
  filter: saturate(.86) contrast(1.03) brightness(.78);
  border-right: 1px solid #bd8d36;
}
.login-visual::before, .login-visual::after { display: none; }
.login-panel {
  grid-column: 2;
  direction: rtl;
  padding: 40px clamp(28px, 4vw, 62px);
  background-color: #11110e;
  background-image: url("./assets/court-atrium-bg.png");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}
.login-card {
  width: min(455px, 100%);
  padding: 34px 34px 26px;
  color: #f1e8d8;
  background: rgba(20,20,16,.92);
  border: 1px solid rgba(207,161,76,.7);
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(0,0,0,.36), inset 0 0 0 1px rgba(255,255,255,.035);
}
.login-mobile-brand { display: flex; margin-bottom: 34px; padding-bottom: 24px; border-bottom: 1px solid rgba(213,169,78,.27); }
.login-mobile-brand strong { color: #f3dfb9; font-size: .98rem; }
.login-mobile-brand small { color: #ad9f86; font-size: .62rem; margin-top: 4px; }
.login-brand-mark { border-radius: 9px; background: #d6aa59; color: #15140f; border: 1px solid #efd08e; }
.auth-heading > span { display: inline-flex; align-items: center; gap: 6px; color: #d8ad5a; }
.auth-heading h2 { color: #fff6e6; font-size: 1.72rem; }
.auth-heading p { color: #afa692; }
.auth-step > label { color: #d2c8b5; }
.input-with-icon { position: relative; }
.input-with-icon > i { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: #bb9144; z-index: 1; }
.input-with-icon input { padding-right: 41px; }
.auth-step input { width: 100%; color: #f5ecdc; background: rgba(255,255,255,.045); border-color: rgba(216,178,104,.28); }
.password-field input { padding-left: 68px; }
.password-field button { color: #d7ad5c; background: rgba(213,169,78,.1); }
.login-options { color: #a9a08f; }
.login-options button { color: #d7ad5c; }
.login-options input { accent-color: #c8963e; }
.login-primary { color: #17130c; background: #d6aa59; border: 1px solid #f0d18e; border-radius: 7px; box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.login-primary:hover { background: #e1b969; }
.demo-access { color: #8f887b; }
.demo-access b { color: #d5c299; }
.login-card > footer { color: #857e71; border-top-color: rgba(213,169,78,.2); }
.auth-back { color: #c0ad87; }
.otp-user { background: rgba(255,255,255,.04); border-color: rgba(216,178,104,.22); }
.otp-user > span { background: rgba(213,169,78,.12); color: #e0b965; }
.otp-user > b { color: #d8b76e; background: rgba(213,169,78,.11); }

@media (max-width: 1180px) {
  body:not(.auth-active) { padding: 0; }
  .app-shell { width: 100%; min-height: 100vh; border: 0; border-radius: 0; grid-template-columns: 226px minmax(0,1fr); }
  .sidebar { min-height: 100vh; }
  .topbar { padding: 0 18px; gap: 12px; }
  .server-clock { min-width: 220px; }
  .heritage-clock { width: 190px; min-width: 190px; height: 70px; }
  .global-search { width: clamp(230px,28vw,310px); }
  .view { padding-inline: 20px; }
}

@media (max-width: 980px) {
  body:not(.auth-active) { padding-bottom: 76px; background: #eee8dd; }
  .app-shell { display: block; overflow: visible; }
  main { min-height: 100vh; }
  .sidebar { position: fixed; right: 0; top: 0; bottom: 0; width: 280px; min-height: 100vh; transform: translateX(105%); transition: transform .25s; box-shadow: -20px 0 60px rgba(0,0,0,.35); }
  .sidebar.open { transform: none; }
  .mobile-menu { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border: 1px solid rgba(216,178,104,.25); border-radius: 7px; background: rgba(255,255,255,.04); color: #e1bd78; margin: 0; }
  .topbar-user { display: none; }
  .topbar { height: 72px; }
  .global-search { width: auto; max-width: none; flex: 1; }
  .dashboard-grid { grid-template-columns: 1fr; direction: rtl; }
  .cases-panel, .timeline-panel { grid-column: auto; }
  .timeline-panel { grid-row: 1; }
  .mobile-bottom-nav { background: rgba(17,18,15,.97); border-color: rgba(215,176,99,.36); border-radius: 10px; }
  .mobile-bottom-nav button { color: #c4b79f; }
  .mobile-bottom-nav button i { font-size: 1.05rem; }
  .mobile-bottom-nav button.active { color: #f2ce84; background: rgba(198,148,53,.14); }
}

@media (max-width: 900px) {
  .login-screen { display: block; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 28px 20px; }
  .login-card { margin: auto; }
}

@media (max-width: 680px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .server-clock, .heritage-clock, .connection-pill, .global-search kbd { display: none; }
  .global-search { min-width: 0; }
  .view { padding: 22px 12px 28px; }
  .dashboard-heading { align-items: flex-start; }
  .dashboard-heading .secondary-button { display: none; }
  .page-heading h1 { font-size: 1.27rem; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .stat-card { min-height: 112px; padding: 14px 12px; }
  .stat-icon { width: 45px; height: 45px; font-size: 1.3rem; }
  .stat-card strong { font-size: 1.45rem; }
  .stat-card small { margin-top: 8px; }
  .panel-head { align-items: flex-start; gap: 10px; }
  .panel-actions .text-button { display: none; }
  .topbar .notification-button { display: grid; place-items: center; }
}

@media (max-width: 430px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 94px; }
  .panel-actions .primary-button { font-size: 0; width: 38px; padding: 0; }
  .panel-actions .primary-button i { font-size: 1rem; }
  .login-panel { padding: 14px; align-items: center; }
  .login-card { padding: 28px 21px 22px; }
}

/* Case Chamber — full enterprise case workspace */
.case-chamber-view { padding-top: 22px; }
.case-back {
  border: 0;
  background: transparent;
  color: #6f604b;
  padding: 5px 0 13px;
  font: 700 .7rem inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.case-back:hover { color: #9b6b21; }
.case-chamber-hero {
  min-height: 210px;
  padding: 28px 30px;
  color: #f6ead3;
  background-color: #151510;
  background-image: url("./assets/court-atrium-bg.png");
  background-size: 130%;
  background-position: center 32%;
  background-blend-mode: multiply;
  border: 1px solid #bd8d36;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 20px 50px rgba(48, 33, 12, .18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.case-chamber-hero::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 4px;
  background: #b9852e;
  opacity: .82;
}
.case-hero-main { display: flex; align-items: center; gap: 20px; min-width: 0; position: relative; z-index: 1; }
.case-emblem {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231,194,122,.68);
  border-radius: 50%;
  color: #e1b866;
  background: rgba(13,13,10,.58);
  box-shadow: inset 0 0 0 5px rgba(190,139,45,.09);
  font-size: 2rem;
}
.case-eyebrow { display: flex; align-items: center; gap: 9px; color: #d7bc88; font-size: .67rem; }
.confidential-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid rgba(217,174,91,.35); border-radius: 4px; background: rgba(213,169,78,.08); color: #ebd19d; }
.case-chamber-hero h1 { margin: 9px 0 7px; color: #fff8ea; font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: -.04em; }
.case-chamber-hero p { margin: 0; color: #bdb29f; font-size: .7rem; }
.case-hero-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.case-hero-badges > span:not(.status):not(.risk) { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; color: #d8cdb7; font-size: .64rem; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; background: rgba(255,255,255,.04); }
.risk { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 5px 8px; font-size: .64rem; font-weight: 700; }
.risk.high { color: #f1b9af; background: rgba(156,55,45,.26); border: 1px solid rgba(220,120,105,.3); }
.risk.medium { color: #efd397; background: rgba(164,109,24,.2); border: 1px solid rgba(220,174,91,.28); }
.risk.low { color: #a9ddbd; background: rgba(43,115,72,.2); border: 1px solid rgba(96,176,128,.25); }
.case-hero-actions { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.case-hero-actions button {
  min-height: 40px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(224,184,105,.45);
  border-radius: 6px;
  color: #f0d89e;
  background: rgba(255,255,255,.055);
  font: 700 .67rem inherit;
  cursor: pointer;
}
.case-hero-actions button:hover { background: rgba(203,154,64,.18); }
.case-kpis {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border: 1px solid #d4c5ac;
  border-top: 0;
  background: #fffdf8;
}
.case-kpis article { min-height: 86px; padding: 15px 18px; display: flex; align-items: center; gap: 12px; border-left: 1px solid #e0d7c9; }
.case-kpis article:last-child { border-left: 0; }
.case-kpis i { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 50%; background: #eee3cd; color: #815d20; font-size: 1.08rem; }
.case-kpis small,.case-kpis strong { display: block; }
.case-kpis small { color: #8d8374; font-size: .59rem; margin-bottom: 5px; }
.case-kpis strong { color: #3d3428; font-size: .69rem; line-height: 1.55; }
.case-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin: 16px 0;
  padding: 5px;
  overflow-x: auto;
  background: #e4ddd1;
  border: 1px solid #d2c7b6;
  border-radius: 8px;
  scrollbar-width: thin;
}
.case-tabs button { min-width: max-content; min-height: 42px; padding: 8px 13px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #685e50; font: 700 .65rem inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.case-tabs button i { color: #96702e; font-size: 1rem; }
.case-tabs button:hover { background: rgba(255,255,255,.5); }
.case-tabs button.active { color: #f0d38d; background: #171813; border-color: #b88936; box-shadow: 0 5px 13px rgba(44,31,12,.15); }
.case-tabs button.active i { color: #e0b65f; }
.case-overview-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 14px; align-items: start; }
.case-main-column,.case-side-column { display: grid; gap: 14px; }
.chamber-panel { border: 1px solid #d7ccbb; border-radius: 8px; background: #fffdf8; box-shadow: 0 6px 20px rgba(64,47,22,.045); overflow: hidden; }
.chamber-panel-head { min-height: 72px; padding: 15px 18px; border-bottom: 1px solid #e1d8ca; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chamber-panel-head small { display: block; color: #a0752c; font-size: .58rem; margin-bottom: 4px; }
.chamber-panel-head h2 { margin: 0; color: #2c261e; font-size: .9rem; }
.case-mini-action { min-height: 33px; padding: 6px 10px; border: 1px solid #c7a45d; border-radius: 5px; background: #f8f0df; color: #74551f; font: 700 .62rem inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.case-mini-action:hover { background: #efe2c8; }
.case-brief > p { margin: 0; padding: 18px; color: #5c5347; font-size: .73rem; line-height: 2.15; }
.strategy-box { margin: 0 18px 18px; padding: 15px; display: flex; gap: 12px; border: 1px solid #dbc9a7; border-right: 3px solid #b98937; border-radius: 6px; background: #f8f2e7; }
.strategy-box > i { color: #9a6c22; font-size: 1.3rem; margin-top: 2px; }
.strategy-box b { display: block; color: #433827; font-size: .7rem; margin-bottom: 5px; }
.strategy-box p { margin: 0; color: #716758; font-size: .67rem; line-height: 1.9; }
.case-task-list { padding: 3px 18px 10px; }
.case-task-list article { min-height: 66px; display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid #e8e0d4; }
.case-task-list article:last-child { border-bottom: 0; }
.task-check { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #8c611d; background: #f2e7d2; }
.case-task-list b,.case-task-list small { display: block; }
.case-task-list b { color: #40372d; font-size: .7rem; }
.case-task-list small { color: #8b8173; font-size: .6rem; margin-top: 5px; }
.case-task-list button { border: 0; border-radius: 4px; background: #e6efe8; color: #296345; padding: 6px 8px; font: 700 .58rem inherit; cursor: pointer; }
.case-facts dl { margin: 0; padding: 7px 18px 13px; }
.case-facts dl div { display: grid; grid-template-columns: 86px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #ebe4d9; }
.case-facts dl div:last-child { border: 0; }
.case-facts dt { color: #8d8374; font-size: .59rem; }
.case-facts dd { margin: 0; color: #443a2d; font-size: .65rem; line-height: 1.7; font-weight: 700; }
.case-team > article { margin: 0 17px; padding: 11px 0; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #e8e0d5; }
.case-team article div { flex: 1; }
.case-team b,.case-team small { display: block; }
.case-team b { color: #443a2d; font-size: .67rem; }
.case-team small { color: #8f8576; font-size: .57rem; margin-top: 4px; }
.case-team > button { width: calc(100% - 34px); margin: 12px 17px 17px; min-height: 34px; border: 1px solid #d6c8b1; border-radius: 5px; background: #f8f3ea; color: #745a2b; font: 700 .61rem inherit; cursor: pointer; }
.chamber-timeline { padding: 18px 22px 23px; }
.chamber-timeline article { display: grid; grid-template-columns: 40px 1fr; gap: 13px; position: relative; padding-bottom: 25px; }
.chamber-timeline article:last-child { padding-bottom: 0; }
.chamber-timeline article:not(:last-child)::after { content: ''; position: absolute; right: 19px; top: 39px; bottom: 1px; width: 1px; background: #d9c9ad; }
.timeline-seal { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #d2b87f; border-radius: 50%; background: #f7efdd; color: #94671e; font-size: 1.05rem; z-index: 1; }
.chamber-timeline time { color: #9b793d; font-size: .59rem; }
.chamber-timeline h3 { margin: 4px 0; color: #3c3328; font-size: .72rem; }
.chamber-timeline p { margin: 0; color: #776e62; font-size: .65rem; line-height: 1.85; }
.chamber-timeline small { display: block; margin-top: 5px; color: #aaa092; font-size: .55rem; }
.chamber-event-form { margin: 14px 18px 0; padding: 13px; display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 9px; align-items: end; background: #f1ebdf; border: 1px solid #d7cab6; border-radius: 6px; }
.chamber-event-form[hidden] { display: none; }
.chamber-event-form label { color: #736858; font-size: .58rem; }
.chamber-event-form input { width: 100%; min-height: 38px; margin-top: 5px; padding: 7px 9px; border: 1px solid #d0c4b3; border-radius: 5px; background: white; font: .65rem inherit; }
.chamber-event-form .primary-button { min-height: 38px; }
.chamber-document-note,.access-policy { margin: 16px 18px 0; padding: 12px 14px; display: flex; align-items: center; gap: 10px; color: #42604f; background: #edf3ed; border: 1px solid #cbd9cc; border-radius: 6px; font-size: .63rem; line-height: 1.8; }
.chamber-document-note > i,.access-policy > i { font-size: 1.25rem; color: #2d704d; }
.chamber-documents { padding: 16px 18px 20px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.chamber-documents .document-card { margin: 0; }
.hearing-list,.cost-list,.access-list { padding: 14px 18px 20px; }
.hearing-item { min-height: 84px; display: grid; grid-template-columns: 170px 1fr auto; gap: 15px; align-items: center; padding: 12px; margin-bottom: 9px; border: 1px solid #ded5c8; border-right: 3px solid #bb8a34; border-radius: 6px; background: #fffefa; }
.hearing-item.done { border-right-color: #8a877f; opacity: .78; }
.hearing-date { display: flex; align-items: center; gap: 8px; color: #805b22; font-size: .66rem; }
.hearing-date i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f1e6d0; font-size: 1rem; }
.hearing-item h3 { margin: 0 0 5px; font-size: .72rem; color: #3a3228; }
.hearing-item p { margin: 0; font-size: .62rem; color: #857b6e; }
.people-grid { padding: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.person-card { min-height: 86px; padding: 13px; border: 1px solid #ddd2c1; border-radius: 7px; background: #fffefa; display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; position: relative; }
.person-card > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #74551d; background: #eee2ca; font-size: .65rem; font-weight: 800; }
.person-card b,.person-card small { display: block; }
.person-card b { color: #40372d; font-size: .69rem; }
.person-card small { color: #8e8374; font-size: .57rem; margin-top: 5px; }
.person-card em { grid-column: 1 / -1; color: #896321; font-size: .56rem; font-style: normal; }
.cost-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 18px 0; }
.cost-summary > div { padding: 16px; border: 1px solid #d9cdbb; border-radius: 6px; background: #f8f3ea; }
.cost-summary small,.cost-summary strong { display: block; }
.cost-summary small { color: #8c8273; font-size: .59rem; margin-bottom: 7px; }
.cost-summary strong { color: #4c3b21; font-size: .82rem; }
.cost-list article,.access-list article { min-height: 64px; padding: 10px 2px; border-bottom: 1px solid #e6ded2; display: flex; align-items: center; gap: 10px; }
.cost-list article:last-child,.access-list article:last-child { border: 0; }
.cost-list article div,.access-list article div { flex: 1; }
.cost-list b,.cost-list small,.access-list b,.access-list small { display: block; }
.cost-list b,.access-list b { color: #43392d; font-size: .68rem; }
.cost-list small,.access-list small { color: #928778; font-size: .58rem; margin-top: 4px; }
.cost-list strong { color: #74551d; font-size: .7rem; }
.access-policy { align-items: flex-start; }
.access-policy b { display: block; margin-bottom: 4px; font-size: .68rem; }
.access-policy p { margin: 0; font-size: .62rem; color: #627368; }
.access-list em { padding: 5px 7px; border-radius: 4px; color: #306046; background: #e2eee6; font-size: .56rem; font-style: normal; }
.access-list em.readonly { color: #76591f; background: #f3e8d1; }
.chamber-empty { grid-column: 1 / -1; padding: 32px 20px; text-align: center; color: #8f8577; }
.chamber-empty > i { font-size: 1.8rem; color: #b38a43; }
.chamber-empty h3 { margin: 8px 0 4px; color: #4a4034; font-size: .75rem; }
.chamber-empty p { margin: 0; font-size: .62rem; }

@media (max-width: 1050px) {
  .case-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .case-kpis article:nth-child(2) { border-left: 0; }
  .case-kpis article:nth-child(-n+2) { border-bottom: 1px solid #e0d7c9; }
  .case-overview-grid { grid-template-columns: 1fr; }
  .case-side-column { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .case-chamber-view { padding-top: 14px; }
  .case-chamber-hero { min-height: 0; padding: 22px 18px; align-items: flex-start; flex-direction: column; border-radius: 9px 9px 0 0; background-size: cover; }
  .case-emblem { width: 56px; height: 56px; flex-basis: 56px; font-size: 1.45rem; }
  .case-hero-main { align-items: flex-start; }
  .case-chamber-hero h1 { font-size: 1.25rem; line-height: 1.7; }
  .case-hero-actions { width: 100%; }
  .case-hero-actions button { flex: 1; }
  .case-tabs { margin-inline: -2px; }
  .case-overview-grid,.case-side-column { grid-template-columns: 1fr; }
  .chamber-documents,.people-grid { grid-template-columns: 1fr; }
  .hearing-item { grid-template-columns: 1fr; gap: 8px; }
  .chamber-event-form { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .case-chamber-view { padding-inline: 9px; }
  .case-back { padding-right: 3px; }
  .case-hero-main { gap: 12px; }
  .case-emblem { display: none; }
  .case-eyebrow { align-items: flex-start; flex-wrap: wrap; }
  .case-hero-actions { flex-direction: column; }
  .case-hero-actions button { width: 100%; }
  .case-kpis { grid-template-columns: 1fr; }
  .case-kpis article { border-left: 0; border-bottom: 1px solid #e0d7c9; min-height: 72px; }
  .case-kpis article:last-child { border-bottom: 0; }
  .case-tabs button { min-height: 38px; padding: 7px 10px; }
  .chamber-panel-head { padding: 13px 14px; }
  .chamber-panel-head h2 { font-size: .82rem; }
  .case-mini-action { font-size: 0; min-width: 34px; justify-content: center; }
  .case-mini-action i { font-size: .9rem; }
  .case-facts dl,.chamber-timeline,.hearing-list,.cost-list,.access-list { padding-inline: 14px; }
  .cost-summary { grid-template-columns: 1fr; padding-inline: 14px; }
  .case-task-list { padding-inline: 14px; }
}

/* 0.10.1 — illustrated legal avatars */
.legal-avatar {
  flex: 0 0 auto;
  overflow: hidden;
  color: transparent !important;
  background-color: #24251f !important;
  background-image: url('./assets/legal-avatar-sprite-v2.png') !important;
  background-repeat: no-repeat !important;
  background-size: 400% 200% !important;
  background-origin: border-box !important;
  box-shadow: inset 0 0 0 1px rgba(221,181,99,.42), 0 2px 7px rgba(31,25,15,.12);
}
.legal-avatar[data-avatar-key="man-young-tie"] { background-position: 0% 0% !important; }
.legal-avatar[data-avatar-key="man-young-open-collar"] { background-position: 33.333% 0% !important; }
.legal-avatar[data-avatar-key="man-senior-tie"] { background-position: 66.667% 0% !important; }
.legal-avatar[data-avatar-key="man-senior-open-collar"] { background-position: 100% 0% !important; }
.legal-avatar[data-avatar-key="woman-young-scarf"] { background-position: 0% 100% !important; }
.legal-avatar[data-avatar-key="woman-young-no-scarf"] { background-position: 33.333% 100% !important; }
.legal-avatar[data-avatar-key="woman-senior-scarf"] { background-position: 66.667% 100% !important; }
.legal-avatar[data-avatar-key="woman-senior-no-scarf"] { background-position: 100% 100% !important; }

.profile .avatar.legal-avatar,
.topbar-user .avatar.legal-avatar,
.account-avatar.legal-avatar,
.comment-avatar.legal-avatar { border-color: #c89c4e; border-radius: 50%; }
.account-avatar.legal-avatar { box-shadow: 0 0 0 6px rgba(200,156,78,.1), inset 0 0 0 1px rgba(255,230,174,.28); }
.user-avatar.legal-avatar { border-radius: 50%; }

.avatar-selector { min-width: 0; margin: 0; padding: 15px; border: 1px solid #d8cab2; border-radius: 7px; background: linear-gradient(145deg,#faf5eb,#fffdf8); }
.avatar-selector legend { padding: 0 8px; color: #4c3a20; font-size: .7rem; font-weight: 900; }
.avatar-selector > p { margin: 0 0 12px; color: #847765; font-size: .58rem; line-height: 1.8; }
.avatar-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.avatar-picker section { min-width: 0; }
.avatar-picker section h3 { margin: 0 0 7px; color: #775827; font-size: .6rem; }
.avatar-picker section > div { display: grid; grid-template-columns: repeat(4,minmax(58px,1fr)); gap: 7px; }
.avatar-choice { position: relative; min-width: 0; padding: 7px 4px 6px; display: grid; justify-items: center; gap: 5px; border: 1px solid #ddd1bf; border-radius: 7px; color: #5f5547; background: #fffdf8; cursor: pointer; transition: border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.avatar-choice:hover { transform: translateY(-1px); border-color: #b99452; }
.avatar-choice.selected { border-color: #aa7b2c; background: #fbf3e3; box-shadow: 0 0 0 2px rgba(170,123,44,.14), inset 0 0 0 1px #fff; }
.avatar-choice > span { width: 54px; height: 54px; border: 1px solid #caa967; border-radius: 50%; }
.avatar-choice small { width: 100%; overflow: hidden; color: inherit; font-size: .48rem; line-height: 1.45; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.avatar-choice > i { position: absolute; top: 5px; left: 5px; width: 17px; height: 17px; display: none; place-items: center; border-radius: 50%; color: #fff; background: #87601d; font-size: .7rem; box-shadow: 0 2px 5px rgba(48,32,9,.2); }
.avatar-choice.selected > i { display: grid; }
.profile-email-hint { margin-top: -5px; display: flex; align-items: center; gap: 5px; color: #817665; font-size: .53rem; }
.account-form input[readonly] { color: #81786c; background: #f4f0e8; cursor: not-allowed; }
.profile-image-modes { display: inline-flex; gap: 5px; margin-bottom: 13px; padding: 4px; border: 1px solid #d4c29f; border-radius: 7px; background: #f2e9d8; }
.profile-image-modes button { min-height: 34px; padding: 7px 11px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 5px; color: #6e604c; background: transparent; font: 700 .59rem inherit; cursor: pointer; }
.profile-image-modes button.active { color: #f1d38e; background: linear-gradient(180deg,#302f27,#191a16); box-shadow: 0 3px 8px rgba(50,36,13,.18); }
.profile-photo-panel { min-height: 104px; padding: 14px; display: flex; align-items: center; gap: 14px; border: 1px dashed #bfa367; border-radius: 7px; background: #fffaf0; }
.profile-photo-panel[hidden],.avatar-picker[hidden] { display: none !important; }
.profile-photo-preview { width: 76px; height: 76px; flex: 0 0 76px; overflow: hidden; display: grid; place-items: center; border: 1px solid #bb9148; border-radius: 50%; color: #866526; background: #eee2c9; box-shadow: inset 0 0 0 4px #fbf4e7; font-size: 1.5rem; }
.profile-photo-panel > div { min-width: 0; }
.profile-photo-panel strong { display: block; color: #443821; font-size: .7rem; }
.profile-photo-panel p { margin: 4px 0 10px; color: #80735e; font-size: .54rem; line-height: 1.8; }
.profile-photo-panel > div > div { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-photo-panel .secondary-button { min-height: 34px; padding: 7px 10px; font-size: .58rem; }
.profile-photo-remove { min-height: 34px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #dab8b2; border-radius: 5px; color: #8b3933; background: #faece9; font: 700 .58rem inherit; cursor: pointer; }
.profile-photo-avatar { overflow: hidden; padding: 0 !important; background: #24251f !important; background-image: none !important; }
.profile-photo-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.profile .avatar.profile-photo-avatar,
.topbar-user .avatar.profile-photo-avatar,
.account-avatar.profile-photo-avatar,
.comment-avatar.profile-photo-avatar,
.profile-photo-preview.profile-photo-avatar { border-radius: 50%; border-color: #c89c4e; }

@media (max-width: 1120px) {
  .avatar-picker { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .avatar-picker section > div { grid-template-columns: repeat(2,1fr); }
  .avatar-choice small { font-size: .52rem; }
  .profile-photo-panel { align-items: flex-start; }
  .profile-photo-preview { width: 64px; height: 64px; flex-basis: 64px; }
  .profile-image-modes { width: 100%; }
  .profile-image-modes button { flex: 1; justify-content: center; }
}

@media (max-width: 680px) {
  .server-clock { display: flex; min-width: 86px; min-height: 38px; padding: 4px 8px; gap: 0; }
  .server-clock > .carriage-clock-dial { display: none; }
  .server-clock > .server-clock-copy { min-width: 0; padding: 0; border: 0; }
  .server-clock-copy > span { display: none; }
  .server-clock-copy strong { font-size: .66rem; white-space: nowrap; }
}

/* Legal calendar and expense approval workflow */
.calendar-purpose {
  margin: 16px 18px 0;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #d5c8b1;
  border-radius: 6px;
  background: #f7f1e6;
  color: #6c604e;
}
.calendar-purpose i { color: #976b24; font-size: 1.1rem; margin-top: 2px; }
.calendar-purpose p { margin: 0; font-size: .63rem; line-height: 1.9; }
.hearing-item { grid-template-columns: 178px minmax(0,1fr) 132px; }
.hearing-date span,.hearing-date small { display: block; }
.hearing-date small { margin-top: 5px; color: #8d8170; font-size: .56rem; }
.meeting-type { display: inline-flex; margin-bottom: 5px; color: #936c2c; font-size: .56rem; }
.meeting-outcome,.meeting-next { margin-top: 8px; padding: 7px 9px; border-radius: 5px; font-size: .6rem; line-height: 1.75; }
.meeting-outcome { color: #315b45; background: #e9f1eb; border: 1px solid #cedccf; }
.meeting-next { color: #765a25; background: #f7efdf; border: 1px solid #dfcfad; }
.meeting-side { display: grid; justify-items: end; gap: 9px; }
.meeting-side button { border: 1px solid #d1c2a7; border-radius: 5px; background: #fffaf0; color: #765a27; padding: 6px 8px; font: 700 .56rem inherit; cursor: pointer; }
.meeting-status { padding: 5px 8px; border-radius: 4px; font-size: .56rem; font-weight: 800; }
.meeting-status.scheduled { color: #246044; background: #e2eee6; }
.meeting-status.held { color: #5f5b54; background: #ebe9e5; }
.meeting-status.postponed { color: #865d1d; background: #f5e9d0; }
.meeting-status.cancelled { color: #8a3934; background: #f4e4e1; }
.expense-workflow { margin: 16px 18px 0; padding: 11px 14px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #d7c7aa; border-radius: 6px; background: #f8f1e3; color: #6d5730; font-size: .59rem; }
.expense-workflow span { padding: 5px 8px; border-radius: 4px; background: #fffaf1; border: 1px solid #e0d2ba; }
.expense-workflow i { color: #ad8035; }
.cost-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
.expense-list { padding: 14px 18px 20px; display: grid; gap: 9px; }
.expense-row { min-height: 82px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid #ddd2c1; border-radius: 7px; background: #fffefa; }
.expense-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #7b591f; background: #eee3ce; font-size: 1.05rem; }
.expense-main > div { display: flex; align-items: center; gap: 8px; }
.expense-main span { color: #9a7537; font-size: .55rem; }
.expense-main h3 { margin: 0; color: #3f362b; font-size: .7rem; }
.expense-main p,.expense-main small { display: block; margin: 5px 0 0; color: #8c8172; font-size: .57rem; }
.expense-row > strong { color: #56401d; font-size: .7rem; white-space: nowrap; }
.expense-status { min-width: 78px; padding: 5px 8px; border-radius: 4px; text-align: center; font-size: .55rem; font-weight: 800; }
.expense-status.pending { color: #875d1d; background: #f5ead2; }
.expense-status.approved { color: #315d45; background: #e2eee6; }
.expense-status.rejected { color: #8b3933; background: #f4e3e1; }
.expense-status.paid { color: #245780; background: #e4edf6; }
.expense-status.draft { color: #625d55; background: #ebe9e5; }
.expense-status.recorded { color: #6f531f; background: #f1e6cf; border: 1px solid #dac39a; }
.expense-actions { grid-column: 2 / -1; display: flex; justify-content: flex-end; gap: 6px; padding-top: 9px; border-top: 1px solid #ebe3d7; }
.expense-actions:empty { display: none; }
.expense-actions button { min-height: 30px; padding: 5px 8px; border: 1px solid #d3c5af; border-radius: 5px; background: #faf5ec; color: #695b46; font: 700 .56rem inherit; cursor: pointer; }
.expense-actions button.approve,.expense-actions button.pay { color: #2d6748; border-color: #a9c5af; background: #eaf3ec; }
.expense-actions button.reject { color: #8a3933; border-color: #d7aaa5; background: #f7e9e7; }

@media (max-width: 760px) {
  .hearing-item { grid-template-columns: 1fr; gap: 8px; }
  .expense-workflow { justify-content: flex-start; overflow-x: auto; }
  .expense-workflow span { min-width: max-content; }
  .cost-summary { grid-template-columns: 1fr; }
  .expense-row { grid-template-columns: 38px minmax(0,1fr); }
  .expense-row > strong,.expense-status { grid-column: 2; justify-self: start; }
  .expense-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .meeting-side { justify-items: start; }
}

@media (max-width: 480px) {
  .calendar-purpose,.expense-workflow { margin-inline: 14px; }
  .expense-list { padding-inline: 14px; }
}

/* Unified legal calendar and Jalali date picker */
.legal-calendar-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 14px; align-items: start; }
.calendar-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: -7px 0 15px; padding: 10px 14px; border: 1px solid #d8cdbc; border-radius: 7px; background: #f8f4eb; color: #786d5d; font-size: .61rem; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 7px; }
.calendar-legend i { width: 8px; height: 8px; border-radius: 50%; }
.calendar-legend .court,.calendar-event-line.court { background: #aa7629; }
.calendar-legend .followup,.calendar-event-line.followup { background: #2f6e8e; }
.calendar-legend .deadline,.calendar-event-line.deadline { background: #a54840; }
.calendar-legend .manual,.calendar-event-line.manual { background: #55725e; }
.calendar-month-panel,.calendar-day-panel { overflow: hidden; border-color: #d4c7b4; background: #fffdf8; }
.calendar-toolbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid #dfd5c7; background: #f7f1e6; }
.calendar-toolbar small,.calendar-day-head small { display: block; margin-bottom: 5px; color: #9a7435; font-size: .57rem; }
.calendar-toolbar h2,.calendar-day-head h2 { margin: 0; color: #352e25; font-size: .92rem; }
.calendar-controls,.date-picker-controls { display: flex; align-items: center; gap: 6px; }
.calendar-controls button,.date-picker-controls button { min-width: 34px; min-height: 34px; border: 1px solid #cfbea3; border-radius: 5px; background: #fffaf0; color: #765720; font: 700 .62rem inherit; cursor: pointer; }
.calendar-controls #calendarToday,.date-picker-controls #datePickerToday { padding-inline: 11px; }
.calendar-weekdays,.date-picker-weekdays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); background: #24231d; color: #e8ca8b; }
.calendar-weekdays span,.date-picker-weekdays span { min-height: 34px; display: grid; place-items: center; font-size: .6rem; font-weight: 800; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); background: #ddd3c4; gap: 1px; }
.calendar-cell { min-width: 0; min-height: 111px; padding: 8px; border: 0; background: #fffdf8; text-align: right; cursor: pointer; overflow: hidden; }
.calendar-cell:hover { background: #faf4e8; }
.calendar-cell.empty { background: #f2ede4; }
.calendar-cell.selected { position: relative; z-index: 1; box-shadow: inset 0 0 0 2px #b88936; background: #fff8e9; }
.calendar-day-number { width: 27px; height: 27px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 50%; color: #5d5346; font-size: .68rem; font-weight: 800; }
.calendar-cell.today .calendar-day-number { color: #1d1c18; background: #dfb964; box-shadow: 0 0 0 3px #f6ead0; }
.calendar-cell-events { display: grid; gap: 4px; min-width: 0; }
.calendar-event-line { display: block; min-width: 0; padding: 4px 6px; border-radius: 3px; color: white; font-size: .52rem; font-style: normal; line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-cell-events em { color: #8b6a32; font-size: .5rem; font-style: normal; }
.calendar-day-panel { position: sticky; top: 85px; }
.calendar-day-head { min-height: 76px; padding: 15px 17px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #dfd5c7; background: #24231d; }
.calendar-day-head h2 { color: #f5e7cb; font-size: .78rem; line-height: 1.7; }
.calendar-day-head small { color: #c6a866; }
.calendar-day-seal { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid #b98a38; border-radius: 50%; color: #e6bd69; background: rgba(216,174,91,.08); font-size: 1.08rem; }
.calendar-day-events { max-height: 595px; overflow-y: auto; padding: 12px; }
.calendar-day-event { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 9px; padding: 12px 9px; margin-bottom: 8px; border: 1px solid #dfd5c7; border-right: 3px solid #55725e; border-radius: 6px; background: #fffefa; }
.calendar-day-event.court { border-right-color: #aa7629; }.calendar-day-event.followup { border-right-color: #2f6e8e; }.calendar-day-event.deadline { border-right-color: #a54840; }
.calendar-event-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #7f5a1f; background: #f1e5ce; }
.calendar-event-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; color: #94703a; font-size: .54rem; }
.calendar-event-meta time { margin-right: auto; direction: ltr; }
.calendar-day-event h3 { margin: 0 0 5px; padding-left: 22px; color: #3e362b; font-size: .67rem; line-height: 1.7; }
.calendar-day-event p { margin: 8px 0 5px; padding: 7px 8px; border-radius: 4px; color: #6e6457; background: #f6f0e6; font-size: .58rem; line-height: 1.8; }
.calendar-day-event small { color: #948a7b; font-size: .53rem; line-height: 1.7; }
.calendar-day-event div > button { border: 0; padding: 0; background: none; color: #8a6426; font: 700 .56rem inherit; text-align: right; cursor: pointer; }
.calendar-event-delete { position: absolute; top: 9px; left: 8px; border: 0; background: transparent; color: #a65c55; cursor: pointer; }
.calendar-day-empty { padding: 42px 15px; text-align: center; color: #968b7a; }
.calendar-day-empty i { font-size: 1.8rem; color: #bd9146; }.calendar-day-empty h3 { margin: 10px 0 5px; color: #554a3b; font-size: .72rem; }.calendar-day-empty p { margin: 0; font-size: .57rem; line-height: 1.8; }
.calendar-day-add { width: calc(100% - 24px); min-height: 38px; margin: 0 12px 12px; border: 1px dashed #bd9652; border-radius: 5px; background: #fbf5e9; color: #76571f; font: 700 .61rem inherit; cursor: pointer; }
.jalali-field { position: relative; width: 100%; }
.jalali-field > input { padding-left: 43px !important; }
.jalali-picker-button { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 34px; height: 32px; display: grid; place-items: center; border: 0; border-right: 1px solid #ddd0bc; background: transparent; color: #9b702c; font-size: 1rem; cursor: pointer; }
.date-picker-dialog { width: min(420px,calc(100vw - 28px)); }
.date-picker-shell { padding: 20px; }
.date-picker-controls { justify-content: center; margin-bottom: 12px; }
.date-picker-weekdays { border-radius: 5px 5px 0 0; }
.date-picker-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; padding: 8px; border: 1px solid #d8cbb7; border-top: 0; background: #f8f3ea; }
.date-picker-grid > span,.date-picker-grid > button { aspect-ratio: 1; min-width: 0; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #51483c; font: 700 .65rem inherit; }
.date-picker-grid > button { cursor: pointer; }.date-picker-grid > button:hover { border-color: #c59b54; background: #fffaf0; }.date-picker-grid > button.selected { color: white; background: #6f5425; }.date-picker-grid > button.today { border-color: #b98938; box-shadow: inset 0 0 0 1px #ead5ae; }

@media (max-width: 1050px) {
  .legal-calendar-layout { grid-template-columns: 1fr; }
  .calendar-day-panel { position: static; }
  .calendar-day-events { max-height: none; }
}
@media (max-width: 820px) {
  .mobile-bottom-nav { grid-template-columns: repeat(5,1fr); }
  .calendar-cell { min-height: 86px; padding: 6px; }
  .calendar-event-line { font-size: 0; width: 7px; height: 7px; min-height: 7px; padding: 0; border-radius: 50%; }
  .calendar-cell-events { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; }
  .calendar-cell-events em { width: 100%; }
}
@media (max-width: 540px) {
  .calendar-toolbar { align-items: flex-start; flex-direction: column; }
  .calendar-controls { width: 100%; justify-content: space-between; }
  .calendar-cell { min-height: 68px; }
  .calendar-day-number { width: 23px; height: 23px; font-size: .61rem; }
  .calendar-weekdays span { min-height: 30px; }
  .calendar-legend { gap: 7px 12px; }
}

/* Account and notification center */
.notification-center { overflow: hidden; border-color: #d4c7b4; }
.notification-toolbar { min-height: 64px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #ded3c3; background: #f7f1e7; }
.notification-toolbar > span { display: flex; align-items: center; gap: 6px; color: #7c715f; font-size: .59rem; }
.notifications-list { padding: 6px 20px; }
.notification-item { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 13px; align-items: start; padding: 17px 5px; border-bottom: 1px solid #e6ded1; cursor: pointer; }
.notification-item:last-child { border-bottom: 0; }.notification-item.read { opacity: .72; }.notification-item:hover { background: #fdf9f1; }
.notification-symbol { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #d4b979; border-radius: 50%; color: #805d20; background: #f6ead3; font-size: 1.05rem; }
.notification-symbol.security { color: #286349; border-color: #bdd5c6; background: #eaf3ed; }.notification-symbol.deadline { color: #9b3f37; border-color: #dfbbb7; background: #f7e8e6; }.notification-symbol.meeting { color: #7c5318; }.notification-symbol.share { color: #315f79; border-color: #bfd0da; background: #eaf1f5; }.notification-symbol.system { color: #5d586f; border-color: #cec8dc; background: #f0eef5; }
.notification-meta { display: flex; gap: 10px; align-items: center; }.notification-meta strong { color: #342d24; font-size: .73rem; }.notification-meta time { margin-right: auto; color: #988b78; font-size: .55rem; white-space: nowrap; }
.notification-item p { margin: 5px 0 7px; color: #6d6458; font-size: .64rem; line-height: 1.85; }.notification-item button { border: 0; padding: 0; background: transparent; color: #8a6426; font: 700 .58rem inherit; cursor: pointer; }.notification-item small { color: #9a8f80; font-size: .54rem; }
.unread-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #a9473e; box-shadow: 0 0 0 4px #f5e5e2; }
.account-hero { min-height: 150px; padding: 24px 27px; display: flex; align-items: center; gap: 18px; color: #f5e9d2; border-color: #9b7434; background: radial-gradient(circle at 15% 20%,rgba(211,170,88,.13),transparent 35%),linear-gradient(135deg,#161713,#2b2921); }
.account-avatar { width: 78px; height: 78px; flex: 0 0 78px; display: grid; place-items: center; border: 1px solid #c89c4e; border-radius: 50%; color: #efd08d; background: #25241e; box-shadow: 0 0 0 6px rgba(200,156,78,.08); font-size: 1.15rem; font-weight: 900; }
.account-hero small { color: #c5aa73; font-size: .58rem; }.account-hero h2 { margin: 4px 0 5px; font-size: 1.25rem; }.account-hero p { margin: 0 0 12px; color: #c8bda8; font-size: .68rem; }.account-hero div > div { display: flex; gap: 8px; flex-wrap: wrap; }.account-hero div > div span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid rgba(225,193,128,.2); border-radius: 20px; color: #dbc28f; font-size: .57rem; }.account-verified { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid rgba(111,166,129,.35); border-radius: 4px; color: #b9d7c2; background: rgba(49,104,69,.15); font-size: .6rem; }
.account-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 14px 0; }.account-stats article { display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 13px 16px; border: 1px solid #d9cebe; border-radius: 7px; background: #fffdf8; }.account-stats article > i { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #d7bb80; border-radius: 50%; color: #896120; background: #f6ebd6; font-size: 1rem; }.account-stats small,.account-stats strong { display: block; }.account-stats small { color: #807566; font-size: .57rem; }.account-stats strong { margin-top: 3px; color: #312a22; font-size: .95rem; }
.account-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.account-layout > .panel { border-color: #d7cbbb; overflow: hidden; }.account-layout .panel-head > i { color: #a6782e; font-size: 1.25rem; }.account-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 20px; }.account-form label { display: grid; gap: 7px; color: #685f53; font-size: .64rem; }.account-form input { width: 100%; padding: 10px 11px; border: 1px solid #d8ccba; border-radius: 6px; outline: 0; background: #fffdf8; font: .7rem inherit; }.account-form input:focus { border-color: #b58534; box-shadow: 0 0 0 3px rgba(181,133,52,.1); }
.account-security-body { padding: 20px; }.security-status-row { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; }.security-status-row > div { display: grid; gap: 4px; }.security-status-row strong { color: #383027; font-size: .74rem; }.account-security-state { font-size: .58rem; }.account-security-state.enabled { color: #28704e; }.account-security-state.disabled { color: #a0483f; }.security-medallion { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #bbd3c3; border-radius: 50%; color: #2b694c; background: #eaf3ed; font-size: 1.12rem; }.wide-button { width: 100%; }.recovery-section { margin-top: 18px; padding-top: 17px; border-top: 1px solid #e1d8ca; }.recovery-section > div:first-child strong { font-size: .72rem; }.recovery-section p { margin: 4px 0 11px; color: #756b5e; font-size: .6rem; line-height: 1.8; }.recovery-codes { margin-top: 12px; padding: 12px; border: 1px dashed #bfa46e; border-radius: 6px; background: #f8f2e7; }.recovery-codes > div:first-child { direction: ltr; display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }.recovery-codes code { padding: 7px 8px; border: 1px solid #dfd1b8; border-radius: 4px; color: #4e3f27; background: #fffdf8; text-align: center; font-size: .66rem; }.recovery-codes > div:last-child { display: flex; gap: 7px; margin-top: 10px; }.recovery-codes button { flex: 1; border: 1px solid #d0bd99; border-radius: 5px; padding: 7px; color: #76571f; background: #fffaf0; font: 700 .56rem inherit; }.security-advice { display: flex; gap: 8px; margin-top: 14px; padding: 10px; border-radius: 5px; color: #6e592f; background: #f7efde; }.security-advice p { margin: 0; font-size: .57rem; line-height: 1.8; }
.account-password-card { margin-top: 14px; overflow: hidden; border-color: #d7cbbb; }.account-password-card .panel-head > i { color: #a6782e; font-size: 1.25rem; }.account-password-card form { display: grid; grid-template-columns: repeat(3,1fr) auto; gap: 12px; align-items: end; padding: 18px 20px; }.account-password-card label { display: grid; gap: 7px; color: #685f53; font-size: .62rem; }.account-password-card input { width: 100%; padding: 10px 11px; border: 1px solid #d8ccba; border-radius: 6px; background: #fffdf8; outline: 0; }.account-password-card input:focus { border-color: #b58534; box-shadow: 0 0 0 3px rgba(181,133,52,.1); }
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; } }
@media (max-width: 1050px) { .account-password-card form { grid-template-columns: 1fr 1fr; }.account-password-card form button { min-height: 39px; } }
@media (max-width: 620px) { .notification-toolbar { align-items: stretch; flex-direction: column; }.notification-item { grid-template-columns: 38px minmax(0,1fr); }.notification-symbol { width: 36px; height: 36px; }.unread-dot { position: absolute; top: 15px; left: 5px; }.notification-meta { align-items: flex-start; flex-direction: column; gap: 4px; }.notification-meta time { margin-right: 0; }.account-hero { align-items: flex-start; flex-wrap: wrap; padding: 20px; }.account-verified { width: 100%; margin-right: 0; justify-content: center; }.account-stats { grid-template-columns: 1fr; }.account-form,.account-password-card form { grid-template-columns: 1fr; }.account-form .span-2 { grid-column: auto; }.recovery-codes > div:first-child { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .audit-toolbar { align-items: flex-start; flex-direction: column; }.audit-pagination { flex-wrap: wrap; }.audit-pagination strong { order: -1; width: 100%; text-align: center; }.audit-pagination button { flex: 1; } }
@media (max-width: 680px) { .sessions-toolbar { align-items: stretch; flex-direction: column; }.sessions-toolbar label { justify-content: space-between; }.sessions-toolbar select { flex: 1; }.sessions-toolbar > span { margin-right: 0; }.sessions-pagination { flex-wrap: wrap; }.sessions-pagination strong { order: -1; width: 100%; text-align: center; }.sessions-pagination button { flex: 1; } }
@media (max-width: 760px) { .document-library-toolbar { align-items: stretch; flex-direction: column; }.document-library-toolbar label { justify-content: space-between; }.document-library-toolbar select { flex: 1; }.document-group-mode { overflow-x: auto; }.document-group-mode button { min-width: max-content; flex: 1; }.document-library-toolbar > span { margin-right: 0; }.document-category { margin: 12px; }.document-pagination { flex-wrap: wrap; }.document-pagination strong { order: -1; width: 100%; text-align: center; }.document-pagination button { flex: 1; } }

/* 0.9.2 — classic case comments and shared product language */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: 2px solid #c99b45; outline-offset: 2px; }

.primary-button,
.case-mini-action,
.calendar-day-add {
  border-color: #b98732;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 6px 16px rgba(39,25,7,.11);
}

.secondary-button {
  border-color: #c9b78f;
  box-shadow: inset 0 0 0 1px #fff, 0 4px 11px rgba(65,47,20,.06);
}

.case-tabs .tab-count {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 1px solid #d4ada8;
  border-radius: 50%;
  color: #fff;
  background: #9e342f;
  font-size: .52rem;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(158,52,47,.09);
}

.case-tabs button.active .tab-count { border-color: #f0b0aa; background: #a72f2b; color: #fff; }

.comments-ledger { border-color: #cdbb9b; background: #fdfaf3; }
.comments-ledger-head {
  min-height: 88px;
  padding: 17px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #d8cdbb;
  background: #f8f2e8;
  box-shadow: inset 0 -3px #efe3cf;
}
.comments-ledger-head small { display: block; color: #9a712f; font-size: .57rem; }
.comments-ledger-head h2 { margin: 4px 0 3px; color: #272018; font-size: 1.05rem; }
.comments-ledger-head p { margin: 0; color: #8a8071; font-size: .58rem; }
.new-comment-chip,
.all-read-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #e0c0bc;
  border-radius: 20px;
  color: #8e2f2c;
  background: #f8e4e1;
  font-size: .61rem;
  font-weight: 800;
  white-space: nowrap;
}
.new-comment-chip i { font-size: .52rem; }
.all-read-chip { color: #37634b; border-color: #bfd2c5; background: #eaf2ec; }
.all-read-chip i { font-size: .9rem; }

.case-comments-list { padding: 2px 22px 0; }
.case-comment {
  position: relative;
  min-height: 116px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 24px;
  gap: 13px;
  align-items: start;
  padding: 20px 4px;
  border-bottom: 1px solid #ded5c8;
}
.case-comment:last-child { border-bottom: 0; }
.case-comment.unread { background: #fffcf5; box-shadow: inset -3px 0 #b13f37; }
.comment-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #d2b578;
  border-radius: 50%;
  color: #74531d;
  background: #efe1c2;
  box-shadow: inset 0 0 0 4px #f8f0df;
  font-size: .68rem;
  font-weight: 900;
}
.case-comment:nth-child(even) .comment-avatar { color: #31577b; border-color: #aec0d7; background: #dce8f4; box-shadow: inset 0 0 0 4px #edf4fa; }
.comment-body header { display: flex; align-items: flex-start; gap: 12px; }
.comment-body header > div { min-width: 145px; }
.comment-body strong,
.comment-body small { display: block; }
.comment-body strong { color: #32291f; font-size: .72rem; }
.comment-body small { margin-top: 3px; color: #8a7d6b; font-size: .55rem; }
.comment-body time { margin-right: auto; direction: rtl; color: #7f7465; font-size: .57rem; white-space: nowrap; }
.comment-body p { margin: 13px 0 0; color: #4f473d; font-size: .69rem; line-height: 2.15; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-seal { margin-top: 3px; color: #a67a31; font-size: 1rem; }

.case-comment-composer {
  margin: 3px 11px 11px;
  padding: 13px;
  border: 1px solid #d3c4aa;
  border-radius: 7px;
  background: #faf6ee;
  box-shadow: inset 0 0 0 1px #fff;
}
.case-comment-composer > label { display: block; margin-bottom: 7px; color: #6d604f; font-size: .6rem; font-weight: 800; }
.case-comment-composer textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid #cfc1aa;
  border-radius: 5px;
  outline: 0;
  color: #352d24;
  background: #fffdf8;
  font: .7rem/2 "Vazirmatn", Tahoma, sans-serif;
}
.case-comment-composer textarea:focus { border-color: #b48638; box-shadow: 0 0 0 3px rgba(180,134,56,.11); }
.comment-composer-actions { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 9px; }
.comment-composer-actions small { color: #918574; font-size: .54rem; }
.comment-composer-actions .primary-button { min-width: 148px; }
.comment-readonly-notice { margin: 8px 16px 16px; padding: 12px 14px; display: flex; align-items: center; gap: 9px; border: 1px solid #d7c8ab; border-radius: 6px; color: #6f5a33; background: #f8f1e3; }
.comment-readonly-notice i { font-size: 1.1rem; }
.comment-readonly-notice p { margin: 0; font-size: .6rem; line-height: 1.8; }

@media (max-width: 760px) {
  .comments-ledger-head { align-items: flex-start; padding: 15px 16px; }
  .case-comments-list { padding-inline: 14px; }
  .case-comment { grid-template-columns: 42px minmax(0,1fr); min-height: 0; padding: 17px 2px; }
  .comment-avatar { width: 40px; height: 40px; }
  .comment-seal { display: none; }
  .comment-body header { flex-direction: column; gap: 5px; }
  .comment-body time { margin-right: 0; }
  .comment-composer-actions { grid-template-columns: 1fr 1fr; }
  .comment-composer-actions small { grid-column: 1 / -1; grid-row: 1; }
  .comment-composer-actions .primary-button,
  .comment-composer-actions .secondary-button { width: 100%; min-width: 0; }
}

@media (max-width: 480px) {
  body:not(.auth-active) { background-image: none; padding: 0; }
  .comments-ledger-head { flex-direction: column; }
  .new-comment-chip,
  .all-read-chip { min-height: 30px; }
  .comment-body p { font-size: .65rem; }
  .comment-composer-actions { grid-template-columns: 1fr; }
  .comment-composer-actions small { grid-column: auto; }
}

/* 0.10.1 — royal hall login, adapted from the selected reference */
body.auth-active { min-height: 100vh; background: #080806; }
body.auth-active .login-screen {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(470px,620px);
  overflow: hidden;
  background: #080806 url("./assets/login-hall-premium.webp") center/cover no-repeat;
  background-image: image-set(
    url("./assets/login-hall-premium.avif") type("image/avif"),
    url("./assets/login-hall-premium.webp") type("image/webp")
  );
}
body.auth-active .login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,rgba(4,4,3,.04) 0%,rgba(4,4,3,.08) 43%,rgba(4,4,3,.55) 67%,rgba(4,4,3,.84) 100%);
}
body.auth-active .login-visual {
  position: relative;
  grid-column: 1;
  min-height: 100svh;
  overflow: visible;
  border: 0;
  filter: none;
  background: none;
}
.login-scene-seal {
  position: absolute;
  top: 30px;
  left: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(207,161,76,.35);
  border-radius: 3px;
  color: #d7bc86;
  background: rgba(6,6,5,.45);
  backdrop-filter: blur(6px);
  font-size: .58rem;
}
.login-scene-seal i { color: #e3b963; font-size: 1rem; }
.login-scene-note {
  position: absolute;
  right: 7%;
  bottom: 58px;
  display: block;
  padding-right: 13px;
  border-right: 2px solid rgba(211,166,78,.7);
  direction: rtl;
  color: #cfc1a7;
  font-size: .56rem;
  text-shadow: 0 2px 16px #000;
}
.login-wall-brand {
  position: absolute;
  top: 38.5%;
  left: 41.4%;
  z-index: 1;
  width: 220px;
  transform: translate(-50%,-50%);
  display: grid;
  justify-items: center;
  pointer-events: none;
  direction: rtl;
  text-align: center;
  text-shadow: 0 3px 16px rgba(0,0,0,.94);
}
.login-wall-brand .login-default-emblem,
.login-wall-brand .wall-logo-image {
  width: 100px;
  height: 78px;
  margin-bottom: 8px;
  object-fit: contain;
  filter: drop-shadow(0 4px 9px rgba(0,0,0,.8));
}
.login-wall-brand strong { color: #d9aa55; font-size: 1.08rem; line-height: 1.6; }
.login-wall-brand small { color: #b99a63; font-size: .52rem; line-height: 1.8; }
body.auth-active .login-panel {
  position: relative;
  z-index: 2;
  grid-column: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 44px 54px;
  direction: rtl;
  background: none;
}
body.auth-active .login-card {
  position: relative;
  width: min(520px,100%);
  padding: 28px 32px 22px;
  color: #f4ead8;
  border: 1px solid rgba(220,174,87,.82);
  border-radius: 5px;
  background-color: rgba(8,8,7,.9);
  background-image: url("./assets/login-card-marble.webp");
  background-image: image-set(
    url("./assets/login-card-marble.avif") type("image/avif"),
    url("./assets/login-card-marble.webp") type("image/webp")
  );
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  box-shadow: 0 32px 80px rgba(0,0,0,.58), inset 0 0 0 4px rgba(6,6,5,.9), inset 0 0 0 5px rgba(193,143,51,.38);
  backdrop-filter: blur(14px);
}
body.auth-active .login-card::before {
  content: '';
  position: absolute;
  inset: 9px;
  z-index: -1;
  border: 1px solid rgba(196,148,60,.28);
  pointer-events: none;
}
body.auth-active .login-mobile-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
}
body.auth-active .login-default-emblem,
body.auth-active .login-mobile-brand .brand-logo-image {
  width: 88px;
  height: 68px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.66));
}
body.auth-active .login-wall-brand .login-default-emblem { width: 100px; height: 78px; }
body.auth-active .login-mobile-brand .brand-logo-image { padding: 3px; }
body.auth-active .login-mobile-brand strong { color: #f3dcae; font-size: 1.08rem; }
body.auth-active .login-mobile-brand small { margin-top: 2px; color: #b8aa90; font-size: .58rem; }
.login-engraved-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; margin: 16px 0 15px; color: #b78735; }
.login-engraved-divider span { height: 1px; background: rgba(202,156,70,.42); }
.login-engraved-divider i { font-size: .8rem; }
body.auth-active .auth-heading { text-align: center; }
body.auth-active .auth-heading > span { justify-content: center; color: #c89d50; font-size: .57rem; }
body.auth-active .auth-heading h2 { margin: 6px 0; color: #fff4df; font-size: 1.42rem; }
body.auth-active .auth-heading p { margin: 0 0 17px; color: #aa9f8d; font-size: .61rem; line-height: 1.9; }
body.auth-active .auth-step > label { gap: 6px; margin-bottom: 11px; color: #c8bda9; font-size: .6rem; }
body.auth-active .input-with-icon input,
body.auth-active .otp-input {
  min-height: 46px;
  color: #f6edde;
  border: 1px solid rgba(202,164,94,.42);
  border-radius: 5px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 0 18px rgba(0,0,0,.2);
}
body.auth-active .input-with-icon input:focus,
body.auth-active .otp-input:focus { border-color: #dcad55; box-shadow: 0 0 0 3px rgba(213,169,78,.11), inset 0 0 18px rgba(0,0,0,.16); }
body.auth-active .input-with-icon > i { right: 14px; color: #d0a24e; font-size: 1.08rem; }
body.auth-active .password-field button {
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 35px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #d0a24e;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 1.05rem;
}
body.auth-active .login-options { margin: 4px 0 14px; color: #b2a894; font-size: .56rem; }
body.auth-active .login-options button { color: #d8b36c; font-size: .56rem; }
body.auth-active .login-options label { cursor: pointer; }
body.auth-active .login-options input { width: 15px; height: 15px; accent-color: #c89942; }
body.auth-active .login-primary {
  min-height: 48px;
  justify-content: center;
  gap: 18px;
  padding: 11px 18px;
  color: #21170a;
  border: 1px solid #edc87b;
  border-radius: 5px;
  background: linear-gradient(180deg,#e9bd68,#b87a27);
  box-shadow: inset 0 1px rgba(255,255,255,.38), 0 12px 28px rgba(0,0,0,.3);
  font-size: .68rem;
}
body.auth-active .login-primary:hover { background: linear-gradient(180deg,#f0ca7b,#c68a34); transform: translateY(-1px); }
body.auth-active .login-primary:disabled { opacity: .65; cursor: wait; transform: none; }
body.auth-active .auth-back { margin-bottom: 14px; color: #c7ab74; }
body.auth-active .otp-user { border-color: rgba(202,164,94,.35); background: rgba(255,255,255,.035); }
.login-capabilities {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  margin-top: 18px;
  padding: 14px 4px 2px;
  border-top: 1px solid rgba(206,159,70,.28);
}
.login-capabilities span { min-width: 0; display: grid; place-items: center; gap: 6px; color: #d0aa62; border-left: 1px solid rgba(206,159,70,.2); }
.login-capabilities span:last-child { border-left: 0; }
.login-capabilities i { font-size: 1.25rem; }
.login-capabilities small { color: #b5a78f; font-size: .51rem; white-space: nowrap; }
body.auth-active .login-card > footer { margin-top: 14px; padding-top: 11px; color: #8f8574; border-top-color: rgba(206,159,70,.15); font-size: .5rem; }
@media (max-width: 1180px) {
  body.auth-active .login-screen { grid-template-columns: minmax(0,1fr) minmax(440px,52vw); background-position: 44% center; }
  body.auth-active .login-panel { padding-inline: 28px; }
  body.auth-active .login-card { padding-inline: 27px; }
  .login-scene-note,.login-wall-brand { display: none; }
}
@media (max-width: 820px) {
  body.auth-active .login-screen { display: block; background-position: 31% center; overflow-y: auto; }
  body.auth-active .login-screen::before { background: rgba(4,4,3,.72); }
  body.auth-active .login-visual { display: none; }
  body.auth-active .login-panel { min-height: 100svh; padding: 24px 18px 48px; }
  body.auth-active .login-card { width: min(500px,100%); }
}
@media (max-width: 520px) {
  body.auth-active .login-panel { align-items: start; padding: 12px; }
  body.auth-active .login-card { margin: 0 auto; padding: 22px 18px 18px; }
  body.auth-active .login-default-emblem,
  body.auth-active .login-mobile-brand .brand-logo-image { width: 54px; height: 54px; }
  body.auth-active .auth-heading h2 { font-size: 1.22rem; }
  .login-capabilities { grid-template-columns: repeat(2,1fr); row-gap: 12px; }
  .login-capabilities span:nth-child(2) { border-left: 0; }
  .login-capabilities span:nth-child(-n+2) { padding-bottom: 10px; border-bottom: 1px solid rgba(206,159,70,.16); }
}

/* 0.10.1 — secure account, upload progress and notification paging */
.sidebar-logout {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(220,174,87,.34);
  border-radius: 6px;
  color: #d9be88;
  background: rgba(202,153,61,.07);
  font: 700 .62rem inherit;
}
.sidebar-logout:hover { color: #fff1d2; border-color: rgba(229,188,106,.62); background: rgba(202,153,61,.13); }

.notification-pagination {
  min-height: 58px;
  padding: 11px 18px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #ded3c3;
  background: #f7f1e7;
}
.notification-pagination button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #d0b987;
  border-radius: 5px;
  color: #73541e;
  background: #fffaf0;
  font: 700 .59rem inherit;
}
.notification-pagination button:disabled { opacity: .42; cursor: default; }
.notification-pagination strong,.notification-pagination span { color: #7e725f; font-size: .58rem; }
.notification-pagination span { justify-self: end; }
.notification-priority { display: inline-flex; align-items: center; margin-right: 7px; padding: 3px 6px; border-radius: 20px; font-family: inherit; font-size: .48rem; font-weight: 800; }
.notification-priority.high { color: #963f37; background: #f7e5e2; }
.notification-priority.normal { color: #805d20; background: #f6ead3; }
.notification-priority.low { color: #5d6670; background: #edf0f2; }

.upload-queue-modal { width: min(720px,calc(100vw - 28px)); }
.upload-queue-list { max-height: min(55vh,540px); display: grid; gap: 10px; overflow-y: auto; padding: 2px; }
.upload-queue-item { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 11px; padding: 12px; border: 1px solid #ded2bf; border-radius: 8px; background: #fffdf8; }
.upload-queue-icon { grid-row: 1 / span 2; width: 42px; height: 48px; display: grid; place-items: center; border: 1px solid #d6b979; border-radius: 7px; color: #845f21; background: #f7ecd7; font-size: 1.15rem; }
.upload-queue-copy { min-width: 0; display: grid; gap: 6px; }
.upload-queue-copy > small { overflow: hidden; color: #817565; font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
.upload-queue-copy label { display: grid; gap: 5px; color: #5e5549; font-size: .59rem; }
.upload-queue-copy input { width: 100%; padding: 9px 10px; border: 1px solid #d7c9b3; border-radius: 5px; color: #352f27; background: #fff; outline: 0; }
.upload-queue-copy input:focus { border-color: #b58534; box-shadow: 0 0 0 3px rgba(181,133,52,.1); }
.upload-progress-row { display: grid; grid-template-columns: minmax(0,1fr) 45px; gap: 9px; align-items: center; }
.upload-progress-track { height: 8px; overflow: hidden; border-radius: 20px; background: #e9e2d7; }
.upload-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#8d6826,#d7aa52); transition: width .15s ease; }
.upload-progress-row b { color: #73551f; font: 800 .58rem inherit; text-align: left; }
.upload-queue-item.uploaded .upload-progress-track i { background: #3d8061; }
.upload-queue-item.failed { border-color: #dca9a4; background: #fff8f7; }
.upload-queue-item.failed .upload-progress-row b { color: #a2443c; }

.twofa-password-step { display: grid; gap: 10px; padding: 13px; border: 1px solid #ddd0bc; border-radius: 7px; background: #faf6ee; }
.twofa-password-step > p { margin: 0; color: #766b5c; font-size: .58rem; line-height: 1.8; }
.twofa-password-step .primary-button { width: 100%; }
.twofa-qr-step { margin-top: 14px; }
.twofa-qr-box { width: 210px; min-height: 210px; margin: 12px auto 15px; padding: 10px; display: grid; place-items: center; border: 1px solid #c79a4a; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(55,38,10,.1); }
.twofa-qr-box svg { display: block; width: 188px; height: 188px; }
#confirmTwofaBtn[hidden],#disableTwofaBtn[hidden] { display: none; }

@media (max-width: 620px) {
  .notification-pagination { grid-template-columns: 1fr 1fr; }
  .notification-pagination strong,.notification-pagination span { order: -1; justify-self: center; text-align: center; }
  .upload-queue-item { grid-template-columns: 34px minmax(0,1fr); padding: 10px; }
  .upload-queue-icon { width: 34px; height: 40px; }
  .twofa-qr-box { width: 190px; min-height: 190px; }
  .twofa-qr-box svg { width: 168px; height: 168px; }
}
