
:root{
  color-scheme: light;
  --bg:#f7f8fa;
  --surface:#ffffff;
  --surface-2:#f2f4f7;
  --surface-3:#eceff3;
  --ink:#14171b;
  --ink-soft:#2b3037;
  --muted:#727985;
  --muted-2:#9ca3af;
  --line:#e3e7ed;
  --line-strong:#d5dae2;
  --sidebar:#151515;
  --sidebar-2:#202020;
  --sidebar-line:#303030;
  --sidebar-ink:#ffffff;
  --sidebar-muted:#a8a8a8;
  --accent:#b7e4c7;
  --accent-strong:#2f9461;
  --accent-soft:#eef8f2;
  --mint:#dfeee6;
  --mint-strong:#2f9461;
  --mint-soft:#f0f8f4;
  --lemon:#fff0aa;
  --lemon-strong:#a67400;
  --lemon-soft:#fff8dc;
  --rose:#f7dbe7;
  --rose-strong:#c24f7a;
  --rose-soft:#fff1f7;
  --blue:#dcecff;
  --blue-strong:#2d74bc;
  --blue-soft:#f1f7ff;
  --danger:#dc3f52;
  --danger-soft:#fff0f2;
  --radius-lg:16px;
  --radius-md:12px;
  --radius-sm:10px;
  --sidebar-width:304px;
  --topbar-height:78px;
  --speed:.18s;
}

html[data-theme="dark"]{
  color-scheme: dark;
  --bg:#101214;
  --surface:#171a1d;
  --surface-2:#1f2328;
  --surface-3:#272c32;
  --ink:#f3f5f7;
  --ink-soft:#d9dde3;
  --muted:#a5adb8;
  --muted-2:#808893;
  --line:#2b3037;
  --line-strong:#3a414b;
  --sidebar:#0d0e10;
  --sidebar-2:#17191c;
  --sidebar-line:#252a30;
  --sidebar-ink:#ffffff;
  --sidebar-muted:#a1a7af;
  --accent:#284b3a;
  --accent-strong:#8be0ae;
  --accent-soft:#172620;
  --mint:#254137;
  --mint-strong:#8be0ae;
  --mint-soft:#172620;
  --lemon:#4a3e1c;
  --lemon-strong:#ffd86c;
  --lemon-soft:#26220f;
  --rose:#432231;
  --rose-strong:#ff9cc3;
  --rose-soft:#281722;
  --blue:#1f344b;
  --blue-strong:#99caff;
  --blue-soft:#142130;
  --danger-soft:#2b1519;
}

