:root {
  --ink: #201d2b;
  --muted: #817c91;
  --paper: #f8f6fb;
  --card: #ffffff;
  --line: #ebe7f1;
  --purple: #7258e7;
  --purple-dark: #5440bf;
  --lavender: #ece8ff;
  --coral: #ef765d;
  --green: #2f9d75;
  --sidebar: #171521;
  --shadow: 0 16px 45px rgba(39, 31, 69, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, rgba(174,151,255,.2), transparent 28%), radial-gradient(circle at 90% 80%, rgba(255,156,137,.18), transparent 30%), #171521; }
.login-card { width: min(440px, 100%); padding: 38px; border: 1px solid rgba(255,255,255,.1); border-radius: 25px; color: #fff; background: rgba(38,34,51,.92); box-shadow: 0 35px 100px rgba(0,0,0,.35); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 16px; letter-spacing: .08em; }
.login-brand small { margin-top: 3px; color: #8e879a; font-size: 8px; letter-spacing: .18em; }
.login-copy h1 { margin: 0; font-size: 34px; letter-spacing: -.05em; }
.login-copy > p:last-child { margin: 9px 0 25px; color: #9e97a8; font-size: 12px; }
.login-card label { display: grid; gap: 8px; margin-bottom: 15px; color: #c6c0cc; font-size: 10px; font-weight: 700; }
.login-card input:not([type="checkbox"]) { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #494254; border-radius: 11px; outline: 0; color: #fff; background: #211e2c; }
.login-card input:focus { border-color: #9f8bee; box-shadow: 0 0 0 3px rgba(159,139,238,.13); }
.login-card .remember-line { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; color: #8e879a; font-weight: 500; }
.remember-line input { accent-color: var(--purple); }
.login-button { width: 100%; min-height: 47px; margin-top: 7px; }
.login-error { min-height: 17px; margin: 12px 0 0; color: #ff9f8c; font-size: 10px; text-align: center; }
.login-footnote { display: block; margin-top: 27px; color: #706a7a; font-size: 9px; text-align: center; }
.boss-app { min-height: 100vh; color: var(--ink); background: linear-gradient(145deg, #f4f7ff, #fff8fb); }
.boss-topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(20px, 5vw, 72px); border-bottom: 1px solid #e5eafb; background: rgba(255,255,255,.9); }
.boss-topbar .login-brand { margin: 0; }
.boss-content { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 60px; }
.boss-hero { padding: 36px; overflow: hidden; background: linear-gradient(120deg, rgba(68,25,100,.95), rgba(139,58,169,.78)), url('/images/yoko-login-background.png?v=20260831-2') center / cover; color: #fff; }
.boss-hero .section-kicker { color: #dfe6ff; }
.boss-hero h1 { margin: 8px 0; font-size: clamp(30px, 5vw, 52px); }
.boss-hero p:last-child { margin: 0; color: #edf1ff; }
.boss-stats { margin: 18px 0; }
.boss-history-panel { padding: 24px; }
.account-type-note { color: var(--muted); font-size: 11px; }

.app-shell { width: 100%; min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 244px; display: flex; flex-direction: column; padding: 31px 22px; color: #fff; background: var(--sidebar); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; padding: 0 8px 34px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #211c39; background: linear-gradient(135deg, #c9bcff, #ffbcae); font-weight: 900; box-shadow: 0 7px 22px rgba(177, 157, 255, .25); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .08em; }
.brand small { margin-top: 3px; color: #787287; font-size: 8px; letter-spacing: .16em; }
.nav { display: grid; gap: 8px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 0; border-radius: 12px; color: #8f899b; background: transparent; text-align: left; transition: .2s ease; }
.nav-item span { width: 22px; font-size: 20px; text-align: center; }
.nav-item:hover, .nav-item.active { color: #fff; background: #292536; }
.nav-item.active { box-shadow: inset 3px 0 0 #a994ff; }
.sidebar-note { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid #322e3e; border-radius: 14px; background: #211e2c; }
.pulse-dot { width: 8px; height: 8px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: #66d4a6; box-shadow: 0 0 0 5px rgba(102,212,166,.1); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 11px; }
.sidebar-note small { margin-top: 4px; color: #7c7688; font-size: 9px; line-height: 1.5; }
.backup-link { margin-top: 13px; padding: 10px; color: #878191; font-size: 11px; text-align: center; text-decoration: none; }
.backup-link:hover { color: #fff; }

.main-content { grid-column: 2; width: 100%; min-width: 0; max-width: none; padding: 30px clamp(24px, 2.4vw, 54px) 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow, .section-kicker { margin: 0 0 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.top-actions { display: flex; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 7px; padding: 0 4px 0 10px; color: var(--muted); font-size: 10px; }
.user-chip span { color: #42ad82; font-size: 8px; }
.logout-button { align-self: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 17px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; font-weight: 700; font-size: 12px; transition: transform .18s, box-shadow .18s, background .18s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(44,36,72,.1); }
.btn-primary { color: #fff; border-color: var(--purple); background: var(--purple); box-shadow: 0 7px 20px rgba(114,88,231,.22); }
.btn-primary:hover { background: var(--purple-dark); }
.btn-ghost { background: #fff; }
.btn:disabled { cursor: not-allowed; opacity: .72; transform: none; box-shadow: none; }
.btn.is-loading::before { width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; content: ''; animation: button-spin .75s linear infinite; }
@keyframes button-spin { to { transform: rotate(360deg); } }

.view { display: none; animation: reveal .28s ease; }
.view.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
.hero-panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 35px; min-height: 190px; padding: 31px 34px; border-radius: 23px; color: #fff; background: linear-gradient(116deg, #252035 0%, #302841 58%, #463651 100%); box-shadow: var(--shadow); }
.hero-panel::after { content: ""; position: absolute; width: 230px; height: 230px; right: 20%; top: -150px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018); }
.hero-actions { position: relative; z-index: 1; }
.hero-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; min-width: 590px; }
.hero-button { display: flex; align-items: center; gap: 10px; padding: 17px; border: 0; border-radius: 15px; color: #2b2541; text-align: left; }
.hero-button > span { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.65); font-size: 22px; }
.hero-button b { font-size: 13px; }
.hero-button small { margin-top: 3px; color: rgba(38,32,59,.6); font-size: 9px; }
.hero-button.lavender { background: #c8bbff; }
.hero-button.coral { background: #ffad9d; }
.hero-button.mint { background: #aee5d5; }
.hero-button.sky { background: #bcdaf8; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.stat-card { position: relative; min-height: 132px; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); box-shadow: 0 8px 28px rgba(50,42,76,.045); }
.stat-card.featured { color: #fff; border: 0; background: var(--purple); }
.stat-card p { margin: 0 0 11px; color: var(--muted); font-size: 10px; font-weight: 700; }
.stat-card.featured p, .stat-card.featured small { color: #d8d1ff; }
.stat-card strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 26px; letter-spacing: -.03em; }
.stat-card small { display: block; margin-top: 8px; color: #aaa5b3; font-size: 9px; }
.stat-icon { position: absolute; top: 17px; right: 17px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--purple); background: #f0ecff; font-size: 13px; font-weight: 800; }
.featured .stat-icon { color: #fff; background: rgba(255,255,255,.14); }
.stat-icon.orange { color: #d8684e; background: #fff0ec; }
.stat-icon.blue { color: #497bc3; background: #edf4ff; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 17px; background: var(--card); box-shadow: 0 8px 28px rgba(50,42,76,.04); }
.client-panel, .activity-panel { min-height: 304px; padding: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-heading h3 { margin: 0; font-size: 16px; }
.text-btn { border: 0; color: var(--purple); background: none; font-size: 10px; font-weight: 800; }
.client-preview, .activity-list { display: grid; gap: 8px; }
.client-row { display: grid; grid-template-columns: 40px minmax(110px, 1fr) repeat(3, minmax(80px, .55fr)) 26px; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 12px; transition: background .18s; cursor: pointer; }
.client-row:hover { background: #faf8fd; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: #5d48bf; background: #eeeaff; font-size: 13px; font-weight: 900; }
.avatar.tone-1 { color: #b45845; background: #ffebe5; }
.avatar.tone-2 { color: #267b62; background: #e3f5ee; }
.client-main strong, .client-main small, .metric span, .metric b { display: block; }
.client-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.client-main small, .metric span { margin-top: 4px; color: #aaa5b3; font-size: 9px; }
.metric b { font-family: Georgia, serif; font-size: 13px; }
.metric.balance b { color: var(--purple); }
.row-arrow { color: #bbb5c4; font-size: 18px; }
.activity-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #f2eff5; }
.activity-item:last-child { border: 0; }
.activity-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--green); background: #eaf7f2; font-size: 14px; }
.activity-icon.expense { color: var(--coral); background: #fff0ec; }
.activity-icon.direct { color: #4f6fbd; background: #edf3ff; }
.activity-copy strong, .activity-copy small { display: block; }
.activity-copy strong { font-size: 11px; }
.activity-copy small { margin-top: 4px; color: #aaa5b3; font-size: 9px; }
.activity-amount { font-family: Georgia, serif; font-size: 13px; font-weight: 700; color: var(--green); }
.activity-amount.expense { color: var(--ink); }
.activity-amount.direct { color: #4f6fbd; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding: 14px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #faf9fc; }
.search-box span { color: var(--muted); font-size: 20px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.toolbar select, .modal select, .modal input, .modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: #fbfafd; transition: border .18s, box-shadow .18s; }
.toolbar select { width: auto; min-height: 42px; padding: 0 36px 0 13px; }
.modal input, .modal select { height: 43px; padding: 0 12px; }
.modal textarea { padding: 11px 12px; resize: vertical; }
.modal input:focus, .modal select:focus, .modal textarea:focus { border-color: #a99aec; box-shadow: 0 0 0 3px rgba(114,88,231,.09); }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.project-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 28px rgba(50,42,76,.04); }
.project-card.inactive { opacity: .7; }
.project-card-head { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; }
.project-card-head strong, .project-card-head small { display: block; }
.project-card-head strong { font-size: 13px; }
.project-card-head small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.project-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--purple); background: var(--lavender); font-size: 23px; font-weight: 900; }
.status-pill { padding: 5px 8px; border-radius: 100px; color: var(--green); background: #eaf7f2; font-size: 8px; font-weight: 800; }
.status-pill.inactive { color: var(--muted); background: #f0edf3; }
.project-rate { display: flex; align-items: baseline; gap: 5px; margin-top: 22px; }
.project-rate strong { color: var(--purple-dark); font-family: Georgia, serif; font-size: 27px; }
.project-rate span { color: var(--muted); font-size: 9px; }
.project-card > p { min-height: 34px; margin: 11px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.project-stats { display: flex; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.project-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.text-btn.danger { color: #cf594d; }
.playmate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.playmate-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 32px rgba(50,42,76,.06); }
.playmate-card.inactive { opacity: .68; }
.playmate-card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.playmate-card-head strong, .playmate-card-head small { display: block; }
.playmate-card-head strong { color: #344675; font-size: 17px; }
.playmate-card-head small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.playmate-card > p { min-height: 38px; margin: 14px 0; color: var(--muted); font-size: 11px; line-height: 1.7; white-space: pre-line; }
.playmate-games { margin: 8px 0 12px; color: var(--muted); font-size: 10px; }
.playmate-visual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.playmate-visual-thumb { position: relative; aspect-ratio: 1; min-width: 0; overflow: hidden; padding: 0; border: 0; border-radius: 10px; background: #ece9f6; cursor: zoom-in; }
.playmate-visual-thumb img, .playmate-visual-thumb video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease, filter .2s ease; }
.playmate-visual-thumb:hover img, .playmate-visual-thumb:hover video { transform: scale(1.045); filter: brightness(.92); }
.video-thumb-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; padding-left: 2px; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; color: #fff; background: rgba(25,18,43,.65); box-shadow: 0 4px 14px rgba(0,0,0,.22); transform: translate(-50%, -50%); pointer-events: none; }
.playmate-no-photo { display: grid; place-items: center; align-content: center; gap: 6px; height: 150px; border: 1px dashed #cfd8f1; border-radius: 14px; color: #8794bb; background: linear-gradient(145deg, #f7f5ff, #edf4ff); }
.playmate-no-photo span { font-size: 30px; }
.playmate-no-photo small { font-size: 10px; }
.playmate-audio-list { display: grid; gap: 6px; margin-bottom: 9px; }
.playmate-media { position: relative; min-width: 0; overflow: hidden; border-radius: 11px; background: #f2eff8; }
.image-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-media video { display: block; width: 100%; max-height: 220px; background: #211833; }
.simple-audio { display: grid; grid-template-columns: 29px 34px minmax(80px, 1fr); align-items: center; gap: 8px; min-height: 38px; padding: 4px 10px 4px 5px; overflow: visible; border: 1px solid #e1e5f4; border-radius: 19px; background: #f5f7fc; }
.simple-audio audio { display: none; }
.simple-audio-play { display: grid; place-items: center; width: 29px; height: 29px; padding: 0 0 0 1px; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #8471e9, #637de5); font-size: 10px; line-height: 1; }
.simple-audio-time { color: #7480a4; font-size: 9px; font-variant-numeric: tabular-nums; }
.simple-audio-progress { width: 100%; height: 3px; margin: 0; border: 0; border-radius: 99px; outline: none; appearance: none; -webkit-appearance: none; accent-color: #7580df; background: #dbe0ef; cursor: pointer; }
.simple-audio-progress::-webkit-slider-runnable-track { height: 3px; border-radius: 99px; background: #dbe0ef; }
.simple-audio-progress::-webkit-slider-thumb { width: 11px; height: 11px; margin-top: -4px; border: 2px solid #fff; border-radius: 50%; background: #7480df; box-shadow: 0 1px 4px rgba(65,77,137,.3); -webkit-appearance: none; }
.simple-audio-progress::-moz-range-track { height: 3px; border-radius: 99px; background: #dbe0ef; }
.simple-audio-progress::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #7480df; }
.media-delete { position: absolute; z-index: 2; right: 7px; top: 7px; display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: #fff; background: rgba(43,29,62,.72); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.media-delete:hover { background: #c95666; }
.client-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 28px rgba(50,42,76,.04); cursor: pointer; transition: transform .18s, box-shadow .18s; }
.client-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.client-card-head { display: flex; align-items: center; gap: 12px; }
.client-card-head .avatar { width: 44px; height: 44px; }
.client-card-head strong, .client-card-head small { display: block; }
.client-card-head strong { font-size: 14px; }
.client-card-head small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.client-balance { margin: 20px 0 15px; padding: 16px; border-radius: 13px; background: #f7f4ff; }
.client-balance span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; }
.client-balance strong { display: block; margin-top: 6px; color: var(--purple-dark); font-family: Georgia, serif; font-size: 25px; }
.client-card-stats { display: grid; grid-template-columns: 1fr 1fr; }
.client-card-stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.client-card-stats span, .client-card-stats b { display: block; }
.client-card-stats span { color: var(--muted); font-size: 9px; }
.client-card-stats b { margin-top: 5px; font-family: Georgia, serif; font-size: 13px; }
.table-panel { overflow: hidden; }
.table-wrap { overflow-x: auto; }
.monthly-panel { padding-top: 4px; }
.report-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 24px 26px 20px; }
.report-heading h2 { margin: 0; font-size: 20px; }
.report-heading > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.monthly-table th, .monthly-table td { padding-left: 26px; padding-right: 26px; }
.monthly-table tbody tr:hover { background: #fcfbfd; }
table { width: 100%; border-collapse: collapse; }
th { padding: 14px 18px; color: var(--muted); background: #faf9fc; font-size: 9px; letter-spacing: .08em; text-align: left; }
td { padding: 15px 18px; border-top: 1px solid var(--line); font-size: 11px; }
.transaction-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.amount-cell { text-align: right; }
.type-pill { display: inline-flex; padding: 5px 8px; border-radius: 100px; color: var(--green); background: #eaf7f2; font-size: 9px; font-weight: 800; }
.type-pill.expense { color: #cf664f; background: #fff0ec; }
.type-pill.direct { color: #4f6fbd; background: #edf3ff; }
.amount-positive { color: var(--green); font-family: Georgia, serif; font-weight: 800; }
.amount-negative { color: var(--ink); font-family: Georgia, serif; font-weight: 800; }
.amount-direct { color: #4f6fbd; font-family: Georgia, serif; font-weight: 800; }
.delete-btn { border: 0; color: #b2acbb; background: none; font-size: 15px; }
.delete-btn:hover { color: #d2594c; }

.empty-state { display: grid; place-items: center; min-height: 190px; padding: 35px; color: var(--muted); text-align: center; }
.empty-state::before { content: "✦"; display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 10px; border-radius: 14px; color: var(--purple); background: var(--lavender); font-size: 19px; }
.empty-state strong, .empty-state small { display: block; }
.empty-state strong { color: var(--ink); font-size: 13px; }
.empty-state small { max-width: 300px; margin-top: 7px; font-size: 10px; line-height: 1.65; }
.empty-state.compact { min-height: 270px; }

.modal { width: min(540px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 30px 100px rgba(24,20,36,.28); }
.playmate-modal { width: min(760px, calc(100vw - 28px)); }
.receipt-modal { width: min(560px, calc(100vw - 20px)); }
.receipt-dialog-content { padding: 22px; }
.receipt-preview { display: block; width: min(100%, 420px); max-height: 70vh; margin: 0 auto; object-fit: contain; border: 1px solid #e5edf8; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(55,88,130,.12); }
.modal::backdrop { background: rgba(21,18,31,.62); backdrop-filter: blur(4px); }
.modal form, .detail-modal > div { padding: 27px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.modal-heading h2 { margin: 0; font-size: 21px; }
.icon-btn { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 20px; }
.modal label { display: grid; gap: 7px; margin-bottom: 14px; color: #5e5968; font-size: 10px; font-weight: 700; }
.modal label > span { display: inline; color: var(--coral); }
.modal label > .field-title { display: inline-flex; align-items: baseline; gap: 4px; width: fit-content; color: inherit; line-height: 1.35; }
.modal label > .field-title i { color: var(--coral); font-style: normal; font-weight: 800; }
.modal label > .field-title b { color: inherit; font-size: inherit; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.birthday-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.media-upload-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin-top: 6px; padding: 15px; border: 1px dashed #cbd5ef; border-radius: 14px; background: #f8f9fe; }
.media-upload-box strong, .media-upload-box small { display: block; }
.media-upload-box strong { color: #536696; font-size: 11px; }
.media-upload-box small { margin-top: 5px; color: #8b96b5; font-size: 9px; line-height: 1.5; }
.modal .media-file-picker { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; margin: 0; padding: 0 14px; border: 1px solid #d9e1f5; border-radius: 10px; color: #6174ba; background: #fff; cursor: pointer; white-space: nowrap; }
.media-file-picker input { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.selected-media-files { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.selected-media-files > span { max-width: 100%; overflow: hidden; padding: 6px 9px; border-radius: 8px; color: #596a9e; background: #edf1fb; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.selected-media-files small { display: inline; margin: 0 0 0 4px; }
.file-drop-zone { position: relative; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.file-drop-zone.is-dragover { border-color: #9277ad; background: #f4eef8; box-shadow: inset 0 0 0 2px rgba(126,101,153,.14), 0 8px 24px rgba(84,67,99,.08); transform: translateY(-1px); }
.file-drop-zone.is-dragover::after { content: "松开鼠标即可添加"; position: absolute; z-index: 2; inset: 7px; display: grid; place-items: center; border: 1px dashed rgba(111,91,139,.5); border-radius: 10px; color: #645176; background: rgba(250,247,251,.94); font-size: 11px; font-weight: 800; pointer-events: none; }
.file-drop-hint { display: block !important; margin-top: 7px; color: #79658d !important; font-size: 9px; font-weight: 700; }
.existing-media-list { margin-top: 18px; }
.existing-media-heading { display: flex; justify-content: space-between; margin-bottom: 9px; color: #5b6790; font-size: 10px; }
.existing-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: 430px; overflow: auto; padding-right: 3px; }
.existing-media-grid .image-media { height: 180px; }
.existing-media-grid .simple-audio, .existing-media-grid .video-media { grid-column: 1 / -1; }
.media-preview-dialog { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; overflow: visible; border: 0; border-radius: 16px; background: #11101a; box-shadow: 0 30px 100px rgba(0,0,0,.52); }
.media-preview-dialog::backdrop { background: rgba(12,10,20,.84); backdrop-filter: blur(7px); }
.media-preview-body { display: grid; place-items: center; min-height: 180px; max-height: calc(100vh - 32px); overflow: hidden; border-radius: 16px; }
.media-preview-body img, .media-preview-body video { display: block; max-width: 100%; max-height: calc(100vh - 32px); object-fit: contain; }
.media-preview-body video { width: 100%; }
.media-preview-close { position: absolute; z-index: 3; right: -12px; top: -12px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: #fff; background: rgba(32,27,47,.88); box-shadow: 0 5px 18px rgba(0,0,0,.3); font-size: 21px; }
.type-switch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 18px; padding: 4px; border-radius: 11px; background: #f2eff6; }
.type-switch button { height: 36px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.type-switch button.active { color: var(--purple-dark); background: #fff; box-shadow: 0 3px 12px rgba(42,34,68,.08); }
.balance-hint { margin: -6px 0 14px; color: var(--purple); font-size: 9px; font-weight: 700; }
.pricing-hint { margin: -6px 0 14px; color: var(--purple); font-size: 9px; font-weight: 700; }
.project-fields-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; color: #5e5968; font-size: 10px; font-weight: 700; }
.transaction-items { display: grid; gap: 8px; margin-bottom: 13px; }
.transaction-item-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(125px, .52fr) auto; gap: 8px; align-items: center; }
.transaction-item-row select, .transaction-item-row input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: #fbfafd; }
.transaction-item-row select:focus, .transaction-item-row input:focus { border-color: #a99aec; box-shadow: 0 0 0 3px rgba(114,88,231,.09); }
.remove-item-btn { height: 34px; padding: 0 8px; border: 0; border-radius: 8px; color: #a15b54; background: #fff0ec; font-size: 9px; font-weight: 800; }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.modal .check-line { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.modal .check-line input { width: 16px; height: 16px; accent-color: var(--purple); }
.detail-top { display: flex; align-items: center; gap: 13px; padding-right: 40px; }
.detail-top .avatar { width: 48px; height: 48px; }
.detail-top h2 { margin: 0; font-size: 19px; }
.detail-top p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.detail-close { position: absolute; right: 24px; top: 24px; }
.detail-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.detail-summary div { padding: 13px; border-radius: 11px; background: #f8f6fb; }
.detail-summary span, .detail-summary strong { display: block; }
.detail-summary span { color: var(--muted); font-size: 8px; }
.detail-summary strong { margin-top: 5px; font-family: Georgia, serif; font-size: 14px; }
.detail-note { padding: 13px; border-left: 3px solid #c8bbff; color: #696373; background: #faf9fc; font-size: 10px; line-height: 1.6; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.btn-danger { color: #cf594d; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 30px; width: max-content; max-width: min(680px, calc(100vw - 32px)); transform: translate(-50%, 20px); padding: 11px 17px; border-radius: 10px; color: #fff; background: #231f2c; box-shadow: 0 12px 35px rgba(0,0,0,.25); font-size: 11px; line-height: 1.55; text-align: center; opacity: 0; pointer-events: none; transition: .22s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #bd4f44; }
.toast.in-dialog { position: static; width: auto; max-width: none; margin: 14px 0 0; transform: translateY(8px); }
.toast.in-dialog.show { transform: translateY(0); }
.mobile-nav { display: none; }

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { min-width: 510px; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { padding: 20px 15px 92px; }
  .topbar { align-items: flex-start; }
  .top-actions .btn-ghost { display: none; }
  .user-chip { display: none; }
  .login-card { padding: 30px 23px; }
  .hero-panel { display: block; padding: 25px 21px; }
  .hero-actions { grid-template-columns: 1fr; min-width: 0; margin-top: 22px; }
  .hero-button { padding: 13px 11px; }
  .hero-button > span { width: 31px; height: 31px; }
  .stats-grid { gap: 9px; margin: 10px 0; }
  .stat-card { min-height: 120px; padding: 17px; }
  .stat-card strong { font-size: 21px; }
  .dashboard-grid { gap: 10px; }
  .client-panel, .activity-panel { padding: 17px 13px; }
  .client-row { grid-template-columns: 38px 1fr auto; }
  .client-row .metric:not(.balance) { display: none; }
  .row-arrow { display: none; }
  .client-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-wrap: wrap; }
  .search-box { flex-basis: 100%; }
  .history-toolbar select { flex: 1; }
  .mobile-nav { position: fixed; z-index: 30; display: grid; grid-template-columns: repeat(6, 1fr); inset: auto 12px 11px; padding: 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: rgba(24,21,33,.96); box-shadow: 0 16px 45px rgba(20,17,28,.28); backdrop-filter: blur(12px); }
  .mobile-nav button { display: grid; gap: 2px; place-items: center; height: 48px; border: 0; border-radius: 11px; color: #817b8d; background: transparent; font-size: 8px; }
  .mobile-nav button span { font-size: 17px; }
  .mobile-nav button.active { color: #fff; background: #302b3d; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .playmate-grid { grid-template-columns: 1fr; }
  .playmate-visual-grid { gap: 5px; }
  .media-upload-box { grid-template-columns: 1fr; }
  .modal .media-file-picker { width: 100%; }
  .existing-media-grid { grid-template-columns: 1fr; }
  .existing-media-grid .image-media { height: 210px; }
  .birthday-fields { grid-template-columns: 1fr; gap: 0; }
  .transaction-item-row { grid-template-columns: 1fr; gap: 6px; }
  .remove-item-btn { justify-self: end; }
  .modal form, .detail-modal > div { padding: 22px; }
  .detail-summary { gap: 5px; }
  .detail-summary div { padding: 10px 8px; }
}

/* YOKO电竞主题 */
:root {
  --ink: #263458;
  --muted: #7b86a9;
  --paper: #f3f7ff;
  --card: rgba(255,255,255,.94);
  --line: #dfe7fb;
  --purple: #667ee2;
  --purple-dark: #5268c6;
  --lavender: #e9edff;
  --coral: #f58fa8;
  --green: #4da995;
  --sidebar: #586fc9;
  --shadow: 0 18px 48px rgba(68,88,155,.12);
}

html, body { background: var(--paper); }
body { font-family: ui-rounded, "Hiragino Maru Gothic ProN", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; background-image: radial-gradient(circle at 88% 8%, rgba(171,185,255,.18), transparent 24%), radial-gradient(circle at 28% 92%, rgba(255,188,218,.16), transparent 25%); }

.login-screen { position: relative; min-height: 100svh; place-items: center start; overflow: hidden; padding: 38px clamp(32px, 7.95vw, 158px); background: url('/images/yoko-login-background.png?v=20260827-1') center / cover no-repeat; }
.login-screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,249,253,.2) 0%, rgba(255,249,253,.1) 31%, transparent 56%); }
.login-screen::after { display: none; }
.login-card { position: relative; z-index: 1; width: min(592px, 100%); min-height: 660px; margin: 0; padding: 26px 46px 30px; color: #342b4b; border: 1px solid rgba(255,255,255,.98); border-radius: 36px; background: rgba(255,255,255,.94); box-shadow: 0 28px 80px rgba(91,67,126,.2); backdrop-filter: blur(12px); transform: translateY(-1.2vh); }
.login-card .login-brand { gap: 16px; margin-bottom: 22px; }
.login-card .brand-avatar { width: 80px; height: 80px; flex: 0 0 80px; border: 3px solid rgba(255,255,255,.96); box-shadow: 0 8px 22px rgba(101,75,145,.2); }
.login-card .login-brand strong { color: #392f51; font-family: "CanvaWanderWorldCN", ui-rounded, "Microsoft YaHei", sans-serif; font-size: 26px; font-weight: 400; letter-spacing: .01em; }
.login-copy h1 { margin: 0 0 25px; color: #33294b; font-family: "CanvaWanderWorldCN", ui-rounded, "Microsoft YaHei", sans-serif; font-size: clamp(54px, 4vw, 72px); font-weight: 400; line-height: 1.25; letter-spacing: .01em; }
.login-copy > p:last-child { margin: -10px 0 18px; color: #8a789b; font-size: 14px; line-height: 1.6; }
.login-card label { gap: 9px; margin-bottom: 18px; color: #544665; font-size: 18px; font-weight: 400; }
.login-card input:not([type="checkbox"]) { height: 50px; padding: 0 24px; color: #3b3150; border: 1px solid #eee7f2; border-radius: 8px; background: #f8f5f9; box-shadow: inset 0 1px 2px rgba(72,49,91,.03); }
.login-card input:not([type="checkbox"])::placeholder { color: #b4a9bb; }
.login-card input:focus { border-color: #d79bc4; box-shadow: 0 0 0 4px rgba(215,155,196,.16); background: #fff; }
.login-card .remember-line { display: flex; gap: 9px; margin: 0 0 22px; color: #6c5a76; font-size: 17px; }
.login-card .remember-line input { width: 24px; height: 24px; margin: 0; accent-color: #c986b6; }
.login-card .login-button { position: relative; min-height: 67px; margin: 0; border: 0; border-radius: 9px; font-family: "CanvaWanderWorldCN", ui-rounded, "Microsoft YaHei", sans-serif; font-size: 25px; font-weight: 400; background: linear-gradient(100deg, #e38eb5 0%, #c88ac3 48%, #a987d3 100%); box-shadow: 0 12px 28px rgba(176,113,174,.26); }
.login-card .login-button::after { content: "→"; position: absolute; right: 28px; top: 50%; font-family: Arial, sans-serif; font-size: 25px; transform: translateY(-52%); }
.login-card .login-button:hover { background: linear-gradient(100deg, #d77da8 0%, #ba79b7 48%, #9875c6 100%); transform: translateY(-1px); }
.login-card .login-button:disabled::after { display: none; }
.login-error { min-height: 18px; margin: 12px 0 0; color: #d75a78; font-size: 13px; }

.sidebar { overflow: hidden; color: #fff; background: linear-gradient(165deg, #5269c7 0%, #6d72ce 53%, #8b76c9 100%); box-shadow: 10px 0 36px rgba(64,82,146,.16); }
.sidebar::before { content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none; background-image: radial-gradient(circle at 18% 13%, #fff 0 2px, transparent 3px), radial-gradient(circle at 78% 24%, #fff 0 3px, transparent 4px), radial-gradient(circle at 30% 61%, #fff 0 2px, transparent 3px), radial-gradient(circle at 82% 76%, #fff 0 2px, transparent 3px); }
.sidebar::after { content: "★"; position: absolute; left: 30px; top: 205px; color: rgba(255,220,237,.25); font-size: 12px; pointer-events: none; text-shadow: 145px 118px rgba(216,235,255,.22), 38px 355px rgba(255,239,184,.18), 162px 520px rgba(255,220,237,.2), 92px 700px rgba(216,235,255,.18); }
.sidebar > * { position: relative; z-index: 1; }
.brand-mark { color: #5268b7; border: 2px solid rgba(255,255,255,.74); background: linear-gradient(135deg, #fdf7ff, #d9e9ff 60%, #ffd6e9); box-shadow: 0 8px 24px rgba(37,54,117,.22); }
.brand-avatar { overflow: hidden; padding: 0; border-radius: 50%; background: #f7f0ff; }
.brand-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.brand small { color: #cfdbff; }
.nav-item { color: #d6dfff; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.16); }
.nav-item.active { box-shadow: inset 3px 0 0 #ffd2e6, 0 8px 22px rgba(42,57,121,.12); }
.sidebar-note { border-color: rgba(255,255,255,.16); background: rgba(33,47,107,.2); }
.sidebar-note small, .backup-link { color: #d1d9f7; }
.backup-link:hover { color: #fff; }
.pulse-dot { display: grid; place-items: center; width: 18px; height: 18px; margin-top: 0; color: #d8fff1; background: transparent; box-shadow: none; }
.pulse-dot::before { content: "✦"; font-size: 14px; text-shadow: 0 0 10px rgba(184,241,223,.55); }
.backup-link span { color: #ffd8e9; font-size: 14px; }

.main-content { position: relative; isolation: isolate; overflow: hidden; max-width: none; }
.main-content::before { content: "★"; position: absolute; z-index: 0; left: 34px; top: 92px; color: rgba(106,126,213,.1); font-size: 17px; pointer-events: none; text-shadow: 210px 85px rgba(255,157,198,.12), 480px 12px rgba(102,190,217,.1), 745px 155px rgba(126,111,204,.08), 1010px 52px rgba(255,180,91,.11), 1260px 210px rgba(255,143,189,.09), 112px 510px rgba(111,157,226,.09), 425px 710px rgba(255,157,198,.11), 790px 560px rgba(99,190,179,.08), 1110px 760px rgba(126,111,204,.09), 1390px 520px rgba(255,185,100,.09); }
.main-content::after { content: "✦"; position: absolute; z-index: 0; right: 7%; top: 31%; color: rgba(255,159,199,.09); font-size: 13px; pointer-events: none; text-shadow: -240px 470px rgba(99,190,179,.08), -680px 620px rgba(113,132,218,.08), -1030px 330px rgba(255,185,100,.09); }
.main-content > * { position: relative; z-index: 1; }
.topbar h1 { color: #30406d; }
.eyebrow, .section-kicker { color: #7a89ba; }
.user-chip span { color: #57bba1; }
.btn { border-color: #dfe6fa; }
.btn-primary { border-color: #667ee2; background: linear-gradient(135deg, #7188eb, #6673d5); box-shadow: 0 9px 24px rgba(91,111,205,.24); }
.btn-primary:hover { background: linear-gradient(135deg, #6179dc, #5868c5); }

.hero-panel { min-height: 305px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 31px 47% 31px 34px; color: #fff; background: linear-gradient(90deg, rgba(55,22,83,.94) 0%, rgba(88,35,119,.72) 35%, rgba(94,36,129,.1) 62%), url('/images/yoko-login-background.png?v=20260831-2') 68% center / cover no-repeat; box-shadow: 0 22px 55px rgba(79,34,105,.22); }
.hero-panel::after { display: none; }
.hero-actions { width: 100%; max-width: 520px; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.hero-button { border: 1px solid rgba(255,255,255,.72); box-shadow: 0 10px 25px rgba(32,47,111,.15); transition: transform .18s ease, box-shadow .18s ease; }
.hero-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(32,47,111,.22); }
.hero-button.lavender { background: #d8ddff; }
.hero-button.coral { background: #ffc6d7; }
.hero-button.mint { background: #c9f0e8; }
.hero-button.sky { background: #cce6fa; }

.nav-item > span,
.mobile-nav button > span,
.hero-button > span,
.stat-icon,
.activity-icon,
.project-icon {
  position: relative;
  border: 2px solid rgba(255,255,255,.78);
  color: #5e73ca;
  background: linear-gradient(145deg, #fff9fd 0%, #dceaff 58%, #ffd8e8 100%);
  box-shadow: inset 0 0 0 1px rgba(100,120,203,.1), 0 6px 14px rgba(72,91,171,.14);
  font-family: ui-rounded, "Hiragino Maru Gothic ProN", "PingFang SC", sans-serif;
  font-weight: 900;
}
.nav-item > span::after,
.mobile-nav button > span::after,
.hero-button > span::after,
.stat-icon::after,
.activity-icon::after,
.project-icon::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  right: 3px;
  top: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 0 2px rgba(255,255,255,.16);
}
.nav-item > span { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 11px 14px 10px 14px; font-size: 14px; transform: rotate(-2deg); }
.mobile-nav button > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 10px 12px 9px 12px; font-size: 13px; }
.nav-item:nth-child(1) > span,
.mobile-nav button:nth-child(1) > span { color: #5575ce; border-radius: 11px 15px 10px 15px; background: linear-gradient(145deg, #fff, #dbe8ff 58%, #e7ddff); transform: rotate(-3deg); }
.nav-item:nth-child(2) > span,
.mobile-nav button:nth-child(2) > span { color: #d86592; border-radius: 50%; background: linear-gradient(145deg, #fff, #ffdce9 58%, #fff0c9); transform: rotate(3deg); }
.nav-item:nth-child(3) > span,
.mobile-nav button:nth-child(3) > span { color: #3d998a; border-radius: 15px 10px 15px 10px; background: linear-gradient(145deg, #fff, #d8f4ec 58%, #dce9ff); transform: rotate(-2deg); }
.nav-item:nth-child(4) > span,
.mobile-nav button:nth-child(4) > span { color: #d06d7d; border-radius: 8px 13px 8px 13px; background: linear-gradient(145deg, #fff, #ffe2e2 58%, #ffeecb); transform: rotate(4deg); }
.nav-item:nth-child(5) > span,
.mobile-nav button:nth-child(5) > span { color: #7963bd; border-radius: 14px 8px 14px 8px; background: linear-gradient(145deg, #fff, #e9e0ff 58%, #dceaff); transform: rotate(-4deg); }
.nav-item:nth-child(6) > span { color: #4e8fab; border-radius: 9px 14px 9px 14px; background: linear-gradient(145deg, #fff, #dff5fa 58%, #e4e9ff); transform: rotate(2deg); }
.nav-item:nth-child(7) > span { color: #bd7198; border-radius: 14px 9px 14px 9px; background: linear-gradient(145deg, #fff, #f3e2ff 58%, #ffe4ee); transform: rotate(-2deg); }
.nav-item:nth-child(8) > span { color: #548f79; border-radius: 9px 15px 11px 14px; background: linear-gradient(145deg, #fff, #dcf5ea 58%, #e5e5ff); transform: rotate(3deg); }
.hero-button > span { border-radius: 12px 15px 11px 15px; color: #6477cc; background: linear-gradient(145deg, #fff, #e4ebff 55%, #ffe0ec); transform: rotate(-2deg); }
.hero-button.coral > span { color: #d56c89; transform: rotate(2deg); }
.hero-button.mint > span { color: #478f8c; transform: rotate(-1deg); }
.hero-button.sky > span { color: #4385a5; transform: rotate(1deg); }
.stat-icon { border-radius: 10px 13px 9px 13px; font-size: 14px; transform: rotate(3deg); }
.featured .stat-icon { color: #6578cf; background: linear-gradient(145deg, #fff, #e8edff 55%, #ffddea); }
.stat-icon.orange { color: #d46b89; background: linear-gradient(145deg, #fff, #ffe1eb 58%, #fff1c9); }
.stat-icon.blue { color: #4f78c9; background: linear-gradient(145deg, #fff, #ddecff 58%, #e8ddff); }
.activity-icon { border-radius: 11px 14px 10px 14px; color: #4c9b88; background: linear-gradient(145deg, #fff, #dff5ee 58%, #e5ecff); transform: rotate(-2deg); }
.activity-icon.expense { color: #d26886; background: linear-gradient(145deg, #fff, #ffe0e9 58%, #fff0cd); transform: rotate(2deg); }
.activity-icon.direct { color: #5573c9; background: linear-gradient(145deg, #fff, #e2eaff 58%, #e8defe); transform: rotate(-1deg); }
.project-icon { border-radius: 14px 17px 13px 17px; color: #6074ca; background: linear-gradient(145deg, #fff, #e1eaff 58%, #ffdeeb); transform: rotate(-2deg); }
.search-box > span { color: #7b8edb; font-size: 15px; text-shadow: 0 2px 8px rgba(92,112,201,.18); }
.logout-button { color: #667bd2; background: linear-gradient(145deg, #fff, #e3ecff 60%, #ffdeea); }
#recentTransactions .activity-item { grid-template-columns: 1fr auto; gap: 14px; }

.panel, .stat-card, .client-card, .project-card, .toolbar { border-color: #e0e7fa; box-shadow: 0 10px 32px rgba(70,88,148,.07); }
.stat-card.featured { background: linear-gradient(135deg, #7189ed 0%, #686fce 66%, #8a75cf 100%); box-shadow: 0 15px 35px rgba(87,104,196,.24); }
.stat-card.featured p, .stat-card.featured small { color: #e5ebff; }
.text-btn { color: #6178d7; }
.search-box { border-color: #dfe7fa; background: #f8faff; }
.client-balance { background: linear-gradient(135deg, #f0f3ff, #f8f4ff); }
.client-balance strong, .metric.balance b { color: #5b72cd; }
.avatar { color: #5269c0; background: linear-gradient(135deg, #e4eaff, #f3eaff); }
.type-pill.direct { color: #5573c9; background: #edf3ff; }
.type-pill.expense { color: #d36b86; background: #fff0f5; }
.amount-direct { color: #5774ca; }
.modal { border: 1px solid #dce5fb; box-shadow: 0 35px 110px rgba(46,61,117,.3); }
.modal::backdrop { background: rgba(41,51,91,.58); backdrop-filter: blur(6px); }
.type-switch { background: #edf1fb; }
.type-switch button.active { color: #5268c4; }
.transaction-item-row select, .transaction-item-row input { border-color: #dfe6f8; background: #f8faff; }
.toast.error { background: #cf6680; }

.account-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.account-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border-radius: 999px; color: #5e72c6; background: #edf1ff; font-size: 11px; font-weight: 800; }
.account-badge.admin { color: #b95d80; background: #fff0f5; }
.account-badge.inactive { color: #8f96aa; background: #f0f2f7; }
.account-card-configured { border-color: #d5ddfa; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,243,255,.96)); }
.sidebar-account-button { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; color: #fff; background: rgba(37,51,111,.22); font-weight: 800; transition: .2s ease; }
.sidebar-account-button:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }
.sidebar-account-button span { color: #ffd8e9; }

@media (max-width: 1050px) {
  .hero-panel { padding-right: 36%; }
  .hero-actions { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .hero-button:last-child { grid-column: auto; }
}

@media (max-width: 760px) {
  .login-screen { place-items: center; padding: 20px; background: linear-gradient(rgba(45,19,79,.28), rgba(32,13,61,.4)), url('/images/yoko-login-background.png?v=20260827-1') 67% center / cover no-repeat; }
  .login-card { width: min(440px, 100%); min-height: 0; padding: 28px 24px; border-radius: 26px; background: rgba(255,255,255,.94); transform: none; }
  .login-card .brand-avatar { width: 58px; height: 58px; flex-basis: 58px; }
  .login-card .login-brand { margin-bottom: 20px; }
  .login-card .login-brand strong { font-size: 21px; }
  .login-copy h1 { margin-bottom: 24px; font-size: 44px; }
  .login-card label { font-size: 15px; }
  .login-card .remember-line { font-size: 14px; }
  .login-button { min-height: 58px; font-size: 21px; }
  .boss-topbar { align-items: flex-start; gap: 14px; }
  .boss-topbar .login-brand { display: none; }
  .boss-content { width: min(100% - 20px, 1120px); padding-top: 14px; }
  .boss-hero, .boss-history-panel { padding: 20px; }
  .hero-panel { display: flex; min-height: 260px; justify-content: center; padding: 25px 21px; background: linear-gradient(90deg, rgba(53,18,82,.95), rgba(95,34,127,.62)), url('/images/yoko-login-background.png?v=20260831-2') 70% center / cover no-repeat; }
  .hero-actions { grid-template-columns: 1fr; max-width: none; }
  .hero-button:last-child { grid-column: auto; }
  .mobile-nav { background: rgba(77,95,166,.96); border-color: rgba(255,255,255,.18); }
  .mobile-nav button { color: #dbe3ff; }
  .mobile-nav button.active { color: #fff; background: rgba(255,255,255,.16); }
}
:root { --font-receipt: "CanvaWanderWorldCN", "CanvaTangyuanHandwritingCN", KaiTi, "STKaiti", "Microsoft YaHei", sans-serif; }
@font-face { font-family: "CanvaWanderWorldCN"; src: url('/fonts/CanvaWanderWorldCN.otf?v=20260817-1') format('opentype'); font-style: normal; font-weight: 400; font-display: block; }
@font-face { font-family: "CanvaTangyuanHandwritingCN"; src: url('/fonts/CanvaTangyuanHandwritingCN.ttf?v=20260814-1') format('truetype'); font-display: block; }

/* 登录后页面与登录背景统一的紫色电竞配色 */
:root {
  --ink: #38264d;
  --muted: #8d79a1;
  --paper: #f8f3fc;
  --card: rgba(255,255,255,.95);
  --line: #eadff2;
  --purple: #9146c6;
  --purple-dark: #6c299e;
  --lavender: #f0e3f9;
  --coral: #dc68a8;
  --green: #3ba68e;
  --sidebar: #3b155d;
  --shadow: 0 18px 48px rgba(89,42,119,.13);
}

html, body { background-color: var(--paper); }
body { background-image: radial-gradient(circle at 88% 7%, rgba(166,89,207,.16), transparent 25%), radial-gradient(circle at 24% 92%, rgba(222,113,182,.14), transparent 27%), linear-gradient(145deg, #fbf7fd, #f5effa); }

.boss-app { background: radial-gradient(circle at 90% 5%, rgba(175,94,210,.16), transparent 24%), linear-gradient(145deg, #f8f2fc, #fff8fc); }
.boss-topbar { border-color: #eadff3; background: rgba(255,251,255,.92); }
.boss-hero { color: #fff; background: linear-gradient(90deg, rgba(49,17,78,.96) 0%, rgba(83,28,117,.8) 38%, rgba(93,34,128,.22) 66%, rgba(73,23,104,.05) 100%), url('/images/yoko-login-background.png?v=20260831-2') 68% center / cover no-repeat; box-shadow: 0 22px 58px rgba(72,25,103,.25); }
.boss-hero .section-kicker, .boss-hero p:last-child { color: #f2dcff; }

.sidebar { background: linear-gradient(165deg, #2d1048 0%, #51206f 48%, #742f8f 100%); box-shadow: 10px 0 38px rgba(66,21,92,.22); }
.sidebar::before { opacity: .28; background-image: radial-gradient(circle at 18% 13%, #e5b7ff 0 2px, transparent 3px), radial-gradient(circle at 78% 24%, #ffb9e2 0 3px, transparent 4px), radial-gradient(circle at 30% 61%, #c9a3ff 0 2px, transparent 3px), radial-gradient(circle at 82% 76%, #ffcfed 0 2px, transparent 3px); }
.brand small { color: #dfc4ef; }
.nav-item { color: #ddc9eb; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.13); }
.nav-item.active { box-shadow: inset 3px 0 0 #f0a8d7, 0 8px 22px rgba(30,8,48,.18); }
.sidebar-note { border-color: rgba(255,255,255,.16); background: rgba(34,10,55,.25); }
.sidebar-note small, .backup-link { color: #dbc8e7; }
.sidebar-account-button { border-color: rgba(255,255,255,.2); background: rgba(37,9,59,.25); }
.sidebar-account-button:hover { background: rgba(255,255,255,.14); }

.main-content::before { color: rgba(135,66,175,.09); text-shadow: 210px 85px rgba(220,96,168,.11), 480px 12px rgba(138,80,192,.1), 745px 155px rgba(111,54,158,.08), 1010px 52px rgba(238,139,197,.1), 1260px 210px rgba(178,91,213,.09), 112px 510px rgba(139,72,187,.09), 425px 710px rgba(222,96,169,.1), 790px 560px rgba(122,66,170,.08), 1110px 760px rgba(170,82,202,.09), 1390px 520px rgba(233,128,190,.09); }
.topbar h1 { color: #4a2d61; }
.eyebrow, .section-kicker { color: #9678aa; }
.btn { border-color: #e9dcf2; }
.btn-primary { border-color: #9146c6; background: linear-gradient(135deg, #a151d2, #7b36b3 58%, #c052aa); box-shadow: 0 9px 25px rgba(126,49,168,.25); }
.btn-primary:hover { background: linear-gradient(135deg, #9144c2, #68299d 58%, #ad4399); }

.hero-panel { min-height: 305px; padding: 31px 47% 31px 34px; color: #fff; background: linear-gradient(90deg, rgba(42,13,70,.97) 0%, rgba(73,23,106,.82) 30%, rgba(86,27,121,.28) 53%, rgba(58,17,88,.02) 78%), url('/images/yoko-login-background.png?v=20260831-2') 68% center / cover no-repeat; box-shadow: 0 23px 58px rgba(74,26,105,.25); }
.hero-button { color: #442651; border-color: rgba(255,255,255,.7); box-shadow: 0 10px 26px rgba(42,10,61,.2); }
.hero-button:hover { box-shadow: 0 14px 32px rgba(42,10,61,.28); }
.hero-button.lavender { background: rgba(236,215,250,.94); }
.hero-button.coral { background: rgba(250,195,225,.94); }
.hero-button.mint { background: rgba(221,202,246,.94); }
.hero-button.sky { background: rgba(209,190,242,.94); }
.hero-button small { color: rgba(68,38,81,.65); }

.panel, .stat-card, .client-card, .project-card, .playmate-card, .toolbar { border-color: #eadff2; box-shadow: 0 10px 34px rgba(91,46,121,.08); }
.stat-card.featured { background: linear-gradient(135deg, #9b4dca 0%, #7334a7 58%, #bd4fa4 100%); box-shadow: 0 15px 36px rgba(118,47,155,.26); }
.stat-card.featured p, .stat-card.featured small { color: #f2dfff; }
.text-btn { color: #8a3fba; }
.search-box { border-color: #e8dcf1; background: #fcf9fe; }
.search-box > span { color: #a24fc7; text-shadow: 0 2px 8px rgba(139,65,177,.18); }
.client-row:hover { background: #fbf6fd; }
.client-balance { background: linear-gradient(135deg, #f5eafa, #fbf3fa); }
.client-balance strong, .metric.balance b, .project-rate strong { color: #7932aa; }
.avatar { color: #7b35aa; background: linear-gradient(135deg, #eee0f8, #f8e6f2); }
.project-icon { color: #843ab1; background: linear-gradient(145deg, #fff, #eddcf8 58%, #f8ddea); }
.playmate-card-head strong { color: #55306b; }
.simple-audio { border-color: #e8dcef; background: #faf5fc; }
.simple-audio-play { background: linear-gradient(135deg, #a153cf, #7a35ae); }
.simple-audio-progress, .simple-audio-progress::-webkit-slider-runnable-track, .simple-audio-progress::-moz-range-track { background: #e3d5eb; }
.simple-audio-progress::-webkit-slider-thumb, .simple-audio-progress::-moz-range-thumb { background: #9146c6; }
.stat-card strong { font-size: clamp(18px, 1.45vw, 25px); line-height: 1.25; overflow-wrap: anywhere; }
.client-balance strong { font-size: 22px; overflow-wrap: anywhere; }
.client-card-stats b, .metric b, .activity-amount, .amount-cell { font-variant-numeric: tabular-nums; }
.client-card-stats b { overflow-wrap: anywhere; }
.project-rate strong { font-size: 22px; overflow-wrap: anywhere; }
.type-switch { background: #f1e7f6; }
.type-switch button.active { color: #7530a1; }
.modal { border-color: #eadcf2; box-shadow: 0 35px 110px rgba(70,25,96,.32); }
.modal::backdrop { background: rgba(42,17,55,.62); }
.logout-button { color: #8740b1; background: linear-gradient(145deg, #fff, #eee0f8 60%, #f8dce9); }

@media (max-width: 760px) {
  .hero-panel { min-height: 260px; padding: 25px 21px; background: linear-gradient(90deg, rgba(43,13,70,.95), rgba(83,26,116,.6)), url('/images/yoko-login-background.png?v=20260831-2') 70% center / cover no-repeat; }
  .mobile-nav { background: rgba(67,24,94,.96); border-color: rgba(255,255,255,.18); }
  .mobile-nav button { color: #e6d3f1; }
  .mobile-nav button.active { color: #fff; background: rgba(255,255,255,.15); }
}

/* 除结单小票画布外，全站统一使用用户提供的本地字体。 */
@font-face {
  font-family: "YokoSiteFont";
  src: url('/fonts/YokoSiteFont.ttf?v=20260904-1') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body,
button,
input,
select,
textarea,
.login-card .login-brand strong,
.login-copy h1,
.login-card .login-button,
.login-card .login-button::after,
.stat-card strong,
.metric b,
.activity-amount,
.project-rate strong,
.client-balance strong,
.client-card-stats b,
.amount-positive,
.amount-negative,
.amount-direct,
.detail-summary strong,
.nav-item > span,
.mobile-nav button > span,
.hero-button > span,
.stat-icon,
.activity-icon,
.project-icon {
  font-family: "YokoSiteFont", "Microsoft YaHei", sans-serif;
}

/* 缩小桌面端登录卡片及内部控件。 */
.login-card {
  width: min(480px, 100%);
  min-height: 535px;
  padding: 23px 36px 26px;
  border-radius: 30px;
}
.login-card .login-brand { gap: 13px; margin-bottom: 16px; }
.login-card .brand-avatar { width: 64px; height: 64px; flex-basis: 64px; }
.login-card .login-brand strong { font-size: 22px; }
.login-copy h1 { margin-bottom: 19px; font-size: clamp(43px, 3.2vw, 56px); }
.login-copy > p:last-child { margin: -7px 0 14px; font-size: 12px; }
.login-card label { gap: 7px; margin-bottom: 13px; font-size: 15px; }
.login-card input:not([type="checkbox"]) { height: 46px; padding: 0 18px; }
.login-card .remember-line { margin-bottom: 17px; font-size: 14px; }
.login-card .remember-line input { width: 20px; height: 20px; }
.login-card .login-button { min-height: 56px; font-size: 21px; }
.login-card .login-button::after { right: 23px; font-size: 21px; }
.login-error { margin-top: 9px; font-size: 11px; }

@media (max-width: 760px) {
  .login-card { width: min(400px, 100%); min-height: 0; padding: 24px 21px; border-radius: 24px; }
  .login-card .brand-avatar { width: 54px; height: 54px; flex-basis: 54px; }
  .login-card .login-brand strong { font-size: 19px; }
  .login-copy h1 { margin-bottom: 19px; font-size: 39px; }
  .login-card label { font-size: 14px; }
  .login-card .remember-line { font-size: 13px; }
  .login-card .login-button { min-height: 53px; font-size: 19px; }
}

/* 2026-09-05：匹配 YOKO 欢迎登录设计稿的紫灰主题。 */
:root {
  --ink: #493d5c;
  --muted: #8c809d;
  --paper: #f5f1f5;
  --card: rgba(255,255,255,.96);
  --line: #e1d8e7;
  --purple: #7d6aa0;
  --purple-dark: #624f82;
  --lavender: #eee8f4;
  --coral: #b987a7;
  --green: #78998e;
  --sidebar: #564667;
  --shadow: 0 18px 46px rgba(74,60,92,.11);
}

html, body { background-color: var(--paper); }
body { color: var(--ink); background-image: radial-gradient(circle at 88% 7%, rgba(158,140,185,.14), transparent 26%), radial-gradient(circle at 22% 94%, rgba(202,188,213,.2), transparent 29%), linear-gradient(145deg, #f8f5f8, #f1ecf3); }

.login-screen { display: block; min-height: 100svh; padding: 0; overflow: hidden; background: #f4f0f4; }
.login-screen::before, .login-screen::after { display: none; }
.login-layout { position: relative; display: grid; grid-template-columns: minmax(520px, 42%) minmax(0, 58%); width: 100%; min-height: 100svh; overflow: hidden; }
.login-left { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: 105px clamp(58px, 5.8vw, 112px) 68px; background: #f5f1f5; }
.login-left::before { content: ""; position: absolute; z-index: -1; width: 450px; height: 450px; left: -175px; top: -195px; border-radius: 50%; background: rgba(255,255,255,.76); }
.login-left::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 230px; right: -190px; bottom: -80px; border-radius: 50%; background: #e8e0ed; }
.login-wordmark { position: absolute; left: clamp(58px, 5.8vw, 112px); top: 45px; color: #59476f; letter-spacing: .28em; line-height: 1; }
.login-wordmark strong, .login-wordmark span { display: block; }
.login-wordmark strong { font-family: Georgia, "Times New Roman", serif; font-size: 36px; font-weight: 500; letter-spacing: .25em; }
.login-wordmark span { margin-top: 14px; color: #8f7da6; font-size: 14px; font-weight: 700; letter-spacing: .26em; }
.login-card { position: relative; z-index: 2; width: min(510px, 100%); min-height: 0; margin: 0; padding: 31px 49px 21px; color: #493d5c; border: 1px solid #dbd0e3; border-radius: 8px; background: rgba(255,255,255,.97); box-shadow: 0 12px 35px rgba(79,63,97,.04); backdrop-filter: none; transform: none; }
.login-kicker { display: block; margin-bottom: 14px; color: #9483aa; font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .24em; }
.login-copy h1 { margin: 0; color: #443455; font-size: clamp(45px, 3.6vw, 56px); font-weight: 600; line-height: 1.1; letter-spacing: .02em; }
.login-copy .login-subtitle { margin: 15px 0 0; color: #7e6d92; font-size: 16px; line-height: 1.5; }
.login-divider { display: block; width: 48px; height: 2px; margin: 19px 0 20px; background: #8870a4; }
.login-copy > #loginHint:last-child { margin: -13px 0 18px; color: #8b7c9d; font-size: 13px; line-height: 1.55; }
.login-card label { gap: 7px; margin-bottom: 12px; color: #5f526f; font-size: 15px; font-weight: 500; }
.login-card input:not([type="checkbox"]) { height: 49px; padding: 0 20px; color: #493d5c; border: 1px solid #d8cde1; border-radius: 8px; background: #fff; box-shadow: none; }
.login-card input:not([type="checkbox"])::placeholder { color: #b5aabd; }
.login-card input:focus { border-color: #8b75aa; box-shadow: 0 0 0 3px rgba(126,105,160,.12); }
.login-card .remember-line { gap: 10px; margin: 1px 0 15px; color: #746683; font-size: 14px; }
.login-card .remember-line input { width: 21px; height: 21px; accent-color: #7d6aa0; }
.login-card .login-button { min-height: 52px; border: 0; border-radius: 8px; font-size: 19px; font-weight: 600; background: #7c679d; box-shadow: none; }
.login-card .login-button::after { display: none; }
.login-card .login-button:hover { background: #675287; box-shadow: 0 9px 20px rgba(82,64,108,.18); }
.login-error { min-height: 14px; margin-top: 7px; color: #a85e78; }
.login-motto { margin: 0; color: rgba(86,69,108,.7); font-family: Georgia, "Times New Roman", serif; font-size: 12px; letter-spacing: .08em; line-height: 1.2; text-align: right; }
.login-motto-left { position: absolute; left: clamp(58px, 5.8vw, 112px); bottom: 21px; text-align: left; letter-spacing: .2em; }
.login-hero { position: relative; z-index: 0; min-width: 0; overflow: hidden; background: #d8ccdf; }
.login-hero::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; box-shadow: inset 38px 0 70px rgba(245,241,245,.3); }
.login-hero img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.83) contrast(.96) brightness(1.035); }
.login-hero .login-motto { position: absolute; z-index: 2; right: 45px; bottom: 30px; }

.boss-app { background: radial-gradient(circle at 88% 6%, rgba(152,132,178,.16), transparent 25%), linear-gradient(145deg, #f5f1f5, #fbf8fa); }
.boss-topbar { border-color: #e1d8e7; background: rgba(252,249,251,.94); }
.boss-hero { color: #fff; background-color: #756486; background-image: linear-gradient(90deg, rgba(79,64,99,.97) 0%, rgba(94,77,117,.9) 42%, rgba(113,94,137,.32) 69%, rgba(113,94,137,.08) 100%), url('/images/yoko-login-hero-v2.png?v=20260905-1'); background-position: center, right 38%; background-size: cover, auto 175%; background-repeat: no-repeat; box-shadow: 0 20px 48px rgba(74,59,92,.22); }
.boss-hero .section-kicker, .boss-hero p:last-child { color: #eee7f3; }

.sidebar { color: #fff; background: linear-gradient(170deg, #4c3d5d 0%, #5d4b70 54%, #725e82 100%); box-shadow: 10px 0 34px rgba(66,52,82,.16); }
.sidebar::before { opacity: .16; background-image: radial-gradient(circle at 18% 13%, #fff 0 2px, transparent 3px), radial-gradient(circle at 78% 24%, #fff 0 3px, transparent 4px), radial-gradient(circle at 30% 61%, #fff 0 2px, transparent 3px), radial-gradient(circle at 82% 76%, #fff 0 2px, transparent 3px); }
.brand small, .nav-item, .sidebar-note small, .backup-link { color: #ded4e6; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-item.active { box-shadow: inset 3px 0 0 #d9cae5, 0 7px 20px rgba(40,30,50,.14); }
.sidebar-note, .sidebar-account-button { border-color: rgba(255,255,255,.16); background: rgba(42,31,54,.18); }
.sidebar-account-button:hover { background: rgba(255,255,255,.13); }

.main-content { background: radial-gradient(circle at 90% 8%, rgba(171,154,190,.14), transparent 24%), radial-gradient(circle at 25% 94%, rgba(213,201,220,.18), transparent 28%); }
.topbar h1 { color: #4e405f; }
.eyebrow, .section-kicker { color: #92839f; }
.btn { border-color: #e1d8e7; }
.btn-primary { border-color: #7d6aa0; background: #7d6aa0; box-shadow: 0 8px 20px rgba(86,69,109,.18); }
.btn-primary:hover { background: #675487; }
.hero-panel { min-height: 285px; color: #fff; background-color: #706080; background-image: linear-gradient(90deg, rgba(71,56,90,.98) 0%, rgba(86,70,107,.91) 37%, rgba(107,88,130,.34) 66%, rgba(107,88,130,.06) 100%), url('/images/yoko-login-hero-v2.png?v=20260905-1'); background-position: center, right 40%; background-size: cover, auto 180%; background-repeat: no-repeat; box-shadow: 0 21px 50px rgba(70,55,88,.22); }
.hero-button { color: #51435f; border-color: rgba(255,255,255,.62); box-shadow: 0 8px 22px rgba(51,40,64,.14); }
.hero-button:hover { box-shadow: 0 12px 27px rgba(51,40,64,.2); }
.hero-button.lavender, .hero-button.mint, .hero-button.sky { background: rgba(236,229,242,.94); }
.hero-button.coral { background: rgba(239,222,233,.94); }
.hero-button > span, .hero-button.coral > span, .hero-button.mint > span, .hero-button.sky > span,
.nav-item > span, .mobile-nav button > span, .stat-icon, .activity-icon, .project-icon {
  color: #75618f;
  border-color: rgba(255,255,255,.72);
  background: linear-gradient(145deg, #fff, #ece5f1);
  box-shadow: inset 0 0 0 1px rgba(104,84,128,.08), 0 5px 12px rgba(67,52,83,.1);
}
.panel, .stat-card, .client-card, .project-card, .playmate-card, .toolbar { border-color: #e1d8e7; box-shadow: 0 9px 30px rgba(76,61,93,.065); }
.stat-card.featured { background: linear-gradient(135deg, #826fa1 0%, #6c598c 62%, #937895 100%); box-shadow: 0 13px 31px rgba(81,64,104,.2); }
.stat-card.featured p, .stat-card.featured small { color: #eee7f3; }
.text-btn, .client-balance strong, .metric.balance b, .project-rate strong { color: #705a91; }
.search-box { border-color: #e1d8e7; background: #faf8fb; }
.search-box > span { color: #8975a3; text-shadow: none; }
.client-row:hover { background: #f8f5f9; }
.client-balance { background: linear-gradient(135deg, #f0eaf3, #f8f4f8); }
.avatar { color: #6f5b8b; background: linear-gradient(135deg, #e9e1ef, #f4edf3); }
.project-icon { color: #765f91; background: linear-gradient(145deg, #fff, #e9e0ef); }
.playmate-card-head strong { color: #544363; }
.simple-audio { border-color: #e1d8e7; background: #f8f5fa; }
.simple-audio-play { background: #7d6aa0; }
.simple-audio-progress, .simple-audio-progress::-webkit-slider-runnable-track, .simple-audio-progress::-moz-range-track { background: #ddd3e4; }
.simple-audio-progress::-webkit-slider-thumb, .simple-audio-progress::-moz-range-thumb { background: #7d6aa0; }
.type-switch { background: #ede7f1; }
.type-switch button.active { color: #624f82; }
.modal { border-color: #ded4e5; box-shadow: 0 32px 90px rgba(62,48,76,.28); }
.modal::backdrop { background: rgba(51,41,62,.62); }
.logout-button { color: #725e8d; background: linear-gradient(145deg, #fff, #ece5f1); }
.type-pill.direct { color: #6d638c; background: #efebf5; }
.type-pill.expense { color: #9a657e; background: #f7edf2; }
.amount-direct { color: #6d638c; }
.toast.error { background: #9b647c; }

@media (max-width: 1100px) {
  .login-layout { grid-template-columns: minmax(470px, 48%) minmax(0, 52%); }
  .login-left { padding-left: 48px; padding-right: 48px; }
  .login-wordmark, .login-motto-left { left: 48px; }
}

@media (max-width: 760px) {
  .login-screen { padding: 0; background: #f3eef3; }
  .login-layout { display: block; min-height: 100svh; }
  .login-hero { position: absolute; inset: 0; opacity: .22; }
  .login-hero::before { box-shadow: inset 0 0 90px 25px rgba(245,241,245,.88); background: rgba(245,241,245,.28); }
  .login-hero .login-motto { display: none; }
  .login-left { min-height: 100svh; padding: 105px 20px 68px; background: transparent; }
  .login-left::before { width: 300px; height: 300px; left: -145px; top: -130px; }
  .login-left::after { width: 390px; height: 155px; right: -165px; bottom: -55px; }
  .login-wordmark { left: 28px; top: 28px; }
  .login-wordmark strong { font-size: 27px; }
  .login-wordmark span { margin-top: 10px; font-size: 11px; }
  .login-card { width: min(430px, 100%); margin: auto; padding: 34px 27px 27px; border-radius: 8px; }
  .login-kicker { margin-bottom: 16px; font-size: 11px; }
  .login-copy h1 { font-size: 43px; }
  .login-copy .login-subtitle { margin-top: 16px; font-size: 14px; }
  .login-divider { margin: 21px 0 22px; }
  .login-card label { font-size: 14px; }
  .login-card input:not([type="checkbox"]) { height: 50px; }
  .login-card .login-button { min-height: 53px; font-size: 18px; }
  .login-motto-left { display: none; }
  .hero-panel { min-height: 250px; padding: 25px 21px; background-color: #706080; background-image: linear-gradient(90deg, rgba(69,54,87,.96), rgba(91,73,112,.67)), url('/images/yoko-login-hero-v2.png?v=20260905-1'); background-position: center, right 40%; background-size: cover, auto 165%; background-repeat: no-repeat; }
  .mobile-nav { border-color: rgba(255,255,255,.18); background: rgba(79,64,97,.96); }
  .mobile-nav button { color: #ded5e5; }
  .mobile-nav button.active { color: #fff; background: rgba(255,255,255,.13); }
}

/* 小票角色站点标识与陪玩头像。 */
.brand-avatar img { transform: none; }
.playmate-card-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.playmate-card-identity strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playmate-avatar { display: grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; overflow: hidden; border: 2px solid #fff; border-radius: 50%; color: #725e8d; background: #eee7f3; box-shadow: 0 5px 14px rgba(75,59,92,.14); font-size: 18px; }
.playmate-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.playmate-avatar-placeholder { font-weight: 800; }
.playmate-avatar-editor { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px; border: 1px solid #e1d8e7; border-radius: 14px; background: #faf8fb; }
.playmate-avatar-preview { display: grid; place-items: center; width: 76px; height: 76px; overflow: hidden; border: 2px solid #fff; border-radius: 50%; color: #8b799d; background: #ede7f1; box-shadow: 0 6px 17px rgba(76,60,94,.12); font-size: 12px; }
.playmate-avatar-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.playmate-avatar-editor strong, .playmate-avatar-editor small { display: block; }
.playmate-avatar-editor strong { color: #594866; font-size: 12px; }
.playmate-avatar-editor small { margin-top: 5px; color: #92869d; font-size: 9px; line-height: 1.5; }
.avatar-file-picker { white-space: nowrap; }

@media (max-width: 560px) {
  .playmate-avatar-editor { grid-template-columns: 64px minmax(0, 1fr); }
  .playmate-avatar-preview { width: 64px; height: 64px; }
  .avatar-file-picker { grid-column: 1 / -1; width: 100%; }
}

/* 全站金额使用简约线条宝石图标。 */
.diamond-amount { display: inline-flex; align-items: center; gap: .26em; white-space: nowrap; vertical-align: -.06em; }
.diamond-icon { width: .9em; height: .9em; flex: 0 0 .9em; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.amount-separator { display: inline-block; margin: 0 .18em; color: var(--muted); font-size: .78em; }
.amount-select-shell { position: relative; display: block !important; width: 100%; color: var(--purple) !important; }
.amount-select-shell > .diamond-icon { position: absolute; z-index: 1; top: 50%; left: 13px; width: 14px; height: 14px; transform: translateY(-50%); pointer-events: none; }
.amount-select-shell > select { width: 100%; padding-left: 38px !important; }

/* 老板端陪玩档案子页面；与 /yoko/ 个人主页资源完全隔离。 */
.boss-playmates-link.active { color: #fff; border-color: #7d6aa0; background: #7d6aa0; }
.boss-subpage-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.boss-subpage-heading h1 { margin: 4px 0 0; color: #493d5c; font-size: clamp(28px, 4vw, 42px); }
.boss-playmate-panel { padding: 24px; }
.boss-playmate-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 340px)); justify-content: start; }
.playmate-card.read-only .playmate-visual-thumb { cursor: zoom-in; }
.boss-playmate-contact { justify-content: flex-end; }

@media (max-width: 560px) {
  .boss-topbar .top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .boss-subpage-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .boss-playmate-panel { padding: 18px; }
  .boss-playmate-grid { grid-template-columns: 1fr; }
}

/* 桌面端横幅操作按钮固定为同一行，移动端沿用单列布局。 */
@media (min-width: 761px) {
  .hero-panel .hero-actions {
    width: 100%;
    max-width: 720px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-panel .hero-button {
    min-width: 0;
    justify-content: flex-start;
  }

  .hero-panel .hero-button b { white-space: nowrap; }
}

/* YOKO 统一细线图标：紫灰主色、雾粉与薄荷仅用于状态提示。 */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-icon { display: inline-block; width: 1.15em; height: 1.15em; flex: 0 0 1.15em; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.btn .ui-icon, .text-btn .ui-icon, .sidebar-account-button .ui-icon { width: 15px; height: 15px; flex-basis: 15px; }
.text-btn { display: inline-flex; align-items: center; gap: 3px; }
.icon-btn .ui-icon, .delete-btn .ui-icon, .media-delete .ui-icon, .media-preview-close .ui-icon { width: 16px; height: 16px; }
.icon-btn, .logout-button { color: #756486; border-color: #e1d8e7; background: rgba(255,255,255,.78); }
.icon-btn:hover, .logout-button:hover { color: #554464; border-color: #cfc1da; background: #fff; }
.user-chip > .ui-icon { width: 14px; height: 14px; color: #8a7799; }

.nav-item > span,
.mobile-nav button > span,
.hero-button > span,
.activity-icon,
.project-icon {
  transform: none !important;
  color: #705e84 !important;
  border: 1px solid rgba(117,96,139,.14);
  border-radius: 10px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(235,227,241,.94)) !important;
  box-shadow: 0 4px 12px rgba(59,44,72,.08) !important;
}
.nav-item > span::after,
.mobile-nav button > span::after,
.hero-button > span::after,
.activity-icon::after,
.project-icon::after { display: none !important; }
.nav-item > span { flex-basis: 30px; width: 30px; height: 30px; }
.nav-item > span .ui-icon { width: 16px; height: 16px; }
.nav-item:hover > span, .nav-item.active > span { color: #5e4b70 !important; border-color: rgba(255,255,255,.5); background: #f8f3fa !important; }
.mobile-nav button > span .ui-icon { width: 17px; height: 17px; }
.mobile-nav button.active > span { color: #fff !important; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.14) !important; box-shadow: none !important; }

.hero-button > span { width: 36px; height: 36px; }
.hero-button > span .ui-icon { width: 19px; height: 19px; }
.hero-button.lavender > span { color: #715e88 !important; }
.hero-button.coral > span { color: #9b617f !important; background: linear-gradient(145deg, #fff, #f1e2eb) !important; }
.hero-button.mint > span { color: #617f78 !important; background: linear-gradient(145deg, #fff, #e2ece9) !important; }
.type-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.type-switch button .ui-icon { width: 14px; height: 14px; }

.project-icon .ui-icon { width: 21px; height: 21px; }
.activity-icon .ui-icon { width: 16px; height: 16px; }
.activity-icon.expense { color: #9b617f !important; background: linear-gradient(145deg, #fff, #f1e2eb) !important; }
.activity-icon.direct { color: #617f78 !important; background: linear-gradient(145deg, #fff, #e2ece9) !important; }
.row-arrow { display: grid; place-items: center; color: #998aa6; }
.row-arrow .ui-icon { width: 16px; height: 16px; }
.search-box > span { display: grid; place-items: center; color: #806d92; text-shadow: none; }
.search-box > span .ui-icon { width: 17px; height: 17px; }
.simple-audio-play .ui-icon { width: 14px; height: 14px; }
.video-thumb-play .ui-icon { width: 15px; height: 15px; }
.playmate-no-photo .ui-icon { width: 29px; height: 29px; }
.delete-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 9px; color: #9b8ba7; }
.delete-btn:hover { color: #a45272; background: #f7edf2; }
.media-delete { color: #fff; background: rgba(75,58,88,.78); }

.empty-state::before { content: ""; width: 18px; height: 18px; margin: 5px 0 20px 5px; border: 1.5px solid #806c93; border-radius: 5px; background: transparent; transform: rotate(45deg); box-shadow: 5px 5px 0 rgba(128,108,147,.11); }
.sidebar::after, .main-content::before, .main-content::after { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 2px; transform: rotate(45deg); }
.pulse-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
