.login-head{text-align:center;margin-bottom:36px}.login-head h1{font-size:26px;font-weight:500;letter-spacing:3px}.login-head p{font-size:12px;color:var(--muted)}.login-form .field{display:block;color:var(--muted);font-size:12px;margin:18px 0 8px}.sync-error{color:var(--red)}.confirm-detail{padding:16px;background:var(--light);border-radius:14px;margin-top:20px;font-size:12px;line-height:1.8}.sync-banner{margin:0 0 16px;line-height:1.6;font-size:12px;color:var(--red)}
.sync-banner p{margin:0 0 8px}

.order-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.order-actions button{font-size:12px}.confirm-check{display:flex;gap:8px;align-items:flex-start;margin-top:18px;font-size:12px;line-height:1.7;color:var(--ink)}.confirm-check input{flex-shrink:0;margin-top:4px}.page-head h1,.member-info,.member-money{overflow-wrap:anywhere}

.password-field{position:relative}.password-field .input{padding-right:52px}.password-toggle{position:absolute;right:0;top:0;height:100%;width:48px;padding:0;color:var(--green);display:flex;align-items:center;justify-content:center}.password-toggle svg{width:20px;height:20px}

.order-member-selected{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;height:auto}.order-member-selected .chip{flex-shrink:0}.order-member-results{max-height:280px;overflow-y:auto;overscroll-behavior:contain}

.work-list{margin-top:12px}.stat{text-align:left}.report-link{color:var(--green)}.order-photo{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto}.record small{white-space:pre-wrap}

.work-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.work-stats .stat{min-width:0;padding:12px 4px;text-align:center}.work-stats .stat label{white-space:nowrap}.work-stats .stat strong{font-size:22px;line-height:1.2;margin:6px 0 0}

.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}

.balance-actions button:only-child{background:var(--white);color:var(--green);border:0}

.order-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:16px 0 12px}.order-tabs .chip{min-width:0;padding:10px 0;white-space:nowrap}.order-filter-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.order-filter-bar .helper{margin:0}.order-filter-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);margin:0 0 16px}.order-filter-summary button{flex-shrink:0;color:var(--green)}

.order-card{position:relative;border-bottom:1px solid var(--line)}.order-card:last-child{border-bottom:0}.order-card .record{border-bottom:0}.order-card-actions{position:absolute;top:12px;right:0;display:flex;justify-content:flex-end}.order-card-actions .chip{min-height:40px;padding:10px 20px}

.settings-row{width:100%;text-align:left;text-decoration:none;color:inherit}

.order-card-detail .record{align-items:flex-start}.order-card-detail .member-money{flex-shrink:0;max-width:40%;overflow-wrap:anywhere}.order-card-detail.order-card-assignable .member-money{padding-top:48px}

.order-card-home.order-card-assignable .record{padding-right:76px;align-items:flex-start}

/* Shared mobile refinements for lists, forms and navigation. */

body{font-variant-numeric:tabular-nums}
.list{border-radius:16px}.stat,.quick{border-radius:14px}.input,.search,.primary,.secondary{border-radius:10px}
.member-info small,.record small,.member-money small{font-size:12px;line-height:1.5;margin-top:4px}
.member-info strong,.record strong{font-size:14px;line-height:1.45}.member,.record{padding:16px 0;gap:12px}
.chip{border-radius:10px;font-size:12px;color:var(--muted)}.order-tabs{gap:8px}.order-tabs .chip{padding:10px 0}
.helper,.page-head p,.section-title button,.stat label,.nav button{font-size:12px}
.sheet label.field,.login-form .field{color:var(--muted);font-size:13px;margin:16px 0 8px}.sheet{border-radius:20px 20px 0 0}.sheet-head{margin-bottom:20px}
.nav{backdrop-filter:none;background:var(--white)}.input:focus-visible,.search input:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.order-card-detail.order-card-assignable .member-money{padding-top:48px}
@media(min-width:600px){.sheet{border-radius:20px}}

/* 花房手账：用数据和订单作为视觉重心。 */
.content{padding-left:20px;padding-right:20px}
.content--secondary{padding-bottom:calc(24px + env(safe-area-inset-bottom))}