html[data-accent="green"]{--accent:#b7e4c7;--accent-strong:#2f9461;--accent-soft:#eef8f2}
html[data-accent="violet"]{--accent:#c9c7ff;--accent-strong:#5d58d8;--accent-soft:#f0efff}
html[data-accent="blue"]{--accent:#dcecff;--accent-strong:#2d74bc;--accent-soft:#f1f7ff}
html[data-accent="amber"]{--accent:#ffe7aa;--accent-strong:#986b00;--accent-soft:#fff6de}
html[data-accent="rose"]{--accent:#f7dbe7;--accent-strong:#c24f7a;--accent-soft:#fff1f7}
html[data-accent="graphite"]{--accent:#d9dee8;--accent-strong:#4b5563;--accent-soft:#f3f5f8}
html[data-theme="dark"][data-accent="green"]{--accent:#284b3a;--accent-strong:#8be0ae;--accent-soft:#172620}
html[data-theme="dark"][data-accent="violet"]{--accent:#39345f;--accent-strong:#c5c2ff;--accent-soft:#242343}
html[data-theme="dark"][data-accent="blue"]{--accent:#1f344b;--accent-strong:#99caff;--accent-soft:#142130}
html[data-theme="dark"][data-accent="amber"]{--accent:#4a3e1c;--accent-strong:#ffd86c;--accent-soft:#26220f}
html[data-theme="dark"][data-accent="rose"]{--accent:#432231;--accent-strong:#ff9cc3;--accent-soft:#281722}
html[data-theme="dark"][data-accent="graphite"]{--accent:#303743;--accent-strong:#d5dbe5;--accent-soft:#1f2328}

*{box-sizing:border-box}
html{-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision;scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;font-size:15px;line-height:1.45}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%;display:block}
::selection{background:var(--accent);color:#111}

.app-shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;background:var(--sidebar);color:var(--sidebar-ink);border-right:1px solid var(--sidebar-line);padding:28px 24px;display:flex;flex-direction:column;gap:24px;overflow:auto;scrollbar-width:thin}
.brand{display:flex;align-items:center;gap:12px;font-weight:860;font-size:26px;letter-spacing:-.8px;line-height:1}
.brand-mark{width:38px;height:38px;border-radius:12px;background:#fff;color:#151515;display:grid;place-items:center;font-size:16px;flex:0 0 auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.brand-image{gap:0;display:inline-flex;align-items:center;width:max-content;max-width:100%;line-height:0}
.brand-logo-wrap{position:relative;display:block;width:184px;max-width:100%;aspect-ratio:896/217;flex:0 0 auto}
.brand-logo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:left center;user-select:none;pointer-events:none}
.brand-logo-light{display:none}
.sidebar .brand{align-self:flex-start;margin:0 0 2px 2px}
.sidebar .brand-logo-wrap{width:188px}
.sidebar .brand-logo-default,.auth-photo-brand .brand-logo-default{display:none}
.sidebar .brand-logo-light,.auth-photo-brand .brand-logo-light{display:block}
.auth-photo-brand{align-self:flex-start}
.auth-photo-brand .brand-logo-wrap{width:min(206px,46vw)}
.auth-mobile-brand .brand-logo-wrap{width:162px}
html[data-theme="dark"] .auth-mobile-brand .brand-logo-default{display:none}
html[data-theme="dark"] .auth-mobile-brand .brand-logo-light{display:block}
html[data-theme="dark"] .auth-mobile-brand{color:var(--ink)}

.sidebar-profile{text-align:center;padding:4px 0 2px}
.avatar-wrap{width:88px;height:88px;margin:0 auto 14px;position:relative}
.avatar{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#171717;border:7px solid var(--sidebar-2);font-weight:850;font-size:26px;letter-spacing:-.7px}
.avatar.small{width:38px;height:38px;border-width:0;font-size:13px;border-radius:12px;background:var(--accent-soft);color:var(--ink)}
.status-dot{position:absolute;right:3px;top:8px;width:16px;height:16px;border-radius:50%;background:#94dfa9;border:3px solid var(--sidebar)}
.sidebar-profile h1{font-size:19px;margin:0 0 4px;letter-spacing:-.45px;line-height:1.15}
.sidebar-profile p{margin:0;color:var(--sidebar-muted);font-size:13px;font-weight:650}
.side-meta{margin-top:13px;display:inline-flex;gap:7px;align-items:center;height:30px;padding:0 12px;border-radius:999px;background:var(--sidebar-2);font-size:12px;font-weight:800;color:#f1f1f1}
.side-meta i{color:var(--lemon);font-size:11px}
.side-nav{display:flex;flex-direction:column;gap:6px;margin-top:2px}
.nav-section{margin:14px 12px 6px;color:#777;text-transform:uppercase;font-size:11px;letter-spacing:.11em;font-weight:850}
.side-nav a{height:42px;border-radius:12px;color:#d8d8d8;display:flex;align-items:center;gap:11px;padding:0 13px;font-size:14px;font-weight:720;border:1px solid transparent;transition:background var(--speed), color var(--speed), border-color var(--speed)}
.side-nav a:hover{background:var(--sidebar-2);color:#fff}
.side-nav a.is-active{background:#fff;color:#151515;border-color:#fff}
.side-nav i{width:18px;text-align:center;font-size:15px}
.sidebar-card{margin-top:auto;border:1px solid var(--sidebar-line);background:var(--sidebar-2);border-radius:16px;padding:16px;color:#ededed}
.sidebar-card p{margin:7px 0 13px;color:var(--sidebar-muted);font-size:13px}
.app-main{min-width:0;display:flex;flex-direction:column;min-height:100vh}
.topbar{height:var(--topbar-height);position:sticky;top:0;z-index:20;background:color-mix(in srgb, var(--bg) 88%, transparent);backdrop-filter:blur(16px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 34px}
.topbar-left{display:flex;align-items:center;gap:14px;min-width:0}.topbar-title{min-width:0}.topbar-title h2{font-size:22px;line-height:1.1;margin:0;letter-spacing:-.65px}.topbar-title p{margin:5px 0 0;color:var(--muted);font-size:13px;font-weight:650}.topbar-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}.mobile-toggle{display:none}
.search{width:min(330px,28vw);height:42px;border:1px solid var(--line);background:var(--surface);border-radius:999px;display:flex;align-items:center;gap:10px;padding:0 15px;color:var(--muted)}
.search input{border:0;outline:0;background:transparent;color:var(--ink);min-width:0;width:100%;font-weight:650}.search input::placeholder{color:var(--muted-2)}
.icon-btn,.btn{border:1px solid var(--line);background:var(--surface);color:var(--ink);height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:780;transition:background var(--speed),border-color var(--speed),color var(--speed),transform var(--speed)}
.icon-btn{width:42px;padding:0}.btn{padding:0 15px}.btn:hover,.icon-btn:hover{background:var(--surface-2);border-color:var(--line-strong)}.btn:active,.icon-btn:active{transform:translateY(1px)}
.btn.primary{background:var(--ink);border-color:var(--ink);color:var(--surface)}
html[data-theme="dark"] .btn.primary{background:#f3f5f7;color:#111316;border-color:#f3f5f7}
.btn.soft{background:var(--accent-soft);border-color:var(--accent-soft);color:var(--accent-strong)}.btn.danger{background:var(--danger-soft);border-color:var(--danger-soft);color:var(--danger)}.btn.small{height:34px;padding:0 12px;font-size:13px}.btn.full{width:100%}
.select{height:42px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:0 12px;font-weight:740;outline:0}
.dropdown{position:relative}.dropdown-menu{position:absolute;right:0;top:calc(100% + 10px);min-width:210px;border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:8px;display:none;z-index:40}.dropdown.is-open .dropdown-menu{display:block}.dropdown-menu a,.dropdown-menu button{width:100%;border:0;background:transparent;color:var(--ink);height:38px;border-radius:12px;display:flex;align-items:center;gap:10px;padding:0 10px;text-align:left;font-weight:720}.dropdown-menu a:hover,.dropdown-menu button:hover{background:var(--surface-2)}.theme-menu-list{min-width:198px}.theme-choice{justify-content:flex-start}.theme-choice.is-active{background:var(--surface-2)}.theme-swatch{width:18px;height:18px;border-radius:7px;border:1px solid var(--line-strong);flex:0 0 auto}.theme-swatch.green{background:#2f9461}.theme-swatch.violet{background:#5d58d8}.theme-swatch.blue{background:#2d74bc}.theme-swatch.amber{background:#d18a00}.theme-swatch.rose{background:#c24f7a}.theme-swatch.graphite{background:#4b5563}
.content{padding:30px 34px 42px;display:flex;flex-direction:column;gap:22px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}.section-head h3{font-size:21px;margin:0;letter-spacing:-.55px}.section-head p{margin:5px 0 0;color:var(--muted);font-size:13px;font-weight:650}.inline-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.grid{display:grid;gap:18px}.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.main-aside{grid-template-columns:minmax(0,1fr) 340px}.grid.sidebar-main{grid-template-columns:320px minmax(0,1fr)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px}.card.compact{padding:14px}.card.soft-violet{background:var(--accent-soft);border-color:var(--accent-soft)}.card.soft-mint{background:var(--mint-soft);border-color:var(--mint-soft)}.card.soft-lemon{background:var(--lemon-soft);border-color:var(--lemon-soft)}.card.soft-rose{background:var(--rose-soft);border-color:var(--rose-soft)}.card.soft-blue{background:var(--blue-soft);border-color:var(--blue-soft)}.card.dark-panel{background:var(--sidebar);border-color:var(--sidebar-line);color:#fff}
.kpi{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.kpi-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--surface-2);color:var(--ink);font-size:16px}.kpi-value{font-size:31px;font-weight:860;letter-spacing:-1.2px;line-height:1;margin:13px 0 5px}.kpi-label{color:var(--muted);font-size:13px;font-weight:720}.trend{font-size:12px;font-weight:850;height:26px;padding:0 9px;border-radius:999px;display:inline-flex;align-items:center;gap:5px}.trend.up{background:var(--mint-soft);color:var(--mint-strong)}.trend.down{background:var(--danger-soft);color:var(--danger)}
.hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:18px}.hero-copy h1{font-size:38px;line-height:1.02;letter-spacing:-1.55px;margin:0 0 12px}.hero-copy p{margin:0;color:var(--muted);max-width:630px;font-size:15px;font-weight:650}.hero-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}.progress-ring{position:relative;width:160px;height:160px;margin:auto;display:grid;place-items:center}.progress-ring svg{width:160px;height:160px;transform:rotate(-90deg)}.progress-ring circle{fill:none;stroke-width:8}.progress-ring .track{stroke:var(--surface-3)}.progress-ring .value{stroke:var(--ink);stroke-linecap:round;stroke-dasharray:408;stroke-dashoffset:98}.progress-ring strong{position:absolute;font-size:36px;letter-spacing:-1px}.progress-ring span{position:absolute;margin-top:58px;color:var(--muted);font-size:12px;font-weight:760}
.pill{height:28px;padding:0 10px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:820;background:var(--surface-2);color:var(--muted)}.pill.violet{background:var(--accent-soft);color:var(--accent-strong)}.pill.mint{background:var(--mint-soft);color:var(--mint-strong)}.pill.lemon{background:var(--lemon-soft);color:var(--lemon-strong)}.pill.rose{background:var(--rose-soft);color:var(--rose-strong)}.pill.blue{background:var(--blue-soft);color:var(--blue-strong)}.pill.dark{background:var(--ink);color:var(--surface)}
.progress-line{height:7px;border-radius:999px;background:var(--surface-3);overflow:hidden}.progress-line span{display:block;height:100%;border-radius:inherit;background:var(--ink);width:var(--value,50%)}
.list{display:flex;flex-direction:column;gap:10px}.list-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:12px}.row-left{display:flex;align-items:center;gap:12px;min-width:0}.row-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--surface-2);flex:0 0 auto}.row-copy{min-width:0}.row-copy strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-copy span{display:block;color:var(--muted);font-size:12px;font-weight:650;margin-top:2px}.row-right{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.course-card{min-height:178px;display:flex;flex-direction:column;justify-content:space-between;gap:16px}.course-top{display:flex;align-items:flex-start;justify-content:space-between}.course-icon{width:44px;height:44px;border-radius:16px;display:grid;place-items:center;background:color-mix(in srgb, var(--surface) 42%, transparent);font-size:18px}.course-card h3{margin:0 0 14px;font-size:17px;letter-spacing:-.45px}.course-meta{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;font-weight:760}
.table-card{overflow:hidden;padding:0}.table-toolbar{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:760px}.data-table th,.data-table td{text-align:left;padding:14px 18px;border-bottom:1px solid var(--line);vertical-align:middle}.data-table th{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:850}.data-table td{font-weight:680}.data-table tr:last-child td{border-bottom:0}.user-cell{display:flex;align-items:center;gap:10px}.mini-avatar{width:34px;height:34px;border-radius:12px;background:var(--accent-soft);color:var(--accent-strong);display:grid;place-items:center;font-size:12px;font-weight:850;flex:0 0 auto}
.tabs{display:flex;gap:7px;align-items:center;overflow:auto;padding-bottom:2px}.tab-btn{border:1px solid transparent;background:transparent;color:var(--muted);height:38px;border-radius:12px;padding:0 13px;font-weight:800}.tab-btn:hover{background:var(--surface-2);color:var(--ink)}.tab-btn.is-active{background:var(--ink);color:var(--surface)}
.kanban{display:grid;grid-template-columns:repeat(4,minmax(250px,1fr));gap:16px;overflow:auto;padding-bottom:4px}.lane{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px;min-height:520px}.lane-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.lane-head h3{margin:0;font-size:15px;letter-spacing:-.25px}.task-card{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:14px;margin-bottom:10px}.task-card h4{margin:9px 0 8px;font-size:15px;letter-spacing:-.25px}.task-card p{margin:0;color:var(--muted);font-size:13px;font-weight:620}.task-foot{display:flex;justify-content:space-between;align-items:center;margin-top:13px}
.calendar{display:grid;grid-template-columns:repeat(7,minmax(96px,1fr));border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface)}.day-name,.day{min-height:100px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:11px}.day-name{min-height:auto;background:var(--surface-2);font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:850}.day:nth-child(7n),.day-name:nth-child(7n){border-right:0}.day:nth-last-child(-n+7){border-bottom:0}.day-number{font-weight:850}.event-chip{margin-top:9px;border-radius:10px;padding:7px 8px;font-size:12px;font-weight:760;background:var(--accent-soft);color:var(--accent-strong)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:7px}.field label{font-size:13px;font-weight:820;color:var(--ink-soft)}.input,.textarea{width:100%;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;outline:0;padding:0 13px;font-weight:650}.input{height:43px}.textarea{min-height:112px;padding-top:12px;resize:vertical}.input:focus,.textarea:focus,.select:focus{border-color:var(--accent-strong)}.field.full{grid-column:1/-1}.check-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:13px 14px}.toggle-switch{position:relative;width:48px;height:28px;display:inline-block}.toggle-switch input{display:none}.toggle-switch span{position:absolute;inset:0;border-radius:999px;background:var(--surface-3);border:1px solid var(--line);transition:.18s}.toggle-switch span::after{content:"";position:absolute;width:22px;height:22px;left:2px;top:2px;border-radius:50%;background:var(--surface);border:1px solid var(--line-strong);transition:.18s}.toggle-switch input:checked + span{background:var(--ink);border-color:var(--ink)}.toggle-switch input:checked + span::after{transform:translateX(20px)}
.chart-bars{height:230px;display:flex;align-items:end;gap:10px;padding:12px 0 2px}.bar{flex:1;min-width:26px;border-radius:12px 12px 0 0;background:var(--surface-2);height:var(--h)}.bar.active{background:var(--accent)}.donut{width:158px;height:158px;border-radius:50%;background:conic-gradient(var(--ink) 0 68%, var(--surface-3) 68% 100%);display:grid;place-items:center;margin:auto}.donut::after{content:attr(data-value);width:108px;height:108px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-size:28px;font-weight:860;letter-spacing:-.9px}.timeline{position:relative;display:flex;flex-direction:column;gap:12px}.timeline::before{content:"";position:absolute;left:19px;top:4px;bottom:4px;width:1px;background:var(--line)}.timeline-item{position:relative;display:flex;gap:12px;align-items:flex-start}.timeline-dot{width:38px;height:38px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line);display:grid;place-items:center;z-index:1;flex:0 0 auto}.timeline-copy{padding-top:2px}.timeline-copy strong{display:block;font-size:14px}.timeline-copy span{color:var(--muted);font-size:13px;font-weight:650}
.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(380px,520px) minmax(0,1fr);background:var(--bg)}.auth-panel{padding:36px;display:flex;flex-direction:column;justify-content:center}.auth-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:28px}.auth-visual{margin:24px;min-height:calc(100vh - 48px);border-radius:16px;background:var(--sidebar);color:#fff;padding:34px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid var(--sidebar-line)}.auth-visual h1{font-size:44px;line-height:1.03;letter-spacing:-1.7px;margin:0}.auth-visual p{color:#b8b8b8;font-weight:650;max-width:530px}.auth-tools{position:fixed;right:24px;top:24px;display:flex;gap:8px;z-index:10}
.empty-state{text-align:center;padding:44px 22px}.empty-state i{font-size:38px;margin-bottom:14px;color:var(--muted-2)}.empty-state h2{margin:0 0 8px;font-size:25px;letter-spacing:-.8px}.empty-state p{margin:0 auto 20px;color:var(--muted);font-weight:650;max-width:480px}.notice{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:13px 14px;display:flex;align-items:flex-start;gap:11px}.notice i{margin-top:2px}.notice strong{display:block}.notice p{margin:3px 0 0;color:var(--muted);font-size:13px;font-weight:650}.toast{position:fixed;right:24px;bottom:24px;z-index:60;background:var(--ink);color:var(--surface);border-radius:14px;padding:12px 14px;display:none;align-items:center;gap:9px;font-weight:780}.toast.is-visible{display:flex}.backdrop{position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:29;display:none}.backdrop.is-visible{display:block}
.file-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.file-card{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:16px}.file-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--surface-2);font-size:18px}.file-card h3{font-size:15px;margin:14px 0 5px;letter-spacing:-.25px}.file-card p{margin:0;color:var(--muted);font-size:13px;font-weight:650}.message-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px}.message-list{display:flex;flex-direction:column;gap:9px}.message-item{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:13px}.message-item.is-active{border-color:var(--ink)}.message-bubble{max-width:75%;border:1px solid var(--line);background:var(--surface-2);border-radius:16px;padding:12px 14px;margin-bottom:10px}.message-bubble.me{margin-left:auto;background:var(--ink);color:var(--surface);border-color:var(--ink)}
.helper{color:var(--muted);font-size:13px;font-weight:650}.muted{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hide{display:none!important}

@media (max-width:1180px){.grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.main-aside,.hero,.message-layout{grid-template-columns:1fr}.file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.search{width:240px}.auth-page{grid-template-columns:1fr}.auth-visual{display:none}}
@media (max-width:940px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:0;bottom:0;width:304px;z-index:30;transform:translateX(-105%);transition:transform var(--speed)}.sidebar.is-open{transform:translateX(0)}.mobile-toggle{display:inline-flex}.topbar{padding:0 18px}.content{padding:22px 18px 34px}.grid.cols-2,.grid.cols-3,.grid.cols-4,.grid.sidebar-main{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.search{display:none}.topbar-title p{display:none}.calendar{min-width:820px}.calendar-wrap{overflow:auto}.auth-panel{padding:22px}.sidebar-card{margin-top:16px}}
@media (max-width:640px){.topbar-actions .btn:not(.keep-mobile),.topbar-actions .select{display:none}.hero-copy h1{font-size:32px}.content{gap:18px}.card{padding:16px}.file-grid{grid-template-columns:1fr}.auth-card{padding:20px}.section-head{align-items:flex-start;flex-direction:column}.row-right{display:none}.kpi-value{font-size:27px}}
.auth-body{background:var(--bg);min-height:100vh;overflow-x:hidden}.auth-split{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(440px,1fr);background:var(--bg)}.auth-photo-panel{position:relative;min-height:100vh;overflow:hidden;background:var(--sidebar);color:#fff}.auth-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.auth-photo-layer{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,9,8,.54) 0%,rgba(10,12,9,.18) 32%,rgba(10,12,9,.76) 100%),radial-gradient(circle at 20% 18%,color-mix(in srgb,var(--accent) 44%,transparent),transparent 34%)}.auth-photo-content{position:relative;z-index:1;min-height:100vh;padding:32px;display:flex;flex-direction:column;justify-content:space-between;gap:28px}.auth-photo-brand{color:#fff;width:max-content}.auth-photo-brand .brand-mark{background:#fff;color:#151515}.auth-photo-copy{max-width:610px}.auth-photo-copy .pill{margin-bottom:18px}.auth-photo-copy h1{font-size:clamp(42px,5vw,76px);line-height:.95;letter-spacing:-.07em;margin:0 0 18px;text-wrap:balance}.auth-photo-copy p{max-width:520px;margin:0;color:rgba(255,255,255,.8);font-size:17px;line-height:1.62;font-weight:650}.auth-photo-meta{display:flex;flex-wrap:wrap;gap:10px}.auth-photo-meta>span{min-height:38px;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(15,17,14,.34);backdrop-filter:blur(14px);padding:0 13px;color:rgba(255,255,255,.88);font-size:13px;font-weight:780}.auth-content{position:relative;min-height:100vh;display:grid;place-items:center;padding:96px 38px 42px;background:radial-gradient(circle at 90% 8%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 30%),var(--bg)}.auth-content .auth-tools{position:absolute;right:28px;top:28px;display:flex;align-items:center;gap:8px;z-index:5}.auth-inner{width:min(100%,440px);display:grid;gap:28px}.auth-mobile-brand{display:none;color:var(--ink);width:max-content}.auth-mobile-brand .brand-mark{background:var(--ink);color:var(--surface)}.auth-heading{display:grid;gap:13px}.auth-kicker{width:max-content;min-height:34px;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);color:var(--muted);padding:0 12px;font-size:13px;font-weight:820}.auth-heading h1{margin:0;font-size:clamp(38px,4.2vw,56px);line-height:.96;letter-spacing:-.075em;text-wrap:balance}.auth-heading p{margin:0;max-width:390px;color:var(--muted);font-size:15px;line-height:1.65;font-weight:650}.auth-form{display:grid;gap:16px}.auth-field{display:grid;gap:8px}.auth-label-row,.auth-options{display:flex;align-items:center;justify-content:space-between;gap:14px}.auth-label-row label,.auth-field>label{font-size:13px;font-weight:840;color:var(--ink-soft)}.auth-input-wrap{position:relative}.auth-input-wrap>i{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:10px;background:var(--surface-2);color:var(--muted);display:grid;place-items:center;font-size:13px}.auth-input{height:50px;padding-left:54px;background:var(--surface);border-color:var(--line)}.auth-input:focus{background:var(--surface);border-color:var(--accent-strong)}.auth-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:10px;background:transparent;color:var(--muted);display:grid;place-items:center}.auth-password-toggle:hover{background:var(--surface-2);color:var(--ink)}.auth-link{color:var(--muted);font-size:13px;font-weight:780}.auth-link:hover{color:var(--ink)}.auth-options{color:var(--muted);font-size:13px}.auth-check{display:inline-flex;align-items:center;gap:9px;color:var(--muted);font-size:13px;font-weight:720}.auth-check input{width:16px;height:16px;accent-color:var(--accent-strong)}.auth-check-panel{align-items:flex-start;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:13px 14px}.auth-submit{height:50px}.auth-oauth{height:48px;background:var(--surface);border-color:var(--line)}.auth-divider{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;color:var(--muted);font-size:12px;font-weight:840;text-transform:uppercase;letter-spacing:.08em}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line)}.auth-footer{margin:0;text-align:center;color:var(--muted);font-size:14px;font-weight:650}.auth-footer a{color:var(--ink);font-weight:840}.toast.is-error{background:var(--danger);color:#fff}.toast.is-error i{color:#fff}@media (max-width:1100px){.auth-split{grid-template-columns:1fr}.auth-photo-panel{min-height:42vh}.auth-photo-content{min-height:42vh;padding:24px}.auth-photo-copy h1{font-size:clamp(34px,8vw,58px)}.auth-photo-copy p{max-width:640px}.auth-content{min-height:auto;padding:90px 24px 38px}.auth-mobile-brand{display:flex}}@media (max-width:640px){.brand-logo-wrap{width:158px}.auth-photo-panel{min-height:34vh}.auth-photo-content{padding:18px}.auth-photo-copy p,.auth-photo-meta{display:none}.auth-content{padding:82px 18px 30px;place-items:start center}.auth-content .auth-tools{right:18px;top:18px}.auth-heading h1{font-size:38px}.auth-inner{gap:22px}}

html[data-theme="darker"][data-accent="green"]{--accent:#284b3a;--accent-strong:#8be0ae;--accent-soft:#172620}
html[data-theme="darker"][data-accent="violet"]{--accent:#39345f;--accent-strong:#c5c2ff;--accent-soft:#242343}
html[data-theme="darker"][data-accent="blue"]{--accent:#1f344b;--accent-strong:#99caff;--accent-soft:#142130}
html[data-theme="darker"][data-accent="amber"]{--accent:#4a3e1c;--accent-strong:#ffd86c;--accent-soft:#26220f}
html[data-theme="darker"][data-accent="rose"]{--accent:#432231;--accent-strong:#ff9cc3;--accent-soft:#281722}
html[data-theme="darker"][data-accent="graphite"]{--accent:#303743;--accent-strong:#d5dbe5;--accent-soft:#1f2328}
html[data-theme="darker"] .auth-mobile-brand .brand-logo-default{display:none}
html[data-theme="darker"] .auth-mobile-brand .brand-logo-light{display:block}
html[data-theme="darker"] .auth-mobile-brand{color:var(--ink)}
html[data-theme="darker"] .btn.primary{background:#f3f5f7;color:#111316;border-color:#f3f5f7}


:root{
  --radius:var(--radius-lg);
  --radius-sm:10px;
  --good:#2f9461;
  --good-bg:#eef8f2;
  --warn:#986b00;
  --warn-bg:#fff6de;
  --bad:#dc3f52;
  --bad-bg:#fff0f2;
  --info:#2d74bc;
  --info-bg:#f1f7ff;
  --purple:#5d58d8;
  --purple-bg:#f0efff;
}
html[data-theme="darker"]{
  --good:#8be0ae;
  --good-bg:#172620;
  --warn:#ffd86c;
  --warn-bg:#26220f;
  --bad:#ff8ea0;
  --bad-bg:#2b1519;
  --info:#99caff;
  --info-bg:#142130;
  --purple:#c5c2ff;
  --purple-bg:#242343;
}
html[data-theme="darker"] .btn.primary,
html[data-theme="darker"] .button.primary,
html[data-theme="darker"] .button:not(.secondary):not(.ghost):not(.danger):not(.success-button){background:#f3f5f7;color:#111316;border-color:#f3f5f7}
body.app-page,body.public-page{background:var(--bg);color:var(--ink)}
body.auth-body{background:var(--bg);color:var(--ink)}
.app-main.main{min-width:0}
.content{padding:28px 34px 44px;display:grid;gap:18px;align-content:start}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:20px;color:var(--ink)}
.card.soft{background:var(--surface-2);border-color:var(--line);display:block;transition:border-color var(--speed),background var(--speed)}
.card.soft:hover{background:var(--accent-soft);border-color:var(--accent)}
.card h2,.card h3{margin:0 0 12px;letter-spacing:-.45px;line-height:1.15}.card h2{font-size:22px}.card h3{font-size:17px}
.grid{display:grid;gap:18px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.single{grid-template-columns:1fr}.grid.wide{grid-template-columns:minmax(0,1fr)}
.toolbar,.section-title-row,.calendar-view-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.toolbar>div,.section-title-row>div,.calendar-view-header>div{min-width:0}.toolbar h2,.section-title-row h2,.calendar-view-header h2{margin:0;font-size:24px;letter-spacing:-.7px;line-height:1.12}.eyebrow{margin:0 0 6px;color:var(--accent-strong);font-size:12px;font-weight:860;text-transform:uppercase;letter-spacing:.11em}.row-title{font-weight:850;color:var(--ink)}.row-title:hover{color:var(--accent-strong)}.row-subtitle,.muted-text,.muted,.form-note{display:block;color:var(--muted);font-size:13px;font-weight:650;line-height:1.45}.muted-text,.muted{margin:0}.no-margin{margin:0}.actions,.form-actions,.button-group,.workflow-actions,.public-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.full{grid-column:1/-1}.wide{grid-column:1/-1}.single{grid-template-columns:1fr!important}.is-hidden,[hidden]{display:none!important}
.button,.btn{border:1px solid var(--line);background:var(--ink);color:var(--surface);min-height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 15px;font-weight:800;line-height:1;transition:background var(--speed),border-color var(--speed),color var(--speed),transform var(--speed);appearance:none}.button:hover,.btn:hover,.icon-btn:hover{background:var(--surface-2);border-color:var(--line-strong);color:var(--ink)}.button:active,.btn:active,.icon-btn:active{transform:translateY(1px)}.button.secondary,.btn.secondary{background:var(--surface);color:var(--ink);border-color:var(--line)}.button.ghost,.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}.button.danger,.btn.danger{background:var(--bad-bg);border-color:var(--bad-bg);color:var(--bad)}.button.small,.btn.small{min-height:34px;padding:0 12px;font-size:13px;border-radius:10px}.button.full,.btn.full{width:100%}.success-button,.button.success-button{background:var(--good-bg)!important;border-color:var(--good-bg)!important;color:var(--good)!important}.danger-link{color:var(--bad)!important}.disabled-button,.action-menu-disabled{opacity:.55;cursor:not-allowed}.icon-btn{border:1px solid var(--line);background:var(--surface);color:var(--ink);width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center}.theme-icon-sun{display:none}html[data-theme="darker"] .theme-icon-moon{display:none}html[data-theme="darker"] .theme-icon-sun{display:inline-block}
.alert{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:13px 14px;color:var(--ink);font-weight:650}.alert.success{background:var(--good-bg);border-color:color-mix(in srgb,var(--good) 25%,var(--line));color:var(--good)}.alert.danger{background:var(--bad-bg);border-color:color-mix(in srgb,var(--bad) 25%,var(--line));color:var(--bad)}.alert.warning{background:var(--warn-bg);border-color:color-mix(in srgb,var(--warn) 25%,var(--line));color:var(--warn)}.alert.info,.soft-alert{background:var(--info-bg);border-color:color-mix(in srgb,var(--info) 25%,var(--line));color:var(--info)}.auth-demo-box{display:flex;gap:10px;align-items:flex-start}.auth-demo-box i{margin-top:2px}
.badge,.role,.pill{display:inline-flex;align-items:center;gap:7px;min-height:28px;border-radius:999px;padding:5px 10px;background:var(--surface-2);color:var(--muted);font-size:12px;font-weight:830;line-height:1.1;white-space:nowrap;border:1px solid transparent}.pill.violet,.badge-event-category-partner{background:var(--purple-bg);color:var(--purple)}.badge-approved,.badge-active,.badge-success{background:var(--good-bg);color:var(--good)}.badge-planned,.badge-coordinator_review,.badge-event-category-rental,.badge-event-recurrence-recurring{background:var(--warn-bg);color:var(--warn)}.badge-cancelled,.badge-inactive,.badge-returned{background:var(--bad-bg);color:var(--bad)}.badge-submitted,.badge-event-category-external{background:var(--info-bg);color:var(--info)}.badge-draft,.badge-muted,.badge-event-category,.badge-event-recurrence-one_time,.badge-series,.badge-internal,.badge-note-type,.badge-soft{background:var(--surface-2);color:var(--muted)}.badge-event-category-internal,.badge-event-recurrence-one_time{background:var(--good-bg);color:var(--good)}.badge-event-category-patronage{background:var(--rose-soft);color:var(--rose-strong)}.badge-pinned{background:var(--lemon-soft);color:var(--lemon-strong)}.intro-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.input{width:100%;min-height:44px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:10px 12px;outline:0;transition:border-color var(--speed),background var(--speed)}textarea{min-height:116px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--accent-strong);background:var(--surface)}input:disabled,select:disabled,textarea:disabled{background:var(--surface-2);color:var(--muted);cursor:not-allowed}.field{display:grid;gap:8px;align-content:start}.field>label,.field label>span:first-child{font-size:13px;font-weight:850;color:var(--ink-soft)}.field small{color:var(--muted);font-weight:650;line-height:1.42}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid.single{grid-template-columns:1fr}.stacked-form{display:grid;gap:18px}.form-actions{margin-top:18px}.checkbox-line,.check-pill{display:inline-flex;align-items:center;gap:9px;color:var(--muted);font-size:13px;font-weight:760}.checkbox-line input,.check-pill input{width:17px;height:17px;accent-color:var(--accent-strong)}.checkbox-grid{display:flex;gap:8px;flex-wrap:wrap}.check-pill{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 11px}.required-dot,.field-role{display:inline-flex;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:850;margin-left:6px;vertical-align:middle}.required-dot{background:var(--bad-bg);color:var(--bad)}.field-role{background:var(--surface-2);color:var(--muted)}.file-drop{min-height:86px;border:1px dashed var(--line-strong);border-radius:14px;background:var(--surface-2);display:grid!important;place-items:center;text-align:center;padding:14px;color:var(--muted);font-weight:800}.file-drop small{display:block;margin-top:3px}.mismatch-note{display:none}.mismatch-note.is-visible{display:block;color:var(--warn)}
.toggle-switch{position:relative;display:inline-flex;width:54px;height:32px;flex:0 0 54px;align-items:center}.toggle-switch.compact{width:46px;height:28px;flex-basis:46px}.toggle-switch input{position:absolute;opacity:0;pointer-events:none}.toggle-switch i{position:absolute;inset:0;border-radius:999px;background:var(--surface-3);border:1px solid var(--line-strong);transition:background var(--speed),border-color var(--speed)}.toggle-switch i::after{content:"";position:absolute;width:24px;height:24px;left:3px;top:3px;border-radius:50%;background:var(--surface);border:1px solid var(--line);transition:transform var(--speed),background var(--speed)}.toggle-switch.compact i::after{width:20px;height:20px}.toggle-switch input:checked+i{background:var(--accent);border-color:var(--accent)}.toggle-switch input:checked+i::after{transform:translateX(22px);background:#fff}.toggle-switch.compact input:checked+i::after{transform:translateX(18px)}.switch-row,.module-toggle-card{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:16px}.switch-row.full,.module-toggle-card.full{grid-column:1/-1}.switch-row.slim{padding:12px}.switch-row-copy{display:grid;gap:3px}.switch-row-copy strong,.module-toggle-card strong{font-size:15px;color:var(--ink)}.switch-row-copy small,.module-toggle-card small{color:var(--muted);font-size:13px;font-weight:650;line-height:1.4}.settings-inline-form{display:grid;gap:12px}.module-toggle-card:hover{border-color:var(--accent);background:var(--accent-soft)}
.table-wrap{overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}.table-wrap.has-open-action-menu{overflow:visible;position:relative;z-index:50}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}th{background:var(--surface-2);color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}tr:last-child td{border-bottom:0}tbody tr:hover td{background:color-mix(in srgb,var(--accent-soft) 45%,transparent)}td.actions{white-space:nowrap;text-align:right}.table-wrap td.actions{display:table-cell;vertical-align:middle}.is-sortable{cursor:pointer;user-select:none}.sort-indicator{display:inline-block;margin-left:7px;color:var(--muted-2)}.is-sorted-asc,.is-sorted-desc{color:var(--ink)}.list-no-results-row td{padding:0}.small-empty-state{padding:26px;color:var(--muted);font-weight:700;text-align:center}
.action-menu{position:relative;display:inline-block;text-align:left}.action-menu>summary{list-style:none}.action-menu>summary::-webkit-details-marker{display:none}.action-menu-toggle{min-width:128px;justify-content:space-between}.action-menu-toggle::after{content:"▾";font-size:10px;color:var(--muted);margin-left:6px}.action-menu[open] .action-menu-toggle::after{content:"▴"}.action-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:90;min-width:210px;border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:7px;display:grid;gap:2px}.action-menu-panel a,.action-menu-disabled{min-height:36px;border-radius:10px;display:flex;align-items:center;padding:0 10px;font-size:13px;font-weight:760;color:var(--ink)}.action-menu-panel a:hover{background:var(--surface-2)}.table-wrap tr.has-open-action-menu-row td{background:var(--surface)}
.stat{display:flex;align-items:center;gap:14px;min-height:126px}.stat-icon{width:42px;height:42px;flex:0 0 42px;border-radius:14px;background:var(--surface-2);color:var(--accent-strong);padding:10px}.stat span,.stat-card span{display:block;color:var(--muted);font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.stat strong,.stat-card strong{display:block;font-size:34px;line-height:1;letter-spacing:-1.3px;margin-top:6px}.stat-primary{background:linear-gradient(180deg,var(--accent-soft),var(--surface));border-color:var(--accent)}.stat-blue .stat-icon{color:var(--blue-strong);background:var(--blue-soft)}.stat-green .stat-icon{color:var(--good);background:var(--good-bg)}.stat-orange .stat-icon{color:var(--warn);background:var(--warn-bg)}.stat-purple .stat-icon{color:var(--purple);background:var(--purple-bg)}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.stat-card{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:14px}.stat-card small{display:block;color:var(--muted);font-size:12px;font-weight:650;margin-top:5px}
.timeline{display:grid;gap:12px}.timeline-row{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;align-items:start}.timeline-time{border:1px solid var(--line);border-radius:14px;background:var(--surface-2);padding:10px;text-align:center}.timeline-time strong{display:block}.timeline-time span{display:block;color:var(--muted);font-size:12px;margin-top:3px}.timeline-item{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:12px}.clean-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.detail-list{display:grid;gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden}.detail-row{display:grid;grid-template-columns:minmax(180px,32%) minmax(0,1fr);gap:12px;padding:13px 14px;border-bottom:1px solid var(--line);background:var(--surface)}.detail-row:last-child{border-bottom:0}.detail-row>span{color:var(--muted);font-size:13px;font-weight:750}.detail-row>strong{font-weight:800}.compact-details .detail-row{grid-template-columns:minmax(220px,34%) minmax(0,1fr)}.danger-zone{border-color:var(--bad);background:var(--bad-bg)}.code-mini{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:3px 6px}.empty-state,.calendar-empty-state{text-align:center;color:var(--muted);font-weight:700;padding:34px 18px;border:1px dashed var(--line);border-radius:14px;background:var(--surface-2)}.calendar-empty-state strong{display:block;color:var(--ink);margin-bottom:4px}.calendar-empty-state span{display:block;font-size:13px;color:var(--muted)}
.tabs{display:flex;gap:8px;flex-wrap:wrap}.tabs a{border:1px solid var(--line);background:var(--surface);border-radius:999px;min-height:36px;padding:8px 13px;color:var(--muted);font-weight:800;font-size:13px}.tabs a.is-active,.tabs a:hover{background:var(--ink);border-color:var(--ink);color:var(--surface)}html[data-theme="darker"] .tabs a.is-active,html[data-theme="darker"] .tabs a:hover{background:#f3f5f7;color:#111316;border-color:#f3f5f7}.calendar-head{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius-lg);padding:20px;margin-bottom:12px;display:grid;gap:16px}.calendar-toolbar{display:grid;gap:12px}.calendar-toolbar-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.calendar-toolbar-form label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.calendar-toolbar-form select,.calendar-toolbar-form input{min-width:170px}.calendar-quick-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.calendar-quick-nav-current{min-height:38px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);padding:9px 14px;font-weight:850}.calendar-legend{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}.calendar-legend span{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:13px;font-weight:750}.legend-dot{width:10px;height:10px;border-radius:50%;background:var(--muted-2)}.legend-dot.approved{background:var(--good)}.legend-dot.planned{background:var(--warn)}.legend-dot.cancelled{background:var(--bad)}.legend-dot.recurring{background:var(--purple)}.calendar-layout-day{grid-template-columns:minmax(0,1.6fr) minmax(320px,.8fr)}.readable-timeline,.readable-radar,.room-events-list{display:grid;gap:12px}.calendar-event-card{display:grid;grid-template-columns:136px minmax(0,1fr);gap:14px;border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:14px;color:var(--ink)}.calendar-event-card:hover{border-color:var(--accent);background:var(--accent-soft)}.calendar-event-card.cancelled{opacity:.72}.calendar-event-timebox{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:12px;text-align:center}.calendar-event-timebox strong{display:block;font-size:15px}.calendar-event-timebox span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.calendar-event-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.calendar-event-title-row strong{font-size:16px}.calendar-event-meta-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;color:var(--muted);font-size:13px;font-weight:650}.calendar-event-meta-row span{border:1px solid var(--line);border-radius:999px;padding:4px 8px;background:var(--surface-2)}.calendar-event-note{margin:10px 0 0;color:var(--muted);font-size:13px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.day-name{text-align:center;color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.day-cell{min-height:160px;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:12px;display:grid;gap:10px;align-content:start}.week-grid .day-cell{min-height:260px}.day-cell.is-today{border-color:var(--accent-strong);background:var(--accent-soft)}.day-cell.outside-month{background:transparent;border-style:dashed}.day-cell-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.day-number{font-size:22px;font-weight:900;letter-spacing:-.8px}.day-cell-head span{color:var(--muted);font-size:12px;font-weight:700}.day-count{display:grid;place-items:center;min-width:28px;height:28px;border-radius:10px;background:var(--accent);color:#151515;font-size:13px}.day-events-stack{display:grid;gap:7px}.calendar-muted-line{color:var(--muted-2);font-size:13px;font-weight:700}.cal-event{display:grid;gap:2px;border:1px solid var(--line);border-radius:12px;padding:8px;background:var(--surface-2)}.cal-event:hover{border-color:var(--accent)}.cal-event-time{font-size:11px;font-weight:900;color:var(--accent-strong)}.cal-event-title{font-size:13px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-event-meta{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-event.cancelled{text-decoration:line-through;opacity:.65}.calendar-week-summary{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:12px;min-width:150px;text-align:center}.calendar-week-summary strong{display:block;font-size:30px;line-height:1}.calendar-week-summary span{color:var(--muted);font-size:12px;font-weight:750}.year-grid,.readable-year-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.month-mini{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:14px;display:grid;gap:9px}.month-mini:hover{border-color:var(--accent);background:var(--accent-soft)}.month-mini-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.month-mini-head span{min-width:30px;height:30px;border-radius:10px;background:var(--surface-2);display:grid;place-items:center;font-weight:900}.month-mini-bar{height:8px;border-radius:999px;background:var(--surface-3);overflow:hidden}.month-mini-bar i{display:block;height:100%;background:var(--accent-strong);border-radius:inherit}.all-rooms-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.room-day-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.room-load{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:11px;text-align:center;min-width:76px}.room-load strong{display:block;font-size:25px}.room-load span,.room-load small{display:block;color:var(--muted);font-size:11px;font-weight:750}.mini-event{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:12px;display:grid;gap:3px}.mini-event:hover{border-color:var(--accent)}.mini-event-time{font-size:12px;color:var(--accent-strong);font-weight:900}.all-rooms-month-grid .day-cell{min-height:132px}.all-rooms-month-grid .cal-event-meta{display:none}
.event-card-builder{display:grid;grid-template-columns:minmax(270px,320px) minmax(0,1fr);gap:18px;align-items:start}.event-card-builder-nav{position:sticky;top:96px;display:grid;gap:14px;max-height:calc(100vh - 116px);overflow:auto}.builder-progress{display:grid;grid-template-columns:88px minmax(0,1fr);gap:13px;align-items:center}.builder-progress-ring{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;text-align:center;background:conic-gradient(var(--accent-strong) var(--event-card-progress,0%),var(--surface-3) 0);position:relative}.builder-progress-ring::after{content:"";position:absolute;inset:8px;border-radius:50%;background:var(--surface)}.builder-progress-ring strong,.builder-progress-ring span{position:relative;z-index:1}.builder-progress-ring strong{font-size:20px;line-height:1}.builder-progress-ring span{display:block;color:var(--muted);font-size:10px;font-weight:800}.builder-progress-copy h3{margin:0 0 4px}.event-card-section-search{min-height:40px}.event-card-nav-list{display:grid;gap:7px}.event-card-nav-item{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:10px;display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;text-align:left;align-items:center;color:var(--ink)}.event-card-nav-item:hover,.event-card-nav-item.is-active{border-color:var(--accent);background:var(--accent-soft)}.event-card-nav-item.is-filtered-out{display:none}.nav-icon{width:36px;height:36px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center}.event-card-nav-item strong{display:block;font-size:13px}.event-card-nav-item small{display:block;color:var(--muted);font-size:11px;font-weight:700;margin-top:2px}.builder-help{border:1px solid var(--line);background:var(--surface-2);border-radius:12px;padding:12px;color:var(--muted);font-size:13px;font-weight:650}.event-card-sections{display:grid;gap:14px}.event-card-section.is-filtered-out{display:none}.event-section-head{width:100%;border:0;background:transparent;color:var(--ink);display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;text-align:left;padding:0;cursor:pointer}.event-section-id{width:44px;height:44px;border-radius:14px;background:var(--accent-soft);color:var(--accent-strong);display:grid;place-items:center;font-size:21px;font-weight:900}.event-section-title-wrap strong{display:block;font-size:18px;letter-spacing:-.4px}.event-section-title-wrap small{display:block;color:var(--muted);font-size:13px;font-weight:650;margin-top:4px}.event-section-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.event-section-meta span,.event-section-meta em{border-radius:999px;background:var(--surface-2);color:var(--muted);padding:5px 8px;font-size:12px;font-style:normal;font-weight:850}.event-section-meta em{background:var(--warn-bg);color:var(--warn)}.event-section-meta em.locked{background:var(--surface-2);color:var(--muted)}.event-section-body{padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}.event-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.event-card-choice-group{display:grid;gap:12px;border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:12px}.event-card-choice-group.full{grid-column:1/-1}.choice-group-main,.choice-group-drawers{display:grid;gap:12px}.choice-group-drawers{grid-template-columns:repeat(2,minmax(0,1fr))}.dependency-drawer-field.is-hidden{display:none!important}.dependency-note{font-size:12px}.subsection-title{display:flex;align-items:center;gap:10px;margin:4px 0}.subsection-title span{font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.subsection-title::after{content:"";height:1px;background:var(--line);flex:1}.field-locked{opacity:.75}.lock-note{color:var(--muted)}.event-card-intro{display:flex;align-items:center;justify-content:space-between;gap:16px}.event-card-summary strong{display:block;margin-top:3px}.sticky-actions{position:sticky;bottom:0;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(14px);border:1px solid var(--line);border-radius:16px;padding:12px;z-index:15}.locked-hint{color:var(--muted);font-weight:750}
.notes-timeline,.attachment-list{display:grid;gap:12px}.note-item,.attachment-item{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:14px}.note-head,.attachment-head{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.note-meta,.attachment-meta{color:var(--muted);font-size:12px;font-weight:650}.note-count{display:inline-flex;border:1px solid var(--line);background:var(--surface-2);border-radius:999px;padding:6px 10px;color:var(--muted);font-size:12px;font-weight:850}.note-count:hover{color:var(--accent-strong);border-color:var(--accent)}.attachment-icon{width:42px;height:42px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;color:var(--accent-strong);font-weight:900}.attachment-body{display:grid;gap:3px}.attachment-upload-form{display:grid;gap:12px}.profile-editor{display:grid;grid-template-columns:160px minmax(0,1fr);gap:18px;align-items:start}.profile-avatar-preview{text-align:center;display:grid;place-items:center;gap:9px}.profile-avatar-preview small{color:var(--muted);font-size:12px;font-weight:650}.branding-preview img{max-height:140px;object-fit:contain;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);padding:12px}.branding-preview.wide img{max-height:260px;width:100%;object-fit:cover}.public-link-box{display:flex;gap:8px;align-items:center;border:1px solid var(--line);background:var(--surface-2);border-radius:12px;padding:9px 10px;overflow:auto}.public-link-box code{white-space:nowrap}
.auth-body .brand-logo-default{display:block}.auth-body .brand-logo-light{display:none}html[data-theme="darker"] .auth-body .brand-logo-default{display:none}html[data-theme="darker"] .auth-body .brand-logo-light{display:block}.auth-split{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(440px,1fr);background:var(--bg)}.auth-photo-panel{position:relative;min-height:100vh;overflow:hidden;background:var(--sidebar);color:#fff}.auth-photo-fallback{position:absolute;inset:0;background:radial-gradient(circle at 20% 10%,color-mix(in srgb,var(--accent-strong) 45%,transparent),transparent 34%),linear-gradient(135deg,#101214,#202020)}.auth-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.auth-photo-layer{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,9,8,.62),rgba(8,9,8,.20) 38%,rgba(8,9,8,.78))}.auth-photo-content{position:relative;z-index:1;min-height:100vh;padding:32px;display:flex;flex-direction:column;justify-content:space-between;gap:28px}.auth-photo-copy{max-width:620px}.auth-photo-copy h1{font-size:clamp(42px,5vw,76px);line-height:.95;letter-spacing:-.07em;margin:18px 0}.auth-photo-copy p{max-width:540px;margin:0;color:rgba(255,255,255,.80);font-size:17px;line-height:1.62;font-weight:650}.auth-photo-meta{display:flex;flex-wrap:wrap;gap:10px}.auth-photo-meta>span{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.22);background:rgba(20,20,20,.34);border-radius:999px;min-height:38px;padding:0 13px;color:rgba(255,255,255,.88);font-size:13px;font-weight:780}.auth-content{position:relative;min-height:100vh;display:grid;place-items:center;padding:96px 38px 42px;background:radial-gradient(circle at 90% 8%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 30%),var(--bg)}.auth-content .auth-tools{position:absolute;right:28px;top:28px}.auth-inner{width:min(100%,440px);display:grid;gap:26px}.auth-mobile-brand{display:none}.auth-heading{display:grid;gap:13px}.auth-kicker{width:max-content;min-height:34px;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);color:var(--muted);padding:0 12px;font-size:13px;font-weight:820}.auth-heading h1{margin:0;font-size:clamp(38px,4.2vw,56px);line-height:.96;letter-spacing:-.075em}.auth-heading p{margin:0;color:var(--muted);font-size:15px;line-height:1.65;font-weight:650}.auth-form{display:grid;gap:16px}.auth-field{display:grid;gap:8px}.auth-field>label{font-size:13px;font-weight:840;color:var(--ink-soft)}.auth-input-wrap{position:relative}.auth-input-wrap>i{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:10px;background:var(--surface-2);color:var(--muted);display:grid;place-items:center;font-size:13px}.auth-input{height:50px;padding-left:54px}.auth-submit{height:50px}.auth-footer{margin:0;text-align:center;color:var(--muted);font-size:14px;font-weight:650}.auth-footer a{color:var(--ink);font-weight:850}.auth-code-input{text-align:center;font-size:22px;letter-spacing:.18em;font-weight:900}.public-shell{width:min(1120px,calc(100% - 36px));margin:0 auto;padding:24px 0 54px}.public-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.public-brand{display:inline-flex;align-items:center;gap:12px}.public-brand .brand-logo-wrap{width:160px}.public-security{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 12px;color:var(--muted);font-size:13px;font-weight:750}.public-content{display:grid;gap:18px}.public-card-narrow{max-width:760px;margin:58px auto 0}.public-summary{margin-bottom:18px}.public-event-card-form{display:grid;gap:18px}.logo-mark{width:42px;height:42px;border-radius:12px;background:var(--ink);color:var(--surface);display:grid;place-items:center;font-weight:900;overflow:hidden}.logo-mark.small{width:36px;height:36px}.logo-mark img{width:100%;height:100%;object-fit:cover}.avatar{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#171717;border:7px solid var(--sidebar-2);font-weight:850;font-size:26px;letter-spacing:-.7px;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.avatar-small,.avatar.small{width:38px;height:38px;border:0;border-radius:12px;font-size:13px;background:var(--accent-soft);color:var(--ink)}.user-chip{border:1px solid var(--line);background:var(--surface);color:var(--ink);height:46px;border-radius:14px;padding:4px 8px 4px 5px;display:flex;align-items:center;gap:9px}.user-chip-copy{display:grid;text-align:left;line-height:1.1}.user-chip-copy strong{font-size:13px}.user-chip-copy small{font-size:11px;color:var(--muted);font-weight:700}.user-chip-arrow{font-size:11px;color:var(--muted)}.role-switch{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:4px;color:var(--muted);font-size:12px;font-weight:800}.role-switch span{padding:0 7px}.role-switch a{border-radius:999px;padding:5px 8px}.role-switch a.is-active{background:var(--ink);color:var(--surface)}.toast{position:fixed;right:24px;bottom:24px;z-index:100;background:var(--ink);color:var(--surface);border-radius:14px;padding:12px 14px;display:none;align-items:center;gap:9px;font-weight:780}.toast.is-visible{display:flex}.backdrop{position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:29;display:none}.backdrop.is-visible{display:block}
@media (max-width:1180px){.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-layout-day,.all-rooms-board,.event-card-builder{grid-template-columns:1fr}.event-card-builder-nav{position:static;max-height:none}.year-grid,.readable-year-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.topbar-search{display:none}}
@media (max-width:940px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:0;bottom:0;width:304px;z-index:30;transform:translateX(-105%);transition:transform var(--speed)}.sidebar.is-open{transform:translateX(0)}.mobile-toggle{display:inline-flex}.topbar{padding:0 18px}.content{padding:22px 18px 34px}.grid.two,.grid.three,.grid.four,.form-grid,.stats-grid,.choice-group-drawers{grid-template-columns:1fr}.toolbar,.section-title-row,.calendar-view-header,.event-card-intro{align-items:flex-start;flex-direction:column}.calendar-grid{min-width:840px}.calendar-main-card{overflow:auto}.year-grid,.readable-year-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-toolbar-form label{width:100%}.calendar-toolbar-form select,.calendar-toolbar-form input{min-width:0}.profile-editor{grid-template-columns:1fr}.auth-split{grid-template-columns:1fr}.auth-photo-panel{min-height:40vh}.auth-photo-content{min-height:40vh;padding:24px}.auth-content{min-height:auto;padding:90px 24px 38px}.auth-mobile-brand{display:inline-flex}.topbar-title p,.user-chip-copy,.user-chip-arrow{display:none}.role-switch{display:none}}
@media (max-width:640px){.topbar-actions .button:not(.keep-mobile),.topbar-actions .btn:not(.keep-mobile),.topbar-actions .theme-menu{display:none}.content{gap:16px}.card{padding:16px}.stat{min-height:108px}.stat strong,.stat-card strong{font-size:28px}.calendar-event-card{grid-template-columns:1fr}.timeline-row{grid-template-columns:1fr}.year-grid,.readable-year-grid{grid-template-columns:1fr}.auth-photo-panel{min-height:34vh}.auth-photo-copy p,.auth-photo-meta{display:none}.auth-photo-content{padding:18px}.auth-content{padding:82px 18px 30px}.auth-content .auth-tools{right:18px;top:18px}.auth-heading h1{font-size:38px}.public-header{align-items:flex-start;flex-direction:column}.module-toggle-card,.switch-row{align-items:flex-start}.toggle-switch{margin-top:2px}}

/* concept. panel component pass — calendar, event cards and data-heavy views */
html[data-theme="darker"]{
  color-scheme:dark;
  --bg:#101214;
  --surface:#171a1d;
  --surface-2:#1f2328;
  --surface-3:#272c32;
  --ink:#f3f5f7;
  --ink-soft:#d9dde3;
  --muted:#a5adb8;
  --muted-2:#808893;
  --line:#2b3037;
  --line-strong:#3a414b;
  --sidebar:#0d0e10;
  --sidebar-2:#17191c;
  --sidebar-line:#252a30;
  --sidebar-ink:#ffffff;
  --sidebar-muted:#a1a7af;
  --mint:#254137;
  --mint-strong:#8be0ae;
  --mint-soft:#172620;
  --lemon:#4a3e1c;
  --lemon-strong:#ffd86c;
  --lemon-soft:#26220f;
  --rose:#432231;
  --rose-strong:#ff9cc3;
  --rose-soft:#281722;
  --blue:#1f344b;
  --blue-strong:#99caff;
  --blue-soft:#142130;
  --danger:#ff8ea0;
  --danger-soft:#2b1519;
}

:root{
  --radius:16px;
  --radius-sm:10px;
  --panel-gap:18px;
}

.content > *{min-width:0;}
.card,.calendar-head,.table-wrap,.event-card-section,.event-card-builder-nav{
  border-radius:var(--radius);
  border-color:var(--line);
}
.button,.btn{
  min-height:42px;
  border-radius:12px;
  white-space:nowrap;
}
.button:not(.secondary):not(.ghost):not(.danger):not(.success-button),
.btn.primary{
  background:var(--ink);
  border-color:var(--ink);
  color:var(--surface);
}
.button:not(.secondary):not(.ghost):not(.danger):not(.success-button):hover,
.btn.primary:hover{
  background:var(--ink-soft);
  border-color:var(--ink-soft);
  color:var(--surface);
}
html[data-theme="darker"] .button:not(.secondary):not(.ghost):not(.danger):not(.success-button),
html[data-theme="darker"] .btn.primary{
  background:#f3f5f7;
  border-color:#f3f5f7;
  color:#111316;
}
html[data-theme="darker"] .button:not(.secondary):not(.ghost):not(.danger):not(.success-button):hover,
html[data-theme="darker"] .btn.primary:hover{
  background:#d9dde3;
  border-color:#d9dde3;
  color:#111316;
}
.toolbar,.section-title-row,.calendar-view-header{
  margin-bottom:18px;
  gap:18px;
}
.toolbar.no-margin,.section-title-row.no-margin,.calendar-view-header.no-margin{margin-bottom:0;}

/* Tables */
.table-wrap{
  background:var(--surface);
  overflow:auto;
}
table{
  width:100%;
  min-width:780px;
  border-collapse:separate;
  border-spacing:0;
}
th,td{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  vertical-align:middle;
}
th{
  position:relative;
  background:var(--surface-2);
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
td{background:var(--surface);}
tr:last-child td{border-bottom:0;}
td.actions{
  width:1%;
  white-space:nowrap;
}
.action-menu{position:relative;display:inline-block;}
.action-menu > summary{
  list-style:none;
  min-width:138px;
}
.action-menu > summary::-webkit-details-marker{display:none;}
.action-menu-panel{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  z-index:80;
  min-width:210px;
  display:grid;
  gap:3px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
}
.action-menu-panel a,
.action-menu-disabled{
  display:flex;
  align-items:center;
  min-height:38px;
  padding:8px 10px;
  border-radius:10px;
  color:var(--ink);
  font-weight:780;
}
.action-menu-panel a:hover{background:var(--surface-2);color:var(--accent-strong);}
.action-menu-panel .danger-link:hover{background:var(--bad-bg);color:var(--bad)!important;}
.table-wrap.has-open-action-menu{overflow:visible;}

/* Calendar */
.calendar-head-readable{
  padding:22px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:18px;
  background:linear-gradient(180deg,var(--surface),var(--surface-2));
}
.calendar-heading-block h2{
  margin:0;
  font-size:clamp(26px,2.4vw,36px);
  line-height:1.03;
  letter-spacing:-1.15px;
}
.calendar-toolbar{
  display:grid;
  gap:12px;
  align-items:start;
}
.calendar-toolbar-form{
  display:grid;
  grid-template-columns:repeat(3,minmax(160px,max-content));
  gap:10px;
  align-items:end;
  justify-content:start;
}
.calendar-toolbar-form label{
  min-width:0;
}
.calendar-toolbar-form select,
.calendar-toolbar-form input{
  min-width:0;
  width:100%;
}
.calendar-quick-nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.calendar-quick-nav-current{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface);
  padding:0 14px;
  color:var(--ink);
  font-weight:880;
}
.calendar-tabs{
  padding-top:2px;
}
.calendar-tabs a{
  min-height:38px;
  display:inline-flex;
  align-items:center;
}
.calendar-legend{
  padding:0 2px;
}
.calendar-main-card{
  overflow:visible;
}
.calendar-layout-day{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);
  gap:18px;
  align-items:start;
}
.compact-calendar-stats{
  margin-bottom:18px;
}
.compact-calendar-stats .stat-card{
  min-height:112px;
  display:grid;
  align-content:center;
}
.readable-timeline,
.readable-radar,
.readable-room-events-list{
  display:grid;
  gap:12px;
}
.calendar-event-card{
  display:grid;
  grid-template-columns:132px minmax(0,1fr);
  gap:14px;
  align-items:stretch;
  border:1px solid var(--line);
  border-left:4px solid var(--accent-strong);
  border-radius:16px;
  background:var(--surface);
  padding:14px;
  color:var(--ink);
  min-width:0;
}
.calendar-event-card.planned{border-left-color:var(--warn);}
.calendar-event-card.approved{border-left-color:var(--good);}
.calendar-event-card.cancelled{border-left-color:var(--bad);}
.calendar-event-card.is-recurring{background:linear-gradient(90deg,var(--purple-bg),var(--surface) 36%);}
.calendar-event-card:hover{
  border-color:var(--line-strong);
  border-left-color:var(--accent-strong);
  background:var(--accent-soft);
}
.calendar-event-timebox{
  min-width:0;
  display:grid;
  align-content:center;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
  padding:12px;
  text-align:left;
}
.calendar-event-timebox strong{
  display:block;
  font-size:16px;
  letter-spacing:-.35px;
}
.calendar-event-timebox span{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:750;
}
.calendar-event-body{min-width:0;display:grid;align-content:center;}
.calendar-event-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
.calendar-event-title-row strong{
  min-width:0;
  font-size:16px;
  letter-spacing:-.35px;
}
.calendar-event-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:9px;
}
.calendar-event-meta-row span,
.recurring-label{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-2);
  padding:4px 9px;
  color:var(--muted);
  font-size:12px;
  font-weight:780;
}
.calendar-event-note{
  margin:10px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.readable-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(118px,1fr));
  gap:10px;
  align-items:stretch;
}
.day-name{
  min-height:auto;
  border:0;
  border-radius:12px;
  background:var(--surface-2);
  padding:10px;
  text-align:center;
}
.readable-day-cell{
  min-width:0;
  min-height:168px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.week-grid .readable-day-cell{min-height:270px;}
.readable-day-cell.is-today{
  border-color:var(--accent-strong);
  background:var(--accent-soft);
}
.readable-day-cell.outside-month{
  opacity:.55;
  background:transparent;
  border-style:dashed;
}
.day-cell-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.day-number{
  font-size:24px;
  line-height:1;
  font-weight:920;
  letter-spacing:-.9px;
}
.day-cell-head span{
  margin-top:3px;
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:780;
}
.day-count{
  flex:0 0 auto;
  min-width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:var(--accent);
  color:#151515;
  font-size:13px;
  font-weight:900;
}
.day-events-stack{
  display:grid;
  gap:7px;
  min-width:0;
}
.cal-event{
  min-width:0;
  display:grid;
  gap:2px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface-2);
  padding:8px;
}
.cal-event:hover{border-color:var(--accent-strong);background:var(--accent-soft);}
.cal-event-time{color:var(--accent-strong);font-size:11px;font-weight:920;}
.cal-event-title,.cal-event-meta{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cal-event-title{font-size:13px;font-weight:860;}
.cal-event-meta{font-size:11px;color:var(--muted);}
.calendar-week-summary,
.room-load{
  border:1px solid var(--line);
  background:var(--surface-2);
  border-radius:14px;
}
.all-rooms-board{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
.readable-room-day-card{min-width:0;}
.room-day-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.room-load{
  min-width:78px;
  padding:11px;
  text-align:center;
}
.room-load strong{display:block;font-size:26px;line-height:1;}
.room-load span,.room-load small{display:block;color:var(--muted);font-size:11px;font-weight:780;}
.year-grid,.readable-year-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.readable-month-mini{
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  padding:15px;
  display:grid;
  gap:9px;
}
.readable-month-mini:hover{border-color:var(--accent-strong);background:var(--accent-soft);}
.month-mini-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.month-mini-head span{
  flex:0 0 auto;
  min-width:32px;
  height:32px;
  border-radius:11px;
  background:var(--surface-2);
  display:grid;
  place-items:center;
  font-weight:920;
}
.month-mini-bar{
  height:8px;
  border-radius:999px;
  background:var(--surface-3);
  overflow:hidden;
}
.month-mini-bar i{display:block;height:100%;background:var(--accent-strong);border-radius:inherit;}

/* Event card builder */
.event-card-intro{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.event-card-intro h2{
  margin:0;
  font-size:clamp(26px,2.3vw,34px);
  letter-spacing:-1px;
}
.event-card-builder{
  display:grid;
  grid-template-columns:minmax(280px,330px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.event-card-builder-nav{
  position:sticky;
  top:calc(var(--topbar-height) + 18px);
  display:grid;
  gap:14px;
  max-height:calc(100vh - var(--topbar-height) - 36px);
  overflow:auto;
}
.builder-progress{
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:14px;
  align-items:center;
}
.builder-progress-ring{
  width:92px;
  height:92px;
  border-radius:50%;
  display:grid;
  place-items:center;
  position:relative;
  background:conic-gradient(var(--accent-strong) var(--event-card-progress,0%),var(--surface-3) 0);
}
.builder-progress-ring::after{
  content:"";
  position:absolute;
  inset:9px;
  border-radius:50%;
  background:var(--surface);
  border:1px solid var(--line);
}
.builder-progress-ring strong,
.builder-progress-ring span{position:relative;z-index:1;}
.builder-progress-ring strong{font-size:20px;line-height:1;letter-spacing:-.5px;}
.builder-progress-ring span{display:block;color:var(--muted);font-size:10px;font-weight:860;}
.builder-progress-copy h3{margin:0 0 5px;font-size:17px;}
.event-card-section-search{min-height:42px;}
.event-card-nav-list{display:grid;gap:8px;}
.event-card-nav-item{
  width:100%;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
  color:var(--ink);
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:10px;
  align-items:center;
  text-align:left;
  padding:10px;
}
.event-card-nav-item:hover,
.event-card-nav-item.is-active{
  border-color:var(--accent-strong);
  background:var(--accent-soft);
}
.nav-icon{
  width:38px;
  height:38px;
  border-radius:12px;
  background:var(--surface-2);
  display:grid;
  place-items:center;
  font-weight:900;
}
.event-card-nav-item strong,
.event-card-nav-item small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.event-card-nav-item strong{display:block;font-size:13px;}
.event-card-nav-item small{display:block;margin-top:2px;color:var(--muted);font-size:11px;font-weight:750;}
.builder-help{
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface-2);
  padding:12px;
  color:var(--muted);
  font-size:13px;
  font-weight:680;
}
.event-card-sections{display:grid;gap:14px;min-width:0;}
.event-card-section{min-width:0;}
button.event-section-head{
  width:100%;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) max-content;
  gap:12px;
  align-items:center;
  border:0;
  background:transparent;
  color:var(--ink);
  text-align:left;
  padding:0;
}
.event-card-section > .event-section-head:not(button){
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  width:100%;
  margin-bottom:14px;
}
.event-section-id{
  width:46px;
  height:46px;
  border-radius:14px;
  background:var(--accent-soft);
  color:var(--accent-strong);
  display:grid;
  place-items:center;
  font-size:21px;
  font-weight:900;
}
.event-section-title-wrap{min-width:0;}
.event-section-title-wrap strong{
  display:block;
  min-width:0;
  font-size:18px;
  letter-spacing:-.45px;
}
.event-section-title-wrap small{
  display:block;
  max-width:860px;
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
  font-weight:650;
  line-height:1.45;
}
.event-section-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
  min-width:max-content;
}
.event-section-meta span,
.event-section-meta em{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  border-radius:999px;
  background:var(--surface-2);
  color:var(--muted);
  padding:4px 8px;
  font-size:12px;
  font-style:normal;
  font-weight:850;
}
.event-section-meta em{background:var(--warn-bg);color:var(--warn);}
.event-section-meta b{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:10px;
  background:var(--surface-2);
  color:var(--muted);
  transition:transform var(--speed);
}
.event-card-section.is-open .event-section-meta b{transform:rotate(180deg);}
.event-section-body{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.event-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.event-form-grid > .full,
.event-card-field.full,
.subsection-title.full,
.event-card-choice-group.full{grid-column:1/-1;}
.event-card-choice-group{
  display:grid;
  gap:12px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface-2);
  padding:12px;
}
.event-card-choice-group.has-active-dependent{
  border-color:var(--accent);
  background:var(--accent-soft);
}
.choice-group-main,
.choice-group-drawers{display:grid;gap:12px;}
.choice-group-drawers{grid-template-columns:repeat(2,minmax(0,1fr));}
.dependency-drawer-field.is-hidden{display:none!important;}
.subsection-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:6px 0 2px;
}
.subsection-title span{
  color:var(--muted);
  font-size:12px;
  font-weight:920;
  letter-spacing:.09em;
  text-transform:uppercase;
  white-space:nowrap;
}
.subsection-title::after{content:"";height:1px;background:var(--line);flex:1;}
.detail-subheading{
  padding:12px 14px;
  background:var(--surface-2);
  color:var(--muted);
  font-size:12px;
  font-weight:920;
  letter-spacing:.08em;
  text-transform:uppercase;
  border-bottom:1px solid var(--line);
}
.detail-list.compact-details{border-radius:14px;}
.compact-details .detail-row{
  grid-template-columns:minmax(220px,32%) minmax(0,1fr);
}
.detail-row strong{
  min-width:0;
  overflow-wrap:anywhere;
}
.event-card-summary .grid.four > div{
  min-height:88px;
  border:1px solid var(--line);
  background:var(--surface-2);
  border-radius:14px;
  padding:13px;
}
.progress{
  height:9px;
  border-radius:999px;
  background:var(--surface-3);
  overflow:hidden;
  margin-top:8px;
}
.progress span{display:block;height:100%;border-radius:inherit;background:var(--accent-strong);}
.workflow-actions .inline-form,
.form-actions .inline-form{display:inline-flex;}
.sticky-actions{
  position:sticky;
  bottom:14px;
  display:flex;
  justify-content:flex-end;
  background:color-mix(in srgb,var(--surface) 92%,transparent);
  backdrop-filter:blur(14px);
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
}

@media (max-width:1180px){
  .calendar-layout-day,
  .all-rooms-board,
  .event-card-builder{grid-template-columns:1fr;}
  .event-card-builder-nav{position:static;max-height:none;}
  .year-grid,.readable-year-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:940px){
  .calendar-toolbar-form{grid-template-columns:1fr;}
  .calendar-main-card{overflow:auto;}
  .readable-calendar-grid{min-width:860px;}
  .event-form-grid,
  .choice-group-drawers{grid-template-columns:1fr;}
  button.event-section-head{grid-template-columns:46px minmax(0,1fr);}
  .event-section-meta{grid-column:1/-1;justify-content:flex-start;min-width:0;}
  .event-card-intro{flex-direction:column;}
  .compact-details .detail-row,.detail-row{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .calendar-head-readable{padding:16px;}
  .calendar-event-card{grid-template-columns:1fr;}
  .calendar-event-timebox{text-align:left;}
  .year-grid,.readable-year-grid{grid-template-columns:1fr;}
  .room-day-head{flex-direction:column;}
  .event-section-meta{gap:6px;}
  .sticky-actions{position:static;justify-content:stretch;}
  .sticky-actions .button{width:100%;}
}


/* Login cleanup */
.auth-photo-copy .pill,
.auth-photo-meta {
    display: none !important;
}

.auth-input-wrap > i + .auth-input,
.auth-input-wrap > i + input.auth-input {
    padding-left: 62px !important;
}

.auth-input-wrap > i + input[type="password"].auth-input,
.auth-input-wrap > i + input[type="email"].auth-input,
.auth-input-wrap > i + input[type="text"].auth-input {
    padding-right: 14px !important;
}

.auth-photo-copy h1:first-child {
    margin-top: 0;
}

/* Hotfix: non-accordion section heads were inheriting the event-card accordion grid.
   This restores proper headers for event attachments, notes, fill-from-card and read-only card sections. */
.event-section-head:not(button) {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 16px;
    cursor: default !important;
}

.event-section-head:not(button) > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 860px;
}

.event-section-head:not(button) > .button,
.event-section-head:not(button) > .btn,
.event-section-head:not(button) > .badge,
.event-section-head:not(button) > .actions {
    flex: 0 0 auto;
}

.event-section-head:not(button) .muted-text {
    max-width: 780px;
    line-height: 1.55;
}

#event-attachments .alert,
#event-notes .alert {
    margin-top: 12px;
}

.attachment-upload-form {
    margin-top: 16px;
}

/* Dashboard/event timeline cleanup after removing the legacy layout. */
.timeline {
    position: relative;
    display: grid !important;
    gap: 12px;
}

.timeline::before {
    display: none !important;
}

.timeline-row {
    display: grid !important;
    grid-template-columns: 104px minmax(0, 1fr) !important;
    gap: 12px;
    align-items: stretch;
    min-width: 0;
}

.timeline-time {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 74px;
}

.timeline-item {
    display: block !important;
    min-width: 0;
}

.timeline-item > strong {
    display: block;
    line-height: 1.25;
}

@media (max-width: 720px) {
    .event-section-head:not(button) {
        flex-direction: column;
        align-items: stretch !important;
    }

    .event-section-head:not(button) > .button,
    .event-section-head:not(button) > .btn,
    .event-section-head:not(button) > .actions {
        width: 100%;
    }

    .event-section-head:not(button) > .button,
    .event-section-head:not(button) > .btn,
    .event-section-head:not(button) > .actions .button,
    .event-section-head:not(button) > .actions .btn {
        justify-content: center;
    }

    .timeline-row {
        grid-template-columns: 1fr !important;
    }

    .timeline-time {
        min-height: auto;
        place-items: start;
        text-align: left;
    }
}

/* Tenant access / tenant portal */
.tenant-credentials-card {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.credential-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.credential-grid > div {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px;
    min-width: 0;
}

.credential-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.credential-grid code {
    display: block;
    white-space: normal;
    word-break: break-word;
}

.tenant-login-card .field input {
    min-height: 48px;
}

.tenant-portal-grid .card {
    min-height: 100%;
}

.public-event-toolbar {
    align-items: flex-start;
    margin-bottom: 18px;
}

.compact-table table {
    min-width: 640px;
}

@media (max-width: 820px) {
    .credential-grid {
        grid-template-columns: 1fr;
    }
}


/* Mail / conversations module */
.mail-stats {
    margin-bottom: 18px;
}

.mail-layout {
    align-items: start;
}

.mail-thread-card {
    min-width: 0;
}

.mail-thread {
    display: grid;
    gap: 14px;
}

.mail-message {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-2);
    padding: 14px;
}

.mail-message-outbound {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}

.mail-message-note {
    background: transparent;
    border-style: dashed;
}

.mail-message-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.mail-message-head strong {
    display: block;
}

.mail-message-head span,
.mail-message-meta {
    color: var(--muted);
    font-size: 13px;
}

.mail-message-body {
    white-space: normal;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.mail-table td:first-child {
    min-width: 280px;
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 18px 0;
}

@media (max-width: 980px) {
    .mail-layout {
        grid-template-columns: 1fr;
    }
}

/* List filters polish — desktop filters should sit in one calm row, not a tower. */
.toolbar.list-toolbar:has(> .filters.list-filters),
.toolbar.list-toolbar.compact-toolbar {
  display: block;
}

.toolbar.list-toolbar > .filters.list-filters {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(auto-fit, minmax(180px, .75fr));
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.toolbar.list-toolbar > .filters.list-filters input[type="search"],
.toolbar.list-toolbar > .filters.list-filters select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  background: var(--surface);
}

.toolbar.list-toolbar > .filters.list-filters input[type="search"] {
  min-width: 0;
}

.cards-list-filters {
  grid-template-columns: minmax(300px, 1.45fr) minmax(170px, .75fr) minmax(170px, .75fr) !important;
}

.events-list-filters {
  grid-template-columns: minmax(240px, 1.25fr) repeat(4, minmax(145px, .7fr)) !important;
}

.rooms-list-filters,
.my-events-list-filters,
.users-list-filters,
.log-list-filters {
  grid-template-columns: minmax(260px, 1.3fr) repeat(auto-fit, minmax(170px, .75fr)) !important;
}

@media (max-width: 1100px) {
  .cards-list-filters,
  .events-list-filters,
  .rooms-list-filters,
  .my-events-list-filters,
  .users-list-filters,
  .log-list-filters,
  .toolbar.list-toolbar > .filters.list-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .cards-list-filters,
  .events-list-filters,
  .rooms-list-filters,
  .my-events-list-filters,
  .users-list-filters,
  .log-list-filters,
  .toolbar.list-toolbar > .filters.list-filters {
    grid-template-columns: 1fr !important;
    padding: 10px;
  }
}


.role-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    max-width: 520px;
}

.checkbox-line.compact {
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    white-space: nowrap;
}

.module-access-card {
    align-items: flex-start;
}

@media (max-width: 760px) {
    .role-check-grid { justify-content: flex-start; width: 100%; }
}

/* Mail module polish — final concept component layer */
.mail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}
.mail-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}
.mail-hero-icon,
.mail-stat-icon,
.mail-thread-dot,
.mail-empty-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--accent-soft);
    color: var(--accent-strong);
}
.mail-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 21px;
}
.mail-hero h2 {
    margin-bottom: 5px;
    letter-spacing: -0.04em;
}
.mail-hero .row-subtitle {
    max-width: 850px;
    margin-top: 0;
}
.mail-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}
.mail-hero-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
}
.mail-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}
.mail-hero-actions .button {
    gap: 8px;
}
.mail-notice {
    margin-top: -6px;
}
.mail-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.mail-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 94px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.mail-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 17px;
}
.mail-stat-card span:not(.mail-stat-icon) {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.mail-stat-card strong {
    display: inline-block;
    margin-top: 3px;
    color: var(--ink);
    font-size: 34px;
    line-height: .98;
    letter-spacing: -0.06em;
}
.mail-stat-card small {
    display: inline-block;
    margin-left: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.mail-filter-card {
    padding: 18px;
}
.mail-filter-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.mail-filter-head h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.03em;
}
.mail-filters {
    display: grid !important;
    grid-template-columns: minmax(320px, 1.45fr) minmax(190px, .62fr) minmax(190px, .62fr) !important;
    gap: 10px;
    align-items: center;
    width: 100%;
}
.mail-search-field {
    position: relative;
    min-width: 0;
}
.mail-search-field > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-2);
    pointer-events: none;
    font-size: 14px;
}
.mail-search-field input[type="search"] {
    width: 100%;
    padding-left: 42px;
}
.mail-filters input[type="search"],
.mail-filters select {
    min-height: 48px;
    width: 100%;
    border-radius: 14px;
    background: var(--surface);
}
.mail-empty-state {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 12px;
    padding: 54px 24px;
    border-style: dashed;
}
.mail-empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 23px;
}
.mail-empty-state h2 {
    margin: 4px 0 0;
    font-size: 26px;
    letter-spacing: -0.04em;
}
.mail-empty-state p {
    margin: 0;
    max-width: 560px;
    color: var(--muted);
    font-weight: 700;
}
.centered-actions {
    justify-content: center;
}
.polished-mail-table table {
    min-width: 1040px;
}
.polished-mail-table th {
    height: 48px;
}
.polished-mail-table td {
    padding-top: 16px;
    padding-bottom: 16px;
}
.mail-conversation-cell,
.mail-person-cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.mail-thread-dot {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--muted);
}
.mail-conversation-cell .row-title,
.mail-person-cell strong,
.muted-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 360px;
}
.mail-conversation-cell .row-subtitle {
    max-width: 460px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mail-avatar {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 900;
    font-size: 13px;
}
.mail-person-cell .row-subtitle {
    margin-top: 0;
}
.mail-date {
    color: var(--muted);
    font-weight: 750;
    white-space: nowrap;
}
@media (max-width: 1180px) {
    .mail-hero {
        align-items: flex-start;
        flex-direction: column;
    }
    .mail-hero-actions {
        justify-content: flex-start;
    }
    .mail-filters {
        grid-template-columns: 1fr 1fr !important;
    }
    .mail-search-field {
        grid-column: 1 / -1;
    }
}
@media (max-width: 940px) {
    .mail-stat-grid {
        grid-template-columns: 1fr;
    }
    .mail-filter-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
@media (max-width: 680px) {
    .mail-hero,
    .mail-filter-card,
    .mail-stat-card {
        padding: 16px;
    }
    .mail-hero-main {
        flex-direction: column;
    }
    .mail-hero-actions,
    .mail-hero-actions .button,
    .centered-actions .button {
        width: 100%;
        justify-content: center;
    }
    .mail-filters {
        grid-template-columns: 1fr !important;
    }
    .mail-search-field {
        grid-column: auto;
    }
    .mail-stat-card small {
        display: block;
        margin: 4px 0 0;
    }
}


/* Hotfix: mail filter search icon spacing.
   The icon was positioned correctly, but the input padding could be overwritten by generic form rules. */
.mail-filter-card .mail-search-field {
    position: relative !important;
}

.mail-filter-card .mail-search-field > i {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: var(--muted-2);
    pointer-events: none;
    font-size: 15px;
    line-height: 1;
}

.mail-filter-card .mail-search-field > input[type="search"],
.mail-filter-card .mail-search-field > input[data-list-search] {
    padding-left: 56px !important;
    padding-right: 16px !important;
    text-indent: 0 !important;
}

.mail-filter-card .mail-search-field > input[type="search"]::placeholder,
.mail-filter-card .mail-search-field > input[data-list-search]::placeholder {
    color: var(--muted);
    opacity: .78;
}

/* Address book module — clean replacement for the old contacts view */
.module-hero.address-book-hero,
.address-book-filter-card,
.address-book-form-card,
.address-book-profile-card,
.address-book-relations {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-lg);
}

.module-hero.address-book-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    margin-bottom: 16px;
}

.module-hero.address-book-hero h2 {
    margin: 0 0 6px;
    letter-spacing: -0.045em;
}

.module-hero.address-book-hero .row-subtitle {
    max-width: 820px;
    margin-top: 0;
}

.address-book-stats {
    margin-bottom: 16px;
}

.address-book-stats .stat.compact {
    min-height: 92px;
    padding: 18px;
}

.address-book-stats .stat.compact span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.address-book-stats .stat.compact strong {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    font-size: 34px;
    line-height: .95;
    letter-spacing: -0.06em;
}

.address-book-filter-card {
    padding: 18px;
    margin-bottom: 16px;
}

.address-book-filter-card .event-section-head {
    margin-bottom: 12px;
}

.address-book-filter-card h2 {
    font-size: 20px;
    margin: 0;
    letter-spacing: -0.035em;
}

.address-book-filters {
    display: grid !important;
    grid-template-columns: minmax(320px, 1.4fr) minmax(190px, .7fr) minmax(190px, .7fr) !important;
    gap: 10px;
    align-items: center;
}

.address-book-filters input[type="search"],
.address-book-filters select {
    width: 100%;
    min-height: 48px;
}

.address-book-table table {
    min-width: 1040px;
}

.address-book-table td {
    vertical-align: middle;
}

.address-book-table .contact-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 750;
}

.address-book-table .contact-lines span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.address-book-type {
    white-space: nowrap;
}

.address-book-form-card {
    padding: 20px;
}

.address-book-profile-grid {
    align-items: stretch;
}

.address-book-profile-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.contact-avatar {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 24px;
    font-weight: 900;
}

.address-book-profile-card h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.badge-row,
.contact-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.contact-quick-links .button {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.address-book-relations {
    padding: 18px;
}

.address-book-relations .event-section-head {
    margin-bottom: 12px;
}

@media (max-width: 1100px) {
    .address-book-filters {
        grid-template-columns: 1fr 1fr !important;
    }
    .address-book-filters input[type="search"] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .module-hero.address-book-hero {
        flex-direction: column;
        padding: 18px;
    }
    .module-hero.address-book-hero .actions,
    .module-hero.address-book-hero .button {
        width: 100%;
        justify-content: center;
    }
    .address-book-filters {
        grid-template-columns: 1fr !important;
    }
    .address-book-filters input[type="search"] {
        grid-column: auto;
    }
}

/* Unified list layout — every module list follows the same rhythm as Wydarzenia. */
.toolbar.list-toolbar > .actions {
  margin-top: 10px;
}

.mail-list-toolbar,
.address-book-list-toolbar,
.cards-list-toolbar {
  margin-bottom: 16px;
}

.mail-list-toolbar .mail-filters,
.address-book-list-toolbar .address-book-filters,
.cards-list-toolbar .cards-list-filters {
  display: grid !important;
  gap: 10px !important;
  align-items: center;
}

.mail-list-toolbar .mail-filters,
.address-book-list-toolbar .address-book-filters,
.cards-list-toolbar .cards-list-filters {
  grid-template-columns: minmax(280px, 1.35fr) minmax(180px, .75fr) minmax(180px, .75fr) !important;
}

.mail-list-toolbar input[type="search"],
.address-book-list-toolbar input[type="search"],
.cards-list-toolbar input[type="search"],
.mail-list-toolbar select,
.address-book-list-toolbar select,
.cards-list-toolbar select {
  min-height: 46px !important;
  border-radius: 14px !important;
}

.mail-list-toolbar + .alert,
.mail-list-toolbar + .secondary-alert {
  margin-top: -2px;
  margin-bottom: 16px;
}

.secondary-alert {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.list-no-results-row td {
  padding: 28px 18px !important;
  text-align: center;
  color: var(--muted);
  font-weight: 750;
}

.list-no-results-row:hover td {
  background: transparent !important;
}

.address-book-table .contact-lines {
  display: grid;
  gap: 3px;
}

.mail-table table,
.address-book-table table {
  min-width: 1040px;
}

@media (max-width: 1100px) {
  .mail-list-toolbar .mail-filters,
  .address-book-list-toolbar .address-book-filters,
  .cards-list-toolbar .cards-list-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .mail-list-toolbar .mail-filters,
  .address-book-list-toolbar .address-book-filters,
  .cards-list-toolbar .cards-list-filters {
    grid-template-columns: 1fr !important;
  }
}

/* Unified page hero */
.topbar {
    min-height: var(--topbar-height);
}

.topbar-left {
    flex: 0 0 auto;
}

.topbar-title,
.cs-hr-title {
    display: none !important;
}

.topbar-actions {
    margin-left: auto;
}

.page-hero {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 18px;
}

.page-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-strong);
    border: 1px solid var(--line);
    font-size: 22px;
}

.page-hero-copy {
    min-width: 0;
}

.page-hero-copy .eyebrow {
    margin: 0 0 8px;
    color: var(--accent-strong);
}

.page-hero-copy h1 {
    margin: 0;
    font-size: clamp(28px, 2.4vw, 42px);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.page-hero-copy p:not(.eyebrow) {
    margin: 8px 0 0;
    max-width: 860px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 680;
}

.unified-page-hero + .toolbar.list-toolbar {
    margin-top: 0;
}

.table-wrap .list-no-results-row[data-list-static-empty] td {
    padding: 28px 18px;
    text-align: center;
    color: var(--muted);
    font-weight: 780;
    background: var(--surface-2);
}

.table-wrap .list-no-results-row[data-list-static-empty] td:first-child {
    border-radius: 0;
}

@media (max-width: 1180px) {
    .search.topbar-search {
        display: flex;
        width: min(360px, 42vw);
        min-width: 220px;
    }
}

@media (max-width: 940px) {
    .page-hero {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 18px;
        gap: 14px;
    }
    .page-hero-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 19px;
    }
    .page-hero-copy h1 {
        font-size: clamp(24px, 6vw, 34px);
    }
    .search.topbar-search {
        display: none;
    }
}

@media (max-width: 620px) {
    .page-hero {
        grid-template-columns: 1fr;
    }
    .page-hero-icon {
        width: 44px;
        height: 44px;
    }
}

/* Unified hero cleanup: the page hero is now the only page title.
   Old per-view title toolbars stay only as action rows/controls. */
.content > .unified-page-hero + .toolbar:not(.list-toolbar) {
    justify-content: flex-end;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 0;
    margin-top: -8px;
}

.content > .unified-page-hero + .toolbar:not(.list-toolbar) > div:first-child {
    display: none !important;
}

.content > .unified-page-hero + .toolbar:not(.list-toolbar) > .actions,
.content > .unified-page-hero + .toolbar:not(.list-toolbar) > a.button,
.content > .unified-page-hero + .toolbar:not(.list-toolbar) > .button {
    margin-left: auto;
}

.content > .unified-page-hero + .toolbar:not(.list-toolbar):not(:has(.actions)):not(:has(a.button)):not(:has(button)) {
    display: none !important;
}

.content > .unified-page-hero + .module-hero {
    justify-content: flex-end;
    background: transparent;
    border: 0;
    padding: 0;
    margin-top: -8px;
}

.content > .unified-page-hero + .module-hero > div:first-child {
    display: none !important;
}

.content > .unified-page-hero + .module-hero > .actions {
    margin-left: auto;
}

.content > .unified-page-hero + .calendar-head-readable {
    background: transparent;
    border: 0;
    padding: 0;
    margin-top: -8px;
}

.content > .unified-page-hero + .calendar-head-readable .calendar-heading-block {
    display: none !important;
}

.content > .unified-page-hero + .calendar-head-readable .calendar-toolbar {
    width: 100%;
}

@media (max-width: 760px) {
    .content > .unified-page-hero + .toolbar:not(.list-toolbar),
    .content > .unified-page-hero + .module-hero,
    .content > .unified-page-hero + .calendar-head-readable {
        margin-top: -4px;
    }

    .content > .unified-page-hero + .toolbar:not(.list-toolbar) > .actions,
    .content > .unified-page-hero + .toolbar:not(.list-toolbar) > a.button,
    .content > .unified-page-hero + .toolbar:not(.list-toolbar) > .button,
    .content > .unified-page-hero + .module-hero > .actions {
        width: 100%;
    }
}

/* List action rows — action buttons belong on the right side, under the filter bar. */
.toolbar.list-toolbar > .actions,
.toolbar.list-toolbar > .button-group,
.toolbar.list-toolbar > .inline-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 12px;
}

.toolbar.list-toolbar > .actions:empty,
.toolbar.list-toolbar > .button-group:empty,
.toolbar.list-toolbar > .inline-actions:empty {
    display: none;
}

@media (max-width: 640px) {
    .toolbar.list-toolbar > .actions,
    .toolbar.list-toolbar > .button-group,
    .toolbar.list-toolbar > .inline-actions {
        justify-content: stretch;
    }

    .toolbar.list-toolbar > .actions .button,
    .toolbar.list-toolbar > .button-group .button,
    .toolbar.list-toolbar > .inline-actions .button {
        width: 100%;
        justify-content: center;
    }
}


/* Topbar cleanup: global search and fake universal add removed; actions stay only for real controls */
.topbar-actions { justify-content: flex-end; }
.topbar-search,
[data-global-search],
.topbar-actions > a[href*="m=events&v=add"].keep-mobile { display: none !important; }

/* Events list: simplified columns requested for the main events table */
.events-list-table-wrap {
    overflow-x: visible;
}

.events-list-table {
    min-width: 0 !important;
}

.events-list-table th:nth-child(1) { width: 44%; }
.events-list-table th:nth-child(2) { width: 18%; }
.events-list-table th:nth-child(3) { width: 18%; }
.events-list-table th:nth-child(4) { width: 12%; }
.events-list-table th:nth-child(5) { width: 8%; }

.row-inline-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.row-inline-meta .badge,
.row-inline-meta .role {
    min-height: 26px;
    padding: 4px 9px;
    font-size: 12px;
}

.mini-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

a.mini-meta:hover,
a.mini-meta:focus-visible {
    border-color: var(--line-strong);
    color: var(--dark);
}

.nowrap {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .events-list-table-wrap {
        overflow-x: auto;
    }
    .events-list-table {
        min-width: 760px !important;
    }
}

/* Event cards list: simplified columns — Karta, Wydarzenie, Status, Kompletność, Akcje */
.event-cards-table-wrap {
    overflow-x: visible;
}

.event-cards-table {
    min-width: 0 !important;
}

.event-cards-table th:nth-child(1) { width: 24%; }
.event-cards-table th:nth-child(2) { width: 38%; }
.event-cards-table th:nth-child(3) { width: 14%; }
.event-cards-table th:nth-child(4) { width: 14%; }
.event-cards-table th:nth-child(5) { width: 10%; }

.event-cards-table .progress {
    max-width: 190px;
}

@media (max-width: 900px) {
    .event-cards-table-wrap {
        overflow-x: auto;
    }

    .event-cards-table {
        min-width: 720px !important;
    }
}

/* Settings users list — keep it in the same rhythm as other list views. */
.users-list-toolbar {
    margin-bottom: 16px;
}

.users-list-toolbar .users-list-filters {
    display: grid !important;
    grid-template-columns: minmax(280px, 1.35fr) minmax(180px, .75fr) minmax(180px, .75fr) !important;
    gap: 10px !important;
    align-items: center;
}

.users-list-toolbar input[type="search"],
.users-list-toolbar select {
    min-height: 46px !important;
    border-radius: 14px !important;
}

.users-table-wrap .actions {
    justify-content: flex-start;
    flex-wrap: nowrap;
}

@media (max-width: 1100px) {
    .users-list-toolbar .users-list-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .users-list-toolbar .users-list-filters {
        grid-template-columns: 1fr !important;
    }
    .users-table-wrap .actions {
        flex-wrap: wrap;
    }
}


/* Settings form polish — organization page */
.settings-form-card {
    padding: 0;
    overflow: hidden;
}

.settings-form {
    display: grid;
    gap: 0;
}

.settings-section {
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.settings-section:last-of-type {
    border-bottom: 0;
}

.settings-section-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.settings-section-icon {
    width: 54px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 21px;
}

.settings-section-head h3 {
    margin: 2px 0 4px;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.settings-section-head p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-weight: 680;
    line-height: 1.45;
    max-width: 860px;
}

.settings-grid {
    gap: 16px;
}

.branding-settings-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.brand-upload-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-2);
    padding: 16px;
    display: grid;
    gap: 13px;
    min-height: 100%;
}

