:root {
  --navy-950: #0f2b51;
  --navy-900: #123c75;
  --navy-800: #19508f;
  --blue: #2774c7;
  --blue-soft: #eaf3ff;
  --ink: #19324d;
  --ink-soft: #5f7185;
  --muted: #8a9aab;
  --line: #e2e9f0;
  --line-soft: #edf2f6;
  --surface: #ffffff;
  --canvas: #f5f8fb;
  --success: #1b9b70;
  --success-soft: #e7f7f0;
  --warning: #d58b1c;
  --warning-soft: #fff5dc;
  --danger: #d95365;
  --danger-soft: #fff0f2;
  --purple: #7c67c9;
  --shadow-sm: 0 1px 2px rgba(17, 40, 69, 0.05), 0 4px 14px rgba(17, 40, 69, 0.04);
  --shadow-md: 0 12px 35px rgba(18, 55, 96, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.app-frame { min-height: 100vh; }

.mobile-quick-nav { display: none; }

body.is-logged-out .app-frame { display: none; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% -20%, #dbeeff 0, var(--canvas) 55%); }

.login-screen[hidden] { display: none; }

.login-card { width: min(100%, 420px); padding: 35px 36px 30px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 20px 60px rgba(18,55,96,.13); }
.offline-status { position: fixed; z-index: 1000; top: 12px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 7px 14px; color: #6b4300; border: 1px solid #f0cf8b; border-radius: 999px; background: #fff7e3; box-shadow: 0 6px 20px rgba(28,52,80,.12); font-size: 11px; }

.push-setting > div { display: grid; gap: 7px; }
.push-setting .btn { justify-content: center; }

.login-card__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-900); }

.login-card__brand .brand__mark { width: 31px; height: 31px; }

.login-card__brand > span:last-child { display: flex; flex-direction: column; line-height: 1; letter-spacing: -.04em; }

.login-card__brand strong { font-size: 19px; }

.login-card__brand small { margin-top: 4px; color: var(--blue); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }

.login-card__intro { margin: 32px 0 25px; }

.login-card__intro h1 { margin: 0; color: var(--ink); font-size: 24px; letter-spacing: -.04em; }

.login-card__intro p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }

.login-form .form-row { display: block; margin-bottom: 17px; }

.login-form .form-row > label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 11px; }

.login-form .form-control { min-height: 43px; font-size: 12px; }

.login-form__remember { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 10px; }

.login-form__remember input { accent-color: var(--blue); }

.login-form__error { margin: 14px 0 0; padding: 9px 10px; color: var(--danger); border-radius: 6px; background: var(--danger-soft); font-size: 10px; line-height: 1.5; }

.login-form__submit { width: 100%; justify-content: center; min-height: 43px; margin-top: 22px; }
.login-form__sso { width: 100%; justify-content: center; min-height: 40px; margin-top: 10px; text-decoration: none; }

.login-form__reset { display: block; margin: 14px auto 0; padding: 0; color: var(--blue); border: 0; background: transparent; font-size: 10px; text-decoration: underline; cursor: pointer; }
.login-form__reset-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.login-form__reset-links .login-form__reset { margin: 14px 0 0; }

.two-factor-setup { display: grid; gap: 14px; }

.two-factor-secret { padding: 13px 14px; color: var(--ink); border: 1px dashed var(--line); border-radius: 7px; background: var(--canvas); text-align: center; letter-spacing: .12em; }

.two-factor-secret code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; font-weight: 700; }

.two-factor-setup details { color: var(--ink-soft); font-size: 10px; }

.two-factor-setup summary { cursor: pointer; }

.two-factor-setup details .form-control { margin-top: 9px; min-height: 70px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }

.two-factor-recovery { padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); }

.two-factor-recovery strong { font-size: 10px; }

.two-factor-recovery p { margin: 5px 0 8px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.two-factor-recovery code { display: block; white-space: pre-line; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.7; letter-spacing: .08em; }

.facility-master-list { display: grid; gap: 8px; max-height: 220px; overflow: auto; }

.facility-master-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }

.facility-master-row > span:first-child { display: grid; gap: 3px; min-width: 0; }

.facility-master-row small { color: var(--muted); font-size: 10px; }

.facility-master-row > span:last-child { display: flex; gap: 5px; flex-shrink: 0; }

.schedule-comments { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

.schedule-comments h3 { margin: 0 0 9px; font-size: 12px; }

.schedule-comment { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }

.schedule-comment strong { font-size: 10px; }

.schedule-comment time { margin-left: 8px; color: var(--muted); font-size: 9px; }

.schedule-comment p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }

.schedule-survey { margin-top: 15px; padding: 15px; border: 1px solid #dce9f5; border-radius: 8px; background: #f8fbff; }

.schedule-survey__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.schedule-survey__head h3 { margin: 0; color: var(--ink); font-size: 12px; }

.schedule-survey__head span { color: var(--muted); font-size: 10px; }

.schedule-survey > p { margin: 9px 0; color: var(--ink-soft); font-size: 11px; }

.schedule-survey .check-list { gap: 7px; }

.schedule-survey .checkbox-label { align-items: center; justify-content: flex-start; gap: 7px; }

.schedule-survey .checkbox-label small { margin-left: auto; color: var(--muted); }

.schedule-survey .btn { margin-top: 11px; }

.workflow-history { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

.workflow-history h3 { margin: 0 0 9px; font-size: 12px; }

.workflow-history__row { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 10px; }

.workflow-history__row time { color: var(--muted); }

.workflow-form-admin { margin-bottom: 19px; }

.workflow-form-list { display: grid; gap: 0; }

.workflow-form-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-soft); }

.workflow-form-row > div:first-child { display: grid; gap: 4px; min-width: 0; }

.workflow-form-row strong { color: var(--ink); font-size: 12px; }

.workflow-form-row small { color: var(--muted); font-size: 9px; }

.workflow-form-row__actions { display: flex; flex-shrink: 0; gap: 6px; }

