:root {
  --ink: #1f180f;
  --muted: #77756f;
  --line: #d7d2c9;
  --paper: #f7f4ee;
  --cream: #faf8f4;
  --white: #fff;
  --blue: #947455;
  --blue-hover: #765a40;
  --blue-soft: #f3efe7;
  --green: #5f755e;
  --green-soft: #e8f0e6;
  --amber: #94662d;
  --amber-soft: #f8edd8;
  --red: #9b5c4f;
  --red-soft: #f7e8e4;
  --shadow: 0 8px 24px rgba(40,34,25,.08);
  color: var(--ink);
  background: var(--paper);
}
html,body{background:var(--paper)}
button,input,textarea,select{letter-spacing:0}
button{transition:background .16s,border-color .16s,color .16s,opacity .16s}
.eyebrow{color:#99938a;letter-spacing:.08em}
.primary-button,.ghost-button,.reject-button,.resolve-button,.reject-refund-button{border-radius:6px;box-shadow:none}
.primary-button{min-height:40px;padding:0 18px;background:var(--blue);font-weight:600}
.primary-button:hover{transform:none;background:var(--blue-hover)}
.ghost-button{min-height:40px;padding:0 14px;border-color:#d7d2c9;color:#625c52}
.ghost-button:hover{border-color:#aaa197;background:#faf8f4}
.compact-button{min-height:36px;white-space:nowrap}
.icon-button{width:32px;height:32px;padding:0;border:1px solid var(--line);border-radius:6px;display:inline-grid;place-items:center;background:#fff;color:#625c52;line-height:1}
.icon-button:hover{border-color:#aaa197;background:#faf8f4}.icon-button:disabled{cursor:not-allowed;opacity:.35}.icon-button.danger{color:var(--red)}
.login-view{grid-template-columns:minmax(460px,1fr) minmax(420px,.86fr);background:#fff}
.login-story{padding:48px 56px;background:#f3efe7;color:var(--ink)}.login-story::after{display:none}
.brand-mark{width:48px;height:48px;border-color:#d7d2c9;border-radius:8px;color:var(--blue);font-family:inherit;font-weight:700}
.login-story h1{margin:16px 0;font-family:inherit;font-size:38px;font-weight:650;line-height:1.35}.login-story>div:nth-child(2)>p:last-child{color:var(--muted)}
.login-photo{height:230px;border-radius:8px}.login-photo img{filter:saturate(.88)}.login-photo::after{display:none}.login-photo span{padding:5px 8px;border-radius:4px;background:rgba(31,24,15,.72);color:#fff}
.login-panel{padding:48px;background:#fff}.login-card{padding:38px;border-color:var(--line);border-radius:10px;box-shadow:0 12px 36px rgba(40,34,25,.08)}
.security-chip{border-radius:4px;background:var(--blue-soft);color:var(--blue)}.login-card h2{margin-top:20px;font-size:28px}.login-card input{border-radius:6px;background:#fff}.login-card input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(148,116,85,.14)}
.app-shell{grid-template-columns:224px minmax(0,1fr)}.sidebar{padding:20px 14px;border-right:1px solid var(--line);background:#faf8f4;color:var(--ink)}
.brand{padding:4px 8px 20px}.brand>span{width:36px;height:36px;border:0;border-radius:7px;background:var(--ink);color:#fff;font-family:inherit;font-size:17px;font-weight:700}.brand small{color:#99938a;letter-spacing:.06em}
.sidebar nav{gap:3px}.nav-item{height:44px;padding:0 10px;border-radius:6px;color:#625c52}.nav-item i{width:26px;height:26px;border:0;border-radius:5px;background:#eeeae3;color:#77756f}.nav-item em{min-width:20px;height:20px;border-radius:10px;background:var(--red)}
.nav-item:hover{background:#f3efe7;color:var(--ink)}.nav-item.active{background:var(--blue-soft);color:#765a40}.nav-item.active i{border:0;background:var(--blue);color:#fff}
.sidebar-note{border-radius:6px;border-color:#e8e0d6;background:#fff;color:#625c52}.sidebar-note small{color:#99938a}.logout-button{color:#77756f}
.main{padding:24px 32px 52px}.topbar{margin-bottom:22px}.topbar h1{margin-top:5px;font-size:24px}.operator>span{width:36px;height:36px;background:#eee5da;color:#765a40}
.welcome-card{min-height:208px;padding:28px 30px;border:1px solid var(--line);border-radius:8px;grid-template-columns:1fr 260px;background:#fff}.welcome-card h2{margin:12px 0 8px;font-family:inherit;font-size:27px;font-weight:620;line-height:1.45}.welcome-card h2 strong{color:var(--blue)}.welcome-card .primary-button{margin-top:16px}.welcome-card img{min-height:150px;border-radius:6px}
.stat-grid{gap:12px;margin:14px 0}.stat-card{padding:18px;border-radius:8px}.stat-card strong{margin:8px 0 4px;font-size:27px}.dashboard-grid{gap:14px}.panel{padding:22px;border-radius:8px}.guide-panel{background:#1f180f}.guide-panel h3{font-family:inherit;font-size:22px}.guide-panel li span{color:#cbb49d}.priority-item img{border-radius:6px}.priority-item button{border-radius:5px;background:var(--blue-soft);color:var(--blue)}
.toolbar{margin-bottom:14px}.search-box{height:40px;border-radius:6px}.filter-tabs{padding:3px;border-radius:6px;background:#eeeae3}.filter-tabs button{height:32px;border-radius:4px}.filter-tabs button.active{box-shadow:0 1px 4px rgba(40,34,25,.08)}
.application-card{padding:14px;border-radius:8px}.application-card:hover,.application-card.active{border-color:#b89c82;box-shadow:none}.application-card.active{background:#faf7f2}.application-card img,.person img{border-radius:6px}.detail-panel{padding:24px;border-radius:8px}
.info-cell,.photo-requirement,.review-note,.approved-message{border-radius:6px}.info-cell{background:#faf8f4}.photo-strip img{border-radius:6px}.tag-list span{border-radius:4px;background:#f3efe7;color:#625c52}.story-block>span{border-radius:5px;background:var(--blue)}.review-actions{border-radius:8px;background:rgba(255,255,255,.96);box-shadow:0 6px 20px rgba(40,34,25,.1)}
.status-chip,.finance-chip{border-radius:4px}.status-chip.approved,.finance-chip.succeeded,.finance-chip.settled,.finance-chip.reviewed{background:var(--green-soft);color:var(--green)}.status-chip.pending,.finance-chip.pending_review,.finance-chip.manual_review{background:var(--amber-soft);color:var(--amber)}.status-chip.rejected,.finance-chip.abnormal,.finance-chip.failed{background:var(--red-soft);color:var(--red)}
.finance-hero{padding:24px 26px;border:1px solid var(--line);border-radius:8px;background:#fff}.finance-hero h2{font-family:inherit;font-size:25px}.policy-note{border-radius:6px;background:#faf8f4}.finance-layout,.home-workbench,.report-layout{gap:14px}.finance-order-card{border-radius:7px;background:#fff}.money-allocation>div,.refund-action-form,.refund-preview{border-radius:6px}.refund-preview{background:#1f180f}.calculator-panel input,.calculator-panel select{border-radius:6px;background:#fff}
.module-heading{margin-bottom:16px;padding-bottom:15px}.module-heading h2{font-size:23px}.heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.module-summary span,.mode-chip{border-radius:5px}.home-table-panel,.home-detail,.report-queue,.report-detail,.log-table-panel{border-radius:8px}
.home-row:hover,.home-row.active,.report-row:hover,.report-row.active{background:#faf7f2}.home-row.active,.report-row.active{box-shadow:inset 3px 0 var(--blue)}.home-row-title img,.home-detail-cover{border-radius:5px}.home-status,.report-status{border-radius:4px}
.home-status.pending_review,.report-status.pending{background:var(--amber-soft);color:var(--amber)}.home-status.published,.report-status.resolved{background:var(--green-soft);color:var(--green)}.home-status.rejected,.report-status.dismissed{background:var(--red-soft);color:var(--red)}.home-status.draft,.home-status.unlisted,.report-status.investigating{background:#eeeae3;color:#625c52}
.home-facts span,.home-time-grid span,.report-meta-grid span{border-radius:5px;background:#faf8f4}.home-tags span{border-radius:4px}.home-admin-actions{display:flex;justify-content:flex-end;margin-top:14px}.home-admin-actions .ghost-button{min-height:36px}.empty-list{border-radius:6px;background:#faf8f4}.compact-empty{padding:34px 16px}
.recommendation-overview{display:flex;align-items:center;gap:10px;margin-bottom:14px}.recommendation-overview span{padding:8px 11px;border:1px solid var(--line);border-radius:5px;background:#fff;color:#625c52;font-size:12px}.recommendation-overview b{margin-right:4px;color:var(--ink);font-size:15px}.recommendation-overview small{margin-left:auto;color:#99938a}
.recommendation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.recommendation-column{min-width:0;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.recommendation-column-head{padding:18px 18px 14px;border-bottom:1px solid #eeeae3}.recommendation-column h3{margin:0;font-size:17px}.recommendation-column p{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.6}
.candidate-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:14px 18px;background:#faf8f4}.candidate-picker select{min-width:0;height:38px;padding:0 10px;border:1px solid #d7d2c9;border-radius:6px;background:#fff;color:var(--ink)}.recommendation-list{min-height:210px}
.recommendation-item{display:grid;grid-template-columns:46px minmax(0,1fr) auto auto;align-items:center;gap:11px;padding:13px 18px;border-bottom:1px solid #eeeae3}.recommendation-item:last-child{border-bottom:0}.recommendation-item.disabled{background:#faf8f4;opacity:.65}.recommendation-item>img{width:46px;height:46px;border-radius:6px;object-fit:cover;background:#eeeae3}.recommendation-copy{min-width:0}.recommendation-copy b,.recommendation-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recommendation-copy b{font-size:13px}.recommendation-copy small{margin-top:5px;color:var(--muted);font-size:10px}.row-actions{display:flex;gap:5px}
.state-toggle{position:relative;width:34px;height:20px;padding:0;border:0;border-radius:10px;background:#cfc7bc}.state-toggle span{position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .16s}.state-toggle.on{background:var(--blue)}.state-toggle.on span{transform:translateX(14px)}
.editor-backdrop{position:fixed;z-index:40;inset:0;display:flex;justify-content:flex-end;background:rgba(31,24,15,.42)}.editor-sheet{width:min(760px,100%);height:100vh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff;box-shadow:-12px 0 36px rgba(40,34,25,.14)}
.editor-header{min-height:92px;padding:20px 24px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.editor-header h2{margin:6px 0 4px;font-size:22px}.editor-header p:not(.eyebrow){margin:0;color:var(--muted);font-size:12px}.editor-body{min-height:0;overflow-y:auto;padding:0 24px}.form-section{padding:24px 0;border-bottom:1px solid #eeeae3}.form-section:last-child{border-bottom:0}
.form-section-title{display:flex;align-items:flex-start;gap:10px;margin-bottom:17px}.form-section-title>span{width:24px;height:24px;border-radius:5px;display:grid;place-items:center;flex:none;background:var(--blue-soft);color:var(--blue);font-size:11px;font-weight:700}.form-section-title h3{margin:1px 0 4px;font-size:15px}.form-section-title p{margin:0;color:var(--muted);font-size:11px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid .span-2{grid-column:1/-1}.form-grid>label,.story-fields label,.choice-field{min-width:0;color:#625c52;font-size:12px;font-weight:600}.form-grid input,.form-grid select,.story-fields textarea{width:100%;margin-top:7px;border:1px solid #d7d2c9;border-radius:6px;outline:0;background:#fff;color:var(--ink)}.form-grid input,.form-grid select{height:40px;padding:0 11px}.story-fields{display:grid;gap:13px}.story-fields textarea{min-height:108px;padding:11px;resize:vertical;line-height:1.65}.form-grid input:focus,.form-grid select:focus,.story-fields textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(148,116,85,.14)}
.image-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.image-field{min-height:104px;padding:14px;border:1px dashed #cfc7bc;border-radius:6px;display:flex;flex-direction:column;justify-content:space-between;background:#faf8f4}.image-field>span{color:var(--ink);font-size:12px;font-weight:600}.image-field input{width:100%;color:var(--muted);font-size:10px}.image-field small{color:#99938a;font-size:10px}.image-field small.ready{color:var(--green)}
.choice-field{min-height:72px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:6px}.choice-field legend{padding:0 4px}.choice-field label{display:inline-flex;align-items:center;gap:5px;margin:7px 16px 0 0;font-weight:400}.toggle-field{min-height:72px;padding:0 12px;border:1px solid var(--line);border-radius:6px;display:flex;align-items:center;gap:8px}.toggle-field input{width:16px;height:16px;margin:0}
.editor-footer{min-height:72px;padding:14px 24px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff}.editor-footer>span{color:var(--muted);font-size:11px}.editor-footer>div{display:flex;gap:8px}.modal-backdrop{background:rgba(31,24,15,.42)}.modal-card{border-radius:8px;box-shadow:var(--shadow)}.modal-close{border-radius:6px}.toast{border-radius:6px;background:#1f180f}
.admin-workbench{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;align-items:start}.admin-list-panel{padding:0;overflow:hidden}.admin-table-head,.admin-row{display:grid;grid-template-columns:minmax(190px,1.25fr) minmax(130px,.8fr) 105px minmax(150px,.9fr) 74px;align-items:center;gap:12px}.admin-table-head{min-height:44px;padding:0 18px;border-bottom:1px solid var(--line);background:#f3f1ed;color:#77756f;font-size:10px;font-weight:700}.admin-row{min-height:74px;padding:12px 18px;border-bottom:1px solid #eeeae3;background:#fff}.admin-row:last-child{border-bottom:0}.admin-row:hover{background:#faf8f4}.admin-identity b,.admin-identity small,.admin-time b,.admin-time small{display:block}.admin-identity b,.admin-time b{font-size:12px}.admin-identity small,.admin-time small{margin-top:5px;color:var(--muted);font-size:9px}.admin-row select,.admin-create-form input,.admin-create-form select,.password-card input{width:100%;height:38px;padding:0 10px;border:1px solid var(--line);border-radius:6px;outline:0;background:#fff;color:var(--ink)}.admin-row select:focus,.admin-create-form input:focus,.admin-create-form select:focus,.password-card input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(148,116,85,.14)}.admin-row select:disabled{background:#f3f1ed;color:#99938a}.admin-current{display:inline-flex;padding:6px 8px;border-radius:4px;background:var(--green-soft);color:var(--green);font-size:10px;font-style:normal;white-space:nowrap}.admin-create-panel{position:sticky;top:22px}.admin-create-panel h3{margin:10px 0 7px}.admin-create-panel>p:not(.eyebrow){margin:0;color:var(--muted);font-size:11px;line-height:1.65}.admin-create-form{display:grid;gap:13px;margin-top:18px}.admin-create-form label{color:#625c52;font-size:11px;font-weight:600}.admin-create-form input,.admin-create-form select{margin-top:7px}.admin-create-form .primary-button{width:100%;margin-top:3px}.password-card input{margin-top:8px}.password-card label{margin-top:16px}.logout-button:disabled{cursor:wait;opacity:.45}
@media(max-width:1100px){.app-shell{grid-template-columns:204px minmax(0,1fr)}.recommendation-grid{grid-template-columns:1fr}.admin-workbench{grid-template-columns:1fr}.admin-create-panel{position:static}.admin-table-head,.admin-row{grid-template-columns:minmax(180px,1.2fr) minmax(120px,.8fr) 100px minmax(135px,.8fr) 70px}}
@media(max-width:820px){.login-view{grid-template-columns:minmax(0,1fr)}.login-story{display:none}.login-panel{min-width:0;padding:28px 20px}.login-card{width:min(420px,100%)}.sidebar{border-right:0;border-bottom:1px solid var(--line)}.sidebar nav{padding-bottom:3px}.logout-button{position:static;display:block;margin:8px 10px 0;padding:8px 0}.top-actions #changePasswordButton{display:inline-flex}.welcome-card{grid-template-columns:1fr}.heading-actions{width:100%;justify-content:space-between}.recommendation-overview{align-items:flex-start;flex-wrap:wrap}.recommendation-overview small{width:100%;margin-left:0}.editor-sheet{width:100%}.admin-table-head{display:none}.admin-row{grid-template-columns:minmax(180px,1fr) 130px 100px}.admin-row>span:nth-child(4){grid-column:1/3}.admin-row>span:last-child{grid-column:3;grid-row:1}}
@media(max-width:620px){.main{padding:18px 12px 40px}.module-heading{gap:14px}.heading-actions{align-items:stretch;flex-direction:column}.heading-actions .primary-button{width:100%}.recommendation-item{grid-template-columns:42px minmax(0,1fr) auto;padding:12px}.recommendation-item>img{width:42px;height:42px}.recommendation-item .state-toggle{grid-column:3;grid-row:1}.recommendation-item .row-actions{grid-column:2/4;justify-content:flex-end}.editor-header,.editor-body,.editor-footer{padding-left:16px;padding-right:16px}.form-grid,.image-field-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.editor-footer{align-items:stretch;flex-direction:column}.editor-footer>div{display:grid;grid-template-columns:1fr 1fr}.admin-row{grid-template-columns:1fr 1fr;padding:14px}.admin-row>span:nth-child(1),.admin-row>span:nth-child(4){grid-column:1/-1}.admin-row>span:last-child{grid-column:2;grid-row:3;justify-self:end}}