.brand-upload-copy {
    display: grid;
    gap: 5px;
}

.brand-upload-copy label {
    font-size: 13px;
    font-weight: 860;
    color: var(--ink-soft);
}

.brand-upload-copy small {
    color: var(--muted);
    font-weight: 680;
    line-height: 1.45;
}

.brand-upload-panel input[type="file"] {
    width: 100%;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
    padding: 10px;
    color: var(--muted);
    font-weight: 720;
}

.brand-upload-panel input[type="file"]::file-selector-button {
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--ink);
    color: var(--surface);
    min-height: 36px;
    padding: 0 12px;
    margin-right: 10px;
    font-weight: 850;
    cursor: pointer;
}

.brand-preview {
    display: grid;
    gap: 8px;
}

.brand-preview span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
}

.brand-preview img {
    display: block;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    padding: 10px;
}

.brand-preview-logo img {
    width: 132px;
    height: 132px;
    object-fit: contain;
}

.brand-preview-cover img {
    width: 100%;
    height: min(260px, 22vw);
    min-height: 150px;
    object-fit: cover;
}

.compact-check {
    width: max-content;
    max-width: 100%;
    padding-inline: 12px;
    background: var(--surface);
}

.settings-form-actions {
    padding: 18px 24px 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
}

.organization-settings-card textarea {
    min-height: 100px;
    resize: vertical;
}