.workflow-field-row { margin-bottom: 9px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #f9fbfd; }

.workflow-field-row__main, .workflow-field-row__sub { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 7px; }

.workflow-field-row__sub { grid-template-columns: auto minmax(0,1fr) auto; align-items: center; margin-top: 7px; }

.workflow-field-row__sub .checkbox-label { white-space: nowrap; }
.report-template-values { margin: 14px 0 16px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: #f9fbfd; }
.report-template-values h3 { margin: 0 0 11px; color: var(--ink); font-size: 12px; }

.form-row__head { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 12px; }

.form-row__head label { color: var(--ink-soft); font-size: 11px; }

.form-row__head + #workflow-form-fields { grid-column: 1 / -1; }

@media (max-width: 680px) {
  .workflow-form-row { align-items: flex-start; flex-direction: column; }
  .workflow-form-row__actions { width: 100%; }
  .workflow-form-row__actions .btn { flex: 1; }
  .workflow-field-row__main, .workflow-field-row__sub { grid-template-columns: 1fr; }
  .workflow-field-row__sub { align-items: stretch; }
}

.file-row-actions { display: flex; justify-content: flex-end; gap: 5px; }

.file-history-list { display: grid; gap: 8px; }

.file-history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }

.file-history-row > span { display: grid; gap: 3px; }
.file-history-row__actions { display: flex !important; align-items: center; gap: 6px; }

.file-history-row small { color: var(--muted); font-size: 9px; }

.login-card__hint { margin: 25px 0 0; padding-top: 17px; color: var(--muted); border-top: 1px solid var(--line-soft); font-size: 9px; line-height: 1.7; }

.login-card__hint code { padding: 2px 4px; color: var(--ink-soft); border-radius: 3px; background: var(--canvas); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  color: #eaf3ff;
  background: linear-gradient(115deg, var(--navy-950), var(--navy-900) 72%, #154e8f);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
  position: relative;
  z-index: 20;
}

.topbar__left, .topbar__right { display: flex; align-items: center; min-width: 0; }

.topbar__left { gap: 22px; }

.topbar__right { gap: 10px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; flex: 0 0 auto; }

.brand__mark { width: 29px; height: 29px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(45deg); }

.brand__mark i { display: block; border-radius: 4px; background: #fff; opacity: .96; }

.brand__mark i:nth-child(2) { opacity: .73; }
.brand__mark i:nth-child(3) { opacity: .73; }
.brand__mark i:nth-child(4) { opacity: .43; }

.brand__copy { display: flex; flex-direction: column; line-height: 1; letter-spacing: -.03em; }

.brand__copy strong { font-size: 17px; font-weight: 700; }

.brand__copy small { margin-top: 4px; font-size: 11px; font-weight: 500; letter-spacing: .07em; opacity: .78; }

.workspace-name { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.76); font-size: 13px; white-space: nowrap; }

.global-search { width: min(284px, 27vw); height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 11px; color: rgba(255,255,255,.68); border: 1px solid rgba(255,255,255,.23); border-radius: 8px; background: rgba(255,255,255,.09); transition: border-color .2s, background .2s; }

.global-search:focus-within { border-color: rgba(255,255,255,.64); background: rgba(255,255,255,.15); }

.global-search svg { width: 17px; height: 17px; flex: 0 0 auto; }

.global-search input { width: 100%; min-width: 0; padding: 0; color: #fff; border: 0; outline: 0; background: transparent; font-size: 12px; }

.global-search input::placeholder { color: rgba(255,255,255,.58); }

.global-search kbd { padding: 2px 5px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; color: rgba(255,255,255,.65); font-size: 10px; white-space: nowrap; }

.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; color: rgba(255,255,255,.82); border: 0; border-radius: 8px; background: transparent; position: relative; transition: background .2s, color .2s; }

.icon-button:hover { color: #fff; background: rgba(255,255,255,.12); }

.icon-button svg { width: 19px; height: 19px; }

.icon-button--light { color: var(--muted); }

.icon-button--light:hover { color: var(--blue); background: var(--blue-soft); }

.notification-dot { width: 7px; height: 7px; position: absolute; top: 8px; right: 8px; border: 1.5px solid var(--navy-900); border-radius: 99px; background: #ff7890; }

.profile-chip { display: flex; align-items: center; gap: 8px; height: 42px; margin-left: 2px; padding: 0 7px 0 5px; color: #fff; border: 0; border-radius: 9px; background: transparent; transition: background .2s; }

.profile-chip:hover { background: rgba(255,255,255,.12); }

.profile-chip svg { width: 16px; height: 16px; color: rgba(255,255,255,.65); }

.profile-chip__name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

.avatar { width: 32px; height: 32px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #edb76c, #ce6957); font-size: 12px; font-weight: 700; }

.avatar--nav { width: 30px; height: 30px; border: 2px solid rgba(255,255,255,.32); }

.avatar--blue { color: #fff; background: linear-gradient(145deg, #65a9e6, #3f7fbe); }
.avatar--orange { color: #fff; background: linear-gradient(145deg, #edb76c, #ce6957); }
.avatar--pink { color: #fff; background: linear-gradient(145deg, #e989aa, #b85e89); }
.avatar--purple { color: #fff; background: linear-gradient(145deg, #aa94e5, #7060b2); }
.avatar--green { color: #fff; background: linear-gradient(145deg, #6bc5a4, #338c78); }
.avatar--cyan { color: #fff; background: linear-gradient(145deg, #67c6d8, #3c8ba9); }

.mobile-menu-button { display: none; }

.workspace { min-height: calc(100vh - 68px); display: flex; align-items: stretch; }

.sidebar { width: 248px; flex: 0 0 248px; display: flex; flex-direction: column; color: #d9e8fa; background: var(--navy-950); }

.sidebar__scroll { flex: 1 1 auto; overflow-y: auto; padding: 22px 13px 16px; }

.sidebar__scroll::-webkit-scrollbar { width: 5px; }
.sidebar__scroll::-webkit-scrollbar-thumb { border-radius: 9px; background: rgba(255,255,255,.17); }

.create-button { height: 43px; display: flex; align-items: center; gap: 10px; margin: 0 7px 28px; padding: 0 13px; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: linear-gradient(135deg, #2b7bc8, #2166ad); box-shadow: 0 4px 12px rgba(0,0,0,.13); font-size: 13px; font-weight: 600; transition: transform .15s, filter .2s; }

.create-button:hover { filter: brightness(1.1); transform: translateY(-1px); }

.create-button__plus { width: 19px; height: 19px; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-size: 17px; font-weight: 300; line-height: 15px; }

.create-button svg { width: 15px; height: 15px; margin-left: auto; opacity: .72; }

.sidebar__label { margin: 0 11px 8px; color: #84a5c9; font-size: 10px; font-weight: 600; letter-spacing: .12em; }

.primary-nav, .secondary-nav { display: flex; flex-direction: column; gap: 2px; }

.nav-item { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 11px; color: #c6d8ed; border-radius: 8px; font-size: 13px; transition: color .18s, background .18s; }

.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }

.nav-item.is-active { color: #fff; background: linear-gradient(90deg, rgba(49,133,218,.72), rgba(49,133,218,.42)); box-shadow: inset 3px 0 0 #70b6f5; }

.nav-item--compact { min-height: 37px; color: #a9c1dc; font-size: 12px; }

.nav-item--muted { color: #91abc8; }

.nav-item__icon { width: 28px; height: 28px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: #d0e2f7; background: rgba(255,255,255,.12); }

.nav-item__icon svg { width: 16px; height: 16px; stroke-width: 1.8; }

.nav-item__badge { min-width: 20px; height: 19px; display: inline-grid; place-items: center; margin-left: auto; padding: 0 5px; color: #a9dcff; border-radius: 99px; background: rgba(89,168,237,.22); font-size: 10px; font-weight: 700; }

.nav-item__badge--red { color: #ffb8c3; background: rgba(224,91,113,.2); }

.icon--blue { color: #72b6f2; background: rgba(63,143,224,.18); }
.icon--purple { color: #b09aff; background: rgba(125,103,201,.19); }
.icon--orange { color: #ffc269; background: rgba(213,139,28,.2); }
.icon--teal { color: #67d2c2; background: rgba(27,155,144,.19); }
.icon--yellow { color: #f4d377; background: rgba(203,157,30,.2); }
.icon--pink { color: #f79eae; background: rgba(217,83,101,.18); }
.icon--green { color: #8ed6a9; background: rgba(56,157,91,.17); }
.icon--indigo { color: #9fa9ff; background: rgba(94,102,196,.2); }
.icon--slate { color: #b4c8dc; background: rgba(136,161,186,.16); }
.icon--cyan { color: #75d1e5; background: rgba(58,166,189,.18); }

.sidebar-divider { height: 1px; margin: 21px 11px 19px; background: rgba(255,255,255,.11); }

.sidebar__footer { flex: 0 0 auto; padding: 16px 20px 19px; border-top: 1px solid rgba(255,255,255,.11); background: rgba(0,0,0,.08); }

.storage-meter__top { display: flex; justify-content: space-between; color: #a8bfd8; font-size: 10px; }

.storage-meter__top strong { color: #e2efff; font-size: 10px; }

.storage-meter__track { height: 5px; overflow: hidden; margin: 8px 0 5px; border-radius: 99px; background: rgba(255,255,255,.12); }

.storage-meter__track span { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #58b3f0, #7ad9cc); }

.storage-meter small { color: #718eaf; font-size: 9px; }

.sidebar__footer p { margin: 18px 0 0; color: #718eaf; font-size: 10px; }

.sidebar__footer p span { float: right; color: #8ca7c3; }

.main-content { width: calc(100% - 248px); min-width: 0; min-height: calc(100vh - 68px); padding: 33px 42px 50px; overflow: hidden; background: var(--canvas); outline: 0; }

.page-wrap { max-width: 1390px; margin: 0 auto; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }

.page-header__title { display: flex; align-items: center; gap: 12px; }

.page-title-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; color: var(--blue); border: 1px solid #d8e8f8; border-radius: 12px; background: var(--blue-soft); }

.page-title-icon svg { width: 22px; height: 22px; }

.page-header__title h1 { margin: 0; color: var(--ink); font-size: 26px; font-weight: 700; letter-spacing: -.045em; }

.page-header__title p { margin: 7px 0 0; color: var(--ink-soft); font-size: 12px; }

.page-header__meta { display: flex; align-items: center; gap: 13px; color: var(--ink-soft); font-size: 12px; }

.page-header__meta svg { width: 17px; height: 17px; color: var(--blue); }

.page-header__actions { display: flex; align-items: center; gap: 8px; }

.btn { height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink-soft); font-size: 12px; font-weight: 600; box-shadow: 0 1px 1px rgba(17,40,69,.02); transition: border-color .2s, color .2s, background .2s, transform .15s; }

.btn:hover { color: var(--blue); border-color: #b8d2ec; background: #fbfdff; }

.btn:active { transform: translateY(1px); }

.btn svg { width: 16px; height: 16px; }

.btn--primary { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 4px 10px rgba(39,116,199,.18); }

.btn--primary:hover { color: #fff; border-color: #1f67b2; background: #1f67b2; }

.btn--soft { color: var(--blue); border-color: #d1e4f7; background: var(--blue-soft); }

.btn--danger { color: var(--danger); }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }

.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 21px 14px; }

.card__title { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; }

.card__title svg { width: 18px; height: 18px; color: var(--blue); }

.card__link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); border: 0; background: transparent; font-size: 11px; }

.card__link:hover { text-decoration: underline; }

.card__link svg { width: 13px; height: 13px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.57fr) minmax(305px, .93fr); align-items: start; gap: 19px; }

.dashboard-main, .dashboard-side { display: flex; flex-direction: column; gap: 19px; min-width: 0; }

.welcome-card { min-height: 162px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; padding: 24px 28px; color: #fff; border: 0; background: linear-gradient(118deg, #195491 0%, #226cac 57%, #2a83c7 100%); position: relative; }

.welcome-card::before, .welcome-card::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; pointer-events: none; }

.welcome-card::before { width: 280px; height: 280px; right: 80px; top: -170px; }

.welcome-card::after { width: 350px; height: 350px; right: -80px; bottom: -280px; }

.welcome-card__content { position: relative; z-index: 1; }

.welcome-card__eyebrow { margin: 0 0 9px; color: rgba(255,255,255,.74); font-size: 11px; }

.welcome-card h2 { margin: 0; font-size: 21px; letter-spacing: -.04em; }

.welcome-card p { margin: 11px 0 0; color: rgba(255,255,255,.79); font-size: 12px; }

.welcome-card__stats { display: flex; align-items: center; gap: 27px; padding: 14px 5px 14px 28px; border-left: 1px solid rgba(255,255,255,.22); position: relative; z-index: 1; }

.welcome-stat { min-width: 60px; }

.welcome-stat strong { display: block; font-size: 26px; line-height: 1; letter-spacing: -.04em; }

.welcome-stat span { display: block; margin-top: 6px; color: rgba(255,255,255,.71); font-size: 10px; white-space: nowrap; }

.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px 18px 17px; }

.quick-link { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-right: 1px solid var(--line-soft); }

.quick-link:last-child { border-right: 0; }

.quick-link__icon { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; }

.quick-link__icon svg { width: 18px; height: 18px; }

.quick-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: 11px; font-weight: 600; }

.quick-link:hover span { color: var(--blue); }

.quick-link:hover .quick-link__icon { filter: brightness(.96); }

.quick-link__icon--blue { color: #2774c7; background: #e8f2fe; }
.quick-link__icon--purple { color: #7764c8; background: #f0edff; }
.quick-link__icon--orange { color: #ce891d; background: #fff4de; }
.quick-link__icon--green { color: #218e70; background: #e5f7f0; }

.schedule-list { padding: 0 21px 12px; }

.schedule-row { display: grid; grid-template-columns: 72px 10px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 61px; border-top: 1px solid var(--line-soft); }

.schedule-row:first-child { border-top: 0; }

.schedule-row__time { color: var(--ink-soft); font-size: 11px; font-variant-numeric: tabular-nums; }

.schedule-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #eaf3ff; }

.schedule-row__dot--green { background: #2aa27a; box-shadow: 0 0 0 4px #e5f7f0; }
.schedule-row__dot--orange { background: #e19a2c; box-shadow: 0 0 0 4px #fff4dc; }

.schedule-row__body { min-width: 0; }

.schedule-row__body strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 12px; font-weight: 600; }

.schedule-row__body span { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }

.schedule-row__tag { padding: 4px 7px; color: #3973a6; border-radius: 5px; background: #edf5fc; font-size: 9px; white-space: nowrap; }

.schedule-list__empty { padding: 24px 0; color: var(--muted); text-align: center; font-size: 12px; }

.bulletin-list { padding: 0 21px 13px; }

.bulletin-row { display: grid; grid-template-columns: 66px minmax(0,1fr) auto; align-items: center; gap: 13px; min-height: 59px; border-top: 1px solid var(--line-soft); }

button.bulletin-row { width: 100%; padding-right: 0; padding-left: 0; color: inherit; border-right: 0; border-bottom: 0; border-left: 0; background: transparent; text-align: left; }

.bulletin-row:first-child { border-top: 0; }

.bulletin-row__date { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }

.bulletin-row__body { min-width: 0; }

.bulletin-row__body strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 12px; font-weight: 600; }

.bulletin-row__body span { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }

.bulletin-row__badge { padding: 4px 7px; color: #bd7721; border-radius: 5px; background: #fff4dc; font-size: 9px; white-space: nowrap; }

.bulletin-row:hover strong { color: var(--blue); }

.today-card { padding-bottom: 12px; }

.today-card__date { display: flex; align-items: center; gap: 12px; padding: 3px 21px 18px; }

.today-card__day { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: var(--blue); }

.today-card__day strong { font-size: 21px; line-height: 1; }

.today-card__copy strong { display: block; color: var(--ink); font-size: 13px; }

.today-card__copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.today-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 0 19px; text-align: center; }

.today-calendar span { display: grid; place-items: center; height: 28px; color: var(--muted); font-size: 10px; }

.today-calendar span:nth-child(7n+1) { color: #de6f7a; }

.today-calendar .is-today { width: 28px; height: 28px; justify-self: center; color: #fff; border-radius: 50%; background: var(--blue); font-weight: 700; }

.today-calendar .has-event { position: relative; }

.today-calendar .has-event::after { content: ""; width: 3px; height: 3px; position: absolute; bottom: 2px; left: calc(50% - 1.5px); border-radius: 50%; background: #e39b36; }

.today-calendar .is-today::after { background: #fff; }

.notice-list { padding: 0 21px 13px; }

.notice-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line-soft); }

button.notice-item { width: 100%; color: inherit; border: 0; background: transparent; text-align: left; }

.notice-item:first-child { border-top: 0; }

.notice-item__icon { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: var(--blue); background: var(--blue-soft); }

.notice-item__icon svg { width: 15px; height: 15px; }

.notice-item__body { min-width: 0; }

.notice-item__body strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 11px; font-weight: 600; }

.notice-item__body span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.notice-item.is-unread .notice-item__body strong::after { content: ""; width: 5px; height: 5px; display: inline-block; margin: 0 0 2px 6px; border-radius: 50%; background: #ed7183; }

.portal-compact-list { padding: 0 21px 13px; }
.portal-compact-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 0; color: inherit; border: 0; border-top: 1px solid var(--line-soft); background: transparent; text-align: left; }
.portal-compact-row:first-child { border-top: 0; }
.portal-compact-row > span:last-child { min-width: 0; flex: 1; }
.portal-compact-row strong, .portal-compact-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-compact-row strong { color: var(--ink); font-size: 11px; font-weight: 600; }
.portal-compact-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.portal-compact-row__marker { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); }
.portal-compact-row__marker--orange { background: var(--warning); }
.portal-compact-row__marker--teal { background: #18a5a0; }
.portal-compact-row__marker--green { background: var(--success); }
.portal-timecard-widget__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 21px 21px; }
.portal-timecard-widget__body strong, .portal-timecard-widget__body span { display: block; }
.portal-timecard-widget__body strong { color: var(--ink); font-size: 15px; }
.portal-timecard-widget__body div > span { margin-top: 5px; color: var(--muted); font-size: 10px; }

.profile-card { display: flex; align-items: center; gap: 13px; padding: 18px 21px; }

button.profile-card { width: 100%; color: inherit; border: 0; text-align: left; }

.profile-card__avatar { width: 42px; height: 42px; font-size: 15px; }

.profile-card__body { min-width: 0; }

.profile-card__body strong { display: block; color: var(--ink); font-size: 13px; }

.profile-card__body span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.profile-card__chevron { width: 18px; height: 18px; margin-left: auto; color: var(--muted); }

.section-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 18px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #edf2f7; width: fit-content; }

.section-tabs button { height: 31px; padding: 0 13px; color: var(--ink-soft); border: 0; border-radius: 6px; background: transparent; font-size: 11px; }

.section-tabs button.is-active { color: var(--blue); background: #fff; box-shadow: var(--shadow-sm); font-weight: 700; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }

.toolbar__left, .toolbar__right { display: flex; align-items: center; gap: 8px; min-width: 0; }

.toolbar__label { color: var(--ink-soft); font-size: 12px; }

.select-control, .input-control { height: 36px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #fff; font-size: 11px; }

.select-control:focus, .input-control:focus, .form-control:focus { border-color: #93bde5; box-shadow: 0 0 0 3px rgba(39,116,199,.1); }

.input-with-icon { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }

.input-with-icon svg { width: 15px; height: 15px; color: var(--muted); }

.input-with-icon input { width: 160px; padding: 0; border: 0; outline: 0; color: var(--ink); font-size: 11px; }

.table-card { overflow: hidden; }

.data-table { width: 100%; border-collapse: collapse; }

.data-table th { height: 42px; padding: 0 17px; color: var(--muted); border-bottom: 1px solid var(--line); background: #f9fbfd; font-size: 10px; font-weight: 600; text-align: left; white-space: nowrap; }

.data-table td { min-height: 58px; padding: 13px 17px; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); font-size: 11px; vertical-align: middle; }

.data-table tr:last-child td { border-bottom: 0; }

.data-table tbody tr { transition: background .16s; }

.data-table tbody tr:hover { background: #fafdff; }

.data-table .cell-main { display: block; color: var(--ink); font-size: 12px; font-weight: 600; }

.data-table .cell-sub { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; font-size: 10px; font-weight: 600; white-space: nowrap; }

.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.status--pending { color: #bb7c1c; background: #fff5dc; }
.status--progress { color: #3976b2; background: #eaf3ff; }
.status--done { color: #1c966f; background: #e7f7f0; }
.status--danger { color: #d95365; background: #fff0f2; }
.status--gray { color: #758596; background: #eef2f5; }

.person-inline { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }

.person-inline .avatar { width: 25px; height: 25px; font-size: 9px; }

.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 5px; padding: 14px 18px; border-top: 1px solid var(--line-soft); }

.pagination button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 10px; }

.pagination button.is-active { color: #fff; border-color: var(--blue); background: var(--blue); }

.pagination button svg { width: 14px; height: 14px; }

.calendar-card { overflow: hidden; }

.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--line); }

.calendar-toolbar__title { display: flex; align-items: center; gap: 11px; }

.calendar-toolbar__title h2 { margin: 0; color: var(--ink); font-size: 16px; letter-spacing: -.03em; }

.calendar-toolbar__title span { padding: 4px 7px; color: var(--blue); border-radius: 5px; background: var(--blue-soft); font-size: 10px; }

.calendar-toolbar__nav { display: flex; align-items: center; gap: 3px; }

.calendar-toolbar__nav button { width: 31px; height: 31px; display: grid; place-items: center; color: var(--ink-soft); border: 1px solid var(--line); background: #fff; }

.calendar-toolbar__nav button:first-child { border-radius: 6px 0 0 6px; }
.calendar-toolbar__nav button:last-child { border-radius: 0 6px 6px 0; }
.calendar-toolbar__nav button:hover { color: var(--blue); background: var(--blue-soft); }
.calendar-toolbar__nav svg { width: 14px; height: 14px; }

.week-calendar { overflow-x: auto; }

.week-calendar__grid { min-width: 760px; display: grid; grid-template-columns: 58px repeat(7, minmax(96px, 1fr)); }

.week-calendar__head { min-height: 67px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); background: #f9fbfd; }

.week-calendar__head.is-today { background: #eef6ff; }

.week-calendar__head span { color: var(--muted); font-size: 10px; }

.week-calendar__head strong { color: var(--ink); font-size: 17px; line-height: 1; }

.week-calendar__head.is-sunday span { color: #d7707b; }
.week-calendar__head.is-saturday span { color: #4d8dbd; }

.week-calendar__time { min-height: 72px; padding: 11px 7px 0 0; color: var(--muted); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: 10px; text-align: right; }

.week-calendar__cell { min-height: 72px; padding: 6px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #fff; }

.week-calendar__cell:hover { background: #fbfdff; }

.event-block { min-height: 57px; padding: 7px 8px; overflow: hidden; border-left: 3px solid var(--blue); border-radius: 5px; background: #eaf3ff; color: #2a6093; }

button.event-block { width: 100%; color: inherit; border-top: 0; border-right: 0; border-bottom: 0; text-align: left; }

.event-block--green { border-color: #24a27a; background: #e7f7f0; color: #267d64; }
.event-block--orange { border-color: #e19a2c; background: #fff5dc; color: #9e6b18; }
.event-block--purple { border-color: #8a72d2; background: #f0edff; color: #6952a9; }

.event-block strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; }

.event-block span { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; opacity: .8; }

.event-dot { width: 6px; height: 6px; display: inline-block; margin-right: 4px; border-radius: 50%; background: currentColor; }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 270px; padding: 38px; text-align: center; }

.empty-state__icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 13px; color: var(--blue); border-radius: 15px; background: var(--blue-soft); }

.empty-state__icon svg { width: 26px; height: 26px; }

.empty-state h3 { margin: 0; color: var(--ink); font-size: 15px; }

.empty-state p { max-width: 350px; margin: 8px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.7; }

.bulletin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: start; gap: 19px; }

.bulletin-feed { overflow: hidden; }

.bulletin-feed__item { padding: 21px 23px; border-bottom: 1px solid var(--line-soft); }

.bulletin-feed__item:last-child { border-bottom: 0; }

.bulletin-feed__meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }

.bulletin-feed__meta .avatar { width: 27px; height: 27px; font-size: 10px; }

.bulletin-feed__meta strong { color: var(--ink-soft); font-size: 10px; }

.bulletin-feed__item h3 { margin: 13px 0 8px; color: var(--ink); font-size: 14px; line-height: 1.5; }

.bulletin-feed__item h3:hover { color: var(--blue); cursor: pointer; }

.bulletin-feed__item p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.8; }

.bulletin-feed__footer { display: flex; align-items: center; gap: 15px; margin-top: 14px; color: var(--muted); font-size: 10px; }

.bulletin-feed__footer span { display: inline-flex; align-items: center; gap: 4px; }

.bulletin-feed__footer svg { width: 14px; height: 14px; }

.category-list { padding: 0 17px 17px; }

.category-list__item { display: flex; align-items: center; justify-content: space-between; min-height: 37px; padding: 0 8px; color: var(--ink-soft); border-radius: 6px; font-size: 11px; }

button.category-list__item { width: 100%; border: 0; background: transparent; text-align: left; }

.category-list__item:hover { background: var(--blue-soft); color: var(--blue); }

.category-list__item.is-active { color: var(--blue); background: var(--blue-soft); font-weight: 700; }

.category-list__count { min-width: 19px; height: 19px; display: grid; place-items: center; color: var(--muted); border-radius: 99px; background: #edf2f6; font-size: 9px; }

.category-list__item.is-active .category-list__count { color: var(--blue); background: #d6eaff; }

.message-layout { min-height: 600px; display: grid; grid-template-columns: 285px minmax(0,1fr); overflow: hidden; }

.message-list { border-right: 1px solid var(--line); background: #fbfcfe; }

.message-list__head { padding: 16px; border-bottom: 1px solid var(--line); }

.message-list__head .input-with-icon input { width: 100%; }

.message-thread { display: flex; flex-direction: column; min-width: 0; background: #fff; }

.message-thread__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }

.message-thread__head h2 { margin: 0; color: var(--ink); font-size: 14px; }

.message-thread__head p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }

.thread-row { display: flex; gap: 10px; padding: 15px 16px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }

button.thread-row { width: 100%; color: inherit; border-top: 0; border-right: 0; border-left: 0; background: transparent; text-align: left; }

.thread-row:hover, .thread-row.is-selected { background: #f1f7fe; }

.thread-row.is-unread { box-shadow: inset 3px 0 0 var(--blue); }

.thread-row__body { min-width: 0; flex: 1; }

.thread-row__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }

.thread-row__top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 11px; }

.thread-row__top time { color: var(--muted); font-size: 9px; white-space: nowrap; }

.thread-row__body p { overflow: hidden; margin: 5px 0 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.thread-messages { flex: 1; overflow-y: auto; padding: 26px 28px; }

.message-bubble { display: flex; gap: 11px; max-width: 85%; margin-bottom: 24px; }

.message-bubble--mine { flex-direction: row-reverse; margin-left: auto; }

.message-bubble__content { min-width: 0; }

.message-bubble__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--muted); font-size: 9px; }

.message-bubble--mine .message-bubble__meta { justify-content: flex-end; }

.message-bubble__meta strong { color: var(--ink-soft); font-size: 10px; }

.message-bubble__text { padding: 12px 14px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; background: #f8fafc; font-size: 11px; line-height: 1.7; }

.message-survey { margin: 0 20px 13px; padding: 15px; border: 1px solid #dce9f5; border-radius: 8px; background: #f8fbff; }

.message-survey__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.message-survey__head h3 { margin: 0; color: var(--ink); font-size: 12px; }

.message-survey__head span { color: var(--muted); font-size: 10px; }

.message-survey > p { margin: 9px 0; color: var(--ink-soft); font-size: 11px; }

.message-survey .check-list { gap: 7px; }

.message-survey .checkbox-label { align-items: center; justify-content: flex-start; gap: 7px; }

.message-survey .checkbox-label small { margin-left: auto; color: var(--muted); }

.message-survey .btn { margin-top: 11px; }

.message-bubble--mine .message-bubble__text { color: #fff; border: 0; border-radius: 12px 4px 12px 12px; background: var(--blue); }

.message-composer { display: flex; align-items: flex-end; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--line); }

.message-composer textarea { min-height: 42px; max-height: 130px; flex: 1; resize: vertical; padding: 11px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #fafcfe; font-size: 11px; line-height: 1.5; }

.message-composer textarea:focus { border-color: #93bde5; background: #fff; box-shadow: 0 0 0 3px rgba(39,116,199,.1); }

.workflow-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 19px; }

.summary-tile { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }

.summary-tile__label { color: var(--muted); font-size: 10px; }

.summary-tile strong { display: block; margin-top: 8px; color: var(--ink); font-size: 23px; line-height: 1; letter-spacing: -.05em; }

.summary-tile strong span { margin-left: 3px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }

.summary-tile--blue { border-top: 3px solid var(--blue); }
.summary-tile--orange { border-top: 3px solid #e19a2c; }
.summary-tile--green { border-top: 3px solid #28a27a; }
.summary-tile--purple { border-top: 3px solid #8470d0; }

.folder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 19px; }

.folder-card { min-height: 114px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s, border-color .18s, box-shadow .18s; }

button.folder-card { color: inherit; text-align: left; }

.folder-card__open { min-height: 82px; display: flex; flex-direction: column; align-items: flex-start; padding: 0; color: inherit; border: 0; background: transparent; text-align: left; }

.folder-card__actions { display: flex; gap: 5px; margin-top: 8px; }

.file-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; }

.file-breadcrumbs > span { color: var(--muted); }

.file-breadcrumbs > span svg { width: 12px; height: 12px; transform: rotate(-90deg); }

.file-acl-list { display: grid; gap: 7px; }

.file-acl-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }

.file-acl-row > span { color: var(--ink-soft); font-size: 11px; }

.folder-card:hover { border-color: #b8d2ec; box-shadow: var(--shadow-md); transform: translateY(-2px); }

.folder-card__icon { width: 33px; height: 28px; display: grid; place-items: center; color: #e7a62e; border-radius: 6px; background: #fff4d9; }

.folder-card__icon svg { width: 18px; height: 18px; }

.folder-card strong { margin-top: 12px; color: var(--ink); font-size: 12px; }

.folder-card span { margin-top: 4px; color: var(--muted); font-size: 9px; }

.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }

.app-card { min-height: 135px; display: flex; flex-direction: column; align-items: flex-start; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .18s, box-shadow .18s, transform .18s; }

button.app-card { color: inherit; text-align: left; }

.app-card:hover { border-color: #b8d2ec; box-shadow: var(--shadow-md); transform: translateY(-2px); }

.app-card__icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 10px; }

.app-card__icon svg { width: 20px; height: 20px; }

.app-card__icon--blue { color: #2d78c4; background: #e8f2fe; }
.app-card__icon--purple { color: #7662c3; background: #f0edff; }
.app-card__icon--orange { color: #cb871c; background: #fff4dc; }
.app-card__icon--green { color: #208d6c; background: #e5f7f0; }
.app-card__icon--cyan { color: #258ca7; background: #e5f7fb; }
.app-card__icon--pink { color: #c65d83; background: #fff0f5; }

.app-card strong { color: var(--ink); font-size: 12px; }

.app-card span { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.app-card__folder { margin-top: auto !important; color: var(--blue) !important; }

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

.todo-column { min-height: 330px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #edf2f6; }

.todo-column__head { display: flex; align-items: center; justify-content: space-between; padding: 3px 3px 12px; }

.todo-column__head strong { color: var(--ink); font-size: 12px; }

.todo-column__count { min-width: 20px; height: 20px; display: grid; place-items: center; color: var(--ink-soft); border-radius: 99px; background: #dce5ec; font-size: 9px; }

.todo-column__cards { display: flex; flex-direction: column; gap: 9px; }

.todo-card { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 2px 5px rgba(20,44,72,.04); }

.todo-card__tag { display: inline-block; margin-bottom: 8px; padding: 4px 6px; color: #3578b5; border-radius: 4px; background: var(--blue-soft); font-size: 9px; }

.todo-card__tag--orange { color: #a97216; background: #fff4dc; }
.todo-card__tag--green { color: #208b6b; background: var(--success-soft); }

.todo-card strong { display: block; color: var(--ink); font-size: 11px; line-height: 1.5; }

.todo-card p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }

.todo-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }

.todo-card__foot time { color: var(--muted); font-size: 9px; }

.todo-card__foot .avatar { width: 23px; height: 23px; font-size: 8px; }

.todo-card__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; color: var(--muted); font-size: 8px; }
.todo-card__meta span { padding: 3px 5px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--surface-soft); }
.todo-history-list { display: grid; gap: 8px; }
.todo-history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.todo-history-row:last-child { border-bottom: 0; }
.todo-history-row strong, .todo-history-row small { display: block; }
.todo-history-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }

.form-card { max-width: 820px; overflow: hidden; }

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

.form-section:last-child { border-bottom: 0; }

.form-section h3 { margin: 0 0 17px; color: var(--ink); font-size: 13px; }

.form-row { display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; gap: 18px; margin-bottom: 14px; }

.form-row:last-child { margin-bottom: 0; }

.form-row > label { color: var(--ink-soft); font-size: 11px; }

.form-row > label span { margin-left: 3px; color: var(--danger); }

.form-control { width: 100%; min-height: 37px; padding: 8px 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #fff; font-size: 11px; }

.form-help { grid-column: 2; margin-top: -7px; color: var(--muted); font-size: 9px; }

textarea.form-control { min-height: 92px; resize: vertical; line-height: 1.6; }

.form-help { margin: 6px 0 0; color: var(--muted); font-size: 9px; }

.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; background: #f9fbfd; }

.check-list { display: flex; flex-wrap: wrap; gap: 12px 17px; }

.check-list label { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 11px; }

.check-list input { accent-color: var(--blue); }

.approval-permission-list { display: grid; gap: 7px; }
.approval-permission-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; padding: 7px 9px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--canvas); }
.approval-permission-row > label:first-child { min-width: 150px; margin-right: auto; }
.approval-permission-row input:disabled + * { opacity: .55; }
.portal-layout-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-layout-column { min-height: 120px; padding: 10px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--canvas); }
.portal-layout-column h3 { margin: 0 0 8px; color: var(--ink-soft); font-size: 11px; }
.portal-layout-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; margin: 6px 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: grab; box-shadow: var(--shadow-sm); }
.portal-layout-item:active { cursor: grabbing; }
.portal-layout-item.is-dragging { opacity: .45; }
.portal-layout-item__handle { color: var(--muted); letter-spacing: -2px; }
.portal-layout-item__label { color: var(--ink); font-size: 11px; font-weight: 700; }
.portal-layout-item__toggle { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-soft); font-size: 10px; white-space: nowrap; }
.portal-layout-item__toggle input { accent-color: var(--blue); }
.schedule-participant-option { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 8px; width: 100%; }
.schedule-participant-option > label { min-width: 0; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(10,29,53,.48); backdrop-filter: blur(3px); }

.modal-backdrop[hidden] { display: none; }

.modal { width: min(560px, 100%); max-height: min(750px, calc(100vh - 40px)); overflow-y: auto; border: 1px solid rgba(255,255,255,.7); border-radius: 14px; background: #fff; box-shadow: 0 22px 75px rgba(9,30,56,.27); animation: modal-in .2s ease-out; }

@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 21px 23px 16px; border-bottom: 1px solid var(--line); }

.modal__head h2 { margin: 0; color: var(--ink); font-size: 16px; }

.modal__head p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }

.modal__close { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); border: 0; border-radius: 6px; background: transparent; }

.modal__close:hover { color: var(--ink); background: #f1f5f8; }

.modal__close svg { width: 17px; height: 17px; }

.modal__body { padding: 22px 23px; }

.modal__body .form-row { grid-template-columns: 105px minmax(0,1fr); }

.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 23px; border-top: 1px solid var(--line); background: #f9fbfd; }

.notification-panel { padding: 3px 0 0; }

.notification-panel__item { display: flex; gap: 10px; padding: 13px 20px; border-bottom: 1px solid var(--line-soft); }

.notification-panel__item:last-child { border-bottom: 0; }

.notification-panel__item strong { display: block; color: var(--ink); font-size: 11px; }

.notification-panel__item span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.notification-panel__item .notice-item__icon { width: 28px; height: 28px; }

.profile-menu { padding: 6px; }

.profile-menu__intro { display: flex; align-items: center; gap: 10px; padding: 12px 11px; border-bottom: 1px solid var(--line-soft); }

.profile-menu__intro strong { display: block; color: var(--ink); font-size: 12px; }

.profile-menu__intro span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

.profile-menu__item { width: 100%; display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px; color: var(--ink-soft); border: 0; border-radius: 6px; background: transparent; font-size: 11px; text-align: left; }

.profile-menu__item:hover { color: var(--blue); background: var(--blue-soft); }

.profile-menu__item svg { width: 15px; height: 15px; }

.toast-region { position: fixed; right: 25px; bottom: 24px; z-index: 150; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }

.toast { min-width: 260px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; color: #fff; border-radius: 9px; background: #173d6e; box-shadow: 0 10px 25px rgba(15,43,81,.24); font-size: 11px; animation: toast-in .25s ease-out; }

.toast svg { width: 17px; height: 17px; color: #8bd6ba; }

.toast--warning svg { color: #ffd17e; }

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.search-empty { padding: 32px 20px; color: var(--muted); text-align: center; font-size: 11px; }

.file-name-cell, .person-cell { display: inline-flex; align-items: center; gap: 10px; min-width: 220px; }

.file-name-cell strong, .person-cell strong { display: block; color: var(--ink); font-size: 11px; font-weight: 600; }

.file-name-cell small, .person-cell small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

.file-type-icon { width: 31px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; font-size: 8px; font-weight: 800; }

.file-type-icon--red { color: #d95b68; background: #fff0f2; }
.file-type-icon--green { color: #218c6b; background: #e6f7f0; }
.file-type-icon--blue { color: #3274b2; background: #eaf3ff; }

.table-link { color: var(--blue); }

.table-link:hover { text-decoration: underline; }

.favorite { margin-left: 3px; color: #e3a22c; font-size: 12px; }

.workflow-detail .status { margin-bottom: 17px; }

.workflow-detail dl, .contact-detail dl { margin: 0; border-top: 1px solid var(--line-soft); }

.workflow-detail dl > div, .contact-detail dl > div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; }

.workflow-detail dt, .contact-detail dt { color: var(--muted); }

.workflow-detail dd, .contact-detail dd { margin: 0; color: var(--ink-soft); }

.workflow-detail__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.bulletin-detail .status { margin-bottom: 17px; }

.bulletin-detail p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.9; white-space: pre-wrap; }

.bulletin-detail__meta { display: flex; align-items: center; gap: 5px; margin-top: 20px; padding-top: 14px; color: var(--muted); border-top: 1px solid var(--line-soft); font-size: 10px; }

.bulletin-detail__meta svg { width: 14px; height: 14px; }

.bulletin-survey { margin-top: 20px; padding: 15px; border: 1px solid #dce9f5; border-radius: 8px; background: #f8fbff; }

.bulletin-survey__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.bulletin-survey__head h3 { margin: 0; color: var(--ink); font-size: 12px; }

.bulletin-survey__head span { color: var(--muted); font-size: 10px; }

.bulletin-survey > p { margin: 9px 0; }

.bulletin-survey .check-list { gap: 7px; }

.bulletin-survey .checkbox-label { align-items: center; justify-content: flex-start; gap: 7px; }

.bulletin-survey .checkbox-label small { margin-left: auto; color: var(--muted); }

.bulletin-survey .btn { margin-top: 11px; }

.event-detail h3 { margin: 13px 0 7px; color: var(--ink); font-size: 15px; }

.event-detail p { margin: 7px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }

.contact-detail__hero { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }

.contact-detail__avatar { width: 47px; height: 47px; font-size: 16px; }

.contact-detail__hero h3 { margin: 0; color: var(--ink); font-size: 14px; }

.contact-detail__hero p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }

.contact-detail a { color: var(--blue); }
.contact-history-list, .contact-duplicate-list { display: grid; gap: 8px; }
.contact-history-row, .contact-duplicate-group { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.contact-history-row:last-child, .contact-duplicate-group:last-child { border-bottom: 0; }
.contact-history-row strong, .contact-history-row small { display: block; }
.contact-history-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.contact-duplicate-group p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }

.help-links { display: flex; flex-direction: column; gap: 7px; }

.help-link { min-height: 47px; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 11px; text-align: left; }

.help-link:hover { color: var(--blue); border-color: #bdd6ef; background: var(--blue-soft); }

.help-link svg { width: 16px; height: 16px; }

.help-link span { margin-left: auto; }

.help-link span svg { width: 14px; height: 14px; }

.activity-list { border-top: 1px solid var(--line-soft); }

.activity-list p { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 13px 0; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); font-size: 11px; }

.activity-list p span { color: var(--muted); font-size: 10px; }

.search-results { overflow: hidden; }

.search-result { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: var(--ink-soft); border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; text-align: left; }

.search-result:last-child { border-bottom: 0; }

.search-result:hover { background: #fafdff; }

.search-result__type { min-width: 85px; color: var(--blue); font-size: 10px; }

.search-result > span:nth-child(2) { min-width: 0; flex: 1; }

.search-result strong { display: block; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.search-result small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.search-result > svg { width: 16px; height: 16px; color: var(--muted); }

.sr-only { width: 1px; height: 1px; position: absolute; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }

@media (max-width: 1180px) {
  .main-content { padding: 28px 25px 45px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.35fr) minmax(275px,.9fr); }
  .quick-links { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 0; }
  .quick-link:nth-child(2) { border-right: 0; }
  .quick-link:nth-child(-n+2) { padding-bottom: 12px; }
  .quick-link:nth-child(n+3) { padding-top: 12px; border-top: 1px solid var(--line-soft); }
  .app-grid, .folder-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .topbar { padding: 0 16px; }
  .workspace-name { display: none; }
  .mobile-menu-button { display: inline-grid; }
  .sidebar { width: 248px; position: fixed; top: 68px; bottom: 0; left: 0; z-index: 15; transform: translateX(-100%); transition: transform .23s ease; box-shadow: 10px 0 35px rgba(8,27,50,.16); }
  .sidebar.is-open { transform: translateX(0); }
  .main-content { width: 100%; }
  .dashboard-grid, .bulletin-layout { grid-template-columns: 1fr; }
  .dashboard-side { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }
  .profile-card { grid-column: span 2; }
  .portal-layout-editor { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar { height: 60px; }
  .workspace { min-height: calc(100vh - 60px); }
  .sidebar { top: 60px; }
  .main-content { min-height: calc(100vh - 60px); padding: 23px 14px 92px; }
  .topbar__left { gap: 11px; }
  .brand__copy strong { font-size: 15px; }
  .global-search { width: 38px; padding: 0 9px; border: 0; background: transparent; }
  .global-search input, .global-search kbd { display: none; }
  .global-search:focus-within { width: 145px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
  .global-search:focus-within input { display: block; }
  .profile-chip__name, .profile-chip > svg { display: none; }
  .profile-chip { padding-right: 2px; }
  .page-header { flex-direction: column; margin-bottom: 19px; }
  .page-header__actions { width: 100%; }
  .page-header__actions .btn { flex: 1; }
  .page-header__title h1 { font-size: 22px; }
  .welcome-card { min-height: 186px; align-items: flex-start; flex-direction: column; padding: 22px; }
  .welcome-card__stats { width: 100%; margin-top: 17px; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.22); border-left: 0; gap: 23px; }
  .welcome-stat strong { font-size: 22px; }
  .schedule-row { grid-template-columns: 52px 10px minmax(0,1fr); }
  .schedule-row__tag { display: none; }
  .dashboard-side { display: flex; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar__left, .toolbar__right { width: 100%; }
  .input-with-icon { flex: 1; }
  .input-with-icon input { width: 100%; }
  .data-table { min-width: 660px; }
  .table-card { overflow-x: auto; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column; gap: 13px; }
  .calendar-toolbar__nav { align-self: flex-end; margin-top: -42px; }
  .workflow-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .folder-grid, .app-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .todo-board { grid-template-columns: 1fr; }
  .message-layout { grid-template-columns: 1fr; }
  .message-list { max-height: 285px; border-right: 0; border-bottom: 1px solid var(--line); }
  .message-thread { min-height: 530px; }
  .form-row, .modal__body .form-row { grid-template-columns: 1fr; gap: 7px; }
  .form-help { grid-column: 1; }
  .form-row > label { margin-bottom: 1px; }
  .toast-region { right: 14px; bottom: 15px; left: 14px; }
  .toast { min-width: 0; }
  .mobile-quick-nav { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px max(6px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-right)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -6px 20px rgba(18,55,96,.1); }
  .mobile-quick-nav a, .mobile-quick-nav button { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 4px 2px; color: var(--muted); border: 0; background: transparent; font-size: 9px; }
  .mobile-quick-nav a:hover, .mobile-quick-nav a:focus-visible, .mobile-quick-nav button:hover, .mobile-quick-nav button:focus-visible { color: var(--blue); }
  .mobile-quick-nav__icon { position: relative; }
  .mobile-quick-nav svg { width: 20px; height: 20px; }
}

@media (max-width: 430px) {
  .quick-links { padding-right: 9px; padding-left: 9px; }
  .quick-link { padding-right: 5px; padding-left: 5px; }
  .quick-link__icon { width: 30px; height: 30px; }
  .quick-link span { font-size: 10px; }
  .card__head { padding-right: 15px; padding-left: 15px; }
  .schedule-list, .bulletin-list, .notice-list, .portal-compact-list { padding-right: 15px; padding-left: 15px; }
  .bulletin-row { grid-template-columns: 57px minmax(0,1fr); gap: 8px; }
  .bulletin-row__badge { display: none; }
  .folder-grid, .app-grid { gap: 9px; }
  .app-card { min-height: 127px; padding: 13px; }
}

.mail-layout { min-height: 650px; display: grid; grid-template-columns: 180px 315px minmax(0,1fr); overflow: hidden; }

.mail-sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fbfcfe; }

.mail-sidebar__compose { padding: 16px 13px 10px; }

.mail-sidebar__compose .btn { width: 100%; justify-content: center; }

.mail-folder-list { padding: 7px 10px; }

.mail-folder { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 0 10px; color: var(--ink-soft); border: 0; border-radius: 6px; background: transparent; font-size: 11px; text-align: left; }

.mail-folder:hover, .mail-folder.is-active { color: var(--blue); background: var(--blue-soft); font-weight: 700; }

.mail-folder span:last-child { min-width: 17px; color: var(--muted); font-size: 10px; text-align: right; }

.mail-storage { margin-top: auto; padding: 15px 15px 19px; color: var(--muted); border-top: 1px solid var(--line-soft); font-size: 9px; }

.mail-storage strong { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 10px; font-weight: 500; }

.mail-storage > div { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 10px; background: #e6edf4; }

.mail-storage i { height: 100%; display: block; border-radius: inherit; background: var(--blue); }

.mail-list { overflow-y: auto; border-right: 1px solid var(--line); background: #fff; }

.mail-list__head { display: flex; align-items: center; gap: 7px; padding: 16px 13px; border-bottom: 1px solid var(--line); }

.mail-list__head .input-with-icon { flex: 1; }

.mail-row { width: 100%; display: flex; align-items: flex-start; gap: 9px; position: relative; padding: 14px 13px; color: inherit; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; text-align: left; }

.mail-row:hover, .mail-row.is-selected { background: #f1f7fe; }

.mail-row.is-unread { box-shadow: inset 3px 0 0 var(--blue); }

.mail-row .avatar { width: 29px; height: 29px; font-size: 10px; }

.mail-row__body { min-width: 0; flex: 1; }

.mail-row__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }

.mail-row__top strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.mail-row__top time { color: var(--muted); font-size: 9px; white-space: nowrap; }

.mail-row__subject, .mail-row__preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mail-row__subject { margin-top: 6px; color: var(--ink-soft); font-size: 10px; }

.mail-row__preview { margin-top: 4px; color: var(--muted); font-size: 9px; }

.mail-row__dot, .report-row__dot { width: 5px; height: 5px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: #ed7183; }

.mail-reader { min-width: 0; display: flex; flex-direction: column; background: #fff; }

.mail-reader__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 25px 17px; border-bottom: 1px solid var(--line); }

.mail-reader__crumb { color: var(--muted); font-size: 9px; }

.mail-reader__head h2 { margin: 8px 0 0; color: var(--ink); font-size: 16px; line-height: 1.5; }

.mail-reader__actions { display: flex; gap: 3px; }

.mail-reader__meta { display: flex; align-items: center; gap: 10px; padding: 18px 25px 7px; }

.mail-reader__meta > div { min-width: 0; flex: 1; }

.mail-reader__meta strong, .mail-reader__meta span { display: block; }

.mail-reader__meta strong { color: var(--ink); font-size: 11px; }

.mail-reader__meta span { margin-top: 4px; color: var(--muted); font-size: 9px; }

.mail-reader__meta time { color: var(--muted); font-size: 9px; }

.mail-reader__body { min-height: 230px; padding: 18px 25px; color: var(--ink-soft); font-size: 12px; line-height: 2; }

.mail-attachments { margin: 0 25px; padding: 13px 0; border-top: 1px solid var(--line-soft); }

.mail-attachments strong { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 10px; }

.mail-attachments strong svg { width: 14px; height: 14px; color: var(--blue); }

.mail-attachments button { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; color: var(--blue); border: 0; background: transparent; font-size: 10px; }

.mail-attachments button svg { width: 14px; height: 14px; }

.mail-account-list { display: grid; gap: 8px; }
.mail-account-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; }
.mail-account-row > span:first-child { min-width: 0; display: grid; gap: 4px; }
.mail-account-row strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mail-account-row small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mail-account-row__actions { display: flex; flex: 0 0 auto; gap: 5px; }
.mail-account-row__actions .btn { min-height: 28px; padding: 0 8px; font-size: 9px; }

.mail-reader__foot { display: flex; gap: 8px; margin-top: auto; padding: 14px 25px; border-top: 1px solid var(--line); background: #f9fbfd; }

.facility-calendar { overflow: hidden; }

.facility-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; padding: 0 21px 21px; }

.facility-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.facility-card__head { display: flex; align-items: center; gap: 10px; padding: 14px 15px; border-bottom: 1px solid var(--line-soft); }

.facility-card__icon { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; }

.facility-card__icon svg { width: 17px; height: 17px; }

.facility-card__icon--blue { color: var(--blue); background: var(--blue-soft); }
.facility-card__icon--purple { color: var(--purple); background: #f0edff; }
.facility-card__icon--orange { color: var(--warning); background: var(--warning-soft); }
.facility-card__icon--green { color: var(--success); background: var(--success-soft); }

.facility-card__head > div { min-width: 0; flex: 1; }

.facility-card__head h3 { margin: 0; color: var(--ink); font-size: 12px; }

.facility-card__head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }

.facility-reservations { padding: 8px 10px 10px; }

.facility-slot { width: 100%; display: grid; grid-template-columns: 95px minmax(0,1fr); gap: 9px; padding: 10px 7px; color: var(--ink-soft); border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; }

.facility-slot:last-child { border-bottom: 0; }

.facility-slot:hover { border-radius: 6px; background: #f5f9fd; }

.facility-slot time { color: var(--muted); font-size: 9px; }

.facility-slot strong, .facility-slot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.facility-slot strong { color: var(--ink); font-size: 10px; }

.facility-slot small { margin-top: 4px; color: var(--muted); font-size: 9px; }

.facility-slot.is-free strong { color: var(--success); }

.facility-slot--empty { color: var(--muted); cursor: default; }

.facility-slot--empty:hover { background: transparent; }

.free-slot-list { display: grid; gap: 7px; }

.free-slot { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }

.free-slot:last-child { border-bottom: 0; }

.free-slot strong { color: var(--ink); font-size: 11px; }

.free-slot span { color: var(--muted); font-size: 10px; }

.facility-detail__reservation { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 10px; }

.facility-detail__reservation:last-child { border-bottom: 0; }

.facility-detail__reservation span { color: var(--muted); text-align: right; }

.report-list, .phone-memo-list { overflow: hidden; }

.report-row { width: 100%; display: flex; align-items: center; gap: 11px; padding: 16px 21px; color: inherit; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; text-align: left; }

.report-row:hover { background: #fbfdff; }

.report-row:last-child { border-bottom: 0; }

.report-row .avatar { width: 32px; height: 32px; font-size: 11px; }

.report-row__body { min-width: 0; flex: 1; }

.report-row__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.report-row__top strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.report-row__top time, .report-row__body > span { color: var(--muted); font-size: 9px; }

.report-row__body > span { display: block; margin-top: 5px; }

.report-row > svg { width: 15px; height: 15px; color: var(--muted); }

.report-summary { margin-bottom: 18px; }

.report-detail__body { margin: 17px 0; padding: 16px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; font-size: 11px; line-height: 1.8; }

.report-detail__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0; }

.report-detail__meta > div { padding: 10px 12px; border-radius: 7px; background: #f5f8fb; }

.report-detail__meta dt { color: var(--muted); font-size: 9px; }

.report-detail__meta dd { margin: 5px 0 0; color: var(--ink); font-size: 10px; }

.report-detail__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }

.report-history, .report-comments { margin-top: 20px; }

.report-history h3, .report-comments h3 { margin: 0 0 10px; color: var(--ink); font-size: 12px; }

.report-history__row { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; padding: 9px 0; color: var(--muted); border-bottom: 1px solid var(--line-soft); font-size: 9px; }

.report-history__row strong { color: var(--ink-soft); font-weight: 600; }

.report-comment { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }

.report-comment strong { color: var(--ink-soft); font-size: 10px; }

.report-comment time { margin-left: 8px; color: var(--muted); font-size: 9px; }

.report-comment p { margin: 5px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }

.phone-memo-row { display: flex; align-items: flex-start; gap: 12px; padding: 17px 21px; border-bottom: 1px solid var(--line-soft); }

.phone-memo-row:last-child { border-bottom: 0; }

.phone-memo-row.is-handled { opacity: .65; }

.phone-memo-row .avatar { width: 34px; height: 34px; font-size: 11px; }

.phone-memo-row__body { min-width: 0; flex: 1; }

.phone-memo-row__top { display: flex; justify-content: space-between; gap: 8px; }

.phone-memo-row__top strong { color: var(--ink); font-size: 11px; }

.phone-memo-row__top time { color: var(--muted); font-size: 9px; }

.phone-memo-row__body p { margin: 7px 0 4px; color: var(--ink-soft); font-size: 10px; }

.phone-memo-row__body p b { color: var(--ink); }

.phone-memo-row__body p a { margin-left: 8px; color: var(--blue); }

.phone-memo-row__body > span { color: var(--muted); font-size: 10px; }

.project-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); align-items: start; gap: 19px; }

.project-list { overflow: hidden; }

.project-list__item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 15px 17px; color: var(--ink-soft); border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; text-align: left; }

.project-list__item:hover, .project-list__item.is-selected { background: #f1f7fe; }

.project-list__item.is-selected { box-shadow: inset 3px 0 0 var(--blue); }

.project-list__mark { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); }
.project-list__mark--green { background: var(--success); }
.project-list__mark--orange { background: var(--warning); }
.project-list__mark--purple { background: var(--purple); }

.project-list__item > span:nth-child(2) { min-width: 0; flex: 1; }

.project-list__item strong, .project-list__item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.project-list__item strong { color: var(--ink); font-size: 11px; }

.project-list__item small { margin-top: 5px; color: var(--muted); font-size: 9px; }

.project-list__item > svg { width: 14px; height: 14px; color: var(--muted); }

.project-detail { min-height: 610px; padding: 23px 25px; }

.project-detail__head { display: flex; justify-content: space-between; gap: 12px; }

.project-detail__head h2 { margin: 10px 0 6px; color: var(--ink); font-size: 19px; }

.project-detail__head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }

.project-progress { margin-top: 26px; padding: 16px 17px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; }

.project-progress__top { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 10px; }

.project-progress__top strong { color: var(--blue); font-size: 14px; }

.progress-track { height: 7px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #e7edf3; }

.progress-track i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #4d9ce1, var(--blue)); }

.project-detail__meta { display: flex; gap: 18px; margin-top: 10px; color: var(--muted); font-size: 9px; }

.project-detail__tabs { display: flex; gap: 5px; margin-top: 24px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

.project-detail__tabs button { padding: 0 11px 9px; color: var(--muted); border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 10px; }

.project-detail__tabs button.is-active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }

.project-task-list__head { display: flex; align-items: center; justify-content: space-between; margin-top: 19px; }

.project-task-list__head h3 { margin: 0; color: var(--ink); font-size: 13px; }

.project-task { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }

.project-task__check { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #bed1e2; border-radius: 5px; color: var(--success); }

.project-task__check svg { width: 13px; height: 13px; }

.project-task > span:nth-child(2) { min-width: 0; flex: 1; }

.project-task strong, .project-task small { display: block; }

.project-task strong { color: var(--ink-soft); font-size: 10px; }

.project-task small { margin-top: 5px; color: var(--muted); font-size: 9px; }

.project-task.is-done strong { color: var(--muted); text-decoration: line-through; }

.project-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }

.project-board__column { min-height: 260px; padding: 10px; border-radius: 8px; background: #f5f8fb; }

.project-board__head { display: flex; justify-content: space-between; padding: 4px 4px 10px; color: var(--ink-soft); font-size: 10px; }

.project-board__head span { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 99px; background: #e1eaf2; font-size: 9px; }

.project-board__card { margin-bottom: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow-sm); }

.project-board__card strong, .project-board__card span, .project-board__card small { display: block; }

.project-board__card strong { color: var(--ink); font-size: 10px; line-height: 1.5; }
.project-board__card span, .project-board__card small { margin-top: 6px; color: var(--muted); font-size: 9px; }
.project-board__empty { color: var(--muted); font-size: 9px; text-align: center; }

.project-gantt { margin-top: 20px; }

.project-gantt__scale { display: flex; justify-content: space-between; margin-left: 160px; color: var(--muted); font-size: 9px; }

.project-gantt__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }

.project-gantt__row > span { overflow: hidden; color: var(--ink-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.project-gantt__track { height: 10px; overflow: hidden; border-radius: 99px; background: #e7edf3; }

.project-gantt__bar { height: 100%; display: block; border-radius: inherit; background: var(--blue); }
.project-gantt__bar--done { background: var(--success); }
.project-gantt__bar--todo { background: var(--warning); }
.project-subpanel { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.project-subpanel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-subpanel__head h3 { margin: 0; color: var(--ink); font-size: 13px; }
.project-subpanel__head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.project-milestone-list { margin-top: 12px; }
.project-milestone { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.project-milestone__marker { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #bed1e2; border-radius: 50%; color: var(--success); }
.project-milestone__marker svg { width: 12px; height: 12px; }
.project-milestone > div { min-width: 0; flex: 1; }
.project-milestone strong, .project-milestone small { display: block; }
.project-milestone strong { color: var(--ink-soft); font-size: 10px; }
.project-milestone small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.project-milestone.is-done strong { color: var(--muted); text-decoration: line-through; }
.project-comments { margin-top: 12px; }
.project-comments .schedule-comment { padding: 11px 0; }
.project-member-list { margin-top: 12px; }
.project-member { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.project-member > strong { min-width: 0; flex: 1; color: var(--ink-soft); font-size: 10px; }
.project-member .avatar { width: 24px; height: 24px; font-size: 9px; }
.project-member-editor-list { display: grid; gap: 8px; }
.project-member-editor { display: grid; grid-template-columns: minmax(0, 1fr) 130px; align-items: center; gap: 10px; }
.project-member-editor label { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 10px; }
.project-report-list { margin-top: 12px; }
.project-report { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.project-report > span:first-child { min-width: 0; flex: 1; }
.project-report strong, .project-report small { display: block; }
.project-report strong { overflow: hidden; color: var(--ink-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.project-report small { margin-top: 4px; color: var(--muted); font-size: 9px; }

.timecard-hero { display: flex; align-items: center; gap: 24px; padding: 22px 25px; color: #fff; background: linear-gradient(115deg, #183f76, #287bc7); }

.timecard-hero__label { display: block; color: rgba(255,255,255,.7); font-size: 10px; }

.timecard-hero strong { display: block; margin-top: 7px; font-size: 22px; }

.timecard-hero p { margin: 7px 0 0; color: rgba(255,255,255,.72); font-size: 10px; }

.timecard-clock { display: flex; flex-direction: column; gap: 7px; min-width: 180px; padding-left: 23px; color: rgba(255,255,255,.85); border-left: 1px solid rgba(255,255,255,.25); font-size: 11px; }

.timecard-actions { display: flex; gap: 8px; margin-left: auto; }

.timecard-actions .btn { border-color: rgba(255,255,255,.35); }

.timecard-actions .btn:not(.btn--primary) { color: #fff; background: rgba(255,255,255,.12); }

.timecard-actions .btn:disabled { cursor: not-allowed; opacity: .45; }

.timecard-table td strong { color: var(--ink); font-size: 11px; }
.timecard-admin-section { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.timecard-admin-section:last-child { margin-bottom: 0; border-bottom: 0; }
.timecard-admin-section h3 { margin: 0 0 10px; color: var(--ink); font-size: 13px; }
.timecard-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.timecard-admin-row:last-child { border-bottom: 0; }
.timecard-admin-row strong, .timecard-admin-row small { display: block; }
.timecard-admin-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.timecard-close-status { align-self: center; padding: 7px 10px; color: #236c55; border-radius: 5px; background: #e7f6ef; font-size: 10px; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 19px; }

.settings-card { overflow: hidden; }

.settings-card > button { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; padding: 15px 20px; color: var(--ink-soft); border: 0; border-top: 1px solid var(--line-soft); background: #fff; text-align: left; }

.settings-card > button:hover { background: #f7fbff; }

.settings-card > button strong { color: var(--ink); font-size: 11px; }

.settings-card > button span { color: var(--muted); font-size: 9px; }

.settings-card > button > svg, .settings-card > button > .status { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

.settings-card > button > svg { width: 15px; height: 15px; color: var(--muted); }

.settings-user-table { margin-top: 19px; overflow: hidden; }

.settings-user-table__meta { margin: 5px 0 0; color: var(--muted); font-size: 9px; }

.settings-user-table .table-scroll { overflow-x: auto; }

.settings-user-table .data-table { min-width: 650px; }

.table-action-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.table-action-list .btn { white-space: nowrap; }

.message-attachments { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 11px 18px; border-top: 1px solid var(--line-soft); background: #fbfdff; }

.message-attachments strong { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 10px; }

.message-attachments strong svg { width: 14px; height: 14px; }

.message-attachments button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; color: var(--blue); border: 1px solid #d1e4f7; border-radius: 5px; background: var(--blue-soft); font-size: 10px; cursor: pointer; }

.message-attachments button svg { width: 13px; height: 13px; }

.message-collaboration { padding: 13px 20px 0; border-top: 1px solid var(--line-soft); background: #fbfdff; }

.message-collaboration__actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.message-collaboration__actions .btn { display: inline-flex; align-items: center; gap: 4px; }

.message-collaboration__actions .btn.is-active { color: var(--blue); border-color: #9cc8ed; background: var(--blue-soft); }

.message-collaboration__actions svg { width: 13px; height: 13px; }

.message-thread-comments { margin: 12px 0 2px; padding: 10px 0 0; border-top: 1px solid var(--line-soft); }

.message-thread-comments h3 { margin: 0 0 7px; color: var(--ink); font-size: 11px; }

.message-thread-comment { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }

.message-thread-comment strong { color: var(--ink-soft); font-size: 10px; }

.message-thread-comment time { margin-left: 7px; color: var(--muted); font-size: 9px; }

.message-thread-comment p { margin: 4px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; white-space: pre-wrap; }

.group-chip-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 20px 20px; }

.group-chip { display: inline-flex; align-items: center; min-height: 29px; padding: 0 12px; border: 1px solid #cfe0f4; border-radius: 999px; color: #24558a; background: #f4f9ff; font-size: 10px; font-weight: 700; }

.modal-action-list { display: grid; gap: 9px; }

.modal-action-list .btn { justify-content: flex-start; }

.status-button { padding: 0; border: 0; background: transparent; }

.color-control { width: 74px; min-height: 39px; padding: 4px; }

.todo-card__status { margin-left: auto; padding: 5px 8px; font-size: 9px; }

.custom-app-detail__summary { display: flex; gap: 12px; margin-bottom: 19px; }

.custom-app-detail__summary > div { min-width: 130px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow-sm); }

.custom-app-detail__summary strong, .custom-app-detail__summary span { display: block; }

.custom-app-detail__summary strong { color: var(--ink); font-size: 18px; }

.custom-app-detail__summary span { margin-top: 4px; color: var(--muted); font-size: 9px; }

.custom-app-detail__meta { margin: 5px 0 0; color: var(--muted); font-size: 9px; }

.custom-records { overflow: hidden; }

.custom-records .card__head { align-items: flex-start; }

.custom-records__tools { display: flex; align-items: center; gap: 7px; }

.custom-records__tools .input-with-icon { width: 210px; }

.custom-record-table-wrap { overflow-x: auto; }

.custom-record-table { width: 100%; min-width: 740px; border-collapse: collapse; }

.custom-record-table th, .custom-record-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }

.custom-record-table th { color: var(--muted); background: #f8fafc; font-size: 9px; font-weight: 700; white-space: nowrap; }

.custom-record-table td { color: var(--ink-soft); font-size: 10px; }

.custom-record-table tbody tr:hover { background: #fbfdff; }

.custom-record-table tbody tr:last-child td { border-bottom: 0; }

.custom-record-meta, .custom-record-meta small { display: block; }

.custom-record-meta { color: var(--ink-soft); font-size: 9px; white-space: nowrap; }

.custom-record-meta small { margin-top: 3px; color: var(--muted); }

.custom-record-actions { display: flex; gap: 4px; }

.custom-record-actions .icon-button { width: 27px; height: 27px; }

.custom-record-actions .icon-button svg { width: 13px; height: 13px; }

.bulletin-detail__reaction { display: flex; align-items: center; gap: 10px; margin-top: 18px; }

.bulletin-detail__reaction > span { color: var(--muted); font-size: 10px; }

.bulletin-comments { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line-soft); }

.bulletin-comments h3 { margin: 0 0 9px; color: var(--ink); font-size: 12px; }

.bulletin-comment { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }

.bulletin-comment strong { color: var(--ink-soft); font-size: 10px; }

.bulletin-comment time { margin-left: 8px; color: var(--muted); font-size: 9px; }

.bulletin-comment p { margin: 5px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }

.month-calendar__head, .month-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }

.month-calendar__head span { padding: 10px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; text-align: center; }

.month-calendar__cell { min-height: 100px; padding: 8px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.month-calendar__cell:nth-child(7n) { border-right: 0; }

.month-calendar__cell > strong { display: block; color: var(--ink-soft); font-size: 10px; }

.month-calendar__cell.is-today > strong { width: 21px; height: 21px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--blue); }

.month-calendar__cell.is-empty { background: #fafcfe; }

.month-calendar__event { width: 100%; display: block; overflow: hidden; margin-top: 6px; padding: 4px 5px; color: var(--ink-soft); border: 0; border-left: 2px solid var(--blue); border-radius: 3px; background: var(--blue-soft); font-size: 9px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }

.month-calendar__event--green { border-left-color: var(--success); background: var(--success-soft); }
.month-calendar__event--orange { border-left-color: var(--warning); background: var(--warning-soft); }
.month-calendar__event--purple { border-left-color: var(--purple); background: #f0edff; }

.month-calendar__cell > small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }

.schedule-agenda { padding: 5px 20px; }

.schedule-agenda__row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 0; color: inherit; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; }

.schedule-agenda__row:last-child { border-bottom: 0; }

.schedule-agenda__row time { width: 86px; color: var(--ink-soft); font-size: 10px; }

.schedule-agenda__row time small, .schedule-agenda__row > span:nth-of-type(2) small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

.schedule-agenda__row > span:nth-of-type(2) { min-width: 0; flex: 1; }

.schedule-agenda__row > span:nth-of-type(2) strong { display: block; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.schedule-agenda__dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); }
.schedule-agenda__dot--green { background: var(--success); }
.schedule-agenda__dot--orange { background: var(--warning); }
.schedule-agenda__dot--purple { background: var(--purple); }

.schedule-agenda__row > svg { width: 15px; height: 15px; color: var(--muted); }

@media (max-width: 1080px) {
  .mail-layout { grid-template-columns: 165px 285px minmax(0,1fr); }
  .project-layout { grid-template-columns: 260px minmax(0,1fr); }
}

@media (max-width: 900px) {
  .mail-layout { grid-template-columns: 155px minmax(0,1fr); }
  .mail-reader { grid-column: 2; grid-row: 1; }
  .mail-list { grid-column: 1 / span 2; grid-row: 2; max-height: 310px; border-top: 1px solid var(--line); border-right: 0; }
  .mail-sidebar { grid-column: 1; grid-row: 1; }
  .mail-reader { grid-column: 2; }
  .facility-grid, .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .custom-app-detail__summary { overflow-x: auto; }
  .custom-app-detail__summary > div { min-width: 110px; }
  .custom-records__tools .input-with-icon { width: 150px; }
  .mail-account-row { align-items: flex-start; flex-direction: column; }
  .mail-account-row__actions { flex-wrap: wrap; }
  .mail-layout { display: flex; flex-direction: column; }
  .mail-sidebar { flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .mail-sidebar__compose { display: none; }
  .mail-folder-list { display: flex; gap: 4px; overflow-x: auto; padding: 10px; }
  .mail-folder { width: auto; min-width: 76px; justify-content: center; }
  .mail-storage { display: none; }
  .mail-list { max-height: 270px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mail-reader { min-height: 510px; }
  .mail-reader__head, .mail-reader__meta, .mail-reader__body { padding-right: 17px; padding-left: 17px; }
  .mail-attachments { margin-right: 17px; margin-left: 17px; }
  .mail-reader__foot { padding-right: 17px; padding-left: 17px; }
  .facility-grid { padding-right: 14px; padding-left: 14px; }
  .facility-slot { grid-template-columns: 80px minmax(0,1fr); }
  .project-layout { grid-template-columns: 1fr; }
  .project-board { grid-template-columns: 1fr; }
  .project-gantt__scale { margin-left: 110px; }
  .project-gantt__row { grid-template-columns: 100px minmax(0, 1fr); }
  .project-detail { min-height: 0; padding: 19px 17px; }
  .report-detail__meta { grid-template-columns: 1fr; }
  .report-history__row { grid-template-columns: 1fr; gap: 3px; }
  .timecard-hero { align-items: flex-start; flex-direction: column; gap: 15px; padding: 20px; }
  .timecard-clock { width: 100%; padding: 13px 0 0; border-top: 1px solid rgba(255,255,255,.25); border-left: 0; }
  .timecard-actions { width: 100%; margin-left: 0; }
  .timecard-actions .btn { flex: 1; justify-content: center; }
}

@media print {
  @page { size: A4; margin: 12mm; }

  body { color: #111; background: #fff !important; }
  .topbar, .sidebar, .mobile-quick-nav, .page-header__actions, .quick-links, #modal-backdrop, .toast-container { display: none !important; }
  .workspace { display: block !important; }
  .main-content { width: 100% !important; min-height: 0 !important; padding: 0 !important; overflow: visible !important; background: #fff !important; }
  .page-wrap { max-width: none !important; padding: 0 !important; }
  .page-header { margin: 0 0 16px !important; padding: 0 0 10px !important; border-bottom: 2px solid #1f4d80 !important; }
  .page-header__title h1 { color: #111 !important; }
  .page-header__title p, .card__link, .toolbar__right, .input-with-icon, .btn, .icon-button, .mobile-menu-button { display: none !important; }
  .card, .data-table-wrap, .mail-layout, .message-layout, .project-layout, .custom-records { box-shadow: none !important; border-color: #b8b8b8 !important; break-inside: avoid; }
  .card { margin-bottom: 12px !important; }
  button, a { color: inherit !important; }
  .data-table, table { font-size: 9pt !important; }
  .data-table tr, table tr { break-inside: avoid; }
}
