@font-face {
  font-family: PlusJakarta;
  src: url('./PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

.employee-auth-body{min-height:100vh;background:#f1f3f7}.employee-auth{min-height:100vh;display:grid;grid-template-columns:minmax(360px,1.05fr) minmax(420px,.95fr)}.employee-auth-brand{padding:58px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;background:#0b0d10}.employee-auth-brand small{display:block;margin-bottom:18px;color:#ff9e7a;font-size:12px;font-weight:750;letter-spacing:2px}.employee-auth-brand h1{margin:0;font-size:clamp(42px,5vw,76px);line-height:1.02;letter-spacing:-3px}.employee-auth-brand p{margin:24px 0 0;color:#aeb3bd;font-size:16px}.employee-auth-address{color:#7d838e;font-size:13px}.employee-auth-panel{padding:64px clamp(28px,6vw,92px);display:flex;flex-direction:column;justify-content:center;background:#fff}.employee-tabs{margin-bottom:28px;display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #dfe2e7}.employee-tabs a{padding:14px 8px;color:#7a808a;text-align:center;font-weight:700;text-decoration:none;border-bottom:3px solid transparent}.employee-tabs a.active{color:#0b0d10;border-color:#e85d3f}.employee-form h2{margin:0;font-size:34px;letter-spacing:-1px}.employee-form>p{margin:10px 0 30px;color:#737984;line-height:1.6}.employee-form .field{margin-bottom:18px}.employee-activate-link{display:block;margin-top:20px;color:#e85d3f;font-size:14px;font-weight:700;text-align:center;text-decoration:none}.employee-dashboard-body{min-height:100vh;background:#f2f4f7}.employee-dashboard{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:34px 0 70px}.employee-topbar{padding:24px 28px;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;color:#fff;background:#0b0d10;border-radius:10px}.employee-topbar .brand{margin-bottom:42px}.employee-topbar h1{margin:0;font-size:42px;letter-spacing:-1.5px}.employee-topbar p{margin:9px 0 0;color:#9ea4af}.employee-summary{margin:20px 0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.employee-summary article{padding:24px 26px;background:#fff;border:1px solid #e1e4e9;border-radius:8px}.employee-summary span{display:block;color:#737984;font-size:13px}.employee-summary strong{display:block;margin-top:12px;font-size:38px}.employee-summary .employee-next{font-size:28px}.employee-panel{margin:18px 0 0}.employee-schedule article{padding:20px 26px;display:grid;grid-template-columns:130px 1fr auto;align-items:center;gap:22px;border-top:1px solid #eceef2}.employee-time{font-size:25px;font-weight:800}.employee-time small{display:block;margin-top:5px;color:#7f858f;font-size:13px;font-weight:600}.employee-customer strong,.employee-customer span{display:block}.employee-customer strong{font-size:18px}.employee-customer span{margin-top:6px;color:#747a84;font-size:13px}.employee-customer-name,.employee-customer-phone{font-size:17px;font-weight:750}
@media (max-width:760px){.employee-auth{display:block}.employee-auth-brand{min-height:310px;padding:30px}.employee-auth-brand h1{font-size:42px}.employee-auth-address{display:none}.employee-auth-panel{padding:34px 22px}.employee-dashboard{width:calc(100% - 24px);padding-top:12px}.employee-topbar{padding:22px;display:block}.employee-topbar form{margin-top:22px}.employee-topbar .brand{margin-bottom:32px}.employee-topbar h1{font-size:32px}.employee-summary{grid-template-columns:1fr 1fr}.employee-summary article:last-child{grid-column:1/-1}.employee-schedule article{grid-template-columns:90px 1fr}.employee-schedule article form{grid-column:1/-1}.employee-schedule article form .btn{width:100%}}

:root {
  --ink: #17181b;
  --muted: #727883;
  --line: #e8eaee;
  --line-strong: #d9dde4;
  --paper: #fff;
  --canvas: #f6f7f9;
  --cream: #fff1e6;
  --peach: #ffd6ba;
  --coral: #ff9e7a;
  --accent: #e85d3f;
  --accent-deep: #cf472d;
  --green: #17885c;
  --red: #bf3b32;
  --shadow: 0 10px 30px rgba(24, 28, 36, .055);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); font-family: PlusJakarta, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

/* 登录页 */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(420px, 560px); background: var(--paper); }
.login-visual { min-height: 100vh; padding: 54px; display: flex; flex-direction: column; justify-content: space-between; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); }
.login-visual::before { width: 420px; height: 420px; right: -110px; top: -130px; background: var(--accent); }
.login-visual::after { width: 310px; height: 310px; left: -100px; bottom: -90px; background: var(--coral); opacity: .65; }
.login-visual > * { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 16px; font-weight: 780; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 5px; background: var(--accent); color: #fff; font-size: 12px; }
.login-statement { max-width: 650px; font-size: clamp(42px, 5.3vw, 78px); font-weight: 800; line-height: 1.03; letter-spacing: -4px; }
.login-statement small { display: block; margin-bottom: 18px; color: var(--coral); font-size: 14px; letter-spacing: 2px; }
.login-foot { color: rgba(255, 255, 255, .58); font-size: 13px; }
.login-panel { padding: 60px 70px; display: flex; align-items: center; }
.login-card { width: 100%; max-width: 420px; margin: auto; }
.login-card h1 { margin: 0; font-size: 38px; letter-spacing: -2px; }
.login-card > p { margin: 13px 0 38px; color: var(--muted); line-height: 1.7; }
.login-hint { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--peach); border-radius: 5px; background: var(--cream); font-size: 13px; line-height: 1.7; }

/* 表单与按钮 */
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; color: #34373d; font-size: 12px; font-weight: 720; }
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.toolbar select,
.toolbar input:not([type="checkbox"]):not([type="radio"]) { width: 100%; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--ink); outline: none; transition: .16s border-color, .16s box-shadow; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select { height: 44px; padding: 0 13px; }
.field textarea { min-height: 108px; padding: 12px 13px; resize: vertical; }
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus, .field textarea:focus, .toolbar select:focus, .toolbar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--cream); }
.field label:has(> input[type="checkbox"]), .field label:has(> input[type="radio"]) { width: fit-content; display: inline-flex; align-items: center; gap: 9px; margin: 9px 0 0; cursor: pointer; }
.field input[type="checkbox"], .field input[type="radio"] { appearance: none; -webkit-appearance: none; width: 16px !important; height: 16px !important; min-width: 16px; max-width: 16px; margin: 0; padding: 0; display: inline-grid; place-content: center; border: 1px solid #bfc5ce; border-radius: 3px; background: #fff; vertical-align: middle; cursor: pointer; transition: .15s background, .15s border-color, .15s box-shadow; }
.field input[type="radio"] { border-radius: 50%; }
.field input[type="checkbox"]::after { content: ""; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: .12s transform; }
.field input[type="radio"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; transform: scale(0); transition: .12s transform; }
.field input[type="checkbox"]:checked, .field input[type="radio"]:checked { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px var(--cream); }
.field input[type="checkbox"]:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.field input[type="radio"]:checked::after { transform: scale(1); }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.field-help.is-success { color: #17885c; }
.field-help.is-error { color: #bf3b32; }
.field input[type="file"] { height: auto; min-height: 44px; padding: 7px 10px; }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: #f6f7f9; color: var(--ink); cursor: pointer; }
.upload-single-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.upload-current { display: block; flex: 0 0 120px; width: 120px; height: 120px; max-width: 120px; max-height: 120px; object-fit: cover; border: 1px solid var(--line); border-radius: 5px; background: #f1f2f4; }
.upload-single-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.upload-image-note, .upload-empty { color: var(--muted); font-size: 12px; }
.upload-empty { margin: 0 0 12px; }
.upload-gallery { max-width: 100%; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.upload-new-gallery[hidden] { display: none; }
.field .upload-gallery-item { flex: 0 0 124px; width: 124px; max-width: 124px; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 5px; background: #fafbfc; }
.upload-gallery-item img { display: block; width: 110px; height: 110px; max-width: 110px; max-height: 110px; object-fit: cover; border-radius: 3px; }
.upload-gallery-item.is-deleted { opacity: .45; }
.upload-delete-btn { min-height: 26px; padding: 2px 8px; border: 1px solid #e9c0bb; border-radius: 4px; background: #fff; color: var(--red); font-size: 11px; font-weight: 700; }
.upload-delete-btn:hover { background: #fff0ed; }
.upload-delete-btn[hidden] { display: none; }
.grid-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-fields .span-2 { grid-column: 1 / -1; }

.btn { min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 720; transition: .15s transform, .15s background, .15s border-color, .15s box-shadow; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(24, 28, 36, .08); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-soft { background: var(--cream); border-color: var(--peach); color: var(--accent-deep); }
.btn-soft:hover { background: var(--peach); }
.btn-light { background: #fff; border-color: var(--line); }
.btn-danger { background: #fff5f3; border-color: #f4c5be; color: var(--red); }
.btn-block { width: 100%; }
.btn-sm { min-height: 33px; padding: 0 11px; font-size: 11px; }

/* Nexus 风格浅色控制台框架 */
.app { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; padding: 22px 15px; background: #fff; color: var(--ink); border-right: 1px solid var(--line); z-index: 20; display: flex; flex-direction: column; }
.sidebar .brand { padding: 0 9px 22px; border-bottom: 1px solid var(--line); }
.sidebar .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-nav { padding-top: 15px; }
.nav-label { padding: 16px 11px 7px; color: #9ca1aa; font-size: 9px; font-weight: 780; letter-spacing: 1.35px; }
.nav-item { min-height: 42px; padding: 0 12px; margin: 3px 0; border-radius: 5px; display: flex; align-items: center; justify-content: space-between; color: #666c76; font-size: 12px; font-weight: 660; transition: .14s background, .14s color, .14s transform; }
.nav-item:hover { background: #f6f7f9; color: var(--ink); transform: translateX(1px); }
.nav-item.active { background: var(--cream); color: var(--accent-deep); box-shadow: inset 3px 0 0 var(--accent); }
.nav-item span:last-child { min-width: 25px; color: #a2a6ad; font-size: 9px; text-align: right; }
.nav-item.active span:last-child { color: var(--accent); }
.sidebar-bottom { margin-top: auto; padding: 17px 10px 4px; border-top: 1px solid var(--line); }
.account-name { font-size: 12px; font-weight: 750; }
.account-role { margin-top: 5px; color: var(--muted); font-size: 10px; }
.logout-link { display: inline-block; margin-top: 13px; padding: 0; border: 0; background: none; color: var(--accent-deep); font-size: 11px; font-weight: 680; }

.main { grid-column: 2; min-width: 0; padding: 0 30px 60px; }
.topbar { min-height: 82px; margin: 0 -30px 24px; padding: 19px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.page-title h1 { margin: 0; font-size: 24px; letter-spacing: -1px; }
.page-title p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.top-actions { display: flex; gap: 9px; align-items: center; }
.mobile-menu { display: none; }

/* 指标、图表与面板 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { min-height: 138px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 5px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -18px; bottom: -22px; width: 76px; height: 76px; border-radius: 50%; background: var(--cream); opacity: .75; }
.stat:nth-child(2)::after { background: var(--peach); opacity: .58; }
.stat:nth-child(3)::after { background: var(--coral); opacity: .24; }
.stat:nth-child(4)::after { background: #eef0f3; }
.stat-label { color: var(--muted); font-size: 10px; font-weight: 650; }
.stat-value { margin-top: 13px; font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.stat-meta { margin-top: 8px; color: var(--accent-deep); font-size: 10px; font-weight: 650; }

.dashboard-visual-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .72fr); gap: 16px; margin-bottom: 16px; }
.chart-card { min-height: 292px; padding: 19px 20px; background: #fff; border: 1px solid var(--line); border-radius: 5px; box-shadow: var(--shadow); }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.chart-head h2 { margin: 0; font-size: 14px; }
.chart-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.chart-total { color: var(--accent-deep); font-size: 20px; font-weight: 800; }
.bar-chart { height: 192px; margin-top: 22px; padding: 0 4px 22px; display: grid; grid-template-columns: repeat(7, minmax(30px, 1fr)); align-items: end; gap: 10px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, #f0f1f4 48px); }
.bar-column { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; position: relative; }
.bar-fill { width: min(28px, 70%); min-height: 8px; height: var(--bar, 12%); border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--coral), var(--accent)); transition: .2s height; }
.bar-column:nth-child(even) .bar-fill { background: var(--peach); border: 1px solid var(--coral); }
.bar-label { position: absolute; bottom: -19px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.distribution-wrap { height: 220px; margin-top: 20px; display: grid; place-items: center; position: relative; }
.status-ring { width: 146px; height: 146px; border-radius: 50%; background: conic-gradient(var(--accent) 0 var(--confirmed, 45%), var(--coral) var(--confirmed, 45%) var(--completed, 75%), #e1e4e8 var(--completed, 75%) 100%); position: relative; }
.status-ring::after { content: ""; position: absolute; inset: 29px; border-radius: 50%; background: #fff; }
.ring-value { position: absolute; z-index: 1; display: grid; place-items: center; text-align: center; font-size: 25px; font-weight: 800; }
.ring-value small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 600; }
.chart-legend { margin-top: -2px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chart-legend.three { grid-template-columns: repeat(3, 1fr); }
.legend-item { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.legend-item:nth-child(2) .legend-dot { background: var(--coral); }
.legend-item:nth-child(3) .legend-dot { background: #dfe2e7; }
.legend-item:nth-child(4) .legend-dot { background: #dfe2e7; }

.panel-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr); gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 5px; box-shadow: var(--shadow); overflow: hidden; }
.panel + .panel { margin-top: 16px; }
.panel-grid > .panel + .panel { margin-top: 0; }
.panel-head { min-height: 61px; padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-head h2 { margin: 0; font-size: 14px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.panel-body { padding: 18px; }
.panel-body.flush { padding: 0; }
.panel-section { padding: 17px 18px; border-bottom: 1px solid var(--line); }

.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.data-table th, .data-table td { padding: 13px 15px; border-bottom: 1px solid #eef0f2; text-align: left; vertical-align: middle; font-size: 11px; }
.data-table th { background: #fafbfc; color: #8c929c; font-size: 9px; letter-spacing: .45px; text-transform: uppercase; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fffaf7; }
.table-title { font-weight: 750; }
.table-sub { margin-top: 4px; color: var(--muted); font-size: 10px; }
.table-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 4px; background: #e5e6e8; }
.actions { display: flex; gap: 7px; flex-wrap: wrap; }
.inline-form { display: inline-flex; gap: 7px; align-items: center; }
.inline-form select { height: 33px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 10px; }
.badge { display: inline-flex; align-items: center; height: 23px; padding: 0 8px; border-radius: 11px; background: #f0f1f3; color: #626872; font-size: 9px; font-weight: 750; white-space: nowrap; }
.badge.confirmed { background: #fff4ee; color: var(--accent-deep); }
.badge.completed, .badge.active { background: #e8f6ef; color: var(--green); }
.badge.cancelled, .badge.off { background: #f1f1f1; color: #8c9097; }
.toolbar { padding: 13px 17px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar select, .toolbar input:not([type="checkbox"]):not([type="radio"]) { width: auto; height: 37px; padding: 0 10px; min-width: 150px; }
.toolbar .spacer { flex: 1; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.empty { padding: 52px 20px; text-align: center; color: var(--muted); }
.appointment-list { display: grid; gap: 9px; }
.appointment-card { padding: 15px; border: 1px solid var(--line); border-radius: 5px; display: grid; grid-template-columns: 66px 1fr auto; gap: 13px; align-items: center; }
.appointment-time { font-size: 19px; font-weight: 800; color: var(--accent-deep); }
.appointment-time small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 650; }
.appointment-info strong { display: block; font-size: 11px; }
.appointment-info span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.appointment-view-bar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.operation-log-filter { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.operation-log-filter label { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:11px; }
.operation-log-filter input[type="date"] { height:36px; padding:0 9px; border:1px solid var(--line-strong); border-radius:5px; background:#fff; }
.operation-log-time { white-space:nowrap; }
.operation-log-pages { display:flex; align-items:center; justify-content:flex-end; gap:12px; padding:12px 18px; color:var(--muted); font-size:11px; }
.appointment-view-bar input[type="date"] { height:37px; padding:0 10px; border:1px solid var(--line-strong); border-radius:5px; background:#fff; }
.appointment-filter-form { flex-wrap:wrap; }
.appointment-date-label { color:var(--muted); font-size:11px; font-weight:700; white-space:nowrap; }
.appointment-toolbar .appointment-filter-form input[type="date"] { min-width:155px; }
@media (max-width:760px) { .appointment-view-bar,.appointment-toolbar { align-items:stretch; } .appointment-view-switch { width:100%; } .appointment-view-switch a { flex:1; text-align:center; } .appointment-filter-form { width:100%; } .appointment-filter-form input[type="date"] { min-width:0; flex:1; } }
.appointment-view-switch { display:inline-flex; padding:3px; gap:3px; border:1px solid var(--line); border-radius:5px; background:#f6f7f9; }
.appointment-view-switch a { padding:7px 14px; border-radius:4px; color:var(--muted); font-size:11px; font-weight:750; white-space:nowrap; }
.appointment-view-switch a.active { background:var(--ink); color:#fff; }
.appointment-grid-filter { display:flex; align-items:center; gap:9px; margin:-3px 0 13px; color:var(--muted); font-size:11px; }
.appointment-grid-filter select { height:34px; padding:0 9px; border:1px solid var(--line-strong); border-radius:5px; background:#fff; }
.appointment-grid-wrap { width:100%; max-height:calc(100vh - 200px); overflow:auto; }
.appointment-grid { width:100%; min-width:760px; border-collapse:separate; border-spacing:0; table-layout:fixed; }
.appointment-grid th,.appointment-grid td { border-right:1px solid var(--line); border-bottom:1px solid var(--line); vertical-align:top; }
.appointment-grid thead th { position:sticky; top:0; z-index:3; padding:15px; background:#fff; text-align:left; font-size:13px; }
.appointment-grid thead th:first-child { width:160px; left:0; z-index:4; }
.appointment-grid thead small { display:block; margin-top:4px; color:var(--muted); font-size:10px; }
.appointment-grid-store th { position:sticky; left:0; z-index:2; padding:11px 16px; background:#fff1e6; color:var(--ink); font-size:12px; text-align:left; }
.appointment-grid-store span { margin-left:12px; color:var(--muted); font-size:10px; font-weight:600; }
.appointment-grid-time { position:sticky; left:0; z-index:1; padding:15px; background:#fafbfc; white-space:nowrap; text-align:left; font-size:11px; }
.appointment-grid-cell { min-height:86px; padding:8px; background:#fff; }
.appointment-grid-cell.is-closed { background:#f3f4f6; }
.appointment-grid-free,.appointment-grid-closure { display:block; padding:9px; color:#a0a5ad; font-size:10px; }
.appointment-grid-booking { margin-bottom:6px; padding:10px; border-left:3px solid var(--accent); border-radius:4px; background:#fff1e6; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.appointment-grid-booking:last-child { margin-bottom:0; }
.appointment-grid-booking.completed { border-color:#8c939e; background:#f2f3f5; }
.appointment-grid-booking.cancelled { border-color:#c7cbd1; background:#f8f8f9; opacity:.7; }
.appointment-grid-booking-head { display:flex; align-items:center; justify-content:space-between; gap:5px; margin-bottom:5px; }
.appointment-grid-booking-head .badge { flex:none; }
.appointment-grid-booking small { display:block; margin-top:4px; color:var(--muted); font-size:10px; }
.quick-list { display: grid; }
.quick-item { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quick-item:last-child { border-bottom: 0; }
.quick-item span { font-size: 11px; }
.quick-item strong { color: var(--accent); font-size: 15px; }
.flash { margin-bottom: 16px; padding: 12px 15px; border-radius: 5px; font-size: 12px; }
.flash.success { background: #e8f6ef; color: #126744; border: 1px solid #bfe5d3; }
.flash.error { background: #fff0ed; color: #a63127; border: 1px solid #f1c2ba; }
.login-card .flash { margin-top: 18px; }
.store-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent-deep); font-size: 10px; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.session-denied { max-width: 600px; margin: 12vh auto; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 5px; box-shadow: var(--shadow); }
.session-denied h1 { margin: 0 0 12px; font-size: 24px; }
.session-denied p { color: var(--muted); line-height: 1.7; }

@media (max-width: 1050px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-visual-grid, .panel-grid { grid-template-columns: 1fr; }
  .login-visual { padding: 38px; }
  .login-panel { padding: 45px; }
}

@media (max-width: 760px) {
  .login-page { display: block; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 34px 22px; }
  .app { display: block; }
  .sidebar { transform: translateX(-100%); transition: .2s transform; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .main { padding: 0 15px 48px; }
  .topbar { margin: 0 -15px 18px; padding: 15px; min-height: 70px; }
  .mobile-menu { display: inline-flex; }
  .page-title h1 { font-size: 22px; }
  .page-title p { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat { min-height: 122px; padding: 15px; }
  .stat-value { font-size: 27px; }
  .dashboard-visual-grid { gap: 10px; }
  .chart-card { min-height: 270px; padding: 16px; }
  .bar-chart { gap: 5px; }
  .grid-fields { grid-template-columns: 1fr; }
  .grid-fields .span-2 { grid-column: auto; }
  .panel-body { padding: 15px; }
  .appointment-card { grid-template-columns: 58px 1fr; }
  .appointment-card > .badge { grid-column: 2; }
  .top-actions .btn:not(.mobile-menu) { display: none; }
}

/* 员工手机端：预约与个人作品 */
.employee-topbar { border-radius: 5px; }
.employee-view-tabs { margin: 16px 0 20px; padding: 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.employee-view-tabs a { min-height: 44px; padding: 10px; display: flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--muted); font-size: 14px; font-weight: 750; }
.employee-view-tabs a.active { background: var(--cream); color: var(--accent-deep); }
.employee-work-form { max-width: 760px; }
.employee-work-form .field { margin-bottom: 20px; }
.employee-work-form .field > label { font-size: 13px; }
.employee-work-form .field input[type="file"] { max-width: 100%; }
.employee-work-list article { min-height: 112px; padding: 14px 20px; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 16px; border-top: 1px solid var(--line); }
.employee-work-list article > img { width: 84px; height: 84px; object-fit: cover; border-radius: 5px; background: #f1f2f4; }
.employee-work-info { min-width: 0; }
.employee-work-info strong,.employee-work-info span,.employee-work-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-work-info strong { font-size: 16px; }
.employee-work-info span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.employee-work-info small { margin-top: 7px; color: var(--accent-deep); font-size: 11px; font-weight: 750; }
@media (max-width: 760px) {
  .employee-view-tabs { margin: 12px 0 16px; }
  .employee-work-list article { padding: 12px; grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
  .employee-work-list article > img { width: 68px; height: 68px; }
  .employee-work-list article > .btn { grid-column: 2; justify-self: start; }
  .employee-work-form .upload-single-row { align-items: flex-start; }
}

/* ===== 预约网格：点击编辑 / 添加 + 弹窗 ===== */
.appointment-grid-day-title { display:flex; align-items:baseline; gap:12px; padding:17px 18px 11px; }
.appointment-grid-day-title strong { font-size:16px; }
.appointment-grid-day-title span { color:var(--muted); font-size:11px; }
.appointment-grid-store-section { margin:0 12px 18px; border:1px solid var(--line); border-radius:5px; overflow:hidden; }
.appointment-grid-store-heading { display:flex; align-items:center; gap:12px; padding:12px 15px; background:#fff1e6; font-size:13px; }
.appointment-grid-store-heading span { color:var(--muted); font-size:11px; }
.appointment-grid-store-heading em { margin-left:auto; color:var(--accent-deep); font-size:11px; font-style:normal; }
.appointment-grid-by-stylist { min-width:max(100%,calc(112px + var(--staff-columns) * 190px)); }
.appointment-grid-by-stylist thead th:first-child { width:112px; }
.appointment-grid-by-stylist thead th:not(:first-child) { min-width:190px; }
.appointment-grid-by-stylist .appointment-grid-time { padding:12px 14px; font-size:13px; }
.appointment-grid-by-stylist .appointment-grid-time small { display:block; margin-top:3px; color:var(--muted); font-size:10px; font-weight:500; }
.appointment-grid-by-stylist .appointment-grid-cell { height:82px; }
.appointment-grid-booking { cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.appointment-grid-booking:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); transform: translateY(-1px); }
.appointment-grid-cell { position: relative; }
.appointment-grid-cell:not(.is-closed) { cursor: pointer; }
.appointment-grid-add {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 34px; margin: 2px 0; padding: 9px 6px;
  border: 1px dashed var(--line-strong); border-radius: 6px;
  background: transparent; color: var(--muted); font-size: 11px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.appointment-grid-add:hover { color: var(--accent); border-color: var(--accent); background: #fff7f0; }

.appt-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15,18,24,.52);
}
.appt-modal-overlay[hidden] { display: none; }
.appt-modal {
  width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto;
  background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.appt-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.appt-modal-head h3 { margin: 0; font-size: 16px; font-weight: 750; }
.appt-modal-close { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.appt-modal-close:hover { color: var(--ink); }
.appt-modal-body { padding: 18px 22px; }
.appt-modal-foot { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
.appt-store-label { color: var(--ink); font-weight: 700; font-size: 13px; }
.appt-field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.appt-field-row label { color: var(--muted); font-size: 12px; }
.appt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.appt-grid .field { display: flex; flex-direction: column; gap: 6px; }
.appt-grid .field label { color: var(--muted); font-size: 12px; }
.appt-grid .field input, .appt-grid .field select {
  height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 14px; background: #fff;
}
.appt-grid .field input:focus, .appt-grid .field select:focus { border-color: var(--accent); outline: none; }
.appt-span-2 { grid-column: span 2; }
.appt-error { margin-top: 12px; padding: 10px 12px; border-radius: 6px; background: #fdecec; color: #b3261e; font-size: 12px; }
.appt-foot-spacer { flex: 1; }
body.appt-modal-open { overflow: hidden; }
@media (max-width: 560px) {
  .appt-grid { grid-template-columns: 1fr; }
  .appt-span-2 { grid-column: span 1; }
}

.appt-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(12px);
  max-width: 80%; padding: 11px 18px; border-radius: 8px; background: rgba(20,24,30,.94); color: #fff;
  font-size: 13px; opacity: 0; transition: opacity .25s ease, transform .25s ease; z-index: 1200; pointer-events: none;
}
.appt-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