@media (max-width: 980px) {
    .branding-settings-grid {
        grid-template-columns: 1fr;
    }

    .brand-preview-cover img {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .settings-section {
        padding: 18px;
    }

    .settings-section-head {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .settings-section-icon {
        width: 48px;
        height: 48px;
    }

    .settings-form-actions {
        padding: 16px 18px 18px;
    }

    .settings-form-actions .button {
        width: 100%;
        justify-content: center;
    }
}

/* Contractors module follows the unified list rhythm. */
.contractors-list-toolbar { margin-bottom: 16px; }
.contractors-list-toolbar .contractors-filters {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.35fr) minmax(180px, .75fr) minmax(180px, .75fr) !important;
  gap: 10px !important;
  align-items: center;
}
.contractors-list-toolbar input[type="search"],
.contractors-list-toolbar select {
  min-height: 46px !important;
  border-radius: 14px !important;
}
.contractor-profile-card { display: grid; gap: 12px; align-content: start; }
@media (max-width: 980px) {
  .contractors-list-toolbar .contractors-filters { grid-template-columns: 1fr !important; }
}

/* Relation picker — contractors, coordinators and lead technicians */
.relation-picker-field {
    position: relative;
}

.relation-picker-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    position: relative;
}

.relation-picker-control .relation-picker-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    z-index: 1;
    pointer-events: none;
}

