:root {
  --ink: #172c48;
  --muted: #65758c;
  --line: #e0e7f0;
  --bg: #f3f6fa;
  --white: #fff;
  --accent: #245cdb;
  --accent-soft: #edf3ff;
  --navy: #122b50;
  --green: #25755e;
  --orange: #9b6b22;
  --red: #b04452;
  --radius: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -1.15px; font-weight: 650; }
h2 { font-size: 17px; letter-spacing: -.35px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 600; }
svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: none; }
:where(button, a, input, select, textarea):focus-visible { outline: 3px solid #75a3f9; outline-offset: 4px; }
:where([hidden]) { display: none !important; }
::selection { background: #d8e6ff; color: #122b50; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 12px 18px; background: white; border-radius: 8px; z-index: 150; }
.skip-link:focus { top: 15px; }
.loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.loading-mark { width: 27px; height: 27px; border: 2px solid #d9e5f8; border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
.shell { display: grid; grid-template-columns: 234px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100dvh; background: var(--navy); padding: 34px 18px 20px; display: flex; flex-direction: column; color: #fff; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px; color: inherit; }
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: 11px; background: transparent; display: grid; place-items: center; color: #fff; overflow: hidden; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand strong { display: block; font-size: 16px; letter-spacing: 2px; font-weight: 650; }
.brand .eyebrow { display: block; color: #8ea5c6; font-size: 9px; letter-spacing: 1.45px; margin-top: 3px; }
.eyebrow { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.8px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 5px; margin-top: 43px; }
.nav-caption { padding: 0 15px; margin: 0 0 10px; font-size: 9px; font-weight: 600; letter-spacing: 1.6px; color: #7f99bd; text-transform: uppercase; }
.nav-caption.tools { margin-top: 27px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 9px; color: #b3c3dc; font-size: 12px; font-weight: 500; transition: color .2s, background .2s, transform .25s var(--ease); }
.nav a svg { width: 18px; height: 18px; opacity: .88; }
.nav a:hover { color: #fff; background: #1d395f; transform: translateX(2px); }
.nav a.active { background: #245cdb; color: #fff; box-shadow: 0 5px 15px #071e4233; }
.nav a.active:before { content: ""; position: absolute; left: -18px; width: 3px; height: 21px; background: #7eabff; border-radius: 0 3px 3px 0; }
.nav a span { flex: 1; }
.nav-count { min-width: 20px; padding: 1px 4px; border-radius: 4px; font-size: 10px; text-align: center; color: #fff; background: #ffffff24; }
.sidebar-bottom { margin-top: auto; padding-top: 38px; }
.connection { margin: 0 10px 20px; padding: 15px 0; border-top: 1px solid #ffffff15; border-bottom: 1px solid #ffffff15; font-size: 11px; color: #dce7f6; }
.connection strong { font-weight: 500; }
.connection small { display: block; margin: 6px 0 0 14px; font-size: 10px; color: #8fa6c7; }
.dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #70cbaa; margin-right: 8px; vertical-align: 1px; }
.dot.off { background: #e4b76c; }
.profile { display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.avatar { height: 34px; width: 34px; flex: none; border-radius: 10px; background: #29486e; color: #dbe9ff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.profile-info { flex: 1; min-width: 0; }
.profile-info strong { font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; }
.profile-info small { font-size: 10px; color: #8fa6c7; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 8px; border-radius: 8px; background: transparent; color: var(--muted); transition: background .2s, color .2s, transform .2s; }
.icon-button:hover { color: var(--accent); background: var(--accent-soft); }
.icon-button:active { transform: scale(.94); }
.profile .icon-button { color: #8fa6c7; }
.profile .icon-button:hover { background: #ffffff0c; color: #fff; }
.workspace { min-width: 0; }
.topbar { height: 77px; padding: 0 40px; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 11px; }
.breadcrumb svg { width: 16px; height: 16px; color: #8c9bb1; }
.breadcrumb .slash { color: #b6c1d2; }
.breadcrumb span:last-child { color: var(--ink); font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 17px; }
.pill { color: var(--muted); font-size: 10px; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 11px 17px; border-radius: 8px; font-size: 12px; font-weight: 550; line-height: 1.5; white-space: nowrap; transition: background .2s, box-shadow .2s, transform .25s var(--ease), border-color .2s; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); color: white; box-shadow: 0 3px 7px #245cdb12; }
.btn.primary:hover { background: #1b4fc7; box-shadow: 0 5px 15px #245cdb25; transform: translateY(-1px); }
.btn:active { transform: translateY(1px) !important; box-shadow: none; }
.btn.secondary { background: white; border: 1px solid #d8e1ed; color: var(--ink); }
.btn.secondary:hover { background: #f7faff; border-color: #9db6df; }
.btn.ghost { background: transparent; color: var(--accent); padding: 5px 0; box-shadow: none; font-size: 11px; }
.btn.ghost:hover svg { transform: translateX(3px); }
.btn svg { transition: transform .25s var(--ease); }
.btn.danger { background: #fff0f1; color: var(--red); }
.content { max-width: 1560px; margin: 0 auto; padding: 34px 40px 50px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 26px; }
.page-heading .eyebrow { margin-bottom: 10px; font-size: 9px; color: #7d8ca3; letter-spacing: 1.8px; }
p.sub { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.date { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 10px; white-space: nowrap; padding-bottom: 4px; }
.date svg { width: 14px; height: 14px; }
.overview-lead { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 290px; min-height: 218px; overflow: hidden; border-radius: 16px; color: white; background: #245cdb; margin-bottom: 26px; }
.lead-copy { position: relative; z-index: 1; padding: 30px 32px; }
.lead-copy .eyebrow { color: #c3d6ff; font-size: 9px; letter-spacing: 1.5px; display: flex; gap: 8px; align-items: center; }
.lead-copy .eyebrow i { width: 5px; height: 5px; background: #a4c4ff; border-radius: 50%; }
.lead-copy h2 { margin-top: 14px; font-size: 27px; font-weight: 550; letter-spacing: -.75px; line-height: 1.25; }
.lead-copy p { max-width: 420px; margin-top: 9px; font-size: 12px; color: #d2e1ff; line-height: 1.7; }
.lead-actions { display: flex; align-items: center; gap: 24px; margin-top: 21px; }
.btn.paper { background: #fff; color: #204fb7; padding: 10px 15px; box-shadow: 0 3px 10px #0c38991a; }
.btn.paper:hover { transform: translateY(-2px); background: #f1f6ff; }
.lead-actions a { color: #e3edff; display: flex; align-items: center; gap: 8px; font-size: 11px; }
.lead-actions a svg { width: 14px; height: 14px; transition: transform .25s; }
.lead-actions a:hover svg { transform: translateX(3px); }
.document-art { position: relative; min-height: 218px; isolation: isolate; }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(#ffffff0b 1px, transparent 1px), linear-gradient(90deg,#ffffff0b 1px,transparent 1px); background-size: 35px 35px; mask-image: linear-gradient(90deg,transparent,#000 40%); }
.art-circle { position: absolute; width: 210px; height: 210px; border: 1px solid #ffffff24; border-radius: 50%; top: 8px; right: 33px; }
.art-circle:after { content: ""; position: absolute; inset: 21px; border: 1px solid #ffffff1a; border-radius: 50%; }
.paper-sheet { position: absolute; width: 135px; height: 160px; border: 1px solid #ffffff40; border-radius: 7px; transform: rotate(12deg); top: 31px; right: 72px; background: #4f7ee3; }
.paper-sheet.front { background: #fff; color: #24426f; transform: rotate(-7deg); top: 27px; right: 90px; padding: 17px; box-shadow: 0 13px 32px #0c358f27; }
.paper-heading { font-size: 7px; font-weight: 650; letter-spacing: 1px; padding-bottom: 15px; border-bottom: 1px solid #e4ebf6; }
.paper-line { display: block; height: 4px; border-radius: 1px; background: #dbe6f7; margin-top: 10px; width: 100%; }
.paper-line.short { width: 64%; }
.paper-line.blue { background: #8aaceb; width: 77%; }
.paper-stamp { display: inline-flex; gap: 4px; align-items: center; border-radius: 4px; padding: 4px 6px; font-size: 6px; background: #edf5f0; color: #37745d; margin-top: 13px; }
.paper-stamp svg { width: 9px; height: 9px; }
.art-badge { position: absolute; right: 35px; bottom: 30px; display: flex; align-items: center; gap: 7px; color: #234573; background: white; padding: 10px 13px; box-shadow: 0 7px 18px #12398826; border-radius: 8px; font-size: 9px; transform: rotate(3deg); }
.art-badge svg { width: 14px; height: 14px; color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 13px; background: white; padding: 20px 0; margin-bottom: 28px; }
.stat { padding: 0 25px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); }
.stat-icon { color: #8aa0bf; }
.stat-icon svg { width: 16px; height: 16px; }
.stat-value { font-size: 31px; line-height: 1.2; font-weight: 550; letter-spacing: -1px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.stat:nth-child(3) .stat-value { color: var(--accent); }
.stat-note { margin-top: 4px; font-size: 9px; color: #8491a5; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 26px 0 16px; }
.section-title small { color: var(--muted); font-size: 11px; font-weight: 400; margin-left: 9px; }
.columns { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(275px,1fr); gap: 22px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-header { padding: 20px 23px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.panel-header h2 { font-size: 14px; }
.panel-header .eyebrow { display: block; font-size: 8px; letter-spacing: 1.4px; margin-bottom: 5px; color: #8b98ab; }
.panel-body { padding: 24px; }
.count-chip { font-size: 10px; background: #f1f5fb; color: #6b7e99; border-radius: 6px; padding: 3px 7px; min-width: 21px; text-align: center; }
.task-row { display: flex; align-items: center; gap: 13px; padding: 18px 23px; border-bottom: 1px solid #eaf0f6; cursor: pointer; color: var(--ink); text-align: left; background: white; width: 100%; transition: background .18s; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: #f7faff; }
.task-icon { width: 36px; height: 40px; flex: none; border: 1px solid #dce6f5; border-radius: 8px; display: grid; place-items: center; background: #f7faff; color: #5c80bb; }
.task-icon svg { width: 18px; height: 18px; }
.task-main { flex: 1; min-width: 0; }
.task-main strong { display: block; font-size: 11px; font-weight: 550; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.task-main small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
.task-row > svg { width: 14px; height: 14px; color: #92a2b8; transition: transform .25s, color .2s; }
.task-row:hover > svg { color: var(--accent); transform: translateX(4px); }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 4px 7px; font-size: 9px; white-space: nowrap; background: #f0f3f7; color: #62748d; line-height: 1.4; }
.badge.green { background: #edf6f1; color: var(--green); }
.badge.purple { color: #245cdb; background: #ecf2ff; }
.badge.orange { color: var(--orange); background: #fdf5e8; }
.badge.red { color: var(--red); background: #fbecf0; }
.quick-start .panel-header { border-bottom: 0; padding-bottom: 12px; }
.agents { display: flex; flex-direction: column; padding: 0 23px 9px; }
.agent-card { padding: 14px 0; display: grid; grid-template-columns: 32px minmax(0,1fr) 16px; gap: 11px; align-items: center; border-bottom: 1px solid #eaf0f6; background: transparent; text-align: left; color: var(--ink); width: 100%; }
.agent-card:last-child { border-bottom: 0; }
.agent-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; color: var(--accent); background: var(--accent-soft); border-radius: 9px; transition: background .2s, transform .3s var(--ease); }
.agent-avatar svg { width: 18px; height: 18px; }
.agent-card .agent-avatar { width: 32px; height: 32px; background: transparent; color: #6889bc; border: 1px solid #e2eaf6; border-radius: 8px; }
.agent-card h3 { font-size: 11px; font-weight: 550; }
.agent-card p { color: var(--muted); font-size: 9px; margin-top: 3px; }
.agent-card > svg { width: 14px; height: 14px; color: #9aaac0; transition: transform .3s var(--ease), color .2s; }
.agent-card:hover .agent-avatar { color: var(--accent); background: var(--accent-soft); transform: rotate(-5deg); }
.agent-card:hover > svg { color: var(--accent); transform: translateX(3px); }
.agent-card:hover h3 { color: var(--accent); }
.agent-foot { font-size: 10px; color: var(--muted); }
.workflow-strip { display: grid; grid-template-columns: 180px minmax(0,1fr); border: 1px solid var(--line); border-radius: var(--radius); background: white; margin-top: 22px; padding: 24px; gap: 24px; }
.workflow-label h2 { font-size: 13px; margin: 7px 0; }
.workflow-label p { font-size: 10px; color: var(--muted); line-height: 1.6; }
.flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.flow-step { position: relative; padding-top: 2px; }
.flow-step:not(:last-child):after { content: ""; position: absolute; top: 15px; left: 39px; right: 0; height: 1px; background: #e0e8f5; }
.step-number { position: relative; z-index: 1; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; color: #4775c8; background: #edf3ff; border: 1px solid #dce7fb; margin-bottom: 10px; }
.flow-step:last-child .step-number { color: var(--green); background: #edf6f1; border-color: #d8ece0; }
.flow-step strong { display: block; font-size: 10px; font-weight: 550; }
.flow-step p { font-size: 9px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.hint { font-size: 10px; color: var(--muted); padding: 15px 20px; background: #f8fafd; border-top: 1px solid var(--line); line-height: 1.7; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty > svg { width: 32px; height: 32px; color: #8ea8d1; margin-bottom: 15px; }
.empty h3 { font-size: 13px; color: #445c7b; margin-bottom: 8px; }
.empty p { max-width: 340px; margin: 0 auto 19px; font-size: 11px; line-height: 1.7; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; flex-wrap: wrap; font-size: 11px; }
.toolbar .search-box { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: white; border: 1px solid var(--line); border-radius: 9px; transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: #83a5e9; box-shadow: 0 0 0 3px #245cdb0b; }
.search-box input { width: 100%; border: 0; outline: none; padding: 13px 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #8a99ae; }
.search-box svg { color: #8298ba; width: 17px; height: 17px; }
.select { border: 1px solid var(--line); border-radius: 8px; padding: 12px 32px 12px 14px; background: white; color: var(--ink); font-size: 11px; }
.filter-tabs { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #eaf0f7; gap: 3px; overflow: auto; }
.filter-tabs button { background: transparent; padding: 8px 12px; border-radius: 6px; color: #61748f; font-size: 11px; white-space: nowrap; transition: color .2s, background .2s, box-shadow .2s; }
.filter-tabs button.active { background: white; color: var(--accent); box-shadow: 0 2px 5px #182e4f0b; }
.filter-tabs button:hover { color: var(--accent); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #f8fafd; padding: 14px 20px; font-size: 9px; font-weight: 550; color: #7b8ca4; white-space: nowrap; text-transform: uppercase; letter-spacing: .8px; }
td { padding: 18px 20px; font-size: 11px; border-top: 1px solid #e9eef5; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: #fbfcff; }
td small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
.table-wrap { overflow: auto; }
.filename { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.file-icon { display: grid; place-items: center; width: 34px; height: 39px; border-radius: 7px; border: 1px solid #dae5f7; color: #6a8bbf; background: #f8faff; flex: none; }
.file-icon svg { width: 18px; height: 18px; }
.row-actions { display: flex; justify-content: flex-end; gap: 3px; }
.row-actions svg { width: 16px; height: 16px; }
.search-results { display: flex; flex-direction: column; gap: 13px; }
.search-result { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 23px; }
.search-result > a { font-weight: 550; font-size: 12px; }
.search-result p { font-size: 12px; line-height: 1.8; color: #526984; margin-top: 14px; white-space: pre-wrap; }
.search-result .meta { font-size: 10px; color: var(--muted); margin-top: 7px; }
.agent-settings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.agent-settings .panel { transition: border-color .2s, box-shadow .25s; }
.agent-settings .panel:hover { border-color: #adc3e8; box-shadow: 0 6px 20px #17315b05; }
.agent-settings .panel-body { display: flex; gap: 18px; padding: 25px; }
.agent-settings p { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.75; }
.agent-settings h2 { font-size: 15px; }
.agent-index { display: block; margin-bottom: 6px; font-size: 9px; color: #8b9cb3; letter-spacing: 1px; }
.tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.token { font-size: 9px; padding: 5px 9px; border-radius: 5px; color: #607fae; background: #f0f5fd; }
button.token:hover { background: #e0ecff; }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; border: 1px solid #eadfc8; border-radius: 10px; color: #8c692f; background: #fcf8ef; font-size: 11px; line-height: 1.75; padding: 14px 18px; margin-bottom: 20px; }
.notice.info { color: #4a6d9f; background: #eef4fd; border-color: #d9e6fa; }
.notice a { font-weight: 550; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.setting-row { display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid #eaf0f6; gap: 15px; padding: 14px 0; font-size: 11px; }
.setting-row:last-child { border: 0; }
.setting-row span { color: var(--muted); }
.setting-row strong { font-weight: 500; text-align: right; overflow-wrap: anywhere; max-width: 70%; }
.folder-row { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 11px; overflow-wrap: anywhere; }
.folder-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.login-page { min-height: 100dvh; display: grid; grid-template-columns: 1.06fr 1fr; background: white; }
.login-story { position: relative; background: var(--navy); color: white; padding: 45px 10%; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.login-story .brand { padding: 0; }
.login-story > .eyebrow { margin-top: auto; color: #8fa8cd; font-size: 9px; padding-top: 80px; }
.login-story h1 { position: relative; z-index: 1; font-size: clamp(34px,4vw,58px); font-weight: 500; letter-spacing: -1.9px; line-height: 1.1; margin-top: 24px; }
.login-story h1 em { color: #8fb5ff; font-style: normal; }
.login-story > p { position: relative; z-index: 1; max-width: 340px; color: #9cb2d2; font-size: 13px; line-height: 1.85; margin-top: 23px; }
.login-story .login-flow { margin-top: 35px; padding-bottom: 80px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #a8bddc; font-size: 10px; }
.login-flow svg { width: 12px; height: 12px; color: #54749f; }
.login-note { position: relative; z-index: 1; margin-top: auto; color: #6984ab; font-size: 10px; display: flex; justify-content: space-between; gap: 20px; }
.login-architecture { position: absolute; right: -220px; bottom: -130px; width: 500px; height: 500px; border: 1px solid #39578166; border-radius: 45px; transform: rotate(-32deg); z-index: -1; }
.login-architecture:before { content: ""; position: absolute; inset: 35px; border: 1px solid #39578155; border-radius: 32px; }
.login-architecture:after { content: ""; position: absolute; inset: 70px; border: 1px solid #39578144; border-radius: 22px; }
.login-form-wrap { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 50px; position: relative; }
.login-form { width: 100%; max-width: 350px; animation: arrive .65s var(--ease) both; }
.login-form .eyebrow { color: #8c9bb1; font-size: 9px; margin-bottom: 15px; }
.login-form h2 { font-size: 30px; letter-spacing: -.9px; font-weight: 600; }
.login-form > p { margin: 12px 0 31px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-form .btn { width: 100%; margin-top: 8px; padding: 13px; }
.login-form .btn svg { margin-left: auto; }
.login-form .btn { justify-content: space-between; }
.login-help { margin-top: 24px; color: #8a98ac; font-size: 10px; line-height: 1.8; }
.login-security { display: flex; align-items: center; gap: 7px; color: #95a3b6; position: absolute; bottom: 35px; font-size: 10px; }
.login-security svg { width: 12px; height: 12px; }
.field { margin-bottom: 19px; }
.field label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 500; color: #4d627f; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #d8e1ed; border-radius: 8px; padding: 12px 13px; background: white; color: var(--ink); transition: border-color .2s, box-shadow .2s; font-size: 12px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #7a9fe5; outline: none; box-shadow: 0 0 0 3px #245cdb0c; }
.field input::placeholder, .field textarea::placeholder { color: #98a5b8; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.field small { display: block; font-size: 10px; color: var(--muted); line-height: 1.7; margin-top: 7px; }
.field-inline { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.error { color: var(--red); font-size: 11px; margin: 10px 0; }
.overlay { position: fixed; inset: 0; background: #10254566; backdrop-filter: blur(5px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 28px; animation: shade-in .2s ease both; }
.dialog { width: 100%; max-width: 650px; max-height: 92dvh; overflow: auto; border: 1px solid #ffffff80; border-radius: 18px; background: white; box-shadow: 0 30px 90px #091e4733; animation: dialog-in .35s var(--ease) both; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 23px 28px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 2; }
.dialog-header h2 { font-size: 20px; font-weight: 600; }
.dialog-body { padding: 26px 28px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--line); }
.checklist { max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: #fbfcfe; }
.check { display: flex; gap: 10px; align-items: center; padding: 7px; font-size: 11px; }
.check input { width: auto; accent-color: var(--accent); }
.drawer-overlay { position: fixed; inset: 0; background: #10254552; z-index: 45; display: flex; justify-content: flex-end; }
.drawer { background: #fff; width: min(880px,94vw); height: 100dvh; overflow: auto; box-shadow: -20px 0 80px #122b5020; }
.is-opening .drawer { animation: drawer-in .4s var(--ease) both; }
.is-opening.drawer-overlay { animation: shade-in .22s ease both; }
.drawer-header { padding: 26px 32px 23px; position: sticky; top: 0; z-index: 2; background: white; border-bottom: 1px solid var(--line); }
.drawer-title { display: flex; justify-content: space-between; gap: 20px; }
.drawer-title h2 { font-size: 23px; letter-spacing: -.6px; line-height: 1.4; max-width: 700px; font-weight: 600; }
.drawer-meta { display: flex; align-items: center; gap: 13px; font-size: 10px; color: var(--muted); margin-top: 13px; flex-wrap: wrap; }
.tabs { display: flex; gap: 25px; padding: 0 32px; border-bottom: 1px solid var(--line); overflow: auto; background: white; }
.tabs button { background: transparent; border-bottom: 2px solid transparent; padding: 16px 0; color: var(--muted); font-size: 11px; white-space: nowrap; transition: color .2s, border-color .2s; }
.tabs button:hover { color: var(--accent); }
.tabs button.active { color: var(--accent); border-color: var(--accent); }
.drawer-body { padding: 27px 32px; }
.material { white-space: pre-wrap; font-size: 13px; line-height: 1.95; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow-wrap: anywhere; }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.downloads .btn { font-size: 11px; white-space: normal; }
.preview-pages { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 24px; padding: 19px; background: #f0f4f9; border-radius: 12px; }
.preview-pages img { display: block; max-width: 100%; width: 100%; border: 1px solid #dce4ef; box-shadow: 0 3px 12px #1c3a6010; border-radius: 3px; transition: transform .3s var(--ease); }
.preview-pages a:hover img { transform: translateY(-3px); }
.source { border: 1px solid var(--line); border-radius: 10px; padding: 21px; margin-bottom: 14px; overflow-wrap: anywhere; }
.source strong { font-size: 12px; }
.source p { white-space: pre-wrap; font-size: 11px; line-height: 1.85; color: #58708e; margin-top: 11px; }
.source .meta { color: var(--muted); font-size: 10px; margin-top: 7px; }
.timeline-item { display: flex; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.timeline-item time { font-size: 10px; color: #8495ac; min-width: 42px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.timeline-item strong { display: block; font-size: 11px; font-weight: 550; }
.timeline-item p { color: var(--muted); font-size: 10px; margin-top: 5px; }
.issue-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 16px 0 25px; }
.issue-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; font-size: 12px; }
.issue-card p { font-size: 11px; line-height: 1.8; margin: 10px 0; color: #5c718c; }
.diff { border-radius: 6px; padding: 12px 14px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff.old { background: #fceef0; color: #a44c59; margin-bottom: 8px; border-left: 2px solid #e3a5ae; }
.diff.new { background: #eef7f2; color: #39745b; border-left: 2px solid #9dcbb3; }
.votes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 20px; }
.vote { background: #f5f8fc; border: 1px solid #e5ecf5; border-radius: 8px; padding: 13px; font-size: 10px; }
.vote strong { display: block; margin-bottom: 6px; }
.vote p { font-size: 10px; line-height: 1.7; margin-bottom: 0; }
.progress-bar { height: 3px; background: #e8effa; overflow: hidden; border-radius: 4px; margin-top: 18px; }
.progress-bar i { width: 35%; height: 100%; display: block; background: var(--accent); animation: progress 2s ease-in-out infinite; }
#toasts { position: fixed; bottom: 25px; right: 25px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--navy); color: #fff; border: 1px solid #ffffff20; padding: 15px 20px; max-width: min(420px,90vw); border-radius: 10px; font-size: 12px; line-height: 1.7; box-shadow: 0 8px 30px #122b5025; animation: toast-in .35s var(--ease) both; }
.toast.bad { background: #964451; }
.muted { color: var(--muted); }
.spaced { margin-top: 22px; }
.full-width { width: 100%; }
.no-margin { margin: 0; }
.mobile-brand { display: none; }
.page-enter .page-heading, .page-enter .overview-lead, .page-enter .stats, .page-enter .columns, .page-enter .workflow-strip, .page-enter > .panel, .page-enter .agent-settings, .page-enter .settings-grid, .page-enter > .toolbar { animation: arrive .65s var(--ease) both; }
.page-enter .overview-lead { animation-delay: .04s; }
.page-enter .stats { animation-delay: .10s; }
.page-enter .columns { animation-delay: .16s; }
.page-enter .workflow-strip { animation-delay: .22s; }
.page-enter .paper-sheet.front { animation: paper-in .9s .12s var(--ease) both; }
.page-enter .art-badge { animation: badge-in .9s .25s var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes paper-in { from { opacity: 0; transform: translate(12px,20px) rotate(0); } to { opacity: 1; transform: translate(0,0) rotate(-7deg); } }
@keyframes badge-in { from { opacity: 0; transform: translateY(12px) rotate(0); } to { opacity: 1; transform: translateY(0) rotate(3deg); } }
@keyframes shade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes drawer-in { from { transform: translateX(50px); opacity: .3; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }
@media (min-width: 1500px) {
  .shell { grid-template-columns: 254px minmax(0,1fr); }
  .content { padding: 42px 52px 60px; }
  .topbar { padding: 0 52px; }
  .overview-lead { grid-template-columns: minmax(0,1fr) 350px; }
  .lead-copy { padding: 34px 38px; }
  .lead-copy h2 { font-size: 31px; }
  .lead-copy p { max-width: 500px; }
  .task-main strong, .agent-card h3 { font-size: 12px; }
  .task-main small, .agent-card p { font-size: 10px; }
}
@media (max-width: 1150px) {
  .shell { grid-template-columns: 205px minmax(0,1fr); }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .brand { gap: 9px; padding: 0 8px; }
  .brand strong { font-size: 14px; }
  .brand-mark { width: 34px; height: 36px; }
  .brand .eyebrow { font-size: 8px; }
  .content { padding: 28px; }
  .topbar { padding: 0 28px; }
  .topbar .pill { display: none; }
  .overview-lead { grid-template-columns: minmax(0,1fr) 220px; }
  .paper-sheet { right: 38px; }
  .paper-sheet.front { right: 55px; }
  .art-badge { right: 20px; }
  .art-circle { right: -10px; }
  .columns { grid-template-columns: minmax(0,1.3fr) minmax(240px,1fr); gap: 18px; }
  .stat { padding: 0 18px; }
  .stat-note { font-size: 8px; }
  .task-row { padding: 17px; gap: 10px; }
  .task-row > svg { display: none; }
  .workflow-strip { grid-template-columns: 1fr; gap: 20px; }
  .workflow-label { display: flex; align-items: center; gap: 16px; }
  .workflow-label .eyebrow { display: none; }
  .workflow-label h2 { margin: 0; }
  .workflow-label p { margin-left: auto; }
}
@media (max-width: 960px) and (min-width: 761px) {
  .shell { grid-template-columns: 78px minmax(0,1fr); }
  .sidebar { padding: 25px 10px 20px; align-items: center; }
  .brand { padding: 0; }
  .brand > div:last-child, .nav-caption, .nav a span, .nav-count, .connection, .profile-info, .profile .icon-button { display: none; }
  .nav { margin-top: 35px; gap: 9px; width: 100%; }
  .nav a { padding: 14px; justify-content: center; }
  .nav a.active:before { left: -10px; }
  .profile { padding: 0; }
  .sidebar-bottom { padding-top: 20px; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: static; height: auto; padding: 16px 18px 0; overflow: visible; }
  .brand { padding: 0 2px; gap: 10px; }
  .brand-mark { width: 30px; height: 31px; border-radius: 8px; }
  .brand strong { font-size: 13px; letter-spacing: 1.9px; }
  .brand .eyebrow { font-size: 7px; }
  .nav { margin: 17px -5px 0; flex-direction: row; gap: 2px; overflow: auto; scrollbar-width: none; padding-bottom: 10px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 9px 11px; white-space: nowrap; gap: 7px; border-radius: 7px; font-size: 10px; }
  .nav a svg { width: 15px; height: 15px; }
  .nav a.active:before, .nav-caption, .nav-count, .sidebar-bottom { display: none; }
  .nav a:hover { transform: none; }
  .topbar { height: 61px; padding: 0 20px; }
  .breadcrumb { font-size: 10px; gap: 8px; }
  .breadcrumb > .workspace-label { display: none; }
  .breadcrumb .slash { display: none; }
  .top-actions { gap: 8px; }
  .top-actions .btn { font-size: 10px; padding: 9px 12px; }
  .content { padding: 25px 20px 40px; }
  h1 { font-size: 29px; letter-spacing: -.9px; }
  .page-heading { margin-bottom: 22px; align-items: start; gap: 15px; }
  .page-heading .eyebrow { font-size: 8px; margin-bottom: 8px; }
  p.sub { font-size: 11px; max-width: 290px; }
  .date { display: none; }
  .page-heading > .btn { padding: 9px 12px; font-size: 10px; white-space: normal; }
  .overview-lead { grid-template-columns: minmax(0,1fr) 180px; min-height: 223px; border-radius: 13px; }
  .lead-copy { padding: 25px; }
  .lead-copy h2 { font-size: 25px; }
  .lead-copy p { font-size: 11px; }
  .lead-actions { gap: 15px; }
  .lead-actions a { font-size: 10px; }
  .lead-actions a svg { display: none; }
  .document-art { min-height: 223px; }
  .paper-sheet { right: 22px; top: 37px; width: 120px; height: 150px; }
  .paper-sheet.front { right: 33px; top: 31px; }
  .art-badge { right: 10px; bottom: 27px; font-size: 8px; padding: 9px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
  .stat { padding: 18px 21px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .stat-note { font-size: 9px; }
  .stat-value { font-size: 29px; }
  .columns { grid-template-columns: minmax(0,1fr); gap: 19px; }
  .panel-header { padding: 20px; }
  .task-row { padding: 17px 20px; }
  .task-main strong { font-size: 11px; }
  .task-main small { font-size: 9px; }
  .task-row .badge { max-width: 95px; text-overflow: ellipsis; overflow: hidden; }
  .agents { padding: 0 20px 7px; }
  .agent-card { padding: 15px 0; grid-template-columns: 36px minmax(0,1fr) 16px; gap: 13px; }
  .agent-card .agent-avatar { width: 34px; height: 34px; }
  .agent-card h3 { font-size: 12px; }
  .agent-card p { font-size: 10px; }
  .workflow-strip { padding: 21px; }
  .workflow-label { display: block; }
  .workflow-label p { margin-top: 5px; }
  .flow { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 23px; }
  .flow-step:nth-child(2):after { display: none; }
  .flow-step strong { font-size: 11px; }
  .flow-step p { font-size: 10px; }
  .toolbar { gap: 9px; }
  .filter-tabs { width: 100%; }
  .filter-tabs button { flex: 1; padding: 8px 9px; font-size: 10px; }
  .toolbar .search-box { flex-basis: 100%; }
  .toolbar .select { flex: 1; min-width: 0; }
  .settings-grid, .agent-settings { grid-template-columns: minmax(0,1fr); }
  .login-page { grid-template-columns: minmax(0,1fr); }
  .login-story { padding: 24px 28px 29px; }
  .login-story > .eyebrow { padding-top: 35px; font-size: 8px; }
  .login-story h1 { font-size: 35px; letter-spacing: -1.2px; margin-top: 14px; }
  .login-story > p { display: none; }
  .login-story .login-flow { margin-top: 19px; padding-bottom: 0; font-size: 9px; gap: 8px; }
  .login-note { display: none; }
  .login-form-wrap { min-height: 540px; padding: 40px 28px 75px; }
  .login-form { max-width: 430px; }
  .login-form h2 { font-size: 27px; }
  .login-form > p { font-size: 11px; }
  .login-security { bottom: 25px; }
  .overlay { padding: 12px; }
  .dialog { max-height: 95dvh; border-radius: 14px; }
  .dialog-body, .dialog-header { padding: 21px; }
  .dialog-header h2 { font-size: 19px; }
  .field-inline { grid-template-columns: minmax(0,1fr); gap: 0; }
  .drawer { width: 100%; }
  .drawer-header, .drawer-body { padding: 23px 21px; }
  .drawer-title h2 { font-size: 20px; }
  .tabs { padding: 0 21px; gap: 20px; }
  .tabs button { font-size: 10px; }
  .material { padding: 21px; font-size: 12px; }
  .votes, .preview-pages { grid-template-columns: minmax(0,1fr); }
  .downloads .btn { font-size: 10px; }
  .notice { font-size: 10px; }
  #toasts { bottom: 18px; right: 18px; left: 18px; }
}
@media (max-width: 480px) {
  .overview-lead { grid-template-columns: minmax(0,1fr); }
  .document-art { display: none; }
  .lead-copy { padding: 25px; }
  .lead-copy .eyebrow { font-size: 8px; }
  .lead-copy h2 { font-size: 26px; }
  .lead-copy p { max-width: 300px; }
  .lead-actions { justify-content: space-between; gap: 10px; }
  .lead-actions a { font-size: 9px; }
  .task-row { gap: 10px; padding: 16px; }
  .task-icon { width: 30px; height: 35px; }
  .task-main strong { font-size: 10px; }
  .task-main small { font-size: 8px; }
  .badge { font-size: 8px; }
  .stat { padding: 18px; }
  .stat-note { font-size: 8px; }
  .settings-grid .panel-body { padding: 20px; }
  .setting-row { font-size: 10px; }
  .page-heading > .btn { max-width: 135px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .progress-bar i { width: 100%; opacity: .6; }
}
/* Reading sizes stay comfortable on dense document screens. */
.nav a { font-size: 13px; }
.stat-note { font-size: 10px; color: var(--muted); }
.stat-top { font-size: 12px; }
.task-main strong { font-size: 12px; }
.task-main small { font-size: 10px; }
.agent-card h3 { font-size: 12px; }
.agent-card p { font-size: 10px; }
.flow-step p { font-size: 10px; }
.flow-step strong { font-size: 11px; }
.page-heading .eyebrow { color: var(--muted); }
.panel-header .eyebrow, .agent-index { color: var(--muted); }
.step-number svg { width: 13px; height: 13px; }
.login-help { color: var(--muted); }
@media(max-width:760px) { .nav a { font-size: 10px; } .stat-top { font-size: 11px; } .task-main strong { font-size: 12px; } .task-main small { font-size: 10px; } .agent-card p { font-size: 11px; } }
@media(max-width:480px) { .task-main strong { font-size: 11px; } .task-main small { font-size: 9px; } .stat-note { font-size: 9px; } .badge { font-size: 9px; } }
.mobile-logout { display: none; }
@media(max-width:760px) {
  .mobile-logout { display: inline-flex; }
  .field input, .field textarea, .field select, .search-box input { font-size: 16px; }
}
/* Scheduling, device notifications and computer-folder connections. */
.topbar { min-height: 77px; height: auto; padding-top: 15px; padding-bottom: 15px; }
.top-actions { gap: 12px; }
.moscow-clock { display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; min-width: 65px; color: var(--ink); line-height: 1.35; }
.moscow-clock span { font-size: 8px; letter-spacing: 1.4px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.workload-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.workload-chip i { width: 5px; height: 5px; border-radius: 50%; background: #5d86d4; }
.top-profile { display: flex; align-items: center; gap: 8px; padding-left: 13px; border-left: 1px solid var(--line); font-size: 11px; font-weight: 550; max-width: 150px; }
.top-profile > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-profile .avatar { background: #edf3ff; color: #3c65ab; height: 31px; width: 31px; border-radius: 9px; }
.notification-button { position: relative; }
#notification-count { position: absolute; top: 0; right: 0; border-radius: 8px; padding: 1px 4px; min-width: 14px; font-size: 8px; background: var(--accent); color: white; border: 2px solid white; line-height: 1.2; }
.notification-banner { display: flex; align-items: center; gap: 15px; background: #fff; padding: 18px 21px; border: 1px solid #cbdcf9; border-radius: 12px; margin-bottom: 26px; animation: arrive .4s var(--ease) both; }
.notification-banner-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #edf3ff; color: var(--accent); flex: none; }
.notification-banner > div { flex: 1; }
.notification-banner strong { font-size: 12px; font-weight: 550; }
.notification-banner p { font-size: 10px; color: var(--muted); line-height: 1.7; margin-top: 4px; max-width: 600px; }
.notification-banner .btn { font-size: 10px; }
.notification-settings { padding: 0 0 23px; margin-bottom: 5px; border-bottom: 1px solid var(--line); }
.notification-settings p { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.notification-row { display: flex; gap: 13px; align-items: start; background: transparent; padding: 18px 10px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; color: var(--ink); }
.notification-row.unread { background: #f6f9ff; }
.notification-row strong { font-size: 12px; }
.notification-row p { font-size: 11px; margin-top: 5px; line-height: 1.6; }
.notification-row small { display: block; font-size: 9px; color: var(--muted); margin-top: 5px; }
.notification-status { width: 30px; height: 30px; flex: none; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 8px; }
.notification-status.success { color: var(--green); background: #edf6f1; }
.notification-status svg { width: 16px; height: 16px; }
.push-instructions { font-size: 12px; line-height: 1.85; color: #4d6483; }
.push-instructions ol { padding-left: 22px; }
.push-instructions li { padding: 5px 0; }
.push-instructions p { margin-bottom: 18px; }
.push-instructions .btn { margin: 5px 10px 0 0; }
.calendar-panel { background: white; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 27px; overflow: hidden; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 25px 21px; }
.calendar-header h2 { font-size: 22px; font-weight: 600; letter-spacing: -.6px; }
.calendar-header p { font-size: 10px; color: var(--muted); margin-top: 7px; }
.calendar-controls { display: flex; align-items: center; gap: 7px; }
.calendar-controls .btn { font-size: 11px; padding: 9px 13px; background: #f4f6f9; border-color: transparent; }
.calendar-controls .icon-button { background: #f4f6f9; border-radius: 8px; padding: 9px; }
.calendar-controls .icon-button:hover { background: #e8effb; }
.calendar-controls .icon-button svg { width: 17px; height: 17px; }
.calendar-controls .select { padding: 9px; border: 0; background: #f4f6f9; }
.calendar-view { font-size: 11px; padding: 7px 0 7px 14px; margin-left: 5px; border-left: 1px solid var(--line); color: var(--muted); }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.calendar-weekdays span { text-align: center; font-size: 10px; font-weight: 550; color: #5c6d85; }
.calendar-weekdays span:nth-last-child(-n+2) { color: #8995a6; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-day { min-width: 0; min-height: 123px; padding: 10px 6px 15px; border-right: 1px solid #e8edf4; border-bottom: 1px solid #e8edf4; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.other-month { background: #fafbfd; }
.day-number { display: inline-flex; align-items: center; gap: 4px; min-width: 22px; height: 22px; font-size: 11px; color: #516680; padding: 0 5px; }
.day-number small { font-size: 9px; }
.other-month .day-number { color: #8c9bb0; }
.is-today .day-number { background: var(--accent); color: white; border-radius: 6px; }
.is-today { background: #fcfdff; }
.calendar-events { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; }
.calendar-event { display: flex; align-items: baseline; width: 100%; gap: 4px; padding: 6px 5px; background: #eaf1ff; border-radius: 5px; color: #315d9d; text-align: left; font-size: 10px; line-height: 1.4; transition: background .2s, transform .25s var(--ease); }
.calendar-event:hover { background: #d7e6ff; transform: translateY(-1px); }
.calendar-event > i { width: 5px; height: 5px; border-radius: 50%; background: #4e82e3; flex: none; }
.calendar-event time { font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.calendar-event > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.calendar-event.finished { color: #2d7258; background: #edf6f0; }
.calendar-event.finished > i { background: #439a72; }
.calendar-event.attention { color: #8f6530; background: #fcf2e3; }
.calendar-event.attention > i { background: #bc8c49; }
.calendar-footer { display: flex; gap: 19px; flex-wrap: wrap; align-items: center; padding: 15px 22px; font-size: 9px; color: var(--muted); }
.calendar-footer > span { display: flex; align-items: center; gap: 6px; }
.calendar-footer i { width: 5px; height: 5px; border-radius: 50%; }
.legend-blue { background: #4e82e3; }
.legend-green { background: #439a72; }
.calendar-footer small { margin-left: auto; font-size: 9px; }
.task-schedule { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 13px; font-size: 10px; color: var(--muted); }
.task-schedule:empty { display: none; }
.task-schedule span { display: inline-flex; align-items: center; gap: 7px; }
.task-schedule svg { width: 13px; height: 13px; }
.task-schedule strong { font-weight: 500; color: #415e87; }
.file-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 25px 18px; border: 1px dashed #a9c1e9; background: #f7faff; border-radius: 10px; text-align: center; transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop:focus-within { background: #eef5ff; border-color: var(--accent); }
.file-drop > svg { color: #648cc9; width: 24px; height: 24px; }
.file-drop strong { color: #456797; font-size: 11px; font-weight: 500; }
.file-drop small { margin: 0; color: var(--muted); font-size: 10px; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.selected-files { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.selected-files > span { display: flex; align-items: center; gap: 7px; color: #577aa9; font-size: 10px; overflow-wrap: anywhere; }
.selected-files svg { width: 13px; height: 13px; }
.selected-files small { margin: 0 0 0 auto; white-space: nowrap; }
.folder-panel .panel-body > p { font-size: 12px; line-height: 1.8; max-width: 800px; }
.folder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 18px; }
.folder-explainer { display: block; color: var(--muted); font-size: 10px; line-height: 1.8; margin-top: 15px; max-width: 780px; }
.folder-links { margin-top: 24px; }
.folder-link { display: flex; align-items: center; gap: 13px; padding: 17px 0; border-top: 1px solid var(--line); }
.folder-link > div { flex: 1; min-width: 0; }
.folder-link strong { font-size: 12px; overflow-wrap: anywhere; }
.folder-link small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; line-height: 1.6; }
.folder-link .btn { font-size: 10px; }
@media(max-width:1250px) {
  .topbar .workspace-label, .topbar .slash { display: none; }
  .top-profile > span:last-child { display: none; }
  .top-actions { gap: 9px; }
  .top-profile { padding-left: 10px; }
}
@media(max-width:960px) and (min-width:761px) {
  .calendar-header { padding: 21px; gap: 12px; }
  .calendar-header h2 { font-size: 19px; }
  .calendar-view { display: none; }
  .calendar-day { min-height: 110px; padding: 8px 4px; }
  .calendar-event { flex-wrap: wrap; gap: 3px; }
  .calendar-event > span { flex-basis: 100%; font-size: 9px; }
  .calendar-event time { font-size: 9px; }
  .calendar-controls .btn { font-size: 10px; padding: 9px; }
  .notification-banner { flex-wrap: wrap; }
  .notification-banner > div { flex-basis: calc(100% - 70px); }
  .notification-banner > .btn { margin-left: 52px; }
  .notification-banner > .icon-button { margin-left: auto; }
}
@media(max-width:760px) {
  .topbar { padding: 14px 20px; }
  .topbar .breadcrumb { display: none; }
  .top-actions { display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 10px; width: 100%; }
  .moscow-clock { align-items: flex-start; font-size: 13px; }
  .moscow-clock span { font-size: 8px; margin-left: 1px; }
  .workload-chip { grid-column: 2 / 4; justify-content: center; font-size: 10px; }
  .notification-button { grid-column: 4; }
  .top-actions > .btn.primary { grid-column: 1 / 3; font-size: 11px; padding: 10px 13px; justify-self: start; }
  .top-profile { grid-column: 3; border: 0; padding: 0; }
  .top-logout { grid-column: 4; }
  .notification-banner { flex-wrap: wrap; gap: 12px; padding: 17px; }
  .notification-banner > div { flex-basis: calc(100% - 55px); }
  .notification-banner strong { font-size: 11px; }
  .notification-banner p { font-size: 10px; }
  .notification-banner > .btn { margin-left: 50px; }
  .notification-banner > .icon-button { margin-left: auto; }
  .calendar-header { flex-wrap: wrap; gap: 15px; padding: 19px 16px 15px; }
  .calendar-header h2 { font-size: 20px; }
  .calendar-header p { font-size: 9px; }
  .calendar-controls { width: 100%; justify-content: space-between; gap: 6px; }
  .calendar-controls .btn { font-size: 10px; padding: 8px 12px; }
  .calendar-controls .icon-button { padding: 8px; }
  .calendar-controls .select { margin-left: auto; font-size: 11px; }
  .calendar-view { font-size: 10px; padding-left: 10px; }
  .calendar-weekdays { padding: 9px 0 12px; }
  .calendar-weekdays span { font-size: 9px; }
  .calendar-day { min-height: 103px; padding: 7px 3px 10px; }
  .day-number { height: 20px; min-width: 20px; font-size: 10px; padding: 0 4px; }
  .day-number small { display: none; }
  .calendar-events { gap: 4px; margin-top: 6px; }
  .calendar-event { display: block; padding: 5px 3px; }
  .calendar-event > i { display: none; }
  .calendar-event time { display: block; font-size: 9px; }
  .calendar-event > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; font-size: 8px; line-height: 1.35; overflow-wrap: anywhere; }
  .calendar-footer { padding: 13px; gap: 9px 14px; font-size: 8px; }
  .calendar-footer small { flex-basis: 100%; margin: 0; font-size: 8px; }
  .folder-actions { gap: 13px; align-items: start; flex-direction: column; }
  .folder-actions .btn { font-size: 11px; }
  .folder-link { flex-wrap: wrap; gap: 10px; }
  .folder-link > div { flex-basis: calc(100% - 50px); }
  .folder-link .btn { margin-left: 47px; }
  .folder-link > .icon-button { margin-left: auto; }
  .task-schedule { font-size: 10px; }
}
