:root {
  --ink: #172328;
  --muted: #69777b;
  --line: #dde4e2;
  --paper: #ffffff;
  --canvas: #f3f5f2;
  --nav: #163b39;
  --green: #2c745e;
  --green-soft: #e4f1eb;
  --amber: #a96a17;
  --amber-soft: #fff0d8;
  --blue: #315f87;
  --blue-soft: #e5eef6;
  --violet: #6b5586;
  --violet-soft: #eee8f5;
  --shadow: 0 12px 38px rgba(21, 46, 43, .07);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--nav); color: white; padding: 28px 18px; display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px 12px 5px 5px; display: grid; place-items: center; background: #d7a757; color: #173a37; font: 800 20px Georgia, serif; }
.brand strong, .brand span { display: block; }.brand strong { font-family: Georgia, serif; font-size: 20px; }.brand span { opacity: .66; font-size: 11px; margin-top: 2px; }
nav { display: grid; gap: 5px; }
.nav-item { width: 100%; border: 0; background: transparent; color: rgba(255,255,255,.72); border-radius: 10px; padding: 11px 12px; display: flex; align-items: center; gap: 12px; text-align: left; }
.nav-item span { width: 21px; font-size: 18px; }.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.11); color: white; }.nav-item .badge { margin-left: auto; background: #d7a757; color: #173a37; border-radius: 20px; min-width: 20px; padding: 2px 6px; font-size: 11px; text-align: center; }
.role-card { margin-top: 18px; background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px; }.role-card label, .role-card small { display: block; }.role-card label { font-size: 11px; opacity: .7; margin-bottom: 6px; }.role-card select { width: 100%; border: 1px solid rgba(255,255,255,.18); color: white; background: #214b48; border-radius: 8px; padding: 8px; }.role-card small { font-size: 10px; opacity: .55; margin-top: 7px; line-height: 1.35; }
main { min-width: 0; }
.topbar { min-height: 92px; display: flex; align-items: center; padding: 20px 4.5%; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 8; }.topbar h1 { font-family: Georgia, serif; margin: 3px 0 0; font-size: clamp(20px, 2vw, 28px); }.eyebrow { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 750; }.avatar { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 750; }.menu-button { display: none; border: 0; background: transparent; font-size: 22px; margin-right: 12px; }
.view { display: none; padding: 38px 4.5% 70px; max-width: 1420px; margin: auto; }.view.active { display: block; }.hero { padding: 28px 30px; background: linear-gradient(125deg, #173f3b, #275f53); color: white; border-radius: 18px; display: flex; align-items: end; justify-content: space-between; box-shadow: var(--shadow); }.hero .eyebrow, .hero p { color: rgba(255,255,255,.72); }.hero h2 { font: 500 clamp(24px, 3vw, 38px) Georgia, serif; margin: 8px 0; }.hero p { margin: 0; }.status-pill { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); border-radius: 30px; padding: 8px 12px; font-size: 12px; white-space: nowrap; }.status-pill i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #efbd68; margin-right: 6px; }
.cards { display: grid; gap: 16px; }.metrics { grid-template-columns: repeat(4, 1fr); margin: 18px 0; }.metrics.compact { grid-template-columns: repeat(3, 1fr); }.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }.metric { padding: 18px; display: flex; gap: 13px; align-items: flex-start; }.metric p, .metric small { margin: 0; color: var(--muted); }.metric p { font-size: 12px; }.metric strong { display: block; font: 500 24px Georgia, serif; margin: 5px 0; }.metric small { font-size: 11px; }.metric .positive { color: var(--green); }.icon { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; font-weight: 700; }.icon.blue { color: var(--blue); background: var(--blue-soft); }.icon.amber { color: var(--amber); background: var(--amber-soft); }.icon.green { color: var(--green); background: var(--green-soft); }.icon.violet { color: var(--violet); background: var(--violet-soft); }
.two-column { display: grid; grid-template-columns: 1.25fr .9fr; gap: 18px; }.panel, .table-card, .form-card { padding: 22px; }.panel-head, .section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }.panel-head h3, .form-card h3 { margin: 5px 0 16px; font: 500 21px Georgia, serif; }.section-head { align-items: end; margin-bottom: 22px; }.section-head h2 { margin: 5px 0 6px; font: 500 clamp(27px, 3vw, 38px) Georgia, serif; }.section-head p:last-child { color: var(--muted); margin: 0; }.text-button { border: 0; background: none; color: var(--green); padding: 5px 0; font-size: 12px; }
.timeline { display: grid; }.timeline-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 13px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }.date-box { text-align: center; background: var(--canvas); border-radius: 8px; padding: 6px; }.date-box b, .date-box span { display: block; }.date-box b { font-size: 16px; }.date-box span { font-size: 9px; color: var(--muted); text-transform: uppercase; }.timeline-item strong, .timeline-item small { display: block; }.timeline-item strong { font-size: 13px; }.timeline-item small { color: var(--muted); margin-top: 3px; }.tag { display: inline-block; border-radius: 20px; padding: 5px 8px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 700; }.tag.amber { background: var(--amber-soft); color: var(--amber); }.tag.gray { background: #eef1f0; color: #65706d; }
.work-mini { padding: 14px 0; border-top: 1px solid var(--line); }.work-mini:first-child { border-top: 0; }.work-mini-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }.work-mini strong { font-size: 13px; }.work-mini p { color: var(--muted); font-size: 12px; margin: 7px 0; }.progress { height: 5px; background: #e7ece9; border-radius: 9px; overflow: hidden; }.progress i { display: block; height: 100%; background: var(--green); border-radius: 9px; }
.notice { display: flex; gap: 14px; padding: 18px; margin-top: 18px; background: #fffaf0; border-color: #ead8b6; }.notice-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; flex: 0 0 auto; color: var(--amber); background: var(--amber-soft); font-weight: 700; }.notice p { color: #70685b; margin: 5px 0 0; font-size: 13px; line-height: 1.5; }
.primary, .secondary { border-radius: 9px; padding: 10px 14px; font-weight: 700; border: 1px solid var(--green); }.primary { background: var(--green); color: white; }.primary:hover { background: #235e4d; }.secondary { background: white; color: var(--green); }
.table-card { margin-top: 18px; }.table-wrap { overflow-x: auto; }table { border-collapse: collapse; width: 100%; font-size: 13px; }th { text-align: left; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }th, td { padding: 13px 10px; border-top: 1px solid var(--line); }.right { text-align: right; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.work-card { padding: 20px; }.work-card .work-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 20px; }.work-card h3 { font: 500 19px Georgia, serif; margin: 16px 0 7px; }.work-card p { color: var(--muted); font-size: 12px; min-height: 38px; line-height: 1.5; }.work-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 15px; }
.meters-layout { grid-template-columns: 1fr 390px; }.meter-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }.meter-row .meter-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }.meter-row strong, .meter-row small { display: block; }.meter-row small { color: var(--muted); margin-top: 3px; }.meter-value { font-family: Georgia, serif; font-size: 18px; }.form-card label, .dialog-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; margin: 13px 0; }.form-card input, .form-card select, .dialog-form input, .dialog-form select, .message-form input, .panel-head select { border: 1px solid #cfd8d5; border-radius: 8px; background: white; padding: 10px; color: var(--ink); }.form-card small { color: var(--muted); font-weight: 400; }.form-card .primary { width: 100%; margin-top: 8px; }
.roster-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; }.roster-number { width: 28px; height: 28px; border-radius: 50%; background: var(--canvas); display: grid; place-items: center; font-size: 11px; }.roster-row.current .roster-number { background: var(--green); color: white; }.roster-row strong, .roster-row small { display: block; font-size: 12px; }.roster-row small { color: var(--muted); margin-top: 2px; }
.chat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }.topics { overflow: hidden; }.topic { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; padding: 17px; }.topic:hover, .topic.active { background: #f0f6f3; }.topic strong, .topic small { display: block; }.topic small { color: var(--muted); margin-top: 5px; }.conversation { padding: 20px; min-height: 520px; display: flex; flex-direction: column; }.conversation h3 { font: 500 21px Georgia, serif; margin: 5px 0 15px; }.messages { flex: 1; border-top: 1px solid var(--line); padding: 18px 0; }.message { max-width: 76%; margin-bottom: 14px; }.message.own { margin-left: auto; }.bubble { background: #eef2f0; border-radius: 4px 13px 13px 13px; padding: 11px 13px; font-size: 13px; line-height: 1.45; }.own .bubble { color: white; background: var(--green); border-radius: 13px 4px 13px 13px; }.message small { display: block; color: var(--muted); margin: 4px 6px; font-size: 9px; }.own small { text-align: right; }.message-form { display: flex; gap: 9px; }.message-form input { flex: 1; }.chat-note { color: var(--muted); margin-top: 8px; }
.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 18px; }.rule-card { display: flex; gap: 16px; padding: 22px; }.rule-number { color: var(--green); font: 500 21px Georgia, serif; }.rule-card h3 { margin: 0 0 7px; font: 500 19px Georgia, serif; }.rule-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.58; }.document-footnote { color: var(--muted); font-size: 11px; margin: 16px 2px 0; }
.cleaning-layout { grid-template-columns: 1.2fr .8fr; }.cleaning-side { display: grid; gap: 18px; align-content: start; }.cleaning-week { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }.cleaning-week.current { background: #f2f8f5; margin: 0 -12px; padding: 15px 12px; border-radius: 10px; border-top-color: transparent; }.week-box strong, .week-box small { display: block; }.week-box strong { color: var(--green); }.week-box small { color: var(--muted); font-size: 10px; margin-top: 2px; }.cleaning-week p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }.check-list { list-style: none; padding: 0; margin: 0; }.check-list li { position: relative; padding: 11px 0 11px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }.check-list li::before { content: '✓'; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
.legal-intro { display: grid; grid-template-columns: minmax(230px,.7fr) 1.3fr; gap: 34px; align-items: center; padding: 28px 30px; background: linear-gradient(125deg, #173f3b, #285e53); color: white; border-radius: 16px; box-shadow: var(--shadow); }.legal-intro .eyebrow, .legal-intro p { color: rgba(255,255,255,.76); }.legal-intro h3 { margin: 7px 0 0; font: 500 27px Georgia, serif; }.legal-intro p { margin: 0; font-size: 13px; line-height: 1.65; }.legal-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }.legal-card { padding: 23px; border-top: 4px solid var(--green); }.legal-card.forbidden { border-top-color: #a24c40; }.legal-card-head { display: flex; gap: 11px; align-items: center; }.legal-card-head span { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-weight: 800; }.forbidden .legal-card-head span { background: #f7e6e3; color: #a24c40; }.legal-card h3 { margin: 0; font: 500 19px Georgia, serif; }.legal-card ul { margin: 18px 0 0; padding-left: 19px; }.legal-card li { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 9px 0; }.legal-process { padding: 23px; }.process-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; list-style: none; padding: 0; margin: 5px 0 0; }.process-steps li { position: relative; padding: 8px 18px 8px 0; }.process-steps li:not(:last-child)::after { content: '→'; position: absolute; right: 7px; top: 11px; color: #9ba6a2; }.process-steps span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; margin-bottom: 10px; }.process-steps strong { font-size: 12px; }.process-steps p { color: var(--muted); font-size: 11px; line-height: 1.45; margin: 5px 0 0; }.access-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 18px; }.access-card { padding: 20px; }.access-icon { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; }.access-card h3 { font: 500 18px Georgia, serif; margin: 13px 0 6px; }.access-card p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }.legal-note { margin-top: 18px; }.source-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 11px; margin-top: 15px; }.source-links a { color: var(--green); text-decoration: none; border-bottom: 1px solid #9fc2b5; }
dialog { border: 0; border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.25); width: min(480px, calc(100% - 30px)); }dialog::backdrop { background: rgba(14,31,30,.55); backdrop-filter: blur(3px); }.dialog-form { padding: 8px; }.close { border: 0; background: none; font-size: 25px; }.form-hint { background: var(--amber-soft); color: #775323; border-radius: 8px; padding: 10px; font-size: 11px; line-height: 1.45; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; background: #173f3b; color: white; padding: 12px 17px; border-radius: 10px; box-shadow: var(--shadow); transform: translateY(25px); opacity: 0; pointer-events: none; transition: .2s ease; }.toast.show { transform: none; opacity: 1; }

@media (max-width: 1050px) { .metrics { grid-template-columns: repeat(2, 1fr); }.work-grid { grid-template-columns: repeat(2, 1fr); }.process-steps { grid-template-columns: 1fr; }.process-steps li { display: grid; grid-template-columns: 38px 1fr; }.process-steps li:not(:last-child)::after { display: none; }.process-steps span { grid-row: span 2; } }
@media (max-width: 760px) { .app-shell { display: block; }.sidebar { position: fixed; transform: translateX(-105%); transition: transform .2s ease; width: 250px; box-shadow: 15px 0 40px rgba(0,0,0,.2); }.sidebar.open { transform: none; }.menu-button { display: block; }.topbar { min-height: 76px; }.topbar .eyebrow { display: none; }.view { padding: 22px 16px 60px; }.hero { display: block; padding: 22px; }.status-pill { display: inline-block; margin-top: 18px; }.two-column, .meters-layout, .chat-layout, .cleaning-layout, .legal-columns, .legal-intro { grid-template-columns: 1fr; }.work-grid, .rules-grid { grid-template-columns: 1fr; }.access-grid { grid-template-columns: 1fr; }.topics { max-height: 230px; overflow-y: auto; }.conversation { min-height: 480px; } }
@media (max-width: 480px) { .metrics, .metrics.compact { grid-template-columns: 1fr; }.section-head { display: block; }.section-head button { margin-top: 14px; }.timeline-item { grid-template-columns: 42px 1fr; }.timeline-item > .tag { grid-column: 2; justify-self: start; }.message { max-width: 90%; } }