.relation-picker-control input[type="search"] {
    padding-left: 42px;
}

.relation-picker-open,
.relation-picker-clear {
    white-space: nowrap;
}

.relation-picker-clear {
    min-width: 46px;
    padding-inline: 0;
    justify-content: center;
}

.relation-picker-selected {
    min-height: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 820;
    width: max-content;
    max-width: 100%;
}

.relation-picker-field.has-selection .relation-picker-selected {
    background: var(--accent-soft);
    color: var(--accent-strong);
    border-color: color-mix(in srgb, var(--accent-strong) 28%, var(--line));
}

.relation-picker-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    padding: 6px;
    display: grid;
    gap: 4px;
    max-height: 320px;
    overflow: auto;
}

.relation-picker-item {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    padding: 10px 11px;
    display: grid;
    gap: 3px;
    cursor: pointer;
}

.relation-picker-item:hover,
.relation-picker-item:focus-visible {
    outline: 0;
    background: var(--accent-soft);
}

.relation-picker-item strong {
    font-size: 14px;
    font-weight: 900;
}

.relation-picker-item span,
.relation-picker-item small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}

.relation-picker-item span:empty,
.relation-picker-item small:empty {
    display: none;
}

.relation-picker-empty {
    padding: 16px;
    color: var(--muted);
    font-weight: 760;
    text-align: center;
}

