:root{--ink:#362f2d;--ink2:#4a403c;--gold:#ffc361;--paper:#fbfaf7;--paper2:#f5f1e8;--muted:#827670;--line:rgba(54,47,45,.16);--danger:#9b352c;--ok:#285b43}*{box-sizing:border-box}body{margin:0;background:var(--paper2);color:var(--ink);font:16px/1.6 "Inter Tight",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;letter-spacing:-.01em}a{color:inherit}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(100%,600px);background:var(--paper);border:1px solid var(--line);border-radius:30px;padding:38px;box-shadow:0 20px 60px rgba(54,47,45,.1)}.kicker{text-transform:uppercase;letter-spacing:.18em;font-size:.75rem;font-weight:750;color:#9b6a22}.auth-card h1{font-size:clamp(2.25rem,7vw,4rem);line-height:.96;letter-spacing:-.055em;margin:12px 0 16px}.lead{color:var(--muted);margin:0 0 25px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#eee9df;border-radius:999px;padding:4px;margin:24px 0}.auth-tabs a{text-align:center;text-decoration:none;padding:10px;border-radius:999px;font-weight:700}.auth-tabs a.active{background:var(--ink);color:#fff}.auth-form{display:grid;gap:16px}.auth-form label{display:grid;gap:7px;font-weight:650}.auth-form input{width:100%;min-height:48px;padding:11px 13px;border:1px solid rgba(54,47,45,.25);border-radius:13px;background:#fff;font:inherit}.auth-form input:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px rgba(255,195,97,.34)}.auth-form small,.legal-note{font-size:.82rem;color:var(--muted)}button,.button{min-height:48px;border:1.5px solid var(--ink);border-radius:999px;padding:10px 20px;font:inherit;font-weight:750;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--ink)}button.primary,.button.primary{background:var(--ink);color:#fff}.legal-check{grid-template-columns:22px 1fr!important;align-items:start;background:var(--paper2);padding:14px;border-radius:14px;font-size:.9rem;font-weight:500!important}.legal-check input{width:19px;height:19px;min-height:0;margin-top:3px;accent-color:var(--ink)}.legal-check a{text-decoration:underline}.legal-check.optional{border-left:4px solid var(--gold)}.legal-note{margin:22px 0 0}.alert{padding:13px 15px;border-radius:12px;margin:14px 0}.alert.error{background:#fff0ed;color:#792c25}.alert.ok{background:#ecf6f0;color:#214b38}.app-shell{max-width:1250px;margin:auto;padding:24px}.app-head{display:flex;justify-content:space-between;align-items:center;gap:18px;background:var(--ink);color:#fff;padding:24px 28px;border-radius:26px;margin-bottom:18px}.app-head h1{font-size:clamp(1.7rem,4vw,3rem);letter-spacing:-.045em;margin:0}.app-actions{display:flex;gap:9px;flex-wrap:wrap}.app-actions .button{color:#fff;border-color:#fff;min-height:42px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:24px;margin-bottom:16px}.panel h2{margin:0 0 16px;letter-spacing:-.035em}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:760px}.data-table th,.data-table td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}.data-table th{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.pill{display:inline-block;padding:4px 9px;border-radius:999px;background:var(--paper2);font-size:.8rem}.detail-grid{display:grid;grid-template-columns:220px 1fr;gap:8px 18px}.detail-grid dt{color:var(--muted)}.detail-grid dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.danger-zone{border-color:rgba(155,53,44,.35)}.muted{color:var(--muted)}@media(max-width:680px){.auth-page{padding:8px}.auth-card{padding:25px 18px;border-radius:22px}.app-shell{padding:8px}.app-head{align-items:flex-start;flex-direction:column;padding:22px 18px;border-radius:20px}.panel{padding:19px 15px;border-radius:20px}.detail-grid{grid-template-columns:1fr}.detail-grid dd{margin-bottom:10px}.button,button{width:100%}.app-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}}

.panel-title-row{display:flex;align-items:center;justify-content:space-between;gap:24px}.panel-title-row h2{margin-bottom:8px}.panel-title-row p{margin:0}.inline-form{display:inline;margin:0}.inline-form button{white-space:nowrap}@media(max-width:680px){.panel-title-row{align-items:stretch;flex-direction:column}}

.portal-shell{max-width:1440px;margin:auto;padding:18px}.portal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;background:var(--ink);color:#fff;padding:28px 30px;border-radius:26px;margin-bottom:16px}.portal-head h1{font-size:clamp(2rem,5vw,3.7rem);line-height:1;letter-spacing:-.055em;margin:8px 0 12px}.portal-head p{max-width:700px;margin:0;color:rgba(255,255,255,.7)}.service-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;align-items:start}.service-sidebar{position:sticky;top:18px;background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:12px}.sidebar-title{padding:10px 12px 13px;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.category-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:0;background:transparent;color:var(--ink);padding:12px;border-radius:12px;font:inherit;font-weight:700;cursor:pointer}.category-button b{display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:999px;background:var(--paper2);font-size:.78rem}.category-button:hover,.category-button.active{background:var(--gold)}.category-button.active b{background:rgba(255,255,255,.55)}.service-content{min-width:0}.service-intro{display:flex;justify-content:space-between;align-items:end;gap:20px;background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:21px 24px;margin-bottom:12px}.service-intro h2{font-size:1.65rem;margin:0 0 4px;letter-spacing:-.04em}.service-intro p{margin:0;color:var(--muted)}.service-search{min-width:240px;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.service-search input{width:100%;margin-top:5px;border:1px solid var(--line);border-radius:11px;padding:10px 12px;background:#fff;font:inherit;text-transform:none;letter-spacing:0;color:var(--ink)}.service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.service-card{display:flex;flex-direction:column;min-height:270px;background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:20px;transition:transform .18s,border-color .18s}.service-card:hover{transform:translateY(-2px);border-color:rgba(54,47,45,.35)}.service-card[hidden]{display:none}.service-card-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.service-category,.service-time{font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.service-time{white-space:nowrap}.service-card h3{font-size:1.35rem;line-height:1.16;letter-spacing:-.035em;margin:18px 0 8px}.service-card>p{margin:0 0 16px;color:var(--muted)}.card-empty{margin-top:auto;padding:9px 0;color:var(--muted);font-size:.86rem}.card-progress{margin-top:auto}.card-progress>div:first-child{display:flex;justify-content:space-between;font-size:.82rem}.card-progress .progress-track{height:6px;background:var(--paper2);border-radius:999px;overflow:hidden;margin:6px 0}.card-progress .progress-track span{display:block;height:100%;background:var(--gold)}.card-progress small{color:var(--muted)}.service-open{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;background:var(--ink);color:#fff;text-decoration:none;padding:11px 13px;border-radius:11px;font-weight:800}.service-open:hover{background:var(--ink2)}.empty-services{padding:40px;text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:22px;color:var(--muted)}@media(max-width:900px){.service-layout{grid-template-columns:1fr}.service-sidebar{position:static;display:flex;overflow:auto;gap:6px}.sidebar-title{display:none}.category-button{width:auto;white-space:nowrap;background:var(--paper2)}.category-button b{margin-left:7px}.service-intro{align-items:stretch;flex-direction:column}.service-search{min-width:0}.service-grid{grid-template-columns:1fr}}@media(max-width:680px){.portal-shell{padding:8px}.portal-head{padding:22px 18px;border-radius:20px;flex-direction:column}.portal-head .app-actions{width:100%}.service-card{min-height:0;padding:18px;border-radius:18px}.service-intro{padding:18px;border-radius:18px}.service-sidebar{border-radius:18px}}
