:root {
    color-scheme: light;
    --ink: #1d2440;
    --muted: #8189a0;
    --subtle: #a5abc0;
    --primary: #574bdd;
    --primary-dark: #352f88;
    --line: #e8eaf2;
    --surface: #fff;
    --canvas: #f5f6fb;
    --teal: #27a987;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-width: 0; min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; }
.topbar { position: sticky; z-index: 10; top: 0; height: 76px; padding: 0 clamp(22px, 4vw, 62px); display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #756bf0, #5145d1); box-shadow: 0 7px 16px #5a4ddb30; font-size: 21px; font-weight: 800; }
.brand-word { color: var(--ink); font-size: 16px; font-weight: 850; letter-spacing: .09em; }.brand-word small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.topbar-tools { display: flex; align-items: center; gap: 20px; }.connection-state { color: #737c95; font-size: 12px; }.status-dot, .welcome-kicker-dot { display: inline-block; width: 8px; height: 8px; margin-left: 7px; border-radius: 50%; background: #31bd91; box-shadow: 0 0 0 3px #31bd9119; }.topbar-divider { width: 1px; height: 28px; background: var(--line); }.user-chip { display: flex; align-items: center; gap: 9px; color: #525c75; font-size: 12px; }.user-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #efedff; color: var(--primary); font-weight: 750; }
.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); max-width: 1600px; min-height: calc(100vh - 76px); margin: 0 auto; }
.sidebar { position: sticky; top: 76px; display: flex; flex-direction: column; height: calc(100vh - 76px); min-height: 610px; padding: 30px 18px 20px; border-left: 1px solid var(--line); background: #fff; }
.sidebar-caption { padding: 0 12px 13px; color: #a1a7b9; font-size: 10px; font-weight: 700; }.side-nav { display: grid; gap: 5px; }.side-link { position: relative; display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 0 12px; border-radius: 10px; color: #69738d; font-size: 12px; text-decoration: none; transition: .18s ease; }.side-link:hover { background: #f7f7fd; color: var(--primary); }.side-link.active { background: #f0efff; color: #5145c6; font-weight: 700; }.side-link.active::before { position: absolute; top: 9px; right: 0; bottom: 9px; width: 3px; border-radius: 4px 0 0 4px; background: var(--primary); content: ""; }.nav-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #f4f5f9; color: #77819b; font-size: 15px; }.side-link.active .nav-icon { background: #e3e1ff; color: var(--primary); }.nav-arrow { margin-right: auto; color: #b7bbca; font-size: 12px; }
.sidebar-bottom { margin-top: auto; }.help-card { padding: 17px 15px; border: 1px solid #e9e8fa; border-radius: 13px; background: linear-gradient(145deg,#fbfaff,#f5f4ff); }.help-symbol { display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 12px; border-radius: 8px; background: #e9e7ff; color: var(--primary); font-size: 13px; font-weight: 800; }.help-card strong { color: #454d67; font-size: 11px; }.help-card p { margin: 7px 0 10px; color: #858ca1; font-size: 10px; line-height: 1.8; }.help-soon { color: var(--primary); font-size: 10px; font-weight: 650; }.sidebar-version { padding: 18px 5px 0; color: #a0a6b5; font-size: 9px; letter-spacing: .05em; }.sidebar-version span { margin: 0 5px; color: #c7cad5; }
.main-content { min-width: 0; padding: 35px clamp(20px, 4vw, 58px) 0; }.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }.eyebrow { margin-bottom: 5px; color: #8d94aa; font-size: 10px; font-weight: 700; }.page-heading h1 { margin: 0; color: #222946; font-size: 25px; font-weight: 760; letter-spacing: -.025em; }.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }.date-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #79829a; font-size: 10px; white-space: nowrap; }.calendar-icon { color: var(--primary); font-size: 14px; }
.welcome-panel { position: relative; display: flex; min-height: 226px; align-items: center; justify-content: space-between; overflow: hidden; padding: 29px clamp(25px, 4vw, 53px); border-radius: 19px; color: #fff; background: linear-gradient(110deg,#29246d 0%,#4740ad 54%,#6157dc 100%); box-shadow: 0 15px 35px #4038991c; }.welcome-copy { position: relative; z-index: 1; max-width: 610px; }.welcome-kicker { display: inline-flex; align-items: center; margin-bottom: 14px; color: #cecbff; font-size: 10px; font-weight: 650; }.welcome-kicker-dot { width: 6px; height: 6px; margin-left: 8px; background: #9c94ff; box-shadow: none; }.welcome-copy h2 { margin: 0 0 10px; font-size: clamp(23px, 3vw, 32px); font-weight: 750; letter-spacing: -.035em; }.welcome-copy h2 span { color: #bcb7ff; }.welcome-copy p { max-width: 500px; margin: 0 0 16px; color: #dfddff; font-size: 12px; line-height: 1.9; }.welcome-link { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }.welcome-link:hover { color: #d2cfff; }.welcome-link span { font-size: 15px; }
.welcome-art { position: relative; width: 230px; height: 180px; margin-left: 2%; flex: 0 0 230px; }.art-ring { position: absolute; border: 1px solid #ffffff25; border-radius: 50%; }.ring-one { top: -1px; left: 10px; width: 180px; height: 180px; }.ring-two { top: 20px; left: 31px; width: 138px; height: 138px; }.art-document { position: absolute; top: 29px; left: 64px; width: 98px; height: 117px; padding: 14px; border: 1px solid #ffffff70; border-radius: 13px; background: #fff; box-shadow: 0 12px 26px #17134d3d; transform: rotate(-7deg); }.document-mark { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 12px; border-radius: 8px; background: #eeedff; color: var(--primary); font-size: 16px; }.document-line { display: block; width: 57px; height: 5px; margin: 7px 0; border-radius: 6px; background: #e5e6ef; }.document-line.line-wide { width: 70px; background: #cbc8fa; }.document-line.line-short { width: 38px; }.art-notice { position: absolute; right: 2px; bottom: 26px; padding: 7px 10px; border: 1px solid #e8f7f1; border-radius: 8px; background: #fff; color: #39977b; box-shadow: 0 5px 15px #17134d20; font-size: 9px; }.art-notice b { margin-right: 6px; color: #2bb78f; }.art-star { position: absolute; top: 7px; right: 5px; color: #dedbff; font-size: 20px; }
.summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-top: 17px; }.summary-card { position: relative; min-height: 128px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }.summary-icon { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 11px; border-radius: 9px; font-size: 15px; }.icon-purple { background: #eeedff; color: #5a4ed9; }.icon-teal { background: #e6f7f2; color: #259a79; }.icon-amber { background: #fff4e0; color: #d3942c; }.icon-blue { background: #eaf1ff; color: #5485d8; }.summary-label { color: #656f88; font-size: 10px; font-weight: 650; }.summary-value { position: absolute; top: 19px; left: 17px; color: #adb2c1; font-size: 24px; font-weight: 700; }.summary-note { margin-top: 6px; color: #a1a7b7; font-size: 9px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 32px 2px 13px; }.section-heading h2,.activity-heading h2 { margin: 0; color: #252c48; font-size: 17px; font-weight: 750; }.section-caption { padding-bottom: 2px; color: #969caf; font-size: 10px; }.module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }.module-card { min-height: 185px; padding: 17px 18px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; scroll-margin-top: 95px; }.module-card:hover { transform: translateY(-2px); border-color: #dddafa; box-shadow: 0 10px 24px #262c480b; }.module-top { display: flex; align-items: start; justify-content: space-between; }.module-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; font-size: 17px; }.module-icon.indigo { background: #eeedff; color: #584dd4; }.module-icon.teal { background: #e5f7f2; color: #259b78; }.module-icon.amber { background: #fff4df; color: #d3942d; }.module-state { padding: 5px 9px; border-radius: 20px; background: #f2f3f8; color: #9298aa; font-size: 9px; }.module-card h3 { margin: 13px 0 6px; color: #29304b; font-size: 12px; font-weight: 750; }.module-card p { min-height: 35px; margin: 0; color: #828aa0; font-size: 10px; line-height: 1.8; }.module-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 7px; color: #5b51cd; font-size: 9px; font-weight: 700; text-decoration: none; }.module-link:hover { color: #383085; }.module-link span { font-size: 12px; }
.activity-panel { margin-top: 20px; padding: 17px 19px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }.activity-heading { display: flex; align-items: center; justify-content: space-between; }.activity-heading .eyebrow { margin-bottom: 4px; }.activity-heading h2 { font-size: 14px; }.activity-badge { color: #a0a6b7; font-size: 9px; }.activity-empty { display: flex; align-items: center; gap: 13px; min-height: 75px; margin-top: 11px; padding: 13px 15px; border: 1px dashed #e7e9f0; border-radius: 10px; background: #fbfcfe; }.empty-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: #f0f1f8; color: #9299ad; font-size: 17px; }.activity-empty strong { color: #626c84; font-size: 10px; }.activity-empty p { margin: 4px 0 0; color: #9aa0b0; font-size: 9px; }.footer { margin-top: 25px; padding: 15px 0 18px; border-top: 1px solid var(--line); color: #a0a6b5; text-align: center; font-size: 9px; }.footer span { margin: 0 5px; color: #c4c8d3; }
@media (min-width: 1450px) { .main-content { padding-right: 62px; padding-left: 62px; }.welcome-panel { min-height: 240px; }.summary-card { min-height: 137px; padding: 17px 18px; }.module-card { min-height: 192px; padding: 19px 20px 16px; } }
@media (max-width: 1100px) { .app-shell { grid-template-columns: 215px minmax(0,1fr); }.main-content { padding-right: 25px; padding-left: 25px; }.summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.welcome-art { margin-left: -30px; opacity: .82; } }
@media (max-width: 760px) { .topbar { height: 66px; padding: 0 17px; }.brand-mark { width: 37px; height: 37px; }.topbar-tools { gap: 12px; }.connection-state { font-size: 10px; }.topbar-divider { height: 23px; }.user-name { display: none; }.app-shell { display: block; min-height: calc(100vh - 66px); }.sidebar { position: static; display: block; height: auto; min-height: 0; padding: 10px 13px; border-left: 0; border-bottom: 1px solid var(--line); }.sidebar-caption,.sidebar-bottom { display: none; }.side-nav { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }.side-nav::-webkit-scrollbar { display: none; }.side-link { min-width: max-content; min-height: 38px; gap: 7px; padding: 0 10px; font-size: 10px; }.side-link.active::before { top: auto; right: 9px; bottom: 0; left: 9px; width: auto; height: 2px; border-radius: 2px 2px 0 0; }.nav-icon { width: 22px; height: 22px; font-size: 13px; }.nav-arrow { display: none; }.main-content { padding: 24px 16px 0; }.page-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 18px; }.page-heading h1 { font-size: 21px; }.page-heading p { max-width: 260px; font-size: 10px; }.date-chip { max-width: none; padding: 8px; font-size: 9px; white-space: normal; }.welcome-panel { min-height: 205px; padding: 25px 21px; }.welcome-art { position: absolute; left: -61px; margin: 0; opacity: .28; }.welcome-copy { max-width: 100%; }.welcome-copy h2 { max-width: 330px; font-size: 24px; }.welcome-copy p { max-width: 350px; font-size: 10px; }.summary-grid { gap: 9px; margin-top: 12px; }.summary-card { min-height: 115px; padding: 12px; }.summary-icon { width: 28px; height: 28px; margin-bottom: 9px; }.summary-label { max-width: 120px; font-size: 9px; }.summary-value { top: 16px; left: 13px; font-size: 20px; }.summary-note { font-size: 8px; }.section-heading { margin-top: 25px; }.section-heading h2 { font-size: 15px; }.section-caption { max-width: 130px; font-size: 9px; text-align: left; }.module-grid { grid-template-columns: 1fr; gap: 9px; }.module-card { min-height: 0; padding: 14px 15px; }.module-card h3 { margin-top: 9px; }.module-card p { min-height: 0; }.activity-panel { margin-top: 14px; padding: 14px; }.activity-empty { align-items: start; }.activity-empty p { line-height: 1.8; }.footer { margin-top: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }



.crumb-separator { margin: 0 5px; color: #c1c5d2; }.page-heading .eyebrow a { color: inherit; text-decoration: none; }.page-heading .eyebrow a:hover { color: var(--primary); }
.primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 15px; border: 1px solid var(--primary); border-radius: 9px; background: var(--primary); color: #fff; font: inherit; font-size: 11px; font-weight: 700; text-decoration: none; transition: .18s ease; }.primary-action:hover:not(:disabled) { border-color: #4037b8; background: #4037b8; color: #fff; box-shadow: 0 6px 16px #574bdd28; }.primary-action:disabled { cursor: not-allowed; border-color: #dadce6; background: #e9eaf0; color: #9298a9; }.primary-action span { font-size: 15px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: #6e7890; font-size: 11px; text-decoration: none; }.back-link:hover { color: var(--primary); }.back-link span { font-size: 15px; }
.prototype-notice { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; padding: 12px 14px; border: 1px solid #f1e5c6; border-radius: 10px; background: #fffaf0; color: #8b7445; font-size: 10px; line-height: 1.8; }.notice-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: #f8edcf; color: #a27d27; font-size: 12px; font-weight: 800; }
.correspondence-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.correspondence-tabs { display: flex; gap: 21px; padding: 0 20px; border-bottom: 1px solid var(--line); }.correspondence-tab { position: relative; min-height: 48px; padding: 0 1px; border: 0; background: transparent; color: #868da1; font: inherit; font-size: 10px; }.correspondence-tab.selected { color: var(--primary); font-weight: 750; }.correspondence-tab.selected::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--primary); content: ""; }.correspondence-tab:disabled { cursor: not-allowed; opacity: .65; }
.filter-row { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }.search-box,.select-box { display: flex; align-items: center; gap: 9px; min-height: 35px; padding: 0 10px; border: 1px solid #e9ebf2; border-radius: 8px; background: #fafbfe; color: #9aa1b3; }.search-box { min-width: 230px; }.search-box>span { font-size: 18px; }.search-box input,.select-box select { width: 100%; border: 0; outline: 0; background: transparent; color: #707992; font: inherit; font-size: 9px; }.search-box input::placeholder { color: #a4aabc; }.select-box { min-width: 125px; }.select-box select { appearance: none; }.filters-note { margin-right: auto; color: #a2a8b7; font-size: 9px; }.search-box input:disabled,.select-box select:disabled { cursor: not-allowed; opacity: .75; }
.correspondence-empty { display: flex; min-height: 330px; flex-direction: column; align-items: center; justify-content: center; padding: 28px 20px; text-align: center; }.empty-illustration { position: relative; width: 91px; height: 80px; margin-bottom: 13px; }.empty-paper { position: absolute; top: 3px; right: 15px; display: flex; width: 54px; height: 66px; flex-direction: column; gap: 7px; padding: 16px 10px; border: 1px solid #e5e6f1; border-radius: 10px; background: #f8f8fe; transform: rotate(-7deg); }.empty-paper i { display: block; height: 4px; border-radius: 4px; background: #dddcf8; }.empty-paper i:nth-child(2) { width: 27px; background: #e7e8ef; }.empty-paper i:nth-child(3) { width: 20px; background: #e7e8ef; }.empty-search { position: absolute; right: 0; bottom: 2px; display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid #fff; border-radius: 50%; background: #eeedff; color: var(--primary); font-size: 19px; box-shadow: 0 3px 10px #34396714; }.correspondence-empty h2 { margin: 0; color: #343b56; font-size: 14px; font-weight: 750; }.correspondence-empty p { max-width: 410px; margin: 8px 0 17px; color: #8c94a8; font-size: 10px; line-height: 1.9; }.secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 13px; border: 1px solid #e2e0fb; border-radius: 8px; color: #5c52c8; font-size: 10px; font-weight: 700; text-decoration: none; }.secondary-action:hover { background: #f6f5ff; }.list-footer { display: flex; justify-content: space-between; padding: 11px 18px; border-top: 1px solid var(--line); color: #9da3b2; font-size: 9px; }
.correspondence-form { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.form-section { padding: 21px 23px 23px; border-bottom: 1px solid var(--line); }.form-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }.form-step { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #efeeff; color: var(--primary); font-size: 12px; font-weight: 750; }.form-section-heading h2 { margin: 0; color: #323954; font-size: 12px; font-weight: 750; }.form-section-heading p { margin: 4px 0 0; color: #979db0; font-size: 9px; }.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }.field { display: grid; gap: 7px; color: #626b83; font-size: 10px; font-weight: 650; }.field>span b { color: #d87979; font-weight: 700; }.field input,.field select,.field textarea { width: 100%; min-height: 37px; padding: 9px 11px; border: 1px solid #e7e9f0; border-radius: 8px; background: #fafbfe; color: #737c93; font: inherit; font-size: 9px; resize: vertical; }.field input::placeholder,.field textarea::placeholder { color: #a9afbd; }.field input:disabled,.field select:disabled,.field textarea:disabled { cursor: not-allowed; opacity: .8; }.field-wide { grid-column: 1/-1; }.field textarea { min-height: 91px; }.attachment-section { padding-bottom: 20px; }.attachment-placeholder { display: flex; min-height: 70px; align-items: center; justify-content: center; gap: 9px; border: 1px dashed #dfe2ec; border-radius: 9px; background: #fbfcfe; color: #9ba2b3; font-size: 9px; }.attachment-symbol { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #f0f1f7; color: #8991a7; font-size: 16px; }.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 15px 22px; background: #fcfcfe; }.cancel-action { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 15px; border: 1px solid #e4e6ed; border-radius: 9px; color: #757e94; font-size: 10px; text-decoration: none; }.cancel-action:hover { background: #f4f5f9; }.visually-hidden { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 760px) { .form-page-heading { gap: 12px; }.form-page-heading h1 { font-size: 21px; }.page-heading:not(.form-page-heading) .primary-action { min-height: 35px; padding: 0 11px; font-size: 10px; }.prototype-notice { align-items: flex-start; padding: 10px; }.correspondence-tabs { gap: 16px; padding: 0 14px; }.filter-row { flex-wrap: wrap; padding: 12px; }.search-box { min-width: 100%; }.select-box { min-width: 125px; }.filters-note { width: 100%; margin-right: 0; }.correspondence-empty { min-height: 275px; }.form-section { padding: 17px 14px; }.form-grid { grid-template-columns: 1fr; gap: 12px; }.field-wide { grid-column: auto; }.form-actions { padding: 13px 14px; }.back-link { font-size: 10px; } }
.filter-submit { min-height: 34px; padding: 0 12px; border: 1px solid #e1e2f6; border-radius: 8px; background: #f5f4ff; color: #5b51c9; font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; }.filter-submit:hover { background: #ecebff; }.success-notice { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; padding: 11px 14px; border: 1px solid #ccebe0; border-radius: 9px; background: #f1fbf7; color: #337c66; font-size: 10px; }.success-notice span { font-size: 14px; font-weight: 800; }
.table-scroll { overflow-x: auto; }.correspondence-table { width: 100%; border-collapse: collapse; text-align: right; }.correspondence-table th { padding: 12px 16px; border-bottom: 1px solid #eceef4; background: #fbfcfe; color: #9299ac; font-size: 9px; font-weight: 650; white-space: nowrap; }.correspondence-table td { padding: 13px 16px; border-bottom: 1px solid #f0f1f5; color: #69738a; font-size: 9px; vertical-align: middle; }.correspondence-table tbody tr:last-child td { border-bottom: 0; }.correspondence-table tbody tr:hover { background: #fcfcff; }.type-pill,.status-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 0 8px; border-radius: 20px; font-size: 8px; font-weight: 650; white-space: nowrap; }.type-pill.incoming { background: #eef2ff; color: #5d6bc1; }.type-pill.outgoing { background: #f2efff; color: #6b58bd; }.status-1 { background: #edf3ff; color: #5d79bd; }.status-2 { background: #fff5df; color: #aa7b28; }.status-3 { background: #e9f8f1; color: #348b6c; }.status-4 { background: #f0f1f5; color: #81899c; }.table-subject { display: block; max-width: 360px; overflow: hidden; color: #343b55; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.table-party { display: block; margin-top: 4px; color: #9ba1b1; font-size: 8px; }.reference-cell { direction: ltr; text-align: right; white-space: nowrap; }.field-error { min-height: 0; color: #bc5d5d; font-size: 9px; font-weight: 500; }.validation-summary:empty { display: none; }.validation-summary:not(:empty) { margin-bottom: 13px; padding: 10px 14px; border: 1px solid #f0d7d7; border-radius: 8px; background: #fff7f7; color: #a65050; font-size: 10px; }.field.input-validation-error input,.field.input-validation-error select,.field.input-validation-error textarea { border-color: #d87878; }
@media (max-width: 760px) { .filter-submit { flex: 1; }.correspondence-table { min-width: 650px; }.list-footer { padding: 10px 12px; } }

/* Readable 18px typography pass */
body { font-size: 18px; }
.brand-word { font-size: 18px; }
.brand-word small { font-size: 14px; }
.connection-state, .user-chip { font-size: 15px; }
.sidebar-caption, .help-card p, .help-soon, .sidebar-version { font-size: 14px; }
.side-link { font-size: 17px; }
.help-card strong { font-size: 16px; }
.eyebrow { font-size: 14px; }
.page-heading h1 { font-size: clamp(25px, 2.4vw + 18px, 32px); }
.page-heading p { font-size: 18px; }
.date-chip { font-size: 14px; }
.welcome-kicker { font-size: 14px; }
.welcome-copy h2 { font-size: clamp(25px, 2.6vw + 18px, 35px); }
.welcome-copy p { font-size: 18px; }
.welcome-link { font-size: 16px; }
.summary-label { font-size: 16px; }
.summary-value { font-size: 30px; }
.summary-note { font-size: 13px; }
.section-heading h2, .activity-heading h2 { font-size: 21px; }
.section-caption { font-size: 14px; }
.module-card h3 { font-size: 18px; }
.module-card p { font-size: 16px; }
.module-state { font-size: 12px; }
.module-link { font-size: 15px; }
.activity-badge { font-size: 13px; }
.activity-empty strong { font-size: 16px; }
.activity-empty p { font-size: 14px; }
.footer { font-size: 12px; }
.primary-action { font-size: 16px; }
.back-link { font-size: 15px; }
.prototype-notice { font-size: 15px; }
.correspondence-tab { font-size: 16px; }
.search-box input, .select-box select { font-size: 15px; }
.filters-note { font-size: 13px; }
.filter-submit { font-size: 14px; }
.correspondence-empty h2 { font-size: 21px; }
.correspondence-empty p { font-size: 15px; }
.secondary-action { font-size: 15px; }
.list-footer { font-size: 13px; }
.correspondence-table th { font-size: 14px; }
.correspondence-table td { font-size: 14px; }
.type-pill, .status-pill { font-size: 12px; }
.table-subject { font-size: 15px; }
.table-party { font-size: 13px; }
.form-section-heading h2 { font-size: 18px; }
.form-section-heading p { font-size: 14px; }
.field { font-size: 18px; }
.field input, .field select, .field textarea { font-size: 16px; }
.field-error { font-size: 14px; }
.attachment-placeholder { font-size: 15px; }
.cancel-action { font-size: 16px; }
.validation-summary:not(:empty) { font-size: 15px; }
@media (max-width: 760px) {
    .side-link { font-size: 15px; }
    .page-heading h1 { font-size: 27px; }
    .page-heading p, .welcome-copy p { font-size: 16px; }
    .date-chip { font-size: 13px; }
    .summary-label { font-size: 14px; }
    .summary-note { font-size: 12px; }
    .module-card h3 { font-size: 17px; }
    .module-card p { font-size: 15px; }
    .prototype-notice { font-size: 14px; }
    .correspondence-tab { font-size: 15px; }
    .field { font-size: 16px; }
    .field input, .field select, .field textarea { font-size: 16px; }
}
.table-record-link { display: block; max-width: 360px; overflow: hidden; color: #343b55; font-size: 18px; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }.table-record-link:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.details-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.details-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fcfcfe; }.details-type { display: flex; align-items: center; gap: 8px; }.details-reference { color: #9299ac; font-size: 14px; }.details-reference strong { margin-right: 6px; color: #515a74; font-size: 16px; direction: ltr; }.details-subject { margin: 0; padding: 23px 22px 18px; color: #2b324f; font-size: 25px; line-height: 1.6; }.details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 0 22px; }.detail-field { display: grid; gap: 6px; min-height: 70px; align-content: center; border-top: 1px solid #eff0f5; }.detail-field:nth-child(odd) { margin-left: 22px; }.detail-field span { color: #9299ac; font-size: 14px; }.detail-field strong { color: #4d5671; font-size: 17px; font-weight: 650; }.details-summary { margin: 6px 22px 18px; padding: 16px; border: 1px solid #eceef4; border-radius: 10px; background: #fbfcfe; }.details-summary h3 { margin: 0 0 8px; color: #5b647c; font-size: 16px; }.summary-text,.muted-empty { margin: 0; color: #707a92; font-size: 16px; line-height: 1.9; white-space: pre-wrap; }.muted-empty { color: #a0a6b4; }.details-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); color: #9ba2b3; font-size: 13px; }.details-footer a { color: #5b51c9; font-size: 15px; font-weight: 650; text-decoration: none; }.details-footer a:hover { color: #383085; }.details-footer a span { margin-right: 7px; }
@media (max-width: 760px) { .details-topline { align-items: flex-start; flex-direction: column; padding: 14px; }.details-subject { padding: 18px 14px; font-size: 21px; }.details-grid { grid-template-columns: 1fr; padding: 0 14px; }.detail-field:nth-child(odd) { margin-left: 0; }.detail-field { min-height: 63px; }.details-summary { margin: 8px 14px 14px; padding: 13px; }.details-footer { align-items: flex-start; flex-direction: column; padding: 13px 14px; }.table-record-link { font-size: 16px; } }
.action-disabled { cursor: not-allowed; border-color: #dadce6; background: #e9eaf0; color: #858ca0; box-shadow: none; }
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 0%,#eeedff 0,transparent 35%),var(--canvas); }.auth-topbar { display: flex; height: 74px; align-items: center; padding: 0 clamp(20px,5vw,70px); border-bottom: 1px solid var(--line); background: #ffffffed; }.auth-main { display: grid; flex: 1; place-items: center; padding: 36px 18px; }.auth-footer { padding: 15px; color: #a0a6b5; text-align: center; font-size: 13px; }.auth-footer span { margin: 0 5px; color: #c4c8d3; }.auth-card { width: min(100%,510px); padding: clamp(24px,5vw,42px); border: 1px solid #e5e7f0; border-radius: 20px; background: #fff; box-shadow: 0 18px 50px #2e35630e; }.setup-card { width: min(100%,620px); }.auth-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 19px; border-radius: 15px; background: linear-gradient(145deg,#756bf0,#5145d1); box-shadow: 0 7px 16px #5a4ddb30; color: #fff; font-size: 24px; font-weight: 850; }.denied-symbol { background: #fff0e7; color: #bb7045; box-shadow: none; }.auth-card .eyebrow { color: var(--primary); }.auth-card h1 { margin: 0; color: #232a47; font-size: 28px; font-weight: 780; }.auth-intro { margin: 10px 0 22px; color: #7d869e; font-size: 16px; line-height: 1.8; }.auth-form { display: grid; gap: 17px; }.auth-form .field { gap: 8px; }.auth-form .field input,.auth-form .field select { min-height: 46px; background: #fcfcfe; font-size: 17px; }.auth-form .field select { cursor: pointer; }.auth-submit { width: 100%; min-height: 47px; margin-top: 4px; font-size: 18px; }.setup-link { display: block; margin-top: 19px; color: #5b51c9; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; }.setup-link:hover { color: #383085; text-decoration: underline; text-underline-offset: 4px; }.signed-in-tools { display: flex; align-items: center; gap: 14px; }.signed-in-tools form { margin: 0; }.logout-button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #737c95; font: inherit; font-size: 13px; cursor: pointer; }.logout-button:hover { border-color: #dddafa; background: #f7f6ff; color: var(--primary); }
@media (max-width: 600px) { .auth-topbar { height: 64px; padding: 0 17px; }.auth-card { padding: 25px 20px; border-radius: 16px; }.auth-card h1 { font-size: 25px; }.auth-intro { font-size: 15px; }.auth-main { padding: 24px 14px; } }
/* User and role administration */
.management-notice{margin:0 0 22px;padding:14px 18px;border:1px solid #b9e7d8;border-radius:14px;background:#eaf8f3;color:#087c67}
.management-grid{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.5fr);gap:20px;align-items:start}
.management-card{min-width:0;padding:24px;border:1px solid #e2e6f0;border-radius:20px;background:#fff;box-shadow:0 8px 26px rgba(40,45,90,.035)}
.management-card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.management-card-heading h2{margin:5px 0 0;font-size:22px}
.management-icon,.management-count{display:grid;width:44px;height:44px;place-items:center;border-radius:14px;background:#efedff;color:#5c51d9;font-size:22px}
.management-count{font-size:17px;font-weight:700}
.management-form{display:grid;gap:15px}
.management-form .field{display:grid;gap:7px;color:#212448;font-weight:600}
.management-form input,.management-form select{width:100%;min-height:48px;padding:10px 13px;border:1px solid #dfe3ee;border-radius:11px;background:#fff;color:#1d2144;font:inherit}
.management-form input:focus,.management-form select:focus{outline:3px solid rgba(98,84,224,.14);border-color:#7165e8}
.management-form small{color:#777e9e;font-size:14px;font-weight:400}
.management-form .auth-submit{width:100%;margin-top:4px}
.management-empty{padding:22px;border:1px dashed #dfe3ee;border-radius:14px;color:#747b99;text-align:center;line-height:1.8}
.management-table-wrap{overflow:auto}
.management-table{width:100%;border-collapse:collapse;white-space:nowrap}
.management-table th,.management-table td{padding:14px 12px;border-bottom:1px solid #edf0f5;text-align:right;vertical-align:middle}
.management-table th{color:#717995;font-size:14px;font-weight:600}
.management-table td{color:#242746}
.management-table tr:last-child td{border-bottom:0}
.table-subline{display:block;margin-top:5px;color:#7d839e;font-size:14px}
.user-state{display:inline-flex;padding:5px 11px;border-radius:999px;font-size:14px}
.user-state.is-active{background:#e5f7f0;color:#15856c}
.user-state.is-inactive{background:#f1f2f6;color:#767b91}
.table-action{padding:8px 12px;border:1px solid #e2e5ef;border-radius:9px;background:white;color:#5a50d2;font:inherit;cursor:pointer}
.table-action:hover{border-color:#7065e5;background:#f7f6ff}
.danger-action{border-color:#f1c7ca;color:#bf3440}.danger-action:hover{border-color:#df8e95;background:#fff5f5;color:#a8202c}
.department-copy-card{margin-bottom:20px}.department-copy-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:14px}.department-copy-form .field{display:grid;gap:7px;color:#212448;font-weight:600}.department-copy-form select{width:100%;min-height:48px;padding:10px 13px;border:1px solid #dfe3ee;border-radius:11px;background:#fff;color:#1d2144;font:inherit}.department-copy-form .primary-action{min-height:48px;white-space:nowrap}.department-copy-note{margin:13px 0 0;color:#777e9e;font-size:13px;line-height:1.7}
@media(max-width:700px){.department-copy-form{grid-template-columns:1fr}.department-copy-form .primary-action{width:100%}}
.user-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.user-edit-form{font-size:18px}.user-edit-note{margin-top:20px}.user-edit-link{display:inline-flex;text-decoration:none}.user-state-action{margin-top:8px}.user-state-action button{color:#6f7489}
.branch-access-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:15px;border:1px solid #e2e5ef;border-radius:12px}.branch-access-picker legend{padding:0 7px;color:#22264a;font-weight:700}.branch-access-picker>p{grid-column:1/-1;margin:0;color:#777e9e;font-size:14px;font-weight:400}.branch-access-option{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid #edf0f6;border-radius:9px;color:#343956;cursor:pointer}.branch-access-option input{width:18px;height:18px;min-height:0;accent-color:#5c51d9}.branch-access-option small{display:block;color:#9299ac;font-size:12px}.branch-switcher{display:flex;align-items:center;gap:8px;margin-inline-end:12px;padding:6px 10px;border:1px solid #e5e7f0;border-radius:11px;color:#66708b;font-size:14px}.branch-switcher select{max-width:160px;border:0;background:transparent;color:#292e52;font:inherit;font-weight:650}.branch-switcher select:focus{outline:2px solid rgba(98,84,224,.18);border-radius:4px}@media(max-width:700px){.user-edit-grid{grid-template-columns:1fr}.branch-access-picker{grid-template-columns:1fr}.branch-switcher{margin:0}.branch-switcher select{max-width:120px}}
@media(max-width:1100px){.management-grid{grid-template-columns:1fr}.management-table-card{overflow-x:auto}}
@media(max-width:850px){.user-edit-grid{grid-template-columns:1fr}}
.role-select-form{max-width:520px;margin-bottom:24px}.role-select-form .field{display:grid;gap:9px;color:#252a49;font-weight:650}.role-select-form select{min-height:48px;padding:10px 13px;border:1px solid #dfe3ee;border-radius:11px;background:#fff;font:inherit}.role-notice{margin:8px 0 22px}.permission-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.permission-group{padding:18px;border:1px solid #e8eaf2;border-radius:15px}.permission-group h2{margin:0 0 12px;color:#525a78;font-size:18px}.permission-list{display:grid;gap:8px}.permission-option{display:flex;align-items:center;gap:11px;padding:10px;border-radius:10px;background:#fafaff;cursor:pointer}.permission-option input{width:18px;height:18px;accent-color:#5c51d9}.permission-option span{display:grid;gap:3px}.permission-option strong{color:#343a58;font-size:16px}.permission-option small{color:#9298ad;font-size:13px;direction:ltr;text-align:right}.permission-save{min-width:220px;margin-top:20px}@media(max-width:760px){.permission-groups{grid-template-columns:1fr}}
.recipient-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.recipient-choice{display:flex;align-items:center;gap:10px;min-height:50px;padding:10px 13px;border:1px solid #e2e6f0;border-radius:11px;background:#fff;color:#424967;cursor:pointer}.recipient-choice:has(input:checked){border-color:#786ee8;background:#f7f6ff;color:#5147c5}.recipient-choice input{width:18px;height:18px;accent-color:#5c51d9}.recipient-detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0 22px 12px;list-style:none}.recipient-detail-list li{padding:10px 12px;border-radius:9px;background:#f7f8fc;color:#535b77}@media(max-width:760px){.recipient-choice-grid,.recipient-detail-list{grid-template-columns:1fr}}
.recipient-employee-field{display:grid;gap:12px;margin-top:20px}.recipient-employee-field>.field{display:grid;gap:7px}.recipient-employee-field input[type=search]{width:100%;min-height:46px;padding:10px 13px;border:1px solid #dfe3ee;border-radius:11px;font:inherit}.recipient-employee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:280px;overflow:auto;padding:4px}.recipient-employee-option{display:grid;grid-template-columns:20px 1fr;align-items:center;gap:5px 9px;padding:10px;border:1px solid #e2e6f0;border-radius:10px;background:#fff;cursor:pointer}.recipient-employee-option:has(input:checked){border-color:#786ee8;background:#f7f6ff}.recipient-employee-option input{grid-row:span 2;width:18px;height:18px;accent-color:#5c51d9}.recipient-employee-option span{font-weight:600}.recipient-employee-option small{color:#777e9e}.recipient-employee-option[hidden]{display:none!important}@media(max-width:760px){.recipient-employee-grid{grid-template-columns:1fr}}
.organization-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:22px}.organization-modules{grid-template-columns:repeat(3,minmax(0,1fr))}.organization-management-grid{grid-template-columns:minmax(300px,.75fr) minmax(0,1.6fr)}.checkbox-field{display:flex;align-items:center;gap:10px;color:#333956;cursor:pointer}.checkbox-field input{width:19px;height:19px;accent-color:#5c51d9}.organization-actions{display:flex;align-items:center;gap:7px}.organization-actions form{margin:0}.management-form textarea{width:100%;padding:10px 13px;border:1px solid #dfe3ee;border-radius:11px;background:#fff;color:#1d2144;font:inherit;resize:vertical}@media(max-width:1100px){.organization-management-grid{grid-template-columns:1fr}.organization-modules{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.organization-summary,.organization-modules{grid-template-columns:1fr}.organization-actions{align-items:flex-start;flex-direction:column}.management-card{padding:18px}}
/* Archive and reporting screens */
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0 24px}.stat-card{display:grid;gap:10px;padding:22px;border:1px solid var(--line);border-radius:16px;background:#fff}.stat-card span{color:var(--muted);font-size:16px}.stat-card strong{color:var(--primary-dark);font-size:30px}.management-panel{margin:18px 0;padding:22px;border:1px solid var(--line);border-radius:16px;background:#fff}.management-panel>h2{margin:0 0 18px;font-size:21px;color:var(--ink)}.compact-filter{min-width:150px;margin:0;font-size:16px}.compact-filter input{min-height:42px;font-size:16px}.attachment-upload-form{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.attachment-upload-form .field{min-width:min(100%,360px);font-size:16px}.attachment-upload-form .field input{font-size:16px}.attachment-upload-form .primary-action{font-size:16px}@media(max-width:850px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.stats-grid{grid-template-columns:1fr}.attachment-upload-form{align-items:stretch;flex-direction:column}}
.notification-open{font-weight:700;text-decoration:none}.notification-row.is-unread td{color:#c62828}.notification-row.is-unread .notification-open{color:#c62828}.notification-row.is-read td,.notification-row.is-read .notification-open{color:#171717}.notification-state{font-weight:600}.notification-row form{display:inline}
.inbox-alert-button { position: relative; display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #59627d; font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color .2s,background .2s,color .2s; }
.inbox-alert-button:hover { border-color: #d7d2ff; background: #f8f7ff; color: var(--primary); }
.inbox-alert-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inbox-alert-count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; line-height: 1; }
.inbox-alert-count[hidden] { display: none; }
.inbox-alert-button.has-unread { border-color: #f3a2a2; color: #d52f3c; animation: inbox-alert-pulse 1.15s ease-in-out infinite; }
.inbox-alert-button.has-unread svg { filter: drop-shadow(0 0 3px #ef444477); }
@keyframes inbox-alert-pulse { 0%,100% { background: #fff; box-shadow: 0 0 0 0 #ef444422; } 50% { background: #fff1f1; box-shadow: 0 0 0 5px #ef444414; } }
.inbox-open-form { display: inline; margin: 0; }
.inbox-open-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.inbox-open-link:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.inbox-row.is-unread td { color: #c92f3b; font-weight: 650; }
.inbox-row.is-unread .table-party { color: #d45d65; }
.inbox-row.is-read td { color: #222a3e; font-weight: 400; }
.inbox-row.is-read .table-party { color: #8189a0; }
@media (prefers-reduced-motion: reduce) { .inbox-alert-button.has-unread { animation: none; } }
.recent-activity{position:relative}.recent-activity-toggle{display:inline-flex;min-height:40px;align-items:center;gap:8px;padding:7px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#59627d;font-size:14px;font-weight:700;cursor:pointer;list-style:none}.recent-activity-toggle::-webkit-details-marker{display:none}.recent-activity-toggle:hover,.recent-activity[open] .recent-activity-toggle{border-color:#d7d2ff;background:#f8f7ff;color:var(--primary)}.recent-activity-panel{position:absolute;z-index:30;top:calc(100% + 10px);left:0;width:min(360px,90vw);padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 16px 42px #20254a20}.recent-activity-heading{display:flex;justify-content:space-between;align-items:center;padding:2px 2px 12px;border-bottom:1px solid #edf0f5;color:var(--ink)}.recent-activity-heading span{color:var(--muted);font-size:13px}.recent-activity-list{display:grid;max-height:390px;overflow:auto;margin:0;padding:0;list-style:none}.recent-activity-item{display:flex;gap:10px;padding:12px 2px;border-bottom:1px solid #f0f1f5}.recent-activity-mark{display:grid;flex:0 0 27px;width:27px;height:27px;place-items:center;border-radius:50%;background:#e7f7f0;color:#16866c;font-size:14px}.recent-activity-item:has(.recent-activity-mark:not(:empty)) .recent-activity-copy{min-width:0;flex:1}.recent-activity-line{display:flex;justify-content:space-between;gap:8px;color:#343a58;font-size:14px}.recent-activity-line span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-activity-line b{flex:0 0 auto;color:#687392;font-size:13px;font-weight:500}.recent-activity-copy small{display:block;margin-top:4px;color:#9298ad;font-size:12px}.recent-activity-empty{padding:18px 4px;color:var(--muted);text-align:center}.recent-activity-all{display:block;padding:12px 2px 1px;color:var(--primary);font-size:14px;text-align:center;text-decoration:none}