.relation-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(15, 18, 22, .42);
    display: grid;
    place-items: center;
    padding: 22px;
}

.relation-modal {
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
}

.relation-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--line);
}

.relation-modal-head h3 {
    margin: 2px 0 0;
    font-size: 24px;
    letter-spacing: -.04em;
}

.relation-modal-search {
    position: relative;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.relation-modal-search i {
    position: absolute;
    left: 34px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.relation-modal-search input {
    padding-left: 42px;
}

.relation-modal-list {
    padding: 8px;
    overflow: auto;
    display: grid;
    gap: 4px;
}

@media (max-width: 720px) {
    .relation-picker-control {
        grid-template-columns: minmax(0, 1fr);
    }
    .relation-picker-open,
    .relation-picker-clear {
        width: 100%;
        justify-content: center;
    }
}

/* Relation picker polish — clean labels, tooltip help, safe icon spacing */
.relation-picker-field > label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
}

.field-info {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    cursor: help;
}

.field-info::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: max-content;
    max-width: 320px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--ink);
    color: var(--surface);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 760;
    text-transform: none;
    letter-spacing: 0;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 80;
}

.field-info::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 5px);
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    z-index: 79;
}

.field-info:hover::after,
.field-info:focus-visible::after,
.field-info:hover::before,
.field-info:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.relation-picker-control {
    isolation: isolate;
}

