:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #243348;
  background: #f3f5f8;
  --navy: #142238;
  --navy-soft: #1d304b;
  --gold: #c8a65d;
  --blue: #2d5a8a;
  --muted: #748196;
  --line: #e5e9ef;
  --panel: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f3f5f8; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid #d8b867; outline-offset: 3px; }
.app-layout { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; width: 258px; padding: 25px 16px 18px; color: #fff; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 10px 25px; color: #fff; text-decoration: none; border-bottom: 1px solid #ffffff18; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; flex: 0 0 42px; color: var(--gold); border: 1px solid #c8a65d88; border-radius: 12px; font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.brand-copy { display: grid; gap: 4px; min-width: 0; }
.brand-copy strong { font-size: 15px; letter-spacing: .015em; }
.brand-copy small { color: #aeb8c7; font-size: 11px; line-height: 1.4; }
.side-nav { display: grid; align-content: start; gap: 4px; min-height: 0; flex: 1; overflow-y: auto; padding: 23px 0 14px; scrollbar-color: #ffffff24 transparent; scrollbar-width: thin; }
.side-nav::-webkit-scrollbar { width: 4px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.side-nav::-webkit-scrollbar-thumb { background: #ffffff22; border-radius: 99px; }
.side-nav::-webkit-scrollbar-thumb:hover { background: #c8a65d88; }
.nav-link { display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 0 13px; color: #c3ccda; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-size: 13px; font-weight: 600; transition: background-color .15s ease, color .15s ease; }
.nav-link:hover { color: #fff; background: #ffffff0c; }
.nav-link.active { color: #fff; background: #ffffff12; border-color: #ffffff12; box-shadow: inset 3px 0 var(--gold); }
.nav-icon { display: grid; width: 20px; place-items: center; color: #aab6c7; font-size: 19px; line-height: 1; }
.nav-link.active .nav-icon { color: var(--gold); }
.nav-divider { display: flex; align-items: center; justify-content: space-between; padding: 19px 12px 5px; color: #8997aa; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.nav-divider small { color: #9d8b60; font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.future-link { width: 100%; min-height: 35px; color: #a3afbf; background: transparent; text-align: left; font-size: 12px; font-weight: 500; opacity: .58; }
.future-link .nav-icon { color: #909caf; font-size: 16px; }
.future-link:disabled { cursor: not-allowed; }
.sidebar-foot { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 15px 11px 4px; color: #9ba8b9; border-top: 1px solid #ffffff18; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.workspace { min-height: 100vh; margin-left: 258px; }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(22px, 4vw, 48px); color: #fff; background: var(--navy-soft); box-shadow: 0 2px 8px #12223818; }
.topbar-title { display: grid; min-height: 38px; align-content: center; gap: 4px; flex: 0 0 auto; }
.topbar-kicker { color: #c0cad7; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.topbar-title strong { font-size: 14px; font-weight: 600; }
.profile { display: flex; flex: 0 0 auto; align-items: center; gap: 11px; }
.avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: #f5e7c7; background: #c8a65d25; border: 1px solid #c8a65d70; border-radius: 50%; font-size: 12px; font-weight: 800; }
.profile-copy { display: grid; gap: 3px; min-width: 82px; }
.profile-copy strong { font-size: 12px; font-weight: 650; }
.profile-copy small { color: #c0cad7; font-size: 11px; }
.global-search-wrap { position: relative; width: min(100%, 440px); min-width: 190px; margin: 0 auto; }
.global-search { display: flex; width: 100%; height: 38px; align-items: center; gap: 9px; padding: 0 11px; color: #d0d8e2; background: #ffffff0d; border: 1px solid #ffffff24; border-radius: 7px; }
.global-search:focus-within { border-color: #d8b867; box-shadow: 0 0 0 2px #d8b86726; }
.global-search input { min-width: 0; height: 100%; flex: 1; padding: 0; color: #fff; background: transparent; border: 0; outline: 0; font-size: 11px; }
.global-search input::placeholder { color: #b0bdcc; opacity: .9; }
.search-hint { color: #b0bdcc; font-size: 9px; white-space: nowrap; }
.global-search-results { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 20; max-height: min(70vh, 480px); overflow: auto; padding: 8px; color: #26354a; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 12px 28px #1222382b; }
.global-search-group { padding: 5px 0; }
.global-search-group + .global-search-group { border-top: 1px solid #edf0f4; }
.global-search-group h3 { margin: 3px 7px 5px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.global-search-result { display: grid; gap: 2px; padding: 8px 7px; color: inherit; border-radius: 6px; text-decoration: none; }
.global-search-result:hover, .global-search-result:focus-visible { background: #f1f5f9; outline: 0; }
.global-search-result strong { font-size: 11px; font-weight: 700; }
.global-search-result small, .global-search-empty, .global-search-loading { margin: 0; color: var(--muted); font-size: 10px; }
.global-search-empty, .global-search-loading { padding: 12px 8px; }
.search-icon { color: #d8bd7d; font-size: 18px; line-height: 1; }
.search-hint { display: none; }
.logout { padding: 8px 13px; color: #fff; background: transparent; border: 1px solid #ffffff45; border-radius: 7px; font-size: 11px; font-weight: 650; }
.logout:hover { color: #f2d48f; border-color: var(--gold); }
.main-content { width: min(1500px, 100%); margin: 0 auto; padding: 27px clamp(22px, 3vw, 40px) 44px; }
.page-content { display: grid; gap: 23px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.eyebrow { color: #9b7b36; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.page-heading h1 { margin: 7px 0 5px; color: #1e2d42; font-size: clamp(23px, 3vw, 30px); font-weight: 680; letter-spacing: -.035em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.page-greeting { display: grid; gap: 5px; align-self: center; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 7px; }
.page-greeting span { color: var(--muted); font-size: 10px; }
.page-greeting strong { color: #26354a; font-size: 12px; font-weight: 650; white-space: nowrap; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.summary-card { display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 11px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 2px 8px #1a2c4108; }
.summary-card-link { color: inherit; text-decoration: none; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.summary-card-link:hover { border-color: #c8a65d99; box-shadow: 0 5px 13px #1a2c4110; transform: translateY(-1px); }
.summary-symbol { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; color: #9a7936; background: #f8f5ed; border-radius: 8px; font-size: 16px; }
.summary-card > div { display: grid; gap: 2px; }
.summary-label { color: #68778b; font-size: 11px; font-weight: 600; }
.summary-value { color: #1c2c43; font-size: 21px; font-weight: 680; line-height: 1.1; }
.summary-detail { color: #8994a4; font-size: 10px; }
.dashboard-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.dashboard-panel { min-width: 0; padding: 15px 16px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 2px 8px #1a2c4108; }
.mesa-panel { grid-column: 1 / -1; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #edf0f4; }
.panel-heading h2 { margin: 4px 0 0; color: #26354a; font-size: 14px; font-weight: 650; }
.panel-total { padding: 4px 7px; color: #68778b; background: #f1f4f7; border-radius: 5px; font-size: 10px; }
.panel-link { color: var(--blue); font-size: 10px; font-weight: 700; text-decoration: none; }
.panel-link:hover { text-decoration: underline; }
.panel-actions { display: flex; align-items: center; gap: 11px; }
.agenda-list, .mini-list { display: grid; }
.agenda-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid #edf0f4; }
.agenda-row-link { color: inherit; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.agenda-row-link:hover { background: #f8f9fb; }
.agenda-row-link:hover strong { color: var(--blue); }
.agenda-row:last-child, .mini-row:last-child { border-bottom: 0; }
.agenda-type { padding: 5px 7px; color: #365b88; background: #edf3f9; border-radius: 5px; font-size: 10px; font-weight: 700; }
.agenda-row.is-overdue .agenda-type { color: #8f4545; background: #fbefee; }
.agenda-row.is-today .agenda-type { color: #76591e; background: #f8f1df; }
.agenda-row.is-upcoming .agenda-type { color: #856625; background: #fbf7ed; }
.agenda-row > div { display: grid; gap: 3px; min-width: 0; }
.agenda-row strong { color: #2b3a50; font-size: 11px; font-weight: 650; }
.agenda-row strong a { color: inherit; text-decoration: none; }
.agenda-row strong a:hover { color: var(--blue); }
.agenda-row > div > span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-row time { color: #68778b; font-size: 10px; white-space: nowrap; }
.compact-empty { min-height: 105px; margin-top: 12px; padding: 16px; box-shadow: none; }
.compact-empty .empty-icon { width: 35px; height: 35px; flex-basis: 35px; font-size: 15px; }
.compact-empty h3 { font-size: 12px; }
.compact-empty p, .panel-empty { color: var(--muted); font-size: 11px; }
.mini-row { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 7px 1px; border-bottom: 1px solid #edf0f4; }
.mini-client { color: inherit; text-decoration: none; cursor: pointer; }
.mini-client:hover { background: #f8f9fb; }
.mini-avatar, .mini-process-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; color: #425d80; background: #edf2f7; border-radius: 50%; font-size: 10px; font-weight: 750; }
.mini-row > strong, .mini-row > span > strong { overflow: hidden; color: #35445a; font-size: 11px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.mini-row > strong { flex: 1; }
.mini-process { color: inherit; text-decoration: none; }
.mini-process:hover > span > strong { color: var(--blue); }
.mini-process-icon { color: #9a7936; background: #f6f1e5; border-radius: 8px; font-size: 14px; }
.mini-process > span:nth-child(2) { display: grid; flex: 1; gap: 3px; min-width: 0; }
.mini-process small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.mini-arrow { color: var(--blue); font-size: 13px; }
.panel-empty { margin: 14px 0 4px; }
.section-block { display: grid; gap: 14px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; }
.section-heading h2 { margin: 5px 0 0; color: #1e2d42; font-size: 18px; font-weight: 680; }
.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 13px; }
.item { padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 14px #1a2c4108; }
.item h3 { margin: 10px 0 7px; color: #22334a; font-size: 14px; }
.item p { color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; padding: 5px 8px; color: #365b88; background: #edf3f9; border-radius: 5px; font-size: 10px; font-weight: 750; }
.empty-state { display: flex; align-items: center; gap: 16px; min-height: 120px; padding: 22px 25px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 14px #1a2c4108; }
.empty-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; color: #987731; background: #f7f2e7; border-radius: 50%; font-size: 18px; }
.empty-state h3 { margin: 0 0 5px; color: #26354a; font-size: 14px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.client-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 13px; }
.client-card { display: flex; min-height: 91px; align-items: center; gap: 14px; padding: 17px; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 4px 14px #1a2c4108; text-decoration: none; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.client-card:hover, .client-card:focus-visible { border-color: #c8d4e1; box-shadow: 0 7px 18px #1a2c4114; transform: translateY(-1px); outline: 0; }
.client-avatar { width: 42px; height: 42px; flex-basis: 42px; color: #425d80; background: #edf2f7; border-color: #dbe4ee; }
.client-info { min-width: 0; }
.client-info h2 { margin: 0 0 6px; color: #26354a; font-size: 13px; font-weight: 680; line-height: 1.45; overflow-wrap: anywhere; }
.client-info p { margin: 0; color: var(--muted); font-size: 11px; }
.process-list { display: grid; gap: 11px; }
.process-card { display: flex; align-items: center; gap: 16px; padding: 17px 19px; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 4px 14px #1a2c4108; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.process-card:hover { border-color: #c8a65d99; box-shadow: 0 7px 18px #1a2c4112; transform: translateY(-1px); }
.process-mark { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; color: #9a7936; background: #f6f1e5; border-radius: 9px; font-size: 18px; }
.process-main { display: grid; flex: 1; gap: 4px; min-width: 0; }
.process-main strong { color: #24354c; font-size: 13px; font-weight: 680; line-height: 1.45; }
.process-main > span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.process-status { padding: 5px 8px; color: #65748a; background: #f2f4f7; border-radius: 5px; font-size: 10px; }
.open-label { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: 10px; font-weight: 750; }
.back-link { width: fit-content; font-size: 11px; font-weight: 650; text-decoration: none; }
.detail-card { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 14px #1a2c4108; }
.process-tabs { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.process-tabs a { padding: 8px 10px; color: var(--muted); border-radius: 6px; font-size: 11px; font-weight: 650; text-decoration: none; }
.process-tabs a:hover, .process-tabs a.active { color: #24354c; background: #f4f0e5; }
.history-list { display: grid; gap: 0; }
.history-event { display: flex; align-items: flex-start; gap: 12px; padding: 13px 2px; border-bottom: 1px solid #edf0f4; }
.history-event:last-child { border-bottom: 0; }
.history-star { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; color: #9a7936; background: #f8f5ed; border-radius: 7px; font-size: 17px; }
.history-event > div { display: grid; flex: 1; gap: 4px; min-width: 0; }
.history-event strong { color: #2b3a50; font-size: 11px; font-weight: 650; }
.history-event small, .history-event p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.detail-icon { display: grid; width: 46px; height: 46px; place-items: center; color: #967532; background: #f6f1e5; border-radius: 10px; font-size: 21px; }
.detail-fields { display: grid; gap: 19px; }
.detail-fields > div { display: grid; gap: 5px; }
.detail-fields span { color: var(--muted); font-size: 10px; }
.detail-fields strong { color: #26354a; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.operation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 13px; }
.operation-card, .operation-form { min-width: 0; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 8px #1a2c4108; }
.operation-card.is-done { background: #fbfcfb; }
.operation-card-top, .operation-card-actions, .detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.operation-card h2 { margin: 13px 0 6px; color: #26354a; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.operation-card h2 a { color: inherit; text-decoration: none; }
.operation-card h2 a:hover { color: var(--blue); }
.operation-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.operation-card .operation-observation { margin-top: 9px; padding-top: 8px; border-top: 1px solid #edf0f4; }
.operation-card-actions { justify-content: flex-start; margin-top: 14px; padding-top: 10px; border-top: 1px solid #edf0f4; }
.badge.deadline-badge { color: #856625; background: #f8f3e7; }
.badge.task-badge { color: #365b88; background: #edf3f9; }
.badge.priority-high { color: #8f4545; background: #fbefee; }
.badge.priority-medium { color: #76591e; background: #f8f1df; }
.badge.priority-low { color: #66758a; background: #f1f4f7; }
.operation-status { color: #66758a; font-size: 10px; font-weight: 650; }
.is-done .operation-status { color: #47745a; }
.quiet-action, .primary-link { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; padding: 7px 11px; color: var(--blue); background: #f1f5f9; border-radius: 6px; font-size: 11px; font-weight: 700; text-decoration: none; }
.quiet-action:hover, .primary-link:hover { background: #e7eef6; }
.primary-link { color: #fff; background: var(--navy-soft); }
.primary-link:hover { color: #fff; background: var(--blue); }
.operation-form { display: grid; width: min(100%, 760px); gap: 12px; }
.operation-form h2 { margin: 0; color: #26354a; font-size: 16px; }
.operation-form label { display: grid; gap: 6px; margin: 0; color: #36465c; font-size: 11px; font-weight: 650; }
.operation-form input, .operation-form select, .operation-form textarea { width: 100%; padding: 10px 11px; color: #26354a; background: #fff; border: 1px solid #d7dee7; border-radius: 7px; font: inherit; font-size: 12px; }
.operation-form textarea { resize: vertical; }
.client-source { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.client-source legend, .publication-client-picker h3, .publication-client-form h3 { padding: 0 4px; color: #26354a; font-size: 13px; font-weight: 700; }
.publication-client-picker, .publication-client-form { display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.publication-person-choice { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; padding: 9px 10px !important; background: #f8f9fb; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.publication-person-choice input { width: auto !important; margin: 0; accent-color: var(--blue); }
.publication-person-choice small { color: var(--muted); font-weight: 500; }
.field-help { color: var(--muted); font-size: 10px; font-weight: 500; }
.duplicate-client-warning { display: grid; gap: 8px; padding: 10px; color: #765d27; background: #fbf7ed; border-left: 3px solid var(--gold); border-radius: 4px; font-size: 11px; }
.operation-form button:disabled { cursor: not-allowed; opacity: .55; }
.manual-note { margin: 0; padding: 9px 11px; color: #765d27; background: #fbf7ed; border-left: 3px solid var(--gold); border-radius: 4px; font-size: 11px; }
.form-actions { display: flex; align-items: center; gap: 12px; }
.compact-primary { width: auto; min-width: 100px; margin-top: 0; }
.form-error { margin: 0; color: #913f3f; font-size: 11px; }
.operation-list { display: grid; }
.operation-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid #edf0f4; }
.operation-row:last-child { border-bottom: 0; }
.operation-row > div { display: grid; gap: 4px; min-width: 0; }
.operation-row > div > a { overflow: hidden; color: #2b3a50; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.operation-row > div > span { color: var(--muted); font-size: 10px; }
.operational-panel { grid-column: 1 / -1; }
.state-panel { display: flex; align-items: center; gap: 11px; min-height: 80px; padding: 20px; color: #65748a; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.state-panel p { margin: 0; }
.state-mark { color: var(--gold); font-size: 18px; font-weight: 800; }
.state-panel.error { color: #913f3f; background: #fff8f7; border-color: #f0d8d4; }
.state-panel.error .state-mark { color: #b54343; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.djen-tabs { display:flex; gap:7px; margin:14px 0 18px; padding-bottom:9px; border-bottom:1px solid var(--line); }
.djen-tabs a { padding:8px 11px; color:var(--muted); border-radius:6px; font-size:11px; font-weight:650; text-decoration:none; }
.djen-tabs a:hover,.djen-tabs a.active { color:#24354c; background:#f4f0e5; }
.djen-form,.djen-filters,.djen-link-form { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:14px 0; padding:16px; background:#fff; border:1px solid var(--line); border-radius:10px; }
.djen-form label,.djen-filters label,.djen-link-form label { min-width:130px; flex:1; margin:0; }
.djen-form input,.djen-form select,.djen-filters input,.djen-filters select,.djen-link-form select { width:100%; padding:9px 10px; color:#26354a; background:#fff; border:1px solid #d7dee7; border-radius:7px; font:inherit; font-size:12px; }
.djen-form h2 { flex:0 0 100%; margin:0; color:#26354a; font-size:14px; }
.djen-form .primary { margin:0; }
.djen-results-heading { display:flex; justify-content:space-between; gap:12px; margin:14px 1px 8px; color:#53647b; font-size:11px; }
.djen-result-list,.djen-publication-list,.djen-monitor-list { display:grid; gap:10px; }
.djen-result,.djen-detail,.djen-monitor,.djen-publication-card { min-width:0; padding:16px; color:inherit; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 2px 8px #1a2c4108; }
.djen-result-heading,.djen-monitor,.djen-monitor-actions,.djen-detail-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.djen-description-form { display:flex; align-items:end; gap:10px; margin:0 0 10px; padding:11px 14px; background:#fbfcfd; border:1px solid var(--line); border-radius:8px; }
.djen-description-form label { flex:1; margin:0; }
.djen-description-form input { width:100%; padding:8px 10px; border:1px solid #d7dee7; border-radius:7px; font:inherit; font-size:12px; }
.djen-result h2,.djen-monitor h2 { margin:8px 0 0; color:#26354a; font-size:14px; }
.djen-result dl,.djen-detail dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:12px; margin:14px 0; }
.djen-result dl div,.djen-detail dl div { min-width:0; }
.djen-result dt,.djen-detail dt { color:var(--muted); font-size:10px; }
.djen-result dd,.djen-detail dd { margin:4px 0 0; color:#26354a; font-size:11px; overflow-wrap:anywhere; }
.djen-result p,.djen-detail p { color:#42536a; font-size:12px; line-height:1.65; }
.djen-publication-card { display:grid; gap:7px; text-decoration:none; }
.djen-publication-card:hover { border-color:#c8a65d99; box-shadow:0 5px 14px #1a2c4110; }
.djen-publication-card strong { color:#24354c; font-size:13px; }
.djen-publication-card > span:not(.badge),.djen-publication-card small,.djen-monitor p,.djen-monitor small { color:var(--muted); font-size:11px; }
.djen-detail { margin-bottom:14px; }
.djen-detail-actions { justify-content:flex-start; flex-wrap:wrap; margin-bottom:14px; }
.publication-content { padding:14px; background:#fafbfc; border:1px solid #edf0f4; border-radius:7px; white-space:pre-wrap; overflow-wrap:anywhere; }
.djen-pagination { display:flex; justify-content:space-between; margin:12px 0; }
.djen-pagination button:disabled { opacity:.45; cursor:not-allowed; }
.publication-row { text-decoration:none; }
.publication-row:hover { background:#fcfaf5; }
@media(max-width:640px) { .djen-result-heading,.djen-monitor,.djen-description-form { align-items:stretch; flex-direction:column; } .djen-results-heading { flex-direction:column; } .djen-tabs { overflow:auto; } }
.login { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: #f3f5f8; }
.login .card { width: min(100%, 430px); padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 36px #16243a12; }
.login h1 { margin: 8px 0; color: #1e2d42; font-size: 27px; }
.login .muted { color: var(--muted); font-size: 12px; }
label { display: grid; gap: 6px; margin-top: 16px; color: #36465c; font-size: 11px; font-weight: 650; }
input { width: 100%; padding: 11px 12px; color: #26354a; background: #fff; border: 1px solid #d7dee7; border-radius: 7px; }
input:focus-visible { outline: 3px solid #c8a65d66; border-color: #9b7b36; }
.primary { width: 100%; margin-top: 20px; padding: 12px; color: #fff; background: var(--navy-soft); border-radius: 7px; font-size: 12px; font-weight: 700; }
.primary:hover { background: var(--blue); }
.login .error { padding: 10px; color: #913f3f; background: #fff0ef; border-radius: 6px; font-size: 11px; }
@media (max-width: 850px) {
  .sidebar { width: 220px; }
  .workspace { margin-left: 220px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-panels { grid-template-columns: 1fr; }
  .topbar { gap: 12px; padding-right: 18px; padding-left: 18px; }
  .global-search-wrap { max-width: 330px; }
}
@media (max-width: 640px) {
  .sidebar { width: 68px; align-items: center; padding: 16px 8px; }
  .brand { justify-content: center; padding: 0 0 19px; }
  .brand-copy, .nav-link > span:not(.nav-icon), .sidebar-foot { display: none; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .side-nav { width: 100%; padding-top: 20px; }
  .nav-link { justify-content: center; padding: 0; }
  .nav-icon { font-size: 20px; }
  .workspace { margin-left: 68px; }
  .topbar { min-height: 66px; gap: 10px; padding: 10px 14px; }
  .topbar-kicker { display: none; }
  .global-search-wrap { display: none; }
  .profile { gap: 7px; }
  .profile-copy { display: none; }
  .main-content { padding: 24px 15px 38px; }
  .summary-grid { grid-template-columns: 1fr; gap: 9px; }
  .summary-card { min-height: 90px; }
  .page-heading { align-items: flex-start; }
  .page-greeting { max-width: 145px; padding: 8px; }
  .page-greeting strong { white-space: normal; }
  .summary-grid { grid-template-columns: 1fr; }
  .process-card { align-items: flex-start; gap: 10px; padding: 14px; }
  .process-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .process-status { display: none; }
  .open-label { align-self: center; white-space: nowrap; }
  .operation-row { grid-template-columns: minmax(0, 1fr) auto; }
  .operation-row .operation-status { display: none; }
}


.client-list-actions { display: flex; justify-content: flex-end; margin: -8px 0 16px; }
.client-dialog { width: min(calc(100% - 32px), 520px); max-width: 520px; padding: 0; border: 0; border-radius: 12px; background: transparent; }
.client-dialog::backdrop { background: #14223888; }
.client-dialog .operation-form { width: 100%; box-shadow: 0 16px 50px #14223833; }
.profile-form { display: grid; gap: 14px; max-height: min(78vh, 900px); overflow: auto; }
.profile-form[hidden] { display: none; }
.profile-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid #e4e8ef; border-radius: 10px; }
.profile-section h3 { grid-column: 1 / -1; margin: 0; }
.profile-section label { min-width: 0; }
.profile-section textarea { min-height: 90px; }
.profile-completeness { grid-column: 1 / -1; margin: 0; color: #657286; }
.profile-summary { margin: 16px 0; }
.profile-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.profile-summary dl div { min-width: 0; }
.profile-summary dt { color: #68778b; font-size: 12px; }
.profile-summary dd { margin: 3px 0 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .profile-section, .profile-summary dl { grid-template-columns: 1fr; } }
.form-success { margin: 0; color: #286347; font-size: 11px; }
.calendar-panel { margin-top: 18px; }
.calendar-settings { display: grid; gap: 14px; max-width: 760px; }
.calendar-settings label { display: grid; gap: 6px; }
.calendar-settings input, .calendar-settings select, .google-event-form input, .google-event-form select, .google-event-form textarea { width: 100%; }
.google-event-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.google-event-form > label, .google-event-form .calendar-timed-fields, .google-event-form .calendar-date-fields, .google-event-form .form-error, .google-event-form .form-actions { grid-column: 1/-1; }
.google-event-form .calendar-timed-fields, .google-event-form .calendar-date-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.google-event-form .calendar-all-day { display:flex; align-items:center; gap:8px; }
.google-event-form .calendar-all-day input { width:auto; }
.google-event-form [hidden] { display:none; }
.calendar-day-label { margin: 12px 0 2px; color:#657286; font-size:12px; text-transform:uppercase; letter-spacing:.06em; }
.calendar-event-detail dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 22px; }
.calendar-event-detail dd { margin:4px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.calendar-event-detail dt { color:#68778b; font-size:12px; }
@media (max-width: 640px) { .google-event-form, .google-event-form .calendar-timed-fields, .google-event-form .calendar-date-fields, .calendar-event-detail dl { grid-template-columns:1fr; } }


.mesa-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.mesa-counts .summary-card { min-height:82px; padding:14px 16px; }
.mesa-counts .summary-value { font-size:22px; }
.mesa-alert-list { display:grid; }
.mesa-alert-row { width:100%; display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:13px; padding:13px 8px; border:0; border-bottom:1px solid #edf0f4; background:transparent; color:inherit; text-align:left; cursor:pointer; }
.mesa-alert-row:hover,.mesa-alert-row:focus-visible { background:#f6f8fb; outline-color:var(--blue); }
.mesa-alert-row.is-overdue .agenda-type { color:#8f4545; background:#fbefee; }
.mesa-alert-row.is-today .agenda-type { color:#76591e; background:#f8f1df; }
.mesa-alert-main { display:grid; gap:3px; min-width:0; }
.mesa-alert-main strong { overflow:hidden; color:#2b3a50; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.mesa-alert-main span,.mesa-alert-main small { overflow:hidden; color:var(--muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.mesa-alert-status { color:#59677b; font-size:10px; white-space:nowrap; }
.mesa-tabs { display:flex; flex-wrap:wrap; gap:7px; padding:0 0 12px; border-bottom:1px solid #edf0f4; }
.mesa-tab { padding:7px 11px; border:1px solid #e0e5ec; border-radius:999px; background:#fff; color:#59677b; font:inherit; font-size:11px; cursor:pointer; }
.mesa-tab.active { border-color:#294d7c; background:#edf3fa; color:#234573; }
.agenda-placeholder { margin-top:14px; padding:13px 17px; border:1px dashed #ccd4df; border-radius:10px; color:var(--muted); }
.agenda-placeholder p { margin:4px 0 0; font-size:12px; }
.mesa-detail-dialog { width:min(calc(100% - 32px),720px); max-height:85vh; overflow:auto; padding:22px; border:1px solid #e4e9f0; border-radius:14px; color:var(--ink); box-shadow:0 18px 60px #14223844; }
.mesa-detail-dialog::backdrop { background:#14223888; }
.mesa-detail-dialog h2 { margin:6px 0 10px; font-size:20px; }
.mesa-detail-description { max-height:35vh; overflow:auto; color:#536277; line-height:1.6; white-space:pre-wrap; }
.mesa-detail-context { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:18px 0; }
.mesa-detail-context div { padding:10px 12px; border-radius:8px; background:#f6f8fb; }
.mesa-detail-context dt { color:var(--muted); font-size:10px; }
.mesa-detail-context dd { margin:4px 0 0; color:#2b3a50; font-size:12px; }
.mesa-detail-actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.mesa-detail-dialog .form-actions { justify-content:flex-end; }
@media (max-width:720px) { .mesa-counts { grid-template-columns:repeat(2,minmax(0,1fr)); } .mesa-alert-row { grid-template-columns:auto minmax(0,1fr) auto; gap:8px; } .mesa-alert-status { display:none; } }
@media (max-width:420px) { .mesa-counts { grid-template-columns:1fr; } .mesa-detail-context { grid-template-columns:1fr; } }
.document-setup,.document-upload,.document-classify { margin:18px 0; padding:22px; }
.document-setup form,.document-upload,.document-classify { display:grid; gap:14px; }
.document-filters { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin:18px 0; align-items:end; }
.document-filters label,.document-upload label,.document-classify label { display:grid; gap:6px; color:var(--muted); font-size:12px; }
.document-table { width:100%; border-collapse:collapse; text-align:left; }
.document-table th,.document-table td { padding:12px 10px; border-bottom:1px solid #e8edf3; vertical-align:top; }
.document-table th { color:var(--muted); font-size:11px; font-weight:600; }
.document-table td { color:#2b3a50; font-size:12px; }
.document-table td:first-child { min-width:190px; }
.document-table td:last-child { min-width:210px; }
.document-table td:last-child button,.document-table td:last-child a { margin:2px; }
.document-table a { color:inherit; text-decoration:none; }
.document-table a:hover { color:var(--brand); }
.duplicate-document { display:block; color:#9a5d00; margin-top:5px; }
.document-root-state { margin:16px 0; }
.document-upload #document-upload-results { display:grid; gap:5px; color:#2b3a50; font-size:12px; }
.document-upload #document-upload-results p { margin:0; }
.document-extracted-text { max-height:32rem; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; padding:1rem; border:1px solid #d8dfe8; border-radius:.5rem; background:#fafbfc; font:inherit; line-height:1.55; }
@media(max-width:760px) { .document-table { min-width:850px; } .document-filters { grid-template-columns:1fr 1fr; } }
.bia-layout { display:grid; grid-template-columns:250px minmax(0,1fr); gap:18px; min-height:65vh; }
.bia-history { padding:14px; border:1px solid #e2e7ee; border-radius:12px; background:#f8fafc; }
.bia-history nav { display:grid; gap:7px; margin-top:14px; }
.bia-conversation { display:grid; gap:3px; padding:10px; border-radius:8px; color:#34445a; text-decoration:none; }
.bia-conversation:hover,.bia-conversation.active { background:#e8f0fa; color:#234573; }
.bia-conversation strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.bia-conversation small { color:var(--muted); font-size:10px; }
.bia-chat { display:grid; grid-template-rows:minmax(340px,1fr) auto; padding:0; overflow:hidden; }
.bia-messages { display:grid; align-content:start; gap:14px; max-height:62vh; padding:22px; overflow:auto; background:linear-gradient(180deg,#fbfcfe,#f5f8fb); }
.bia-message { max-width:82%; padding:14px 16px; border:1px solid #dfe5ed; border-radius:12px; background:#fff; box-shadow:0 2px 8px #1422380a; }
.bia-message.user { justify-self:end; border-color:#cad8e9; background:#edf3fa; }
.bia-message header { margin-bottom:6px; color:#294d7c; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; }
.bia-message p { margin:0; color:#33445b; line-height:1.6; white-space:pre-wrap; }
.bia-references { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; padding-top:10px; border-top:1px solid #edf0f4; }
.bia-references span { width:100%; color:var(--muted); font-size:10px; }
.bia-references a { padding:5px 8px; border-radius:999px; background:#eef3f8; color:#294d7c; font-size:10px; text-decoration:none; }
.bia-empty { align-self:center; justify-self:center; max-width:460px; padding:40px; color:#536277; text-align:center; }
.bia-empty strong { color:#294d7c; font-size:22px; }
.bia-compose { display:grid; gap:7px; padding:16px 20px; border-top:1px solid #e3e8ef; background:#fff; }
.bia-compose label { color:var(--muted); font-size:11px; }
.bia-compose>div { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; }
.bia-compose textarea { width:100%; resize:vertical; }
@media(max-width:820px) { .bia-layout { grid-template-columns:1fr; } .bia-history nav { grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); } .bia-message { max-width:94%; } }
