/* LimeStash platform workspace · local prototype */
:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #24332d;
  background: #f3f5f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --green: #39c565;
  --green-dark: #18863c;
  --green-soft: #eaf8ee;
  --ink: #23332c;
  --muted: #7a867f;
  --border: #e7ece9;
  --sidebar: #171d1a;
  --sidebar-width: 240px;
  --shadow: 0 3px 14px rgb(23 45 32 / 4%);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 13px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, button.disabled, .button.disabled { cursor: not-allowed; opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #55c879; outline-offset: 3px;
}
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button svg, .button svg { flex-shrink: 0; width: 16px; height: 16px; vertical-align: middle; }
button { transition: background-color .14s, color .14s, border-color .14s, box-shadow .14s; }
.hidden { display: none !important; }
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; z-index: 40; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width); background: var(--sidebar); color: #bfc9c2;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  scrollbar-color: #3c4840 transparent; padding: 0 12px 100px;
}
.brand { display: flex; gap: 10px; align-items: center; height: 76px; padding: 0 12px; color: white; }
.brand-mark { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 10px; background: var(--green); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -1px; box-shadow: 0 4px 14px #24af4526; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -.65px; color: #f6faf7; }
.brand-name span { color: #72db90; }
.nav-group { margin-bottom: 4px; }
.nav-group-button { width: 100%; padding: 11px 12px; border: none; background: none; color: #c0c9c3; display: flex; align-items: center; gap: 10px; border-radius: 7px; text-align: left; font-weight: 500; min-height: 43px; }
.nav-group-button:hover { background: #ffffff09; color: white; }
.nav-group-button.active { color: #75db93; background: #3aca6513; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; flex: 0 0 18px; font-size: 15px; opacity: .82; }
.nav-icon svg { width: 17px; height: 17px; }
.nav-chevron { margin-left: auto; opacity: .5; font-size: 11px; }
.nav-items { margin: 2px 0 8px; padding-left: 0; }
.nav-item { display: flex; width: 100%; min-height: 36px; align-items: center; text-align: left; position: relative; border: 0; border-radius: 6px; background: none; padding: 8px 12px 8px 40px; color: #9faea5; font-size: 12px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.nav-item:hover { background: #ffffff08; color: #edf8f0; text-decoration: none; }
.nav-item.active { color: #fff; background: #2bbd56; font-weight: 600; box-shadow: 0 3px 8px #0b140e24; }
.nav-item.active::before { content: ""; position: absolute; left: 26px; width: 4px; height: 4px; border-radius: 50%; background: #b9facb; }
.sidebar-footer { position: fixed; bottom: 0; left: 0; width: var(--sidebar-width); padding: 16px 22px; font-size: 10px; color: #778b7e; background: linear-gradient(transparent, #171d1a 20%); border-top: 1px solid #ffffff08; }
.sidebar-footer strong { color: #b1c2b7; font-weight: 500; }
.sidebar-footer small { display: block; margin-top: 4px; font-size: 10px; }
.workspace { margin-left: var(--sidebar-width); min-width: 0; }
.topbar { height: 64px; position: sticky; top: 0; z-index: 30; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); background: #ffffffed; backdrop-filter: blur(14px); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; min-width: 0; color: #8a958f; font-size: 12px; }
.breadcrumbs strong, .breadcrumbs span:last-child { color: #34463b; font-weight: 500; }
.breadcrumbs svg { width: 14px; height: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.search-button { display: flex; align-items: center; gap: 9px; padding: 6px 10px; color: #7c8981; background: #f6f8f7; border: 1px solid #edf0ee; border-radius: 6px; font-size: 11px; }
.search-button kbd { font-family: inherit; color: #8b968f; font-size: 10px; border: 1px solid #e3e8e4; padding: 0 4px; border-radius: 3px; margin-left: 26px; background: #fff; }
.language-switch { border: none; background: none; color: #66776c; font-size: 12px; padding: 6px 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #e5f4e9; color: #258d43; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 4px; background: var(--green-soft); color: #399552; font-size: 10px; font-weight: 500; white-space: nowrap; }
.content { padding: 26px 28px 48px; max-width: 1920px; margin: 0 auto; }
.content:focus { outline: none; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 23px; }
.eyebrow { color: #839188; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; margin-bottom: 5px; }
.page-title { margin: 0; font-size: 24px; line-height: 1.35; font-weight: 650; color: #203529; letter-spacing: -.7px; }
.page-description { color: #849087; font-size: 12px; max-width: 800px; margin: 8px 0 0; line-height: 1.7; }
.page-header-actions { display: flex; align-items: center; gap: 9px; padding-top: 4px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 13px; font-size: 12px; font-weight: 500; line-height: 1.4; color: #4c6052; background: #fff; border: 1px solid #dce4de; border-radius: 6px; white-space: nowrap; text-decoration: none; }
.button:hover:not(:disabled):not(.disabled) { background: #f7faf8; border-color: #bbd1c1; color: #28763e; text-decoration: none; }
.button.primary { color: #fff; background: #2dbf59; border-color: #2dbf59; box-shadow: 0 2px 5px #2dbf5917; }
.button.primary:hover:not(:disabled) { color: #fff; background: #25ad4e; border-color: #25ad4e; }
.button.danger { color: #c44e4b; border-color: #efcfce; background: #fff; }
.button.danger:hover:not(:disabled) { background: #fff2f1; color: #b63230; border-color: #dea8a5; }
.button.subtle { background: transparent; border-color: transparent; color: #718277; box-shadow: none; }
.button.small { min-height: 27px; padding: 4px 9px; font-size: 11px; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 31px; height: 31px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #7b8a80; font-size: 18px; }
.icon-button:hover { background: #f0f5f1; color: #2c8343; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { position: relative; padding: 20px 21px 16px; background: #fff; border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow); min-height: 137px; overflow: hidden; }
.stat-label { display: block; color: #78887e; font-size: 12px; font-weight: 500; margin-bottom: 11px; }
.stat-value { display: block; font-size: 29px; line-height: 1.2; letter-spacing: -1px; font-weight: 650; color: #24392c; font-variant-numeric: tabular-nums; }
.stat-trend { display: flex; align-items: center; gap: 5px; margin-top: 11px; font-size: 10px; color: #94a097; }
.stat-trend.positive, .stat-trend .positive { color: #29904a; }
.stat-icon { position: absolute; right: 19px; top: 20px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #edf8f0; color: #48b868; font-size: 16px; }
.stat-icon svg { width: 17px; height: 17px; }
.panel { min-width: 0; margin-bottom: 20px; background: #fff; border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow); overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 16px 20px; border-bottom: 1px solid #edf1ee; }
.panel-header h2, .panel-header h3 { font-size: 13px; font-weight: 600; margin: 0; color: #374c3e; }
.panel-header p { margin: 3px 0 0; color: #95a097; font-size: 11px; }
.panel-body { padding: 20px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 16px; align-items: end; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field-label { color: #5c7063; font-size: 11px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.field-label.required::after { content: "*"; color: #db6b5f; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { display: block; min-width: 0; width: 100%; min-height: 35px; border: 1px solid #dfe6e1; border-radius: 5px; background: #fff; padding: 8px 10px; color: #344c3c; outline-offset: 1px; font-size: 12px; line-height: 1.45; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #a1aca5; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #bbcdc0; }
input:focus, select:focus, textarea:focus { border-color: #46bd68; box-shadow: 0 0 0 3px #44c26510; }
input:disabled, select:disabled, textarea:disabled { background: #f5f7f6; color: #8b978f; cursor: not-allowed; }
input[type="checkbox"], input[type="radio"] { accent-color: #2dbf59; width: 15px; height: 15px; cursor: pointer; }
textarea { resize: vertical; min-height: 92px; }
.filter-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed #e8eee9; }
.filter-actions > span:first-child { margin-right: auto; font-size: 11px; color: #96a198; }
.tabs { display: flex; align-items: center; gap: 25px; padding: 0 20px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { flex-shrink: 0; border: 0; background: transparent; color: #849187; font-size: 12px; padding: 16px 1px 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: #2c9750; }
.tab.active { color: #239b49; border-bottom-color: #30bd59; font-weight: 600; }
.tab .badge { margin-left: 6px; padding: 1px 5px; background: #f1f4f2; color: #8b968f; font-size: 10px; }
.tab.active .badge { background: #eaf8ee; color: #269b48; }
.table-toolbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; }
.table-toolbar h2, .table-toolbar h3 { margin: 0; font-size: 13px; font-weight: 600; }
.table-toolbar > span, .table-toolbar small { color: #8d9a91; font-size: 11px; }
.table-toolbar .toolbar-actions { display: flex; align-items: center; gap: 8px; }
.table-wrap { overflow-x: auto; width: 100%; scrollbar-width: thin; }
table.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.data-table thead { background: #f7f9f8; }
.data-table th { position: sticky; top: 0; z-index: 1; padding: 12px 18px; background: #f7f9f8; color: #8a978e; font-weight: 500; font-size: 10px; letter-spacing: .2px; text-align: left; border-bottom: 1px solid #edf1ee; white-space: nowrap; }
.data-table td { padding: 15px 18px; border-bottom: 1px solid #eff3f0; color: #566b5d; max-width: 360px; overflow-wrap: break-word; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdfb; }
.data-table th:first-child, .data-table td:first-child { padding-left: 20px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 20px; }
.data-table td .button { font-size: 11px; }
.cell-main { color: #344d3d; font-weight: 500; line-height: 1.55; min-width: 80px; }
.cell-sub { color: #98a29c; font-size: 10px; line-height: 1.5; margin-top: 3px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; min-width: 74px; }
.row-actions .button { padding: 3px 7px; min-height: 26px; border-color: transparent; color: #319952; background: transparent; }
.row-actions .button:hover:not(:disabled) { background: #eef9f1; border-color: transparent; }
.row-actions .button.danger { color: #d1665d; }
.row-actions .button.danger:hover:not(:disabled) { background: #fff2f0; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; padding: 3px 7px; font-size: 10px; font-weight: 500; color: #77897d; background: #f1f5f2; white-space: nowrap; }
.status-pill::before { content: ""; width: 4px; height: 4px; flex-shrink: 0; border-radius: 50%; background: currentColor; opacity: .8; }
.status-pill.success { color: #2a9d50; background: #eaf8ee; }
.status-pill.warning { color: #bd8c31; background: #fff7e7; }
.status-pill.danger { color: #ca6a60; background: #fff0ed; }
.status-pill.neutral { color: #86928b; background: #f0f3f1; }
.pagination { min-height: 65px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 16px 20px; border-top: 1px solid #eef2ef; color: #8e9a92; font-size: 11px; }
.pagination > span:first-child { margin-right: auto; }
.pagination button { min-width: 28px; height: 28px; padding: 3px 7px; border: 1px solid #e3e9e5; background: white; border-radius: 4px; color: #77897e; font-size: 11px; }
.pagination button.active, .pagination button[aria-current="page"] { color: #269849; background: #ecf8ef; border-color: #d0edd8; }
.pagination button:hover:not(:disabled) { border-color: #9bd0aa; color: #208c41; }
.two-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; }
.two-columns > .panel { margin-bottom: 20px; }
.chart-bars { display: flex; flex-direction: column; gap: 19px; padding: 12px 0; }
.bar-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) 62px; align-items: center; gap: 14px; font-size: 11px; color: #7c8e81; }
.bar-label { color: #74857a; overflow-wrap: anywhere; }
.bar-track { height: 8px; border-radius: 3px; background: #f1f5f2; overflow: hidden; }
.bar-fill { height: 100%; min-width: 3px; border-radius: 3px; background: linear-gradient(90deg, #2ebf5a, #8cdfa1); }
.todo-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid #edf2ee; }
.todo-row:first-child { padding-top: 2px; }
.todo-row:last-child { border-bottom: none; padding-bottom: 2px; }
.todo-row .cell-main { font-size: 12px; }
.todo-row .cell-sub { margin-top: 4px; }
.todo-row > strong { font-size: 20px; margin-left: auto; color: #405b48; font-variant-numeric: tabular-nums; }
.progress-ring { display: flex; width: 112px; height: 112px; border-radius: 50%; border: 10px solid #e9f7ed; border-top-color: #43c66b; border-right-color: #43c66b; align-items: center; justify-content: center; color: #2c8e46; font-size: 25px; font-weight: 600; margin: 24px auto; }
.source-note { margin: 18px 0 0; padding: 0 2px; color: #98a29b; font-size: 10px; line-height: 1.8; }
.source-note strong { font-weight: 500; color: #7a8d80; }
.notice, .supplement-note { padding: 12px 15px; border: 1px solid #dceee1; border-radius: 6px; background: #f1faf4; color: #61806a; font-size: 11px; line-height: 1.8; margin: 0 0 20px; }
.notice.warning { background: #fffbf1; border-color: #f1e5c7; color: #a38d54; }
.notice strong, .supplement-note strong { color: #3b7450; font-weight: 600; }
.supplement-note { background: #f9f7ef; border-color: #ece6d2; color: #938158; }
.supplement-note strong { color: #92762f; }
.overlay { position: fixed; z-index: 100; inset: 0; background: #15221d66; backdrop-filter: blur(2px); padding: 28px; align-items: center; justify-content: center; }
.overlay:not(.hidden) { display: flex; }
.modal { width: 560px; max-width: 100%; max-height: calc(100dvh - 56px); display: flex; flex-direction: column; border: 1px solid #e9efeb; background: #fff; border-radius: 12px; box-shadow: 0 18px 80px #0c251e35; overflow: hidden; }
.modal-header, .drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 25px; border-bottom: 1px solid #e9eeea; flex-shrink: 0; }
.modal-header h2, .drawer-header h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.3px; color: #2a4232; }
.modal-header p, .drawer-header p { margin: 4px 0 0; font-size: 11px; color: #92a096; }
.modal-body, .drawer-body { padding: 24px 25px; overflow-y: auto; overscroll-behavior: contain; }
.modal-body .field + .field, .drawer-body .field + .field { margin-top: 16px; }
.modal-body .filter-grid .field, .drawer-body .filter-grid .field { margin-top: 0; }
.modal-body .filter-grid, .drawer-body .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modal-body > p:first-child { margin-top: 0; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding: 17px 25px; background: #fafcfb; border-top: 1px solid #e9eeea; flex-shrink: 0; }
.drawer-overlay { justify-content: flex-end; padding: 0; }
.drawer { display: flex; flex-direction: column; width: 720px; max-width: 92vw; height: 100dvh; background: #fff; box-shadow: -10px 0 60px #11271d25; border-left: 1px solid #e4ece7; }
.drawer-header { padding: 23px 28px; min-height: 86px; }
.drawer-body { padding: 26px 28px 40px; flex: 1; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; margin-bottom: 24px; }
.detail-item { padding: 14px 0; border-bottom: 1px solid #edf1ee; overflow-wrap: anywhere; color: #425e4c; font-size: 12px; }
.detail-label { display: block; color: #94a097; font-size: 10px; margin-bottom: 6px; }
.detail-item.full, .detail-item.full-width { grid-column: 1 / -1; }
.section-title { font-size: 13px; font-weight: 600; color: #3a5543; margin: 25px 0 13px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; display: block; background: #39c565; width: 3px; height: 12px; border-radius: 2px; }
.timeline { padding: 6px 0 6px 8px; }
.timeline-item { position: relative; padding: 0 0 24px 23px; border-left: 1px solid #e2ece5; font-size: 12px; color: #678171; }
.timeline-item::before { content: ""; position: absolute; left: -4px; top: 5px; width: 7px; height: 7px; background: #74c88d; border: 2px solid #fff; box-shadow: 0 0 0 1px #cce9d4; border-radius: 50%; }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item small { color: #98a59c; display: block; font-size: 10px; margin-top: 4px; }
.empty-state { min-height: 190px; padding: 42px 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; color: #99a59c; text-align: center; font-size: 12px; }
.empty-state svg { width: 40px; height: 40px; opacity: .4; }
.empty-state h3 { margin: 0; font-size: 13px; color: #788e80; font-weight: 500; }
.empty-state p { margin: 0; max-width: 350px; font-size: 11px; }
.error-message { color: #cd5c54; background: #fff4f2; padding: 9px 12px; border-radius: 5px; margin: 12px 0 0; font-size: 11px; }
.toast { position: fixed; z-index: 200; left: calc(50% + 120px); transform: translateX(-50%); top: 84px; padding: 12px 21px; max-width: min(540px, calc(100vw - 40px)); border: 1px solid #dcebe1; border-radius: 8px; box-shadow: 0 8px 30px #203e2920; background: #fff; color: #3b7450; font-size: 12px; }
.toast.error { color: #c05e54; border-color: #efd3cf; }
.checkbox-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; color: #62786a; font-size: 12px; }
.checkbox-row label { cursor: pointer; }
.global-search-results { max-height: 55vh; overflow-y: auto; margin: 15px -8px -8px; }
.search-result { display: flex; width: 100%; flex-direction: column; align-items: flex-start; text-align: left; gap: 3px; padding: 11px 12px; border: 0; border-radius: 6px; background: #fff; color: #3b5846; font-size: 12px; }
.search-result:hover { background: #f0f9f3; }
.search-result small { color: #98a49b; font-size: 10px; }
@media (min-width: 1600px) { .content { padding-top: 30px; } .stats-grid { gap: 20px; } .stat-card { padding: 23px 25px 19px; } .filter-grid { grid-template-columns: repeat(5, minmax(140px, 1fr)); } }
@media (max-width: 1200px) { .topbar-actions { gap: 11px; } .search-button kbd { margin-left: 8px; } .filter-grid { grid-template-columns: repeat(3, minmax(120px, 1fr)); } .page-title { font-size: 22px; } .stat-value { font-size: 25px; } }
@media (max-width: 1100px) {
  :root { --sidebar-width: 210px; }
  .content { padding: 22px 20px 40px; }
  .topbar { padding: 0 20px; }
  .topbar .badge { display: none; }
  .brand { padding-left: 8px; }
  .brand-name { font-size: 18px; }
  .nav-group-button { padding-left: 9px; font-size: 12px; }
  .nav-item { padding-left: 35px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 17px 15px; min-height: 126px; }
  .stat-icon { right: 14px; top: 16px; width: 27px; height: 27px; }
  .stat-label { padding-right: 26px; font-size: 11px; }
  .stat-value { font-size: 24px; }
  .two-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toast { left: calc(50% + 105px); }
  .data-table { min-width: 720px; }
}
@media (max-width: 800px) {
  :root { --sidebar-width: 185px; }
  .sidebar { padding-left: 8px; padding-right: 8px; }
  .brand { gap: 7px; height: 64px; padding-left: 6px; }
  .brand-mark { width: 29px; height: 29px; font-size: 12px; border-radius: 8px; }
  .brand-name { font-size: 16px; }
  .nav-group-button { font-size: 11px; gap: 7px; padding: 10px 7px; }
  .nav-icon { width: 15px; flex-basis: 15px; }
  .nav-item { padding: 8px 8px 8px 29px; font-size: 11px; }
  .nav-item.active::before { left: 17px; }
  .sidebar-footer { padding-left: 16px; font-size: 9px; }
  .topbar { padding: 0 16px; height: 56px; gap: 8px; }
  .breadcrumbs { font-size: 10px; gap: 5px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions .search-button { font-size: 0; padding: 5px; border: 0; background: transparent; }
  .search-button kbd, .topbar .language-switch { display: none; }
  .avatar { width: 26px; height: 26px; font-size: 10px; }
  .content { padding: 20px 15px 36px; }
  .page-header { flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .page-title { font-size: 20px; }
  .page-header-actions { padding-top: 0; flex-wrap: wrap; }
  .page-description { font-size: 11px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .panel-header, .panel-body, .table-toolbar { padding-left: 15px; padding-right: 15px; }
  .tabs { padding-left: 15px; gap: 19px; }
  .pagination { flex-wrap: wrap; padding-left: 15px; padding-right: 15px; }
  .pagination > span:first-child { flex-basis: 100%; }
  .overlay { padding: 16px; }
  .drawer-overlay { padding: 0; }
  .drawer { width: 650px; max-width: 95vw; }
  .drawer-header, .drawer-body { padding-left: 20px; padding-right: 20px; }
  .toast { left: 50%; top: 72px; }
}
@media (max-width: 520px) {
  :root { --sidebar-width: 150px; }
  .brand-name { font-size: 13px; }
  .brand-mark { width: 25px; height: 25px; }
  .nav-group-button { font-size: 10px; }
  .nav-item { font-size: 10px; padding-left: 24px; }
  .content { padding-left: 10px; padding-right: 10px; }
  .topbar { padding-left: 10px; padding-right: 10px; }
  .topbar-actions .avatar { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-actions { flex-wrap: wrap; }
  .page-title { font-size: 18px; }
  .modal-body .filter-grid, .drawer-body .filter-grid, .detail-grid { grid-template-columns: 1fr; }
  .modal-header, .modal-body, .modal-footer { padding-left: 18px; padding-right: 18px; }
  .modal-footer { flex-wrap: wrap; }
  .stat-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .sidebar, .topbar, .page-header-actions, .filter-actions, .row-actions, .pagination { display: none !important; } .workspace { margin-left: 0; } .content { padding: 0; } .panel, .stat-card { box-shadow: none; break-inside: avoid; } body { background: white; } }

/* Runtime integration: variable-width table labels and long page toolbars. */
.data-table th .icon-button{width:auto;height:auto;justify-content:flex-start;font-size:11px;white-space:nowrap;color:#65776b;line-height:1.5;text-align:left}.data-table .cell-main{width:auto;height:auto;min-width:90px;justify-content:flex-start;font-size:12px;line-height:1.5;text-align:left}.table-toolbar{flex-wrap:wrap}.table-toolbar .page-header-actions{flex-wrap:wrap;max-width:100%}.modal .field{margin-bottom:14px}.modal .filter-grid .field{margin-bottom:0}.stat-value{overflow-wrap:anywhere;font-size:clamp(21px,2vw,29px)}.brand-name small{display:block;font-size:8px;letter-spacing:1.4px;color:#778b7d;margin-top:4px}.panel-header>strong{font-size:13px}.bar-track .bar-fill{display:block;height:100%;border-radius:inherit}.drawer .row-actions{flex-wrap:wrap}.status-pill.info{background:#eef3f8;color:#5c7392}

.search-button{white-space:nowrap;min-width:130px;flex-shrink:0}.topbar .breadcrumbs{min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.topbar-actions{flex-shrink:0}.topbar .language-switch{width:auto;min-width:135px}.todo-row>div{min-width:0;flex:1}.todo-row strong,.todo-row small{display:block}.todo-row small{font-size:10px;color:#91a095;line-height:1.6;margin-top:3px}.detail-grid .detail-item strong{overflow-wrap:anywhere}

.login-wrap{min-height:85vh;display:flex;align-items:center;justify-content:center}.login-card{width:420px;max-width:95vw}.login-card .field{margin-bottom:16px}.login-card h1{font-size:24px}.login-card .button.primary{width:100%}

/* Compact in-app review pane; the desktop layout remains the primary design. */
@media(max-width:699px){:root{--sidebar-width:58px}.sidebar{padding-left:5px;padding-right:5px}.brand{padding-left:5px;justify-content:center}.brand-name,.sidebar .nav-items,.nav-group-button>span:nth-child(2),.nav-chevron,.sidebar-footer .badge,.sidebar-footer .button{display:none}.nav-group-button{justify-content:center;min-height:43px;padding:10px}.nav-icon{font-size:18px;width:24px;flex-basis:24px}.sidebar-footer{padding:8px}.topbar-actions .search-button{min-width:32px;width:32px}.topbar-actions .search-button:before{content:"⌕";font-size:24px}.topbar-actions>.button{display:none}.breadcrumbs{font-size:10px}.content{padding:14px 10px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card{min-height:112px;padding:12px}.stat-label{padding-right:0}.stat-value{font-size:20px}.page-title{font-size:20px}.search-result{width:100%}}

/* Candidate change labels: do not change the confirmed module names or permissions. */
.pending-change-badge{display:inline-block;margin:4px 0 8px;padding:3px 8px;border:1px solid #efd6a4;border-radius:4px;background:#fff7e7;color:#986b20;font-size:11px;font-weight:500;line-height:1.6;vertical-align:middle}
.pending-nav-note{display:block;margin-top:3px;color:#d4b56f;font-size:10px;line-height:1.5;font-weight:400;white-space:normal}
.pending-change-notice{border-color:#efd6a4!important;background:#fff8e9!important;color:#8b682c!important}
