:root {
  color-scheme: light;
  --ink: #1e2d28;
  --ink-soft: #41544d;
  --muted: #78867f;
  --line: #e4eae6;
  --line-strong: #d4ded8;
  --surface: #ffffff;
  --surface-2: #f5f8f6;
  --canvas: #f1f5f2;
  --green: #19745d;
  --green-dark: #105c49;
  --green-soft: #e2f2eb;
  --blue: #416f9b;
  --blue-soft: #eaf1f8;
  --amber: #966520;
  --amber-soft: #faf0dc;
  --red: #ab4c45;
  --red-soft: #f9eae8;
  --shadow: 0 8px 28px rgba(38, 63, 51, .055);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
.icon { display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; align-items: center; justify-content: center; }
.icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.boot { display: flex; min-height: 100vh; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.loader { width: 18px; height: 18px; border: 2px solid #cbd8d0; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shell { min-height: 100vh; }
.site-closed { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #fff; }
.site-closed p { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.8; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 16px; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; background: var(--green); color: white; border-radius: 9px; font-weight: 700; font-size: 16px; }
.brand-sub { display: block; margin-top: 2px; color: #8a9991; font-size: 9px; font-weight: 600; letter-spacing: 0; }
.topbar-right { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); }
.username { font-weight: 600; font-size: 13px; }
.role-indicator { padding: 5px 9px; background: var(--green-soft); color: var(--green-dark); border-radius: 4px; font-size: 11px; font-weight: 700; }
.role-indicator.admin { background: var(--blue-soft); color: #365e84; }
.workspace { display: flex; min-height: calc(100vh - 68px); }
.sidebar { width: 218px; flex: 0 0 218px; background: #f8faf8; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 25px 13px 16px; }
.side-caption { color: #98a39e; text-transform: uppercase; font-weight: 700; font-size: 10px; padding: 0 12px 13px; }
.nav-item { border: 0; background: transparent; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px; border-radius: 6px; padding: 0 12px; text-align: left; color: #64756d; font-weight: 600; margin-bottom: 4px; }
.nav-item .icon { color: #829188; width: 17px; height: 17px; }
.nav-item:hover { background: #edf3ef; color: var(--ink); }
.nav-item.active { background: #e3f1e9; color: #14684f; }
.nav-item.active .icon { color: var(--green); }
.nav-count { margin-left: auto; color: var(--green); font-size: 11px; }
.sidebar-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; border-top: 1px solid var(--line); padding: 16px 9px 0; color: #809087; font-size: 11px; }
.sidebar-foot > span:last-child { margin-left: auto; color: #a3aea8; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #43a47d; box-shadow: 0 0 0 3px #e1f1e8; }
.main-content { width: min(100% - 218px, 1290px); padding: 36px clamp(22px, 4vw, 58px) 70px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 27px; }
.page-heading h1 { margin: 5px 0 8px; font-size: 26px; line-height: 1.24; letter-spacing: 0; font-weight: 700; }
.page-heading p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 13px; max-width: 660px; white-space: pre-line; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.heading-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-stat { min-width: 82px; padding: 0 16px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 11px; display: flex; flex-direction: column; gap: 3px; }
.stat-number { color: var(--ink); font-size: 20px; font-weight: 700; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 14px; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; font-weight: 600; font-size: 12px; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.button:hover { border-color: #a9bdb1; background: #f9fbfa; }
.button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.button.secondary { color: #355a4b; background: #f7faf8; }
.button.quiet { background: transparent; border-color: transparent; color: var(--ink-soft); }
.button.quiet:hover { background: #e9efeb; }
.button.full { width: 100%; }
.button.link-button { border: 0; background: none; color: var(--green); min-height: 31px; }
.button.dashed { border-style: dashed; color: var(--green); background: #fbfdfb; }
.button.micro { min-height: 29px; font-size: 11px; padding: 0 9px; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; background: transparent; color: #73837a; border: 1px solid transparent; border-radius: 5px; padding: 0; }
.icon-button:hover { background: #f0f4f1; color: var(--ink); border-color: var(--line); }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button.tiny { width: 28px; height: 28px; }
.icon-button.tiny .icon { width: 15px; height: 15px; }
.icon-button.danger-quiet { color: #a65f58; }
.icon-button.danger-quiet:hover { background: var(--red-soft); border-color: #f0d4d0; }
.mobile-nav { display: none; }
.notice { display: flex; gap: 12px; align-items: center; margin-bottom: 21px; padding: 14px 16px; border: 1px solid #d9e8df; border-radius: 6px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; background: #f0f8f3; }
.notice > .icon { color: var(--green); }
.notice strong { color: var(--ink); font-size: 13px; }
.notice .text-button { margin-left: auto; white-space: nowrap; }
.notice.warning { background: #fff9ec; border-color: #f1e2be; }
.notice.warning > .icon { color: var(--amber); }
.notice.success { background: #eef7f2; }
.notice-date { margin-left: auto; color: var(--muted); white-space: nowrap; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--green); font-weight: 700; font-size: 12px; }
.text-button .icon { width: 15px; height: 15px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { display: flex; min-height: 260px; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 19px; box-shadow: var(--shadow); }
.project-card-top { display: flex; align-items: center; justify-content: space-between; }
.project-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--blue-soft); color: var(--blue); border-radius: 6px; }
.project-icon .icon { width: 19px; height: 19px; }
.project-card h2 { margin: 20px 0 8px; font-size: 16px; line-height: 1.45; }
.project-card p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; margin-bottom: 16px; color: #849189; font-size: 10px; }
.project-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.project-meta .icon { width: 13px; height: 13px; }
.status-badge { display: inline-flex; align-items: center; width: fit-content; min-height: 22px; padding: 3px 8px; border-radius: 3px; background: #eef2ef; color: #637168; font-style: normal; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-badge.open, .status-badge.approved { background: var(--green-soft); color: #17694f; }
.status-badge.pending { background: var(--amber-soft); color: #8d5c15; }
.status-badge.needs_changes { background: var(--blue-soft); color: #436889; }
.status-badge.rejected { background: var(--red-soft); color: #9d4b45; }
.status-badge.draft { background: #eef1ef; color: #77847c; }
.empty-state { min-height: 260px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--muted); text-align: center; background: rgba(255,255,255,.62); border: 1px dashed var(--line-strong); border-radius: 7px; padding: 28px; }
.empty-state > .icon, .empty-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #7e9c8d; background: #eaf1ec; border-radius: 50%; margin-bottom: 11px; }
.empty-state h3 { color: var(--ink-soft); margin: 3px 0 5px; font-size: 14px; }
.empty-state p { margin: 0 0 15px; font-size: 12px; }
.records-list, .admin-project-list { background: white; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.record-row { width: 100%; display: flex; align-items: center; gap: 13px; text-align: left; padding: 14px 17px; min-height: 70px; border: 0; border-bottom: 1px solid var(--line); background: white; }
.record-row:last-child, .admin-project-row:last-child { border-bottom: 0; }
.record-row:hover, .review-row:hover { background: #f8fbf9; }
.record-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; color: var(--green); background: var(--green-soft); }
.record-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.record-main strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-main small { color: var(--muted); font-size: 11px; }
.record-row > .icon { color: #8a9790; width: 16px; height: 16px; }
.account-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); gap: 16px; align-items: start; }
.panel { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 22px; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.site-settings-panel { margin-bottom: 20px; box-shadow: none; }
.site-settings-form { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(280px,1.5fr) auto; gap: 16px; align-items: end; }
.site-open-toggle { min-height: 44px; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); cursor: pointer; }
.site-open-toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.site-open-toggle strong, .site-open-toggle small { display: block; }
.site-open-toggle strong { font-size: 12px; }
.site-open-toggle small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.site-settings-form .control-label textarea { min-height: 82px; }
.panel h2 { margin: 4px 0 0; font-size: 16px; }
.panel p { margin: 9px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.account-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.account-state i { width: 7px; height: 7px; border-radius: 50%; background: #b6c0ba; }
.account-state.bound { color: var(--green); }
.account-state.bound i { background: #2c9a6e; }
.stack-form { display: flex; flex-direction: column; gap: 15px; }
.control-label { display: flex; flex-direction: column; gap: 7px; color: #42564c; font-size: 12px; font-weight: 600; min-width: 0; }
.control-label input, .control-label select, .control-label textarea, .field-control input:not([type=checkbox]):not([type=file]), .field-control select, .field-control textarea { width: 100%; min-height: 42px; padding: 10px 12px; background: #fbfcfb; border: 1px solid var(--line-strong); border-radius: 4px; outline: none; font-size: 13px; color: var(--ink); font-weight: 400; }
.control-label textarea, .field-control textarea { min-height: 94px; line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #5a9b7e !important; box-shadow: 0 0 0 3px rgba(39,131,94,.1); }
input::placeholder, textarea::placeholder { color: #a0aaa4; }
.field-hint { color: #7c8982; font-size: 11px; line-height: 1.65; white-space: pre-line; }
.secondary-panel { background: #f8faf9; box-shadow: none; }
.secondary-panel .button { align-self: flex-start; }
.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); background: white; border: 1px solid var(--line); border-radius: 6px; margin: 4px 0 29px; }
.metric-strip > div { display: flex; flex-direction: column; gap: 4px; padding: 15px 20px; border-right: 1px solid var(--line); }
.metric-strip > div:last-child { border: 0; }
.metric-value { font-size: 21px; font-weight: 700; }
.metric-value.green { color: var(--green); }
.metric-label { color: var(--muted); font-size: 11px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 15px; }
.section-heading h2 { margin: 0; font-size: 15px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.admin-project-row { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.admin-project-main { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.admin-project-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.admin-project-main small { color: var(--muted); font-size: 11px; }
.rule-preview { margin-top: 24px; padding: 17px 19px; background: #eff5f1; border-left: 3px solid #77a58b; border-radius: 0 5px 5px 0; }
.rule-preview-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; color: #365e4a; }
.rule-preview-title .icon { width: 15px; height: 15px; }
.rule-preview p { margin: 8px 0 0; color: #718078; font-size: 11px; line-height: 1.6; }
.filter-bar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.filter-bar select { height: 39px; border: 1px solid var(--line-strong); border-radius: 4px; background: white; padding: 0 10px; font-size: 11px; outline: none; max-width: 220px; }
.search-control { display: flex; align-items: center; gap: 8px; min-width: 220px; flex: 1; height: 39px; border: 1px solid var(--line-strong); border-radius: 4px; background: white; color: #849189; padding: 0 10px; }
.search-control .icon { width: 16px; height: 16px; }
.search-control input { border: 0; outline: none; background: transparent; flex: 1; min-width: 0; font-size: 12px; }
.search-control input:focus { box-shadow: none; }
.review-table, .user-table { border: 1px solid var(--line); border-radius: 6px; background: white; overflow: hidden; }
.review-table-head, .user-table-head { display: grid; grid-template-columns: minmax(190px,1.4fr) minmax(180px,1.2fr) minmax(120px,.8fr) minmax(90px,.6fr) 25px; gap: 14px; background: #f8faf8; color: #829087; font-size: 10px; font-weight: 700; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.review-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(190px,1.4fr) minmax(180px,1.2fr) minmax(120px,.8fr) minmax(90px,.6fr) 25px; gap: 14px; align-items: center; text-align: left; padding: 13px 15px; background: white; }
.review-row:last-child { border-bottom: 0; }
.review-person { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.review-person b, .review-project { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.review-person small, .review-date { color: var(--muted); font-size: 10px; }
.review-row > .icon { width: 16px; height: 16px; color: #92a098; }
.user-search { max-width: 460px; margin-bottom: 14px; }
.user-table-head, .user-row { grid-template-columns: minmax(140px,.9fr) minmax(180px,1.2fr) minmax(125px,.8fr) minmax(70px,.45fr) minmax(140px,.8fr); }
.user-row { display: grid; align-items: center; gap: 14px; padding: 12px 15px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.user-row:last-child { border-bottom: 0; }
.user-main, .uid-cell { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.user-main b, .uid-cell b { color: var(--ink-soft); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.user-main small, .uid-cell small { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.admin-security-panel { margin-top: 18px; box-shadow: none; }
.admin-security-panel h2 { margin-top: 6px; }
.password-inline-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; align-items: end; gap: 12px; margin-top: 14px; }
.password-inline-form .control-label { font-size: 10px; }
.password-inline-form .control-label input { min-height: 38px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; align-items: start; }
.submission-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.field-card { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 18px 19px; box-shadow: 0 3px 12px rgba(38,63,51,.025); }
.field-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 7px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.required-mark, .optional-mark { font-style: normal; font-size: 9px; border-radius: 3px; padding: 3px 6px; background: var(--red-soft); color: #a8564e; }
.optional-mark { background: #eef2ef; color: #78857d; }
.field-control { margin-top: 12px; }
.field-control > input, .field-control > select, .field-control > textarea { display: block; }
.field-control input:disabled, .field-control textarea:disabled, .field-control select:disabled { color: #65746c; opacity: 1; background: #f7f9f7; }
.form-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; padding: 17px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.aside-step { display: flex; align-items: flex-start; gap: 10px; }
.step-dot { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; border: 1px solid #cbded2; background: #f0f7f2; color: var(--green); border-radius: 50%; font-size: 9px; font-weight: 700; }
.aside-step strong, .aside-step small { display: block; }
.aside-step strong { margin: 2px 0 4px; font-size: 11px; }
.aside-step small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.aside-help { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.aside-help .icon { width: 14px; height: 14px; flex: 0 0 14px; }
.form-submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 3px 5px; }
.save-state { color: var(--muted); font-size: 10px; }
.upload-box { display: flex; flex-direction: column; gap: 9px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0,0,0,0); }
.upload-trigger { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 12px 13px; border: 1px dashed #bdcfc3; border-radius: 5px; background: #f9fcfa; color: var(--green); cursor: pointer; }
.upload-trigger:hover { border-color: #71a287; background: #f2f8f4; }
.upload-trigger > .icon:last-child { margin-left: auto; width: 16px; height: 16px; color: #88978e; }
.upload-trigger span strong, .upload-trigger span small { display: block; }
.upload-trigger strong { color: #365849; font-size: 11px; }
.upload-trigger small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.upload-trigger.disabled { cursor: default; }
.file-list { display: flex; flex-wrap: wrap; gap: 7px; }
.file-chip { min-width: 0; max-width: 100%; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fbfcfb; padding: 5px 7px; border-radius: 4px; color: var(--blue); }
.file-chip .icon { width: 14px; height: 14px; flex: 0 0 14px; }
.file-chip a { overflow: hidden; max-width: 220px; text-overflow: ellipsis; white-space: nowrap; color: #4f6f8b; font-size: 10px; text-decoration: none; }
.file-chip a:hover { text-decoration: underline; }
.file-chip small { color: #8b9690; font-size: 9px; white-space: nowrap; }
.file-chip .icon-button { flex: 0 0 23px; width: 23px; height: 23px; }
.orders-block { border: 1px solid #dce7df; border-radius: 5px; overflow: hidden; background: #fbfdfb; }
.orders-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f5f9f6; }
.orders-heading strong, .orders-heading small { display: block; }
.orders-heading strong { color: var(--ink-soft); font-size: 12px; }
.orders-heading small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.count-chip { padding: 4px 7px; background: white; border: 1px solid var(--line); border-radius: 3px; color: #68776f; font-size: 10px; }
.orders-list { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.order-card { background: white; border: 1px solid var(--line); border-radius: 5px; padding: 12px; }
.order-card > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.order-number { color: #536a5e; font-size: 11px; font-weight: 700; }
.order-upload-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 39px; margin-bottom: 11px; padding: 7px 9px; border: 1px dashed #c7d6cc; border-radius: 4px; background: #fbfdfb; }
.order-upload-row .order-files-label { margin-right: auto; }
.order-upload-row .file-list { flex: 1 0 100%; }
.order-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.order-fields .control-label { font-size: 10px; }
.order-fields .control-label input, .order-fields .control-label select { min-height: 38px; font-size: 12px; padding: 8px 9px; }
.optional-order .control-label { color: #748078; font-weight: 500; }
.order-files { border-top: 1px solid #edf0ee; padding-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.order-files-label { margin-right: auto; color: #54665d; font-size: 10px; font-weight: 700; }
.order-files-label span { color: #a25d54; font-weight: 500; }
.mini-upload { display: inline-flex; align-items: center; gap: 5px; min-height: 29px; padding: 0 8px; border: 1px dashed #b9cbbf; border-radius: 4px; color: var(--green); background: #fbfdfb; font-size: 10px; font-weight: 600; cursor: pointer; }
.mini-upload .icon { width: 14px; height: 14px; }
.add-order { width: 100%; min-height: 38px; margin: 0 10px 10px; width: calc(100% - 20px); }
.project-edit-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 18px; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 15px; }
.editor-panel { padding: 20px; box-shadow: none; }
.editor-panel > .control-label { margin-top: 14px; }
.editor-grid { display: grid; grid-template-columns: minmax(190px,1fr) minmax(220px,1fr); align-items: end; gap: 15px; margin-top: 15px; }
.publish-toggle { display: flex; align-items: center; gap: 11px; padding: 10px 12px; min-height: 42px; border: 1px solid var(--line); border-radius: 4px; background: #f9fbf9; }
.publish-toggle input { accent-color: var(--green); width: 16px; height: 16px; }
.publish-toggle b, .publish-toggle small { display: block; }
.publish-toggle b { font-size: 11px; }
.publish-toggle small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.field-editor-list { display: flex; flex-direction: column; gap: 11px; }
.field-editor { border: 1px solid var(--line); border-radius: 5px; background: #fbfcfb; padding: 13px; }
.field-editor > header { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.field-order { display: grid; place-items: center; width: 24px; height: 24px; background: var(--green-soft); color: var(--green); border-radius: 4px; font-size: 9px; font-weight: 700; }
.field-editor > header > strong { font-size: 11px; }
.field-editor-actions { display: inline-flex; margin-left: auto; }
.field-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field-editor .control-label { margin-bottom: 11px; font-size: 10px; }
.field-editor .control-label input, .field-editor .control-label select, .field-editor .control-label textarea { min-height: 36px; font-size: 11px; padding: 8px 9px; }
.field-editor .control-label textarea { min-height: 68px; }
.mini-check { display: inline-flex; align-items: center; gap: 6px; color: #617168; font-size: 10px; }
.mini-check input { accent-color: var(--green); }
.required-check { padding-top: 8px; border-top: 1px solid var(--line); width: 100%; }
.editor-side { display: flex; flex-direction: column; gap: 12px; }
.editor-side .editor-panel > .control-label { margin: 14px 0; }
.editor-side .editor-panel h2 { margin-top: 7px; }
.muted-copy { margin: 7px 0 14px !important; font-size: 10px !important; }
.sticky-actions { position: sticky; top: 84px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 5px; display: flex; flex-direction: column; gap: 4px; }
.empty-inline { padding: 20px; text-align: center; color: var(--muted); font-size: 11px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 18px; align-items: start; }
.detail-fields { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.detail-fields .field-card { box-shadow: none; }
.detail-fields .field-control { margin-top: 7px; }
.detail-fields .orders-block { margin-top: 8px; }
.detail-fields .file-input, .detail-fields .mini-upload, .detail-fields .icon-button { display: none !important; }
.review-value { min-height: 28px; white-space: pre-wrap; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.detail-answer { padding: 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(120px,.4fr) 1fr; gap: 16px; font-size: 12px; }
.detail-answer > span { color: var(--muted); }
.detail-answer > div { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-toolbar { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; margin: -13px 0 18px; }
.review-panel { position: sticky; top: 88px; }
.review-panel > .control-label { margin: 15px 0; }
.review-identity { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 13px; color: var(--green); font-size: 10px; font-weight: 700; }
.review-identity small { display: block; width: 100%; padding-left: 22px; color: var(--muted); font-weight: 400; }
.switch-control { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 12px; cursor: pointer; }
.switch-control input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 38px; height: 22px; flex: 0 0 38px; display: block; position: relative; background: #d3ddd6; border-radius: 12px; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .15s; }
.switch-control input:checked + .switch-ui { background: var(--green); }
.switch-control input:checked + .switch-ui::after { transform: translateX(16px); }
.switch-control input:focus-visible + .switch-ui { outline: 3px solid rgba(39,131,94,.2); }
.auth-layout { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(380px, 1.05fr); min-height: 100vh; background: white; }
.auth-brand-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 42px clamp(35px, 7vw, 100px); color: white; background: #183f37; position: relative; overflow: hidden; }
.auth-brand-panel::after { content: ""; position: absolute; width: 440px; height: 440px; right: -180px; bottom: -170px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.02); }
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-mark.large { background: #68ad8b; width: 42px; height: 42px; font-size: 18px; }
.auth-brand strong { display: block; font-size: 15px; }
.auth-brand small { display: block; margin-top: 3px; color: #a9c7ba; font-size: 9px; font-weight: 600; }
.auth-intro { position: relative; z-index: 1; max-width: 450px; margin: 40px 0; }
.auth-intro .eyebrow { color: #9ac5ae; }
.auth-intro h1 { margin: 18px 0 15px; font-size: 42px; line-height: 1.4; letter-spacing: 0; }
.auth-intro p { max-width: 360px; margin: 0; color: #c0d4ca; font-size: 13px; line-height: 1.8; }
.auth-foot { position: relative; z-index: 1; display: flex; gap: 9px; color: #b0c8bc; font-size: 10px; }
.auth-form-panel { display: grid; place-items: center; padding: 32px; }
.auth-form { width: min(100%, 390px); }
.form-eyebrow { color: var(--green); text-transform: uppercase; font-weight: 700; font-size: 10px; }
.auth-form h2 { margin: 8px 0 7px; font-size: 25px; }
.auth-form > p { margin: 0 0 25px; color: var(--muted); font-size: 12px; }
.auth-form .control-label { margin: 16px 0; }
.auth-form .button { margin-top: 7px; min-height: 44px; }
.auth-switch { margin-top: 20px; text-align: center; color: var(--muted); font-size: 11px; }
.auth-security { display: flex; justify-content: center; align-items: center; gap: 6px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 17px; color: #89958e; font-size: 10px; }
.auth-security .icon { width: 14px; height: 14px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translate(-50%, 14px); opacity: 0; pointer-events: none; max-width: min(90vw, 520px); padding: 11px 16px; border: 1px solid #d4e2d9; border-radius: 5px; background: #f4faf6; box-shadow: 0 8px 28px rgba(22,57,39,.16); color: #245b43; font-size: 12px; line-height: 1.45; transition: .2s ease; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.toast.error { border-color: #efd0cb; background: #fff5f3; color: #9a4840; }

@media (max-width: 1050px) {
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .main-content { padding-left: 30px; padding-right: 30px; }
  .form-layout { grid-template-columns: minmax(0,1fr) 215px; gap: 14px; }
  .review-table-head, .review-row { grid-template-columns: minmax(150px,1.3fr) minmax(130px,1fr) minmax(90px,.7fr) minmax(80px,.5fr) 20px; gap: 8px; }
}
@media (max-width: 760px) {
  body { background: #f3f6f4; font-size: 13px; }
  .topbar { height: 58px; padding: 0 16px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 8px; }
  .brand-sub { font-size: 8px; }
  .topbar-right { gap: 8px; }
  .role-indicator { font-size: 9px; padding: 4px 6px; }
  .username { max-width: 80px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-right > .icon-button { width: 31px; height: 31px; }
  .workspace { min-height: calc(100vh - 58px); display: block; }
  .sidebar { display: none; }
  .main-content { width: 100%; padding: 23px 15px calc(88px + env(safe-area-inset-bottom)); }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 19px; }
  .page-heading h1 { font-size: 22px; margin: 5px 0 6px; }
  .page-heading p { font-size: 12px; }
  .heading-actions { width: 100%; flex-wrap: wrap; }
  .header-stat { min-width: 85px; padding-left: 12px; }
  .project-grid { grid-template-columns: 1fr; gap: 11px; }
  .project-card { min-height: 0; padding: 16px; }
  .project-card h2 { margin: 13px 0 6px; font-size: 15px; }
  .project-card p { margin-bottom: 14px; }
  .project-card .button.full { min-height: 40px; }
  .mobile-nav { position: fixed; display: flex; z-index: 30; left: 0; right: 0; bottom: 0; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(14px); justify-content: space-around; }
  .mobile-nav-item { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border: 0; background: transparent; color: #8a9790; padding: 4px 2px; font-size: 9px; font-weight: 600; }
  .mobile-nav-item .icon { width: 18px; height: 18px; }
  .mobile-nav-item.active { color: var(--green); }
  .notice { align-items: flex-start; padding: 12px; font-size: 11px; }
  .notice .text-button { font-size: 10px; }
  .notice-date { display: none; }
  .account-layout { grid-template-columns: 1fr; gap: 11px; }
  .site-settings-form { grid-template-columns: 1fr; gap: 11px; }
  .site-settings-panel { padding: 15px; }
  .panel { padding: 17px; }
  .metric-strip { margin: 0 0 22px; }
  .metric-strip > div { padding: 12px 11px; }
  .metric-value { font-size: 18px; }
  .metric-label { font-size: 9px; }
  .section-heading { align-items: flex-start; }
  .section-heading .button { flex: 0 0 auto; }
  .admin-project-row { padding: 12px; gap: 9px; }
  .admin-project-row .status-badge { font-size: 9px; }
  .admin-project-main strong { font-size: 11px; }
  .admin-project-main small { font-size: 9px; }
  .filter-bar { flex-wrap: wrap; }
  .search-control { min-width: 100%; flex: 1 0 100%; }
  .filter-bar select { flex: 1; max-width: none; min-width: 0; }
  .review-table-head, .user-table-head { display: none; }
  .review-table, .user-table { border: 0; background: transparent; border-radius: 0; overflow: visible; display: flex; flex-direction: column; gap: 8px; }
  .review-row { grid-template-columns: minmax(0,1fr) auto 20px; gap: 6px; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: white; }
  .review-person { grid-column: 1; grid-row: 1; }
  .review-project { grid-column: 1; grid-row: 2; font-size: 10px; color: var(--muted); }
  .review-date { grid-column: 1; grid-row: 3; }
  .review-row > span:nth-child(4) { grid-column: 2; grid-row: 1; }
  .review-row > .icon { grid-column: 3; grid-row: 1; }
  .user-row { grid-template-columns: 1fr auto; gap: 8px; position: relative; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: white; }
  .user-main { grid-column: 1; grid-row: 1; }
  .uid-cell { grid-column: 1; grid-row: 2; }
  .user-row > span:nth-child(3) { display: none; }
  .user-row > span:nth-child(4) { grid-column: 2; grid-row: 1; justify-self: end; }
  .user-actions { grid-column: 2; grid-row: 2; }
  .user-search { margin-bottom: 10px; }
  .password-inline-form { grid-template-columns: 1fr; gap: 11px; }
  .form-layout { display: block; }
  .form-aside { display: none; }
  .submission-form { gap: 10px; }
  .field-card { padding: 15px 14px; }
  .field-title { font-size: 13px; }
  .field-hint { font-size: 10px; }
  .field-control { margin-top: 9px; }
  .control-label { font-size: 11px; }
  .control-label input, .control-label select, .control-label textarea, .field-control input:not([type=checkbox]), .field-control select, .field-control textarea { min-height: 43px; font-size: 13px; }
  .order-fields { grid-template-columns: 1fr 1fr; gap: 8px; }
  .order-fields .control-label { font-size: 9px; }
  .order-fields .control-label input, .order-fields .control-label select { font-size: 11px; }
  .order-card { padding: 10px; }
  .orders-list { padding: 8px; }
  .form-submit-bar { position: static; margin: 0 -3px; padding: 10px; background: rgba(243,246,244,.96); border: 1px solid var(--line); border-radius: 5px; }
  .form-submit-bar .button { min-height: 42px; }
  .save-state { font-size: 9px; }
  .project-edit-layout { grid-template-columns: 1fr; }
  .editor-side { display: contents; }
  .editor-side .editor-panel { order: 3; }
  .sticky-actions { order: 4; position: static; box-shadow: none; }
  .editor-panel { padding: 15px; }
  .editor-grid { grid-template-columns: 1fr; gap: 12px; }
  .field-editor { padding: 10px; }
  .field-editor-grid { grid-template-columns: 1fr; gap: 0; }
  .detail-layout { display: block; }
  .review-panel { position: static; margin-top: 12px; }
  .detail-fields { gap: 9px; }
  .review-toolbar { margin-top: -5px; }
  .auth-layout { display: flex; flex-direction: column; min-height: 100vh; }
  .auth-brand-panel { min-height: 238px; padding: 23px 22px; }
  .auth-intro { margin: 22px 0 12px; }
  .auth-intro h1 { font-size: 28px; line-height: 1.35; margin: 9px 0 8px; }
  .auth-intro p { font-size: 11px; max-width: 310px; }
  .auth-foot { display: none; }
  .auth-form-panel { flex: 1; display: block; padding: 28px 22px 44px; }
  .auth-form { width: 100%; max-width: 430px; margin: 0 auto; }
  .auth-form h2 { font-size: 22px; }
  .auth-form > p { margin-bottom: 20px; }
  .toast { bottom: calc(75px + env(safe-area-inset-bottom)); }
}
@media (max-width: 390px) {
  .main-content { padding-left: 11px; padding-right: 11px; }
  .topbar { padding: 0 11px; }
  .topbar-right { gap: 5px; }
  .order-fields { grid-template-columns: 1fr; }
  .heading-actions .button { font-size: 10px; padding: 0 9px; }
  .review-person small { font-size: 9px; }
}
