:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#37323e;background:#faf8fb;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d3b3e4;outline-offset:1px}.layout{min-height:100vh;display:grid;grid-template-columns:235px minmax(0,1fr)}aside{background:#353039;color:#fcf9fd;padding:24px 16px;display:flex;flex-direction:column;gap:24px}aside .brand{font-size:20px;font-weight:800;letter-spacing:-.5px;padding:4px 12px}aside .brand small{font-size:11px;display:block;color:#c7bfd0;font-weight:500;letter-spacing:1.7px;text-transform:uppercase;margin-top:4px}nav{display:grid;gap:5px}.navitem{width:100%;text-align:left;border:0;background:none;color:#dad3df;padding:12px 13px;border-radius:10px;display:flex;align-items:center;gap:10px}.navitem:hover,.navitem.active{background:#594856;color:#fff}.navitem .ico{width:20px;display:inline-block;text-align:center}aside .foot{margin-top:auto;color:#c7bfd0;font-size:11px;line-height:1.6;padding:12px}.main{min-width:0;padding:30px clamp(15px,3vw,48px) 64px;max-width:1800px;width:100%;margin:auto}.top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px;flex-wrap:wrap}.eyebrow{font-size:11px;color:#817481;font-weight:800;text-transform:uppercase;letter-spacing:1.5px}h1{font-size:28px;letter-spacing:-1px;margin:4px 0 0}h2{font-size:17px;margin:0}h3{margin:0 0 10px}.sub{color:#827886;font-size:12px;margin-top:6px}.actions,.flex{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{border:1px solid #ded6e1;background:#fff;color:#433b45;border-radius:9px;padding:9px 13px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn:hover{background:#fcf0f5}.btn.primary{background:#c84c67;border-color:#c84c67;color:white}.btn.primary:hover{background:#ac3854}.btn.danger{color:#aa3036}.btn.small{font-size:12px;padding:6px 9px}.panel{background:#fff;border:1px solid #e9e3eb;border-radius:14px;padding:20px;box-shadow:0 3px 14px rgba(18,37,80,.025)}.panel+.panel{margin-top:18px}.panelhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px;flex-wrap:wrap}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.metric .label{font-size:12px;color:#827986;font-weight:600}.metric .num{font-size:29px;font-weight:800;margin-top:8px;letter-spacing:-1px}.metric .hint{font-size:11px;color:#887c8d;margin-top:5px}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tablewrap{overflow:auto;border:1px solid #e9e3eb;border-radius:11px}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}th{font-size:11px;text-transform:uppercase;color:#827986;letter-spacing:.5px;background:#fcf9fc}th,td{padding:12px 13px;border-bottom:1px solid #f1ecf1}tr:last-child td{border-bottom:0}td{font-size:13px}td strong{font-weight:700}.muted{color:#97899b}.badge{background:#f9e8ef;color:#a53f64;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:650;display:inline-block}.badge.warn{background:#fff3db;color:#986216}.badge.danger{background:#feecec;color:#b33339}.badge.good{background:#e7f8ee;color:#187c50}.bar{height:9px;background:#eee9ef;border-radius:99px;min-width:90px;overflow:hidden}.bar>span{display:block;height:100%;background:#c84c67;border-radius:99px}.bar>span.hot{background:#d85a5e}.bar>span.good{background:#23a478}.mini{font-size:11px;color:#78869a}.heat{display:inline-block;min-width:65px;text-align:center;font-size:12px;padding:7px 6px;border-radius:7px;background:#f4e8f3;color:#994668;font-weight:700}.heat.under{background:#fff3df;color:#a36d16}.heat.over{background:#ffebed;color:#b0303e}.heat.full{background:#e8f7ee;color:#187d50}.heat.empty{background:#f2f4f7;color:#9aabbc}.field{display:grid;gap:5px}.field label{font-size:12px;color:#75697a;font-weight:650}.field input,.field select,.field textarea{border:1px solid #ded6e1;border-radius:9px;background:#fff;padding:9px 11px;width:100%;color:#443c46;min-width:0}.field textarea{resize:vertical}.fields{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.full{grid-column:1/-1}.filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.filters>.field{width:190px}.filters .field.narrow{width:125px}.modalwrap{position:fixed;inset:0;background:rgba(14,25,48,.48);z-index:10;display:flex;align-items:center;justify-content:center;padding:14px}.modal{background:#fff;border-radius:16px;padding:24px;width:min(560px,100%);max-height:95vh;overflow:auto;box-shadow:0 15px 70px #35303960}.modal header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal footer{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.close{background:none;border:0;font-size:22px;color:#65758f}.note{padding:12px 15px;border-radius:9px;background:#f2eaf7;color:#805a85;font-size:12px;line-height:1.5}.warning{background:#fff5e9;color:#8c611d}.dangerline{color:#b63344}.progress{display:flex;gap:3px;height:18px;min-width:150px;background:#f0f3f8;border-radius:6px;overflow:hidden}.progress .seg{background:#cc637d}.progress .seg.over{background:#e35e63}.progress .seg.leave{background:#f3b35a}.tabs{display:flex;border-bottom:1px solid #e9e3e9;gap:20px;margin-bottom:20px}.tab{padding:11px 2px;border:0;background:none;color:#8f8095;font-weight:700;border-bottom:2px solid transparent}.tab.current{color:#ba4a69;border-color:#ba4a69}.hier{padding:12px;border:1px solid #e9edf4;border-radius:9px;margin-bottom:8px;display:flex;align-items:center;gap:12px}.hier .body{flex:1}.hier .indent{width:var(--indent);flex-shrink:0}.chart{display:flex;align-items:end;gap:9px;height:205px;padding:10px 4px 25px;border-bottom:1px solid #e4dde6;overflow:auto}.chartcol{height:100%;min-width:36px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}.chartbar{width:10px;border-radius:3px 3px 0 0;display:inline-block;vertical-align:bottom}.chartpair{height:100%;display:flex;align-items:end;gap:3px}.chartlabel{font-size:10px;color:#968897;position:absolute;bottom:-23px}.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:#81768a}.dot{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:5px}.emptyState{text-align:center;padding:32px;color:#7d8da1}.helper{border-bottom:1px dotted #aebacc;cursor:help}.clickable{cursor:pointer}.clickable:hover{background:#fcf0f6}.toolbar{margin:14px 0 17px}.hscroll{overflow-x:auto}.breakdown{background:#fcf9fc;padding:12px;border-radius:9px;margin-top:10px}.pillrow{display:flex;gap:6px;flex-wrap:wrap}.pill{background:#f5edf4;border-radius:8px;padding:5px 8px;font-size:11px}.notice{font-size:12px;color:#81758a;margin:12px 0}.toast{position:fixed;bottom:20px;right:20px;background:#473b48;color:white;border-radius:10px;padding:12px 18px;z-index:20;box-shadow:0 6px 25px #49384640}.selectable{color:#b84566;cursor:pointer;font-weight:700}.selectable:hover{text-decoration:underline}@media(max-width:980px){.layout{grid-template-columns:68px minmax(0,1fr)}aside{padding:18px 9px}.brand{font-size:0!important;padding:5px!important}.brand:before{content:'SP';font-size:21px}aside .brand small,nav .navtext,aside .foot{display:none}.navitem{justify-content:center}.navitem .ico{font-size:19px}.cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.layout{display:block}aside{position:sticky;top:0;z-index:5;padding:8px;flex-direction:row;align-items:center;gap:5px;overflow:auto}aside .brand{display:none}nav{display:flex;gap:2px}nav .navitem{padding:9px}.main{padding:18px 12px 35px}h1{font-size:23px}.cards{gap:8px}.panel{padding:14px}.two,.fields{grid-template-columns:1fr}.metric .num{font-size:23px}.filters>.field{width:145px}}

