:root{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;
  color:#19242d;background:#f5f6f3;font-synthesis:none;
  --ink:#17232b;--muted:#78858c;--line:#e8eceb;--accent:#d65940;--accent-soft:#fff1ec;
  --card:#fff;--radius:20px;
}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.5;cursor:not-allowed}
h1,h2,h3,p{margin-top:0}
.muted{color:var(--muted)}
.eyebrow{display:inline-block;color:#bd644e;font-size:10px;font-weight:800;letter-spacing:.18em}

/* Login */
.login{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);background:#f7f7f4}
.hero{position:relative;min-height:100vh;display:flex;flex-direction:column;justify-content:space-between;padding:46px clamp(40px,5vw,86px);color:#fff;background:#17232b;overflow:hidden}
.hero:before{content:"";position:absolute;width:650px;height:650px;border-radius:50%;left:-220px;bottom:-350px;background:radial-gradient(circle,#d66549 0%,#a34d3b 28%,transparent 70%);opacity:.7}
.hero:after{content:"S";position:absolute;right:-5%;top:14%;font-family:Georgia,serif;font-size:min(45vw,700px);font-weight:700;font-style:italic;line-height:1;color:#ffffff09;transform:rotate(-15deg);pointer-events:none}
.hero-top,.hero-copy,.hero-foot{position:relative;z-index:1}
.hero-top{display:flex;align-items:center;gap:13px;font-size:20px;font-weight:800}
.hero-top small{display:block;color:#8fa0a9;font-size:9px;letter-spacing:.3em;margin-top:2px}
.brand-mark{width:42px;height:42px;display:inline-grid;place-items:center;flex:none;border-radius:13px;color:#fff;background:#d7684e;font-family:Georgia,serif;font-style:italic;font-size:27px;font-weight:700;box-shadow:0 7px 20px #1d1e1b22}
.hero-copy{max-width:650px;margin:auto 0}
.hero-copy .eyebrow{color:#f7a990}
.hero-copy h2{font-size:clamp(40px,4.2vw,72px);font-weight:750;letter-spacing:-.065em;line-height:1.24;margin:23px 0}
.hero-copy p{max-width:440px;color:#bac4c8;font-size:16px;line-height:1.9}
.hero-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:35px}
.hero-pills span{padding:8px 13px;border:1px solid #ffffff2a;border-radius:99px;color:#e0e5e5;font-size:11px}
.hero-foot{display:flex;justify-content:space-between;color:#87979f;font-size:10px;letter-spacing:.13em}
.hero-foot span{letter-spacing:0}
.login-panel{display:grid;place-items:center;padding:48px}
.login-card{width:min(410px,100%);padding:28px 0}
.login-card h1{font-size:38px;letter-spacing:-.05em;margin:13px 0 8px}
.login-card>.muted{font-size:14px;margin-bottom:35px}
.login-card .field{margin:20px 0}
.login-card .primary.wide{margin-top:8px;display:flex;justify-content:space-between;align-items:center;padding:16px 20px}
.login-mobile-brand{display:none}
.login-note{font-size:11px;color:#9ba5a8;text-align:center;margin:28px 0 0}

/* Shell */
.shell{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:31px 16px 19px;background:#19252d;color:#fff;overflow:auto}
.logo{display:flex;align-items:center;gap:12px;padding:3px 13px 42px;font-size:19px;font-weight:800;letter-spacing:.015em}
.logo small{display:block;color:#83939c;font-size:9px;letter-spacing:.26em;margin-top:2px;font-weight:600}
.nav-caption{padding:0 19px 13px;color:#81919b;font-size:10px;letter-spacing:.2em}
.nav{display:grid;gap:5px}
.nav button{display:flex;align-items:center;gap:14px;width:100%;min-height:46px;padding:10px 13px;border:1px solid transparent;border-radius:12px;background:transparent;color:#aebbc0;text-align:left;font-size:13px;font-weight:600;transition:.18s}
.nav button:hover{color:#fff;background:#ffffff0d}
.nav button.active{background:#ffffff17;border-color:#ffffff0a;color:#fff}
.nav-icon{display:grid;place-items:center;width:25px;color:#8798a0;font-size:20px;font-weight:500;line-height:1}
.nav button.active .nav-icon{color:#ffae91}
.nav-active-dot{width:5px;height:5px;border-radius:50%;margin-left:auto;background:#e78b6e}
.sidebar-note{margin:auto 10px 23px;padding:17px;border:1px solid #ffffff12;border-radius:14px;background:#ffffff09}
.sidebar-note-icon{display:block;color:#e88d72;font-size:21px;margin-bottom:10px}
.sidebar-note strong,.sidebar-note span:last-child{display:block;font-size:12px}
.sidebar-note span:last-child{color:#8b9ba3;margin-top:3px}
.account{display:flex;align-items:center;gap:10px;border-top:1px solid #ffffff18;padding:17px 9px 0}
.avatar,.top-avatar{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;background:#e9ded4;color:#704d3d;font-size:14px;font-weight:800;flex:none}
.account-copy{min-width:0;flex:1}
.account-copy strong,.account-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-copy strong{font-size:12px}
.account-copy span{font-size:10px;color:#889aa2;margin-top:2px}
.logout{width:29px;height:29px;border:0;border-radius:8px;background:#ffffff12;color:#bdc7c9;font-size:18px}
.account-password{width:29px;height:29px;border:0;border-radius:8px;background:#ffffff12;color:#bdc7c9;font-size:17px;cursor:pointer}
.main{min-width:0;max-width:1500px;width:100%;padding:42px clamp(24px,4.3vw,72px) 70px;margin:0 auto}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:30px}
.topbar h1{font-size:32px;letter-spacing:-.065em;font-weight:760;margin:8px 0 5px}
.topbar p{color:#88949b;font-size:13px;margin:0}
.topbar-right{display:flex;align-items:center;gap:15px}
.date{font-size:12px;color:#849097;white-space:nowrap}
.top-avatar{width:33px;height:33px;font-size:11px;background:#e8e9df}

/* Shared controls */
.primary,.ghost,.danger{min-height:37px;padding:9px 15px;border:1px solid transparent;border-radius:10px;font-size:12px;font-weight:700;transition:transform .15s,background .15s,box-shadow .15s}
.primary{color:#fff;background:#192a33;box-shadow:0 5px 12px #13293413}
.primary:hover{background:#2b414a;transform:translateY(-1px)}
.primary.wide{width:100%;min-height:46px;font-size:13px}
.ghost{color:#536269;background:#f2f4f3;border-color:#e9edec}
.ghost:hover{background:#e8eeec}
.danger{color:#a1443e;background:#fff0ee;border-color:#f8ded9}
.danger:hover{background:#ffe6e1}
.field{display:grid;gap:8px;margin:16px 0}
.field label{font-size:11px;color:#56646b;font-weight:750;letter-spacing:.02em}
.input{width:100%;min-width:0;border:1px solid #dfe5e3;background:#fff;border-radius:11px;padding:11px 13px;color:#26343a;outline:none;transition:.2s}
.input:focus{border-color:#d97960;box-shadow:0 0 0 3px #d979601b}
.input::placeholder{color:#b2babe}
textarea.input{min-height:115px;line-height:1.7;resize:vertical}
.error{color:#b83d31;font-size:12px;min-height:19px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.stat,.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 28px #1b292b08}
.card{padding:25px;margin-top:18px}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.card-head h2{font-size:16px;letter-spacing:-.02em;margin:0}
.card-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.assignee-picker{display:flex;align-items:center;gap:8px;color:#708088;font-size:12px;font-weight:700;white-space:nowrap}
.assignee-picker .input{width:190px;padding:9px 11px;font-size:12px}
.empty{padding:48px 20px;text-align:center;color:#9aa7aa;font-size:13px}

/* Dashboard */
.welcome{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;min-height:190px;padding:28px 32px;margin-bottom:17px;border-radius:20px;overflow:hidden;background:linear-gradient(120deg,#d66a4e,#d78262 58%,#e6a47b);color:#fff;box-shadow:0 15px 35px #b9674b2c}
.welcome>*:not(.welcome-art){position:relative;z-index:1}
.welcome-kicker{font-size:10px;font-weight:800;letter-spacing:.17em;color:#ffe0cf}
.welcome h2{max-width:620px;font-size:25px;letter-spacing:-.055em;line-height:1.35;margin:12px 0 8px}
.welcome p{font-size:12px;color:#ffe3d9;margin:0}
.welcome-action{flex:none;padding:11px 15px;border:1px solid #ffffff8c;border-radius:10px;background:#ffffffeb;color:#9f4634;font-size:11px;font-weight:800}
.welcome-action span{margin-left:15px;font-size:15px}
.welcome-art{position:absolute;right:90px;top:-125px;font-size:350px;line-height:1;color:#ffffff17;transform:rotate(-20deg)}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.grid.owner-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.stat{position:relative;min-height:137px;padding:22px;overflow:hidden}
.stat{width:100%;text-align:left;cursor:pointer;font:inherit;transition:transform .16s ease,box-shadow .16s ease}
.stat:hover{transform:translateY(-2px);box-shadow:0 12px 30px #1b292b18}
.stat.selected{outline:3px solid #da7457;outline-offset:2px}
.stat:focus-visible{outline:3px solid #da7457;outline-offset:2px}
.stat:after{content:"";position:absolute;width:85px;height:85px;right:-25px;top:-25px;border:1px solid #dfe6e2;border-radius:50%}
.stat:nth-child(1){background:#1d3038;color:#fff;border-color:#1d3038}
.stat:nth-child(1):after{border-color:#ffffff23}
.stat[data-home-status="卡点中"]{background:#fff7f2;border-color:#f6e8df}
.stat span{display:block;color:#77858a;font-size:11px;font-weight:650}
.stat:nth-child(1) span{color:#a9bec2}
.stat b{display:block;margin-top:21px;font-size:35px;line-height:1;letter-spacing:-.07em}
.stat[data-home-status="卡点中"] b{color:#d2664b}

/* Tasks */
.priority-guide{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:17px}
.guide{padding:7px 12px;border-radius:99px;font-size:10px;font-weight:800;border:1px solid}
.guide.urgent{color:#b94e43;background:#fff0ed;border-color:#f8dcd6}
.guide.important{color:#936b17;background:#fff8e8;border-color:#f2e2bc}
.guide.normal{color:#748188;background:#fff;border-color:#e1e7e5}
.task-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.task-filters button{padding:9px 15px;border:1px solid #e1e7e5;border-radius:10px;background:#fff;color:#64747c;font-size:12px;font-weight:700}
.task-filters button.active{border-color:#25333b;background:#25333b;color:#fff}
.task-type-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}
.task-type-tabs button{padding:7px 13px;border:1px solid #e1e7e5;border-radius:99px;background:#fff;color:#687880;font-size:11px;font-weight:750}
.task-type-tabs button.active{border-color:#1d3039;background:#1d3039;color:#fff}
.badge.recurring{background:#e9f1fa;color:#416d95}
.badge.temporary{background:#f2f4f3;color:#758288}
.roster-alert{margin:17px 0;padding:12px 15px;border:1px solid #f2d4b3;border-radius:12px;background:#fff8e9;color:#94671e;font-size:12px;line-height:1.6}
.roster-list,.template-list{margin-top:18px}
.roster-row,.template-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-top:1px solid #edf0ef}
.roster-row strong,.template-row strong{font-size:13px}
.roster-row small{color:#9ca8ac;font-size:10px;font-weight:500}
.roster-row select{max-width:240px}
.section-divider{height:1px;background:#edf0ef;margin:24px 0}
.shift-override-form{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:9px;align-items:center}
.override-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.override-list span{padding:6px 10px;background:#f4f7f6;border-radius:8px;color:#718087;font-size:11px}
.task{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 4px;border-top:1px solid #edf0ef}
.task:first-of-type{border-top:0}
.task>div:first-child{min-width:0}
.task h3{font-size:14px;line-height:1.5;letter-spacing:-.015em;margin-bottom:9px}
.task-title{padding:0;border:0;background:none;color:inherit;text-align:left;font-weight:750;line-height:inherit}
.task-title:hover{color:#c86049}
.task.priority-urgent,.task.priority-important{border-radius:12px;padding:16px;margin:8px 0;border:1px solid}
.task.priority-urgent{background:#fff8f6;border-color:#f8e1db}
.task.priority-important{background:#fffaf0;border-color:#f3e8ca}
.meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#8a969a;font-size:10px}
.priority-label{font-weight:800;color:#859196}
.priority-urgent .priority-label{color:#c55246}
.priority-important .priority-label{color:#a37b25}
.badge{display:inline-flex;align-items:center;padding:4px 9px;border-radius:99px;background:#f2f4f3;color:#6b787d;font-size:10px;font-weight:750;white-space:nowrap}
.badge.blocked{background:#ffefed;color:#b04e44}
.badge.review{background:#fff2d8;color:#9e7318}
.badge.submitted{background:#e9f6ef;color:#3e8660}
.task-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.task-actions button{padding:7px 11px;white-space:nowrap}
.task-progress{margin:10px 0 0;font-size:11px}
.task-detail label{display:block;margin:20px 0 6px;color:#829096;font-size:11px;font-weight:800}
.task-detail p{margin:0;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}

/* Focus */
.focus-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr);gap:18px;align-items:start}
.focus-layout .card{margin-top:0}
.focus-card{text-align:center;padding:37px}
.focus-ring{width:255px;height:255px;margin:4px auto 30px;display:grid;place-content:center;border:13px solid #eef1eb;border-top-color:#d66d50;border-right-color:#d66d50;border-radius:50%;box-shadow:inset 0 0 0 8px #fff,0 17px 40px #e0e4df50}
.focus-ring div{font-size:51px;letter-spacing:-.065em;font-weight:800;line-height:1.1}
.focus-ring span{color:#839196;font-size:12px;margin-top:6px}
.focus-card #focusControls{max-width:420px;margin:auto;text-align:left}
.focus-card #focusControls h3{text-align:center}
.focus-actions{display:flex;justify-content:center;gap:10px}
.focus-summary{text-align:center;padding:33px}
.focus-summary h2{font-size:14px}
.focus-summary>b{display:block;margin:36px 0 5px;font-size:66px;line-height:1;letter-spacing:-.09em;color:#d46950}
.focus-summary>span{font-size:11px;color:#819096}
.focus-summary p{border-top:1px solid var(--line);padding-top:22px;margin:30px 0 0;color:#819096;font-size:12px}
.focus-summary strong{font-size:22px;color:#1d2b31}

/* Reports and metrics */
.report-person{display:flex;align-items:center;gap:16px;margin-top:0}
.report-person label{font-size:11px;color:#78858a;font-weight:800;white-space:nowrap}
.report-person select{max-width:300px}
.report-tabs{display:inline-flex;gap:4px;margin:18px 0 0;padding:4px;border:1px solid var(--line);background:#ecefeb;border-radius:12px}
.report-tabs button{min-width:76px;box-shadow:none}
.report-content label{display:block;color:#88949a;font-size:10px;font-weight:750;letter-spacing:.05em;margin:20px 0 7px}
.report-content p{color:#29373d;line-height:1.8;white-space:pre-wrap}
.report-history{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-top:1px solid var(--line)}
.report-history:first-child{border-top:0}
.report-history h3{font-size:12px;margin-bottom:6px}
.report-history p{color:#77868b;font-size:11px;white-space:pre-wrap;margin:0}
.submitted-notice{padding:14px;border-radius:11px;background:#edf7f0;color:#43815e;font-size:12px}
.report-actions .primary{min-width:115px}
.metric{position:relative;margin-top:11px;padding:18px 20px;border:1px solid var(--line);border-radius:13px;background:#fcfdfc}
.metric:before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:2px;background:#df9a79}
.metric b{display:block;font-size:13px;margin-bottom:5px}
.metric p{color:#859197;font-size:11px;line-height:1.7;white-space:pre-wrap;margin:0}
.people{width:100%;border-collapse:collapse}
.people-scroll{overflow-x:auto}
.people{min-width:830px}
.people-actions{white-space:nowrap}
.people-actions button{margin:2px 6px 2px 0}
.people th,.people td{text-align:left;padding:15px 10px;border-bottom:1px solid var(--line);font-size:12px}
.people th{color:#89969b;font-size:10px;font-weight:750}
.people tr:hover td{background:#fafbf9}

/* Modal and feedback */
.modal-bg{position:fixed;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:20px;background:#0d1c24a8;backdrop-filter:blur(5px)}
.modal{width:min(570px,100%);max-height:90vh;overflow:auto;border:1px solid #fff;border-radius:22px;background:#fff;padding:27px;box-shadow:0 26px 80px #071e2540}
.modal h2{font-size:19px;letter-spacing:-.03em;margin-bottom:22px}
#toast{position:fixed;right:25px;bottom:25px;z-index:50;padding:12px 17px;border-radius:11px;background:#1d2a31;color:white;font-size:12px;box-shadow:0 12px 35px #15242b33;opacity:0;transform:translateY(8px);transition:.2s}
#toast.show{opacity:1;transform:none}

@media(max-width:1080px){
  .shell{grid-template-columns:210px minmax(0,1fr)}
  .main{padding:35px 27px 60px}
  .sidebar-note{display:none}
  .account{margin-top:auto}
  .grid,.grid.owner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .login{display:block}
  .hero{display:none}
  .login-panel{min-height:100vh;padding:28px}
  .login-mobile-brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:800;margin-bottom:75px}
  .login-mobile-brand .brand-mark{width:38px;height:38px;font-size:23px}
  .shell{display:block}
  .sidebar{position:relative;top:auto;height:auto;padding:16px 18px 13px;overflow:visible}
  .logo{padding:0 0 15px;font-size:17px}
  .logo .brand-mark{width:32px;height:32px;border-radius:10px;font-size:21px}
  .logo small{font-size:8px}
  .nav-caption,.account{display:none}
  .nav{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
  .nav button{width:auto;min-width:max-content;min-height:36px;padding:7px 10px;border-radius:9px;font-size:11px;gap:6px}
  .nav-icon{width:16px;font-size:15px}
  .nav-active-dot{display:none}
  .main{padding:27px 18px 65px}
  .topbar{align-items:flex-start;margin-bottom:24px}
  .topbar h1{font-size:25px}
  .topbar p{font-size:11px}
  .topbar-right .date{display:none}
  .top-avatar{width:32px;height:32px}
  .focus-layout{grid-template-columns:1fr}
  .focus-ring{width:215px;height:215px}
  .focus-ring div{font-size:42px}
  .report-person{align-items:stretch;flex-direction:column;gap:8px}
  .report-person select{max-width:none}
  .row{grid-template-columns:1fr;gap:0}
  .people{display:block;overflow-x:auto;white-space:nowrap}
}
@media(max-width:480px){
  .welcome{min-height:175px;display:block;padding:22px}
  .welcome h2{font-size:20px}
  .welcome p{font-size:11px}
  .welcome-action{margin-top:18px}
  .welcome-art{right:-15px;top:-40px;font-size:200px}
  .grid{gap:9px}
  .stat{min-height:113px;padding:16px}
  .stat b{font-size:29px;margin-top:17px}
  .card{padding:18px;border-radius:17px}
  .card-head h2{font-size:14px}
  .card-head{align-items:flex-start;flex-wrap:wrap}
  .card-head-actions{width:100%;justify-content:space-between}
  .assignee-picker .input{width:150px}
  .shift-override-form{grid-template-columns:1fr 1fr}
  .roster-row,.template-row{align-items:flex-start;flex-wrap:wrap}
  .task{align-items:flex-start;flex-direction:column;gap:12px}
  .task-actions{justify-content:flex-start}
  .report-history{gap:8px}
  .report-history .badge{align-self:start}
  .focus-card{padding:25px 17px}
  .modal{padding:20px;border-radius:18px}
}
.sidebar .account{margin-top:auto}
.approved-tasks{display:grid;gap:8px;margin:9px 0 12px}
.approved-task{display:flex;align-items:center;gap:9px;padding:11px 13px;border:1px solid #e6ebe9;border-radius:10px;background:#f7faf8;color:#26353a;font-size:13px}
.approved-check{color:#3d866a;font-weight:800}
.approved-task small{margin-left:auto;white-space:nowrap;color:#859399}
.personal-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}
.personal-grid{grid-template-columns:minmax(270px,1fr) minmax(0,2fr)}
.personal-item{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e9eeec;font-size:13px}
.personal-item:last-child{border-bottom:0}
.personal-item strong{flex:1}
.personal-num{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#fff1ec;color:#c95f43;font-weight:800}
.idea-item>span:nth-child(2){flex:1;white-space:pre-wrap}
.personal-content{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
.personal-kind{flex:none;padding:4px 8px;border-radius:7px;background:#f0f4f2;color:#64777a;font-size:11px;font-weight:700}
.idea-dot{font-size:9px;color:#e68b6d}
.idea-done{text-decoration:line-through;color:#9da8ac}
.today-options{display:grid;gap:9px;max-height:320px;overflow:auto}
.today-options label{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #e8eceb;border-radius:9px}
@media(max-width:850px){.personal-grid{grid-template-columns:1fr}.idea-item{flex-wrap:wrap}.idea-item .task-actions{width:100%;justify-content:flex-end}}
.review-note{margin:7px 0 0;color:#586b6d;font-size:12px;line-height:1.6;white-space:pre-wrap}