.relation-picker-control .relation-picker-icon {
    left: 16px !important;
    width: 22px;
    display: grid;
    place-items: center;
    font-size: 15px;
    z-index: 3;
}

.relation-picker-control input[type="search"] {
    padding-left: 56px !important;
    box-sizing: border-box;
}

.relation-picker-selected,
.relation-picker-field > small {
    display: none !important;
}

@media (max-width: 720px) {
    .field-info::after {
        left: 0;
        transform: none;
        max-width: min(300px, calc(100vw - 48px));
    }
    .field-info::before {
        left: 8px;
        transform: rotate(45deg);
    }
}


/* Documents module */
.documents-list-toolbar .documents-list-filters {
    grid-template-columns: minmax(280px, 1.3fr) repeat(3, minmax(180px, .7fr));
}

.documents-summary-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin: -4px 0 18px;
    color: var(--muted);
    font-weight: 760;
    font-size: 13px;
}

.documents-summary-line span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    padding: 0 12px;
}

.documents-summary-line strong {
    color: var(--ink);
    font-size: 15px;
}

.documents-table .row-subtitle .badge {
    margin-right: 6px;
}

.documents-form-card .alert.soft-alert {
    margin-top: 14px;
}

@media (max-width: 1180px) {
    .documents-list-toolbar .documents-list-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .documents-list-toolbar .documents-list-filters {
        grid-template-columns: 1fr;
    }

    .documents-summary-line {
        justify-content: stretch;
    }

    .documents-summary-line span {
        width: 100%;
        justify-content: space-between;
    }
}

