[hidden]{display:none!important}
body{font-size:16px}
.eyebrow{font-size:12px}
.nav-item{padding:10px 11px;font-size:14px}
.nav-count,.profile-card span,.task-meta,.pill,.tag,.day-num,.calendar-weekdays span,.form-group label,.field span,.flow-step span,.column-title strong,.link-btn,.btn.small,.entity-card p,td{font-size:14px}
.profile-card strong{font-size:14px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.content{max-width:none;padding-bottom:30px}
.main-area{min-width:0}
.sidebar{overflow-y:auto}
.topbar{padding:0 22px;flex-wrap:nowrap}
.topbar-left{flex:1;min-width:140px}
.search-wrap{width:100%;max-width:560px}
.topbar-right{flex-shrink:0}
.topbar-right #logoutBtn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;font-size:14px;white-space:nowrap}
.sync-status{font-size:12px;color:var(--teal);max-width:160px}
.sync-status[data-error="true"]{color:#ff9bad}
.workspace-loading{min-height:100vh;display:grid;place-items:center;color:var(--muted);font-size:18px}
.metrics-grid{gap:14px}
.activity-item{grid-template-columns:auto minmax(0,1fr);padding:12px}
.activity-item>.tag{display:none}
.activity-item p{white-space:normal;line-height:1.4}
.activity-item small{font-size:12px}
.mini-item{grid-template-columns:auto minmax(0,1fr) auto;font-size:14px}
.task-card h4{font-size:16px;word-break:break-word}
.task-meta{font-size:13px;line-height:1.4;flex-wrap:wrap}
.avatar-sm{font-size:12px}
.flow-step{min-width:100px}
.kanban-board{grid-template-columns:repeat(4,minmax(240px,1fr))}
.kanban-column{min-height:calc(100vh - 225px)}
.kanban-list{min-height:calc(100vh - 285px)}
.settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.management-panel{min-width:0}
.management-panel>.btn{margin:14px 6px 0 0}
.access-panel{grid-column:1/-1}
.access-list,.audit-list{display:grid;gap:10px;margin-top:16px}
.access-row{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:14px;border:1px solid var(--line);border-radius:12px;flex-wrap:wrap}
.access-row>div{display:grid;gap:3px}
.access-actions{display:flex!important;flex-direction:row;gap:8px}
.access-row small{font-size:14px;color:var(--muted)}
.audit-list{max-height:330px;overflow:auto}
.audit-row{padding:10px 12px;border-bottom:1px solid var(--line);font-size:14px;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}
.audit-row time{color:var(--muted);font-size:12px}
.credential-notice{padding:12px;border:1px solid rgba(45,212,191,.25);border-radius:10px;color:var(--muted);line-height:1.5}
.auth-page{background:var(--bg);min-height:100dvh}
.auth-layout{min-height:100dvh;display:grid;grid-template-columns:1.1fr 1fr;max-width:1500px;margin:0 auto;padding:clamp(24px,5vw,90px);gap:clamp(32px,7vw,120px);align-items:center}
.auth-context{display:flex;flex-direction:column;min-height:500px;justify-content:space-between}
.auth-brand{width:200px;height:auto}
.auth-intro h1{font-size:clamp(38px,4.8vw,64px);line-height:1.08;letter-spacing:-.045em;margin:20px 0}
.auth-intro p{color:var(--muted);line-height:1.65;max-width:380px;font-size:18px}
.auth-flow{display:flex;gap:12px;align-items:center;color:var(--muted);font-size:14px}
.auth-flow i{height:2px;width:35px;background:linear-gradient(90deg,var(--blue),var(--teal))}
.auth-card{border:1px solid var(--line);border-radius:24px;padding:clamp(24px,3.5vw,44px);background:linear-gradient(140deg,var(--panel2),var(--panel));box-shadow:var(--shadow);max-width:520px;width:100%;justify-self:end}
.auth-card h2{font-size:28px;letter-spacing:-.025em;margin:12px 0}
.auth-card p{line-height:1.5}
.auth-card .input{min-height:48px;font-size:16px;width:100%}
.auth-card .field{margin:20px 0}
.auth-card .field span{font-size:14px;color:var(--text)}
.auth-submit{width:100%;min-height:48px;margin-top:8px;font-size:16px}
.auth-footer{font-size:13px;color:var(--muted);margin-top:25px}
.auth-error{border:1px solid rgba(251,113,133,.35);background:rgba(251,113,133,.08);color:#ffb1bf;padding:12px;border-radius:10px;font-size:14px;line-height:1.5}
button:disabled{opacity:.55;cursor:wait;transform:none!important}
:focus-visible{outline:2px solid #55e6ff;outline-offset:3px}
[data-theme="light"] .sidebar{background:#eef3fb}
[data-theme="light"] .brand-row{background:#07101f;border-radius:12px;padding:12px;margin-bottom:12px}
[data-theme="light"] .nav-item.active{color:#154d91}
[data-theme="light"] .topbar{background:rgba(248,250,252,.93)}
[data-theme="light"] .btn.ghost{color:var(--text)}
@media(min-width:1900px){.content{padding:30px 44px}.dashboard-grid{grid-template-columns:1.7fr 1fr}.metrics-grid{gap:20px}.kanban-board{gap:20px}}
@media(max-width:1250px){.sync-status{display:none}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar-right .btn.ghost{display:none}.kanban-board{grid-template-columns:repeat(2,minmax(240px,1fr))}.kanban-column,.kanban-list{min-height:350px}}
@media(max-width:860px){.topbar{padding:0 12px;gap:8px}.topbar-right{gap:4px}.settings-grid{grid-template-columns:1fr}.auth-layout{grid-template-columns:1fr;max-width:650px;gap:28px;padding:28px 20px}.auth-context{min-height:auto;gap:20px}.auth-intro,.auth-flow{display:none}.auth-brand{width:165px}.auth-card{justify-self:center}.access-row{align-items:flex-start}.access-actions{flex-wrap:wrap}.auth-card{padding:25px}.topbar-right #logoutBtn{display:inline-flex}}
@media(max-width:560px){.kanban-board{grid-template-columns:1fr;overflow:visible}.kanban-column,.kanban-list{min-height:120px}.mini-item{grid-template-columns:auto 1fr}.mini-item>strong{grid-column:2}.calendar-event{font-size:0}.column-title strong{font-size:14px}.flow-step{min-width:95px}.settings-grid{display:block}.settings-grid>.panel{margin-bottom:15px}.modal{max-height:92dvh}.form-actions{flex-wrap:wrap}.search-wrap{height:40px}.search-wrap input{font-size:14px}.page-head h1{font-size:27px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