.brand-mark{width:36px;height:36px}.brand strong{letter-spacing:1px}.eyebrow{font-size:10px;letter-spacing:.8px}
.greeting{margin:24px 0 28px}.greeting small{font-size:13px}.greeting h1{font-size:24px;line-height:1.45;letter-spacing:0}.greeting h1 span{font-family:inherit;font-style:normal;color:var(--green)}
.page-head{margin:8px 0 24px}.page-head h1{font-size:28px}.page-head p{font-size:13px;line-height:1.5}
.section-title{margin:28px 0 12px}.section-title h2{font-size:16px;letter-spacing:0}.section-title button{color:var(--green)}
.work-stats{gap:0;background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden}.work-stats .stat{border:0;border-radius:0;background:transparent;padding:16px 4px}.work-stats .stat:nth-child(-n+3){border-bottom:1px solid var(--line)}.work-stats .stat:not(:nth-child(3n)){border-right:1px solid var(--line)}.work-stats .stat strong{font-size:24px;margin-top:8px}.work-stats .stat:first-child strong{color:var(--green)}
.work-list{margin-top:16px}.quick-actions{gap:12px;margin:0 0 20px}.quick{min-height:76px;padding:12px;gap:8px;flex-direction:row;justify-content:center;font-size:14px}.quick svg{width:20px;height:20px}
.search{margin:20px 0;background:var(--white);padding:0 16px}.search input{font-size:14px;height:48px}.search input::placeholder{color:var(--muted)}
.list{padding:0 16px}.member,.record{min-height:68px}.member-money,.value{font-variant-numeric:tabular-nums}.member-money small{overflow-wrap:anywhere}
.order-tabs .chip{min-height:40px}.order-filter-bar{margin:16px 0}.order-card-actions .chip{border-radius:10px}
.hero{min-height:150px;padding:24px;background:var(--light)}.hero .amount{margin-top:12px}.hero .hero-bottom{margin-top:16px}.balance-card{padding:24px;text-align:left}.balance-card strong{margin:8px 0 20px}.balance-actions{max-width:100%}.profile{padding-bottom:24px}
.nav{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.nav button{gap:4px;min-height:48px}.nav svg{width:20px;height:20px}
.sheet-head h2{font-size:20px}.sheet .input{min-height:48px}.primary{min-height:48px}.settings-row{min-height:76px}



.order-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.order-mode legend { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.order-mode label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}
.order-mode input, #order-create-payment input[type="checkbox"] { accent-color: var(--green); }
.order-mode label:has(input:checked) { border-color: var(--green); background: var(--light); }
.disclosure { margin-top: 12px; }
.disclosure summary {
  min-height: 44px;
  padding: 12px 0;
  color: var(--green);
  cursor: pointer;
}
.disclosure summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.disclosure summary[hidden] { display: none; }
#order-more .order-actions button { margin: 0; min-height: 44px; }
#order-more button:not([data-type="refund"], [data-type="cancel"]) { color: var(--green); }

.ledger-summary strong { margin-bottom: 12px; }
.ledger-report-date { margin: 12px 0; }


/* Keep the working prototype aligned with the mini-program layout. */
.login-head { margin-bottom: 24px; }
.login-head h1 { font-size: 24px; letter-spacing: 0; }


.home-heading { margin: 16px 0 12px; }
.page-head { gap: 12px; }
.page-head h1 { min-width: 0; font-size: 24px; font-weight: 600; }
.primary.compact-action { flex: 0 0 auto; width: auto; min-height: 44px; margin: 0; padding: 10px 12px; white-space: nowrap; }
.compact-action span { margin-right: 2px; }
.secondary-action { min-height: 44px; border-color: var(--line); color: var(--ink); }
.section-title { margin-top: 24px; }
.list, .stat, .quick, .input, .search, .primary, .secondary, .chip, .order-tabs .chip, .order-card-actions .chip { border-radius: var(--radius); }
.work-stats { border-radius: 0; }
.work-stats .stat { padding: 10px 4px; }
.work-stats .stat:active { background: var(--light); }
.quick { min-height: 46px; }
.balance-card { padding: 16px; border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.balance-card label { color: var(--muted); }
.balance-card strong { margin: 8px 0 12px; overflow-wrap: anywhere; }
.balance-card.ledger-summary { border-color: var(--ink); color: var(--white); background: var(--ink); }
.ledger-summary label { color: #d6d4cd; }
.balance-actions button:only-child { border: 1px solid var(--line); }
.nav { padding: 0 8px env(safe-area-inset-bottom); }
.nav button { min-height: 52px; font-size: 11px; }
.sheet { background: var(--white); }
.sheet .input { background: var(--bg); }
.sheet .close { width: 44px; height: 44px; }
.sheet-head { padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.disclosure summary { border-bottom: 1px solid var(--line); }
.record small.attention { color: var(--red); }

/* The workbench follows the rhythm of the shop's order slips. */
:root {
  --ink: #242620;
  --muted: #62635a;
  --bg: #f6f5f0;
  --light: #eeeee5;
  --line: #e0e0d7;
  --folio: #30382d;
  --folio-text: #f7f7f0;
  --folio-muted: #d4dbcf;
  --radius: 10px;
}
.workbench {
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  overflow: visible;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
}
.workspace-rail {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.rail-brand {
  display: block;
  margin: 0;
  padding: 8px 20px;
}
.rail-brand .flower-art-logo { width: 88px; }
.rail-account { display: none; }
.workspace-content {
  min-height: 0;
  padding: 24px 16px 88px;
  width: 100%;
  margin: 0 auto;
}
.workspace-content .page-head { margin: 0 0 24px; }
.workspace-content .page-head h1,
.workbench-heading h1 {
  margin: 0;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.035em;
}
.workbench-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.workbench-heading .flower-art-logo { display: none; }
.workbench-heading h1 {
  color: var(--folio);
  font-family: "Songti SC", "Noto Serif CJK SC", STSong, serif;
  letter-spacing: normal;
}
.workbench-heading time { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.queue-actions { display: flex; align-items: center; gap: 12px; }
.workbench .queue-actions .compact-action { min-height: 44px; color: var(--folio-text); }
.workbench-grid { display: grid; gap: 24px; }
.workbench-queue, .workbench-aside { min-width: 0; }
.workbench .section-title { margin: 24px 0 12px; }
.workbench .section-title button { min-height: 36px; }
.workbench .section-title .home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  white-space: nowrap;
}
.home-chevron {
  align-self: center;
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  margin-right: 3px;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: rotate(45deg);
}
.workbench .work-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--radius);
}
.workbench .work-stats .stat { padding: 12px 4px; }
.workbench .work-stats .stat label { display: block; cursor: pointer; }
.workbench .work-stats .stat strong { margin: 4px 0 0; font-size: 22px; }
.workbench .work-stats .stat:first-child { background: var(--light); }
.workbench .work-list { margin-top: 0; padding: 0 12px; }
.workbench .order-card-home .record { gap: 12px; padding-top: 14px; padding-bottom: 14px; align-items: flex-start; }
.workbench .order-card-home.order-card-assignable .record { padding-right: 60px; }
.workbench .order-card-actions .chip { min-height: 40px; padding: 8px 12px; }
.delivery-stamp {
  display: block;
  flex: 0 0 52px;
  border-right: 1px solid var(--line);
  color: var(--muted);
}
.record .delivery-stamp strong { font-size: 15px; font-weight: 600; }
.record .delivery-stamp small { margin-top: 2px; font-size: 11px; }
.attention { color: var(--red); }
.stage-name { font-weight: 600; color: var(--ink); }
.workbench .member:hover, .workbench .record:hover { background: var(--bg); }
.day-takings {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--folio);
  color: var(--folio-text);
}
.day-takings-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.day-takings-head > span { font-size: 13px; }
.day-takings-head button { min-height: 36px; padding: 0; color: var(--folio-muted); font-size: 12px; }
.day-takings > strong { display: block; margin: 8px 0 20px; font-size: 36px; font-weight: 500; letter-spacing: -.04em; overflow-wrap: anywhere; }
.day-takings dl { display: flex; gap: 20px; margin: 0; padding-top: 12px; border-top: 1px solid #ffffff30; }
.day-takings dt { color: var(--folio-muted); font-size: 11px; }
.day-takings dd { margin: 2px 0 0; font-size: 14px; }
.recent-members .member { min-height: 60px; padding: 12px 0; }
.recent-members .avatar { width: 32px; height: 32px; }
.recent-members .chevron { display: none; }
.member-toolbar, .order-toolbar { display: flex; gap: 8px; align-items: stretch; margin: 0 0 16px; }
.member-toolbar .search, .order-toolbar .search { flex: 1; min-width: 0; margin: 0; }
.toolbar-action { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; }
.toolbar-action svg { width: 17px; height: 17px; }
.workbench .order-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
.workbench .order-tabs .chip { min-height: 40px; padding: 8px 4px; }
.workspace-content .balance-card.ledger-summary { background: var(--folio); border-color: var(--folio); }
.workspace-content .ledger-summary strong { font-size: clamp(34px, 5vw, 48px); }
.workbench .nav { width: 100%; left: 0; right: 0; z-index: 5; border-radius: 0; }
.workbench .nav button { flex-direction: column; gap: 4px; }
.workbench .profile { text-align: left; }
.workbench .profile .avatar { margin: 0; }

@media (min-width: 760px) {
  .workbench { display: grid; grid-template-columns: 188px minmax(0, 1fr); }
  .workspace-rail {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100dvh;
    padding: 24px 16px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .rail-brand { padding: 8px 12px 24px; }
  .rail-brand .flower-art-logo { width: 112px; margin: 0 auto; }
  .workbench .nav {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
  }
  .workbench .nav button {
    justify-content: flex-start;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border-top: 0;
    border-left: 2px solid transparent;
    border-radius: 4px;
    font-size: 14px;
  }
  .workbench .nav button.active { border-left-color: var(--ink); background: var(--light); }
  .rail-account { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding: 16px 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
  .rail-account small { color: var(--muted); }
  .workspace-content { max-width: 1040px; padding: 36px 32px 64px; }
  .workspace-home { max-width: 1344px; }
  .workspace-order-detail, .workspace-detail, .workspace-settings, .workspace-staff { max-width: 860px; }
  .workbench .work-stats .stat { padding: 16px 4px; }
  .workbench .order-tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .workbench .order-card-home .record { gap: 16px; }
  .workbench .work-list { padding: 0 16px; }
}
@media (min-width: 1050px) {
  .workbench { grid-template-columns: 208px minmax(0, 1fr); }
  .workspace-content { padding-left: 40px; padding-right: 40px; }
  .workbench-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, .53fr); gap: 24px; }
  .day-takings { padding: 24px; }
}
.workbench .primary { background: var(--folio); }
.workbench .primary:hover { background: #3c4738; }
.workbench .work-stats .stat:first-child { background: #eef1e7; }
.workbench .work-stats .stat:first-child strong { color: #354431; }
.delivery-stamp { border-right-color: #dce2d6; }
@media (min-width: 1220px) {
  .workbench .work-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .workbench .work-stats .stat { border-bottom: 0; border-right: 1px solid var(--line); }
  .workbench .work-stats .stat:last-child { border-right: 0; }
}
.workbench .order-list .order-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, auto);
  grid-template-areas: "subject money" "delivery money" "progress money";
  gap: 4px 12px;
}
.order-record .order-subject { grid-area: subject; }
.order-record .order-delivery { grid-area: delivery; min-width: 0; }
.order-record .order-progress { grid-area: progress; min-width: 0; }
.workbench .order-list .member-money { grid-area: money; max-width: none; align-self: start; }
.workbench .order-list .order-record > span > small:first-child { margin-top: 0; }
@media (min-width: 1050px) {
  .workbench .order-list .order-record {
    grid-template-columns: minmax(140px, 1.4fr) minmax(130px, 1fr) minmax(105px, .9fr) minmax(130px, auto);
    grid-template-areas: "subject delivery progress money";
    gap: 16px;
  }
  .workbench .order-list .order-card { min-height: 78px; }
  .workbench .nav button.active::after { display: none; }
}

.stage-tag {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--folio);
  background: var(--light);
  font-size: 11px;
  font-weight: 600;
}
.stage-tag--todo { background: #e7ebdc; }
.workbench .order-tabs { margin-bottom: 12px; }
.workbench .member-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 16px;
  padding-bottom: 0;
}
.workbench .member-profile .avatar { width: 40px; height: 40px; font-size: 16px; }
.workbench .member-profile h1 { margin: 0; overflow-wrap: anywhere; }
.workbench .member-profile p { margin: 4px 0 0; }
.member-profile .chip { flex-shrink: 0; }
.staff-row { flex-wrap: wrap; }
.staff-row .member-info { flex-basis: calc(100% - 52px); }
.staff-row .chip { flex-shrink: 0; }
.workspace-content .member-balance,
.workspace-content .order-summary { background: #edf0e5; border-color: #dbe0d2; }
.order-summary label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ledger-breakdown {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid #ffffff36;
  font-size: 14px;
}
.ledger-breakdown dt { color: var(--folio-muted); font-size: 11px; }
.ledger-breakdown dd { margin: 2px 0 0; }
.ledger-report-date { justify-content: space-between; }
.ledger-explainer { padding: 12px 14px; border-left: 2px solid var(--line); background: var(--light); }

@media (max-width: 759px) {
  .workspace-content { padding: 16px 18px 88px; }
  .workspace-rail { border: 0; background: transparent; }
  .workspace-rail .rail-brand { display: none; }
  .workbench-heading .flower-art-logo { display: block; width: 82px; mix-blend-mode: multiply; }
  .workbench-heading > div { text-align: right; }
  .workbench-heading h1 { font-size: 20px; }
  .workbench .work-stats .stat--focus { background: #eef1e7; }
  .workbench .work-stats .stat:not(.stat--focus) strong { font-size: 18px; }
  .workbench .section-title { margin: 20px 0 8px; }
  .workbench .delivery-stamp { flex-basis: 46px; }
  .day-takings { display: none; }
  .workbench .order-list .member-money small { max-width: 100px; }
}