/* Notes + tasks modules */
.internal-notes-filters,
.tasks-filters{
    grid-template-columns:minmax(280px,1.3fr) repeat(3,minmax(180px,.7fr));
}
.list-summary-line{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:-4px 0 18px;
    color:var(--muted);
    font-size:13px;
    font-weight:800;
}
.list-summary-line span{
    border:1px solid var(--line);
    background:var(--surface);
    border-radius:999px;
    min-height:32px;
    padding:7px 11px;
    display:inline-flex;
    align-items:center;
}
.note-body-readable{
    color:var(--ink);
    line-height:1.65;
    font-weight:620;
}
.progress-mini{
    display:block;
    width:112px;
    max-width:100%;
    height:8px;
    border-radius:999px;
    background:var(--surface-3);
    overflow:hidden;
}
.progress-mini i{
    display:block;
    height:100%;
    background:var(--accent-strong);
    border-radius:inherit;
}
.checklist-view{
    display:grid;
    gap:8px;
}
.checklist-row{
    display:grid;
    grid-template-columns:34px minmax(0,1fr);
    gap:10px;
    align-items:center;
    border:1px solid var(--line);
    background:var(--surface-2);
    border-radius:14px;
    padding:10px 12px;
}
.checklist-row span{
    width:30px;
    height:30px;
    border-radius:10px;
    display:grid;
    place-items:center;
    background:var(--surface);
    color:var(--muted);
    font-weight:900;
}
.checklist-row.is-done strong{
    color:var(--muted);
    text-decoration:line-through;
}
.checklist-row.is-done span{
    color:var(--accent-strong);
}
.switch-field{
    justify-content:end;
}
@media (max-width:1180px){
    .internal-notes-filters,
    .tasks-filters{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:720px){
    .internal-notes-filters,
    .tasks-filters{grid-template-columns:1fr;}
    .progress-mini{width:100%;}
}

/* Reports module */
.reports-filter-toolbar .reports-filters{
    grid-template-columns:repeat(4,minmax(150px,1fr));
}
.reports-summary{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    padding:20px 22px;
}
.reports-summary h2{margin:2px 0 4px;font-size:clamp(24px,3vw,38px);letter-spacing:-.055em;line-height:1.02;}
.report-pill-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.report-metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
.report-metric{min-height:128px;display:grid;align-content:center;gap:8px;}
.report-metric span,.report-mini-grid span{font-size:12px;font-weight:920;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);}
.report-metric strong{font-size:42px;line-height:.95;letter-spacing:-.06em;color:var(--ink);}
.report-metric small,.report-mini-grid small{color:var(--muted);font-weight:760;}
.reports-grid{align-items:start;}
.report-card{display:grid;gap:16px;}
.reports-table .row-subtitle{margin-top:4px;}
.report-progress{height:10px;border-radius:999px;background:var(--surface-3);overflow:hidden;min-width:120px;}
.report-progress i{display:block;height:100%;width:var(--report-bar,0%);border-radius:inherit;background:var(--accent-strong);}
.report-progress.large{height:14px;min-width:100%;}
.report-bars{display:grid;gap:13px;}
.report-bar-row{display:grid;grid-template-columns:minmax(130px,.9fr) minmax(120px,1.2fr) 42px;align-items:center;gap:12px;}
.report-bar-row span{font-weight:820;color:var(--ink-soft);}
.report-bar-row strong{text-align:right;}
.report-separator{height:1px;background:var(--line);}
.report-task-box{display:grid;grid-template-columns:minmax(160px,.9fr) minmax(0,1fr);gap:16px;align-items:center;}
.report-big-percent{border:1px solid var(--line);border-radius:18px;background:var(--surface-2);padding:18px;display:grid;gap:4px;}
.report-big-percent strong{font-size:44px;line-height:.95;letter-spacing:-.06em;}
.report-big-percent span{color:var(--muted);font-weight:820;}
.report-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.report-mini-grid>div{border:1px solid var(--line);border-radius:16px;background:var(--surface-2);padding:16px;display:grid;gap:5px;}
.report-mini-grid strong{font-size:30px;line-height:1;letter-spacing:-.05em;}
@media (max-width:1180px){
    .report-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .reports-filter-toolbar .reports-filters{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:760px){
    .reports-summary{align-items:flex-start;flex-direction:column;}
    .report-pill-row{justify-content:flex-start;}
    .report-metrics-grid,.reports-filter-toolbar .reports-filters,.report-task-box,.report-mini-grid{grid-template-columns:1fr;}
    .report-bar-row{grid-template-columns:1fr;gap:6px;}
    .report-bar-row strong{text-align:left;}
}
@media print{
    .sidebar,.topbar,.reports-filter-toolbar,.no-print{display:none!important;}
    .app-shell{display:block;}
    .content{padding:0!important;}
    .card{break-inside:avoid;}
}


/* Finance module */
.finance-list-toolbar .finance-filters {
    grid-template-columns: minmax(280px, 1.2fr) repeat(3, minmax(180px, .8fr));
}

.finance-summary-line {
    margin-bottom: 18px;
}

.finance-table strong {
    font-weight: 900;
}

.finance-form-card input[inputmode="decimal"] {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1180px) {
    .finance-list-toolbar .finance-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .finance-list-toolbar .finance-filters {
        grid-template-columns: 1fr;
    }
}

/* Event add/edit form polish */
.form-toolbar.event-form-toolbar {
    margin-bottom: 14px;
}

.event-editor-card {
    padding: 0;
    overflow: visible;
}

.event-main-form {
    display: grid;
    gap: 0;
}

.event-form-note {
    margin: 20px 20px 0;
    border: 1px solid color-mix(in srgb, var(--info) 22%, var(--line));
    background: var(--info-bg);
    color: var(--info);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 780;
    line-height: 1.45;
}

.event-form-note i {
    margin-top: 3px;
    flex: 0 0 auto;
}

.event-form-note.inline-note {
    margin: 0;
}

.event-form-section {
    padding: 22px 20px;
    border-bottom: 1px solid var(--line);
}

.event-form-note + .event-form-section {
    padding-top: 20px;
}

.event-form-section:last-of-type {
    border-bottom: 0;
}

.event-form-section-head {
    margin-bottom: 16px;
}

.event-form-section-head h3 {
    margin: 2px 0 0;
    font-size: 22px;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.event-editor-card .form-grid {
    gap: 16px;
}

.event-editor-card .field.full,
.event-recurrence-grid > .field.full,
.event-recurrence-grid > .recurrence-weekly,
.event-recurrence-grid > .recurrence-custom[data-frequency-box="custom"] {
    grid-column: 1 / -1;
}

.event-editor-card .relation-picker {
    min-width: 0;
}

.event-form-actions {
    margin: 0;
    padding: 18px 20px 20px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .form-toolbar.event-form-toolbar {
        align-items: stretch;
    }

    .form-toolbar.event-form-toolbar .actions,
    .event-form-actions {
        width: 100%;
    }

    .event-form-actions .button,
    .form-toolbar.event-form-toolbar .button {
        width: 100%;
        justify-content: center;
    }

    .event-form-section,
    .event-form-actions {
        padding-left: 16px;
        padding-right: 16px;
    }

    .event-form-note {
        margin-left: 16px;
        margin-right: 16px;
    }
}


/* Relation picker modal search — icon/text spacing fix */
.relation-modal-search {
    position: relative;
}

.relation-modal-search i {
    left: 40px !important;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 2;
}

.relation-modal-search input,
.relation-modal-search input[type="search"] {
    width: 100%;
    box-sizing: border-box;
    padding-left: 60px !important;
}

.relation-modal-search input::placeholder {
    color: var(--muted-2);
}


/* Sidebar branding cleanup */
.sidebar .brand.brand-image {
    align-self: center !important;
    justify-content: center;
    width: 100%;
    margin: 0 0 18px !important;
}

.sidebar .brand-logo-wrap {
    width: min(210px, 84%) !important;
}

.sidebar .brand-logo {
    object-position: center center !important;
}

.sidebar-app-profile {
    padding: 8px 0 20px !important;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.sidebar-app-logo {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 10px solid rgba(255,255,255,.08);
    outline: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
}

.sidebar-app-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.sidebar-app-logo span {
    color: #161616;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -.05em;
}

.sidebar-app-profile h1 {
    margin: 4px 0 0 !important;
    max-width: 220px;
    color: #fff;
    font-size: 22px !important;
    font-weight: 920;
    letter-spacing: -.055em !important;
    line-height: 1.05 !important;
    text-align: center;
}

.sidebar-app-profile p {
    margin: 0 !important;
    max-width: 220px;
    color: var(--sidebar-muted);
    font-size: 13px !important;
    font-weight: 760 !important;
    line-height: 1.35;
    text-align: center;
}

.sidebar-app-profile .side-meta {
    display: none !important;
}


/* Sidebar profile photo restore */
.sidebar-app-profile .avatar-wrap {
    width: 108px !important;
    height: 108px !important;
    margin: 0 auto 10px !important;
    position: relative;
    display: block;
}

.sidebar-app-profile .avatar-wrap .status-dot {
    display: block;
}

.sidebar-app-profile .avatar-wrap .avatar,
.sidebar-app-profile .avatar-wrap img,
.sidebar-app-profile .avatar-wrap .user-avatar {
    border-radius: inherit;
}

.sidebar-app-profile .sidebar-app-logo {
    display: none !important;
}


/* Sidebar avatar hard fix — keep profile photo circular */
.sidebar-app-profile .avatar-wrap {
    width: 108px !important;
    height: 108px !important;
    margin: 0 auto 10px !important;
    position: relative !important;
    display: block !important;
}

.sidebar-app-profile .avatar-wrap .avatar {
    width: 108px !important;
    height: 108px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: grid !important;
    place-items: center !important;
    box-sizing: border-box !important;
    border: 10px solid var(--sidebar-2) !important;
    background: #fff !important;
}

.sidebar-app-profile .avatar-wrap .avatar img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
}

.sidebar-app-profile .avatar-wrap .status-dot {
    display: block !important;
    position: absolute !important;
    right: 2px !important;
    top: 10px !important;
    z-index: 4 !important;
}


/* app-sale-manager-v1.3 — installer layout fix */
.install-page {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
}

.install-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 46px;
    display: grid;
    gap: 18px;
}

.install-hero {
    border-radius: 28px;
    background: var(--sidebar);
    color: #fff;
    padding: 30px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.install-hero .logo-mark {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #151515;
    font-weight: 950;
    font-size: 22px;
    letter-spacing: -.06em;
}

.install-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: .95;
    letter-spacing: -.07em;
}

.install-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 12px 0 0;
    color: rgba(255,255,255,.68);
    font-size: 17px;
    line-height: 1.45;
}

.install-card {
    padding: 24px;
}

.install-card .toolbar,
.install-section-title {
    margin-top: 22px;
}

.install-card .toolbar:first-child,
.install-section-title:first-child {
    margin-top: 0;
}

.install-card .alert {
    margin-bottom: 18px;
}

.install-card ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.install-form {
    display: grid;
    gap: 0;
}

.install-checkbox {
    align-content: start;
    border-radius: 16px;
    background: var(--surface-2);
    padding: 14px;
}

.install-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.3;
}

.install-checkbox input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 1px;
}

.install-checkbox small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.35;
}

.requirements-table table {
    min-width: 0;
}

.requirements-table td:last-child {
    width: 120px;
    text-align: right;
}

.install-card code {
    border-radius: 8px;
    padding: 2px 6px;
    background: var(--surface-2);
    color: var(--accent);
    font-weight: 850;
}

@media (max-width: 720px) {
    .install-shell {
        width: min(100% - 24px, 1120px);
        padding: 16px 0 28px;
    }

    .install-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .install-card {
        padding: 16px;
    }
}