/* Ruta branding and refined red / grey / soft violet theme */
:root{--ruta-red:#c84c67;--ruta-grey:#353039;--ruta-violet:#eae0f5;--ruta-lilac:#f6f0fc}
aside{background:linear-gradient(165deg,#353039 0%,#443944 68%,#5c4a60 100%)}
aside .brand{display:flex;align-items:center;gap:10px;font-size:19px;padding:2px 9px}
.brand-icon{width:40px;height:40px;border-radius:11px;object-fit:cover;box-shadow:0 2px 8px #1c142433;flex-shrink:0}
.brand-name{display:block;white-space:nowrap}.brand-accent{color:#e7b6e9}.brand small{white-space:nowrap;color:#e2d6e4!important}
.navitem.active{background:#705466;color:#fff;border-left:3px solid #f08ca6}
.btn.primary{background:var(--ruta-red);border-color:var(--ruta-red)}.btn.primary:hover{background:#ac3854;border-color:#ac3854}
.panel{box-shadow:0 4px 18px #46334b0a}.badge{background:#f8e7ee;color:#9e3e5f}
.note{background:var(--ruta-lilac);color:#765c82}.tab.current{color:var(--ruta-red);border-color:var(--ruta-red)}
@media(max-width:980px){aside .brand{font-size:0!important;padding:5px!important}.brand-icon{height:39px;width:39px}.brand-name{display:none}.brand:before{content:none!important}}

.account-page { max-width: 520px; margin: 6vh auto; }
.account-page > .brand { margin-bottom: 20px; }
.account-page .field { margin-bottom: 12px; }

.feature-week { min-width: 42px; text-align: center; }
#featureForm textarea { width: 100%; resize: vertical; font: inherit; padding: 9px; }

.feature-back { margin: 0 0 14px; color: var(--ruta-red); }
.feature-detail { padding: clamp(16px, 3vw, 30px); }
.feature-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.feature-heading h2 { margin: 4px 0 8px; font-size: clamp(24px, 3vw, 34px); }
.feature-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; margin: 20px 0 16px; }
.feature-metrics > div { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--ruta-lilac); }
.feature-metrics span { color: var(--ruta-grey); }
.feature-metrics strong { font-size: 1.15rem; overflow-wrap: anywhere; }
.feature-context { display: flex; flex-wrap: wrap; gap: 8px 16px; overflow-wrap: anywhere; }
.feature-context p { flex: 1 0 100%; white-space: pre-wrap; margin: 0; }
.feature-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--ruta-violet); }
.feature-section h3 { margin: 0; }
.feature-section .panelhead { flex-wrap: wrap; gap: 10px; }
.feature-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.feature-hour { width: 76px; text-align: right; }
.feature-dialog { margin: auto; padding: clamp(16px, 3vw, 28px); width: min(720px, calc(100% - 28px)); border: 0; color: inherit; max-height: 90dvh; }
.feature-dialog::backdrop { background: #353039a8; }
.feature-dialog-empty { padding: 20px; }
.feature-dialog .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-dialog .fields + .field { margin-top: 14px; }
@media (max-width: 540px) {
  .feature-dialog .fields { grid-template-columns: minmax(0, 1fr); }
}
