/* H5 application chrome only. Generated poster styles and admin fields remain independent. */
@font-face { font-family: "Recruit Serif"; src: url("./assets/fonts/noto-serif-sc.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.usage-monitor { margin: 24px 0; padding: 16px 0; border-block: 1px solid var(--line, #d9dce0); min-width: 0; }
.usage-monitor h2 { font-size: 18px; margin: 0; }
.usage-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.usage-filters label { display: grid; gap: 6px; font-size: 13px; flex: 1 1 150px; }
.usage-filters select { width: 100%; min-width: 0; padding: 8px; border-radius: 4px; }
.usage-employee { border-top: 1px solid var(--line, #d9dce0); padding: 12px 0; }
.usage-employee summary, .usage-history li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.usage-employee summary { cursor: pointer; min-height: 44px; }
.usage-employee summary > span, .usage-history li > span { min-width: 0; overflow-wrap: anywhere; }
.usage-employee b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.usage-employee small { display: block; font-size: 12px; color: var(--muted, #69717c); margin-top: 4px; }
.usage-breakdown { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; padding: 12px 0; }
.usage-history { padding: 0; margin: 0; max-height: 320px; overflow-y: auto; font-size: 13px; }
.usage-history li { padding: 10px 0; border-top: 1px solid var(--line, #d9dce0); }
@media (min-width: 901px) {
  .admin-shell .admin-nav { min-height: 0; overflow-y: auto; }
  .admin-shell .admin-brand, .admin-shell .admin-sidebar-foot { flex-shrink: 0; }
}
body[data-surface="h5"] { background: #18191d; --line: #383a40; --muted: #aeb0b8; }
.app-shell { width: min(480px, 100%); padding: 16px 16px calc(108px + env(safe-area-inset-bottom, 0px)); font-size: 14px; line-height: 1.55; }
.app-shell button, .app-shell input, .app-shell textarea, .app-shell select { letter-spacing: 0; }
.app-shell h1 { font-size: 20px; line-height: 1.45; }
.app-shell h2 { font-size: 20px; line-height: 1.4; }
.app-shell h3 { font-size: 16px; line-height: 1.5; }
.app-shell h1, .app-shell h2, .app-shell h3, .app-shell p, .app-shell label, .app-shell button { overflow-wrap: anywhere; }
.app-shell input, .app-shell textarea, .app-shell select { min-width: 0; max-width: 100%; font-size: 16px; }
.app-shell .hero, .app-shell .account-card, .app-shell .suggestion, .app-shell .page-block,
.app-shell .form-card, .app-shell .result-card, .app-shell .refill-card, .app-shell .boss-lock {
  border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 16px 0;
}
.app-shell .hero { padding-top: 0; border-bottom: 1px solid var(--line); }
.app-shell .brand-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 12px; align-items: start; }
.app-shell .logo { width: 44px; height: 44px; min-width: 44px; border-radius: 8px; font-size: 18px; background: #f3c36e; }
.merchant-logo { object-fit: contain; background: #fff !important; }
.app-shell .brand-name { min-width: 0; }
.app-shell .staff-code { grid-column: 2; margin-left: 0; text-align: left; letter-spacing: 0; font-size: 12px; color: var(--muted); }
.app-shell .eyebrow { letter-spacing: 0; margin-top: 4px; font-size: 12px; color: var(--muted); }
.app-shell .metric-row { gap: 0; margin: 11px -3px -3px; }
.app-shell .metric-row > * { margin: 3px; }
.app-shell .pill { padding: 5px 8px; font-size: 12px; line-height: 1.4; font-weight: 600; }
.app-shell .suggestion { margin: 0; border-bottom: 1px solid var(--line); }
.app-shell .suggestion p { font-size: 16px; line-height: 1.65; margin: 10px 0 14px; }
.app-shell .small-title { font-size: 13px; letter-spacing: 0; }
.app-shell .small-title span { font-size: 11px; }
.app-shell .section { margin-top: 22px; }
.app-shell .section-label { font-size: 13px; letter-spacing: 0; }
.app-shell .menu-card { grid-template-columns: 26px minmax(0, 1fr) 14px; gap: 4px 10px; padding: 14px 12px; border-radius: 8px; box-shadow: none; background: #24252b; }
.app-shell .menu-num { grid-row: 1 / 3; writing-mode: horizontal-tb; font-size: 18px; }
.app-shell .menu-main { grid-column: 2; }
.app-shell .menu-main p { font-size: 12px; line-height: 1.55; margin-top: 3px; }
.app-shell .menu-card .cost { grid-column: 2; font-size: 12px; font-weight: 500; }
.app-shell .menu-card .chev { grid-column: 3; grid-row: 1 / 3; font-size: 22px; }
.app-shell .feature-card { position: relative; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 12px; background: #24252b; border-radius: 8px; box-shadow: none; }
.app-shell .feature-card .thumb { grid-row: 1; align-self: center; width: 64px; height: 86px; border-radius: 6px; overflow: hidden; }
.app-shell .feature-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.app-shell .feature-card .cost { position: absolute; right: 12px; top: 12px; font-size: 12px; }
.app-shell .feature-card h3 { padding-right: 46px; }
.app-shell .feature-primary-actions { display: flex; justify-content: center; width: 100%; }
.app-shell .custom-closed { color: #edc56f; margin: 8px 0 0; font-size: 12px; }
.admin-shell .recruit-photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px; }
.admin-shell .recruit-photo-grid figure { margin:0;position:relative; }
.admin-shell .recruit-photo-grid img { width:100%;aspect-ratio:1;object-fit:cover; }
.admin-shell .recruit-photo-grid button { position:absolute;right:4px;top:4px;min-width:36px;min-height:36px; }
.app-shell .feature-copy p { font-size: 13px; }
.app-shell .feature-card.is-selected { border-color: var(--gold); }
.app-shell .card-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
.app-shell .card-actions button { flex: 1 1 88px; }
.app-shell .tag { border-radius: 4px; }
.app-shell .primary, .app-shell .secondary, .app-shell .ghost, .app-shell .publish, .app-shell .mini-btn {
  min-height: 44px; height: auto; padding: 10px 12px; font-size: 14px; line-height: 1.5; font-weight: 600; border-radius: 8px; white-space: normal; letter-spacing: 0;
}
.app-shell .primary { background: #f3c36e; color: #242019; }
.app-shell .feature-card .card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.app-shell .feature-card .card-actions .mini-btn { flex: 0 1 auto; min-height: 32px; padding: 5px 10px; font-size: 12px; line-height: 1.6; border-radius: 5px; }
.app-shell .feature-card .feature-copy p { margin: 4px 0; font-size: 12px; line-height: 1.5; }
.app-shell .feature-card .tag-row { margin-top: 5px; gap: 4px; }
.app-shell .feature-card .tag { font-size: 10px; padding: 2px 5px; }
.app-shell .back { min-height: 44px; margin-bottom: 8px; font-size: 14px; align-items: center; }
.app-shell .space-row { flex-wrap: wrap; gap: 10px; }
.app-shell .space-row > div { min-width: 0; flex: 1 1 200px; }
.app-shell .space-row > .pill { flex-shrink: 0; }
.app-shell .page-sub { font-size: 13px; }
.app-shell .field-pair { flex-wrap: wrap; gap: 12px; }
.app-shell .field-pair > * { flex: 1 1 140px; min-width: 0; }
.app-shell .account-card { grid-template-columns: minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.app-shell .account-card h3 { font-size: 18px; line-height: 1.5; margin-bottom: 6px; }
.app-shell .account-card p { font-size: 12px; margin-top: 3px; }
.app-shell .quota { display: flex; align-items: baseline; gap: 10px; text-align: left; }
.app-shell .quota strong { font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.app-shell .quota span { font-size: 12px; }
.app-shell .result-card { padding-top: 12px; }
.app-shell .copy-card { padding: 14px 0; border: 0; border-radius: 0; background: transparent; }
.app-shell .copy-card p { color: #d6d7dd; line-height: 1.75; }
.app-shell .copy-card .tags { color: var(--gold); }
.app-shell .output-summary, .app-shell .included-box, .app-shell .warning { padding: 12px; border-radius: 6px; font-size: 13px; }
.app-shell .output-summary { border-color: #3d7768; }
.app-shell .save-tip { font-size: 12px; margin: 10px 0 14px; }
.app-shell .result-secondary-actions { display: grid; gap: 10px; margin-top: 16px; }
.app-shell .fallback-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; line-height: 1.5; }
.app-shell .fallback-row button { min-height: 44px; padding: 8px; }
.app-shell .refill-card { border-top: 1px solid var(--line); }
.app-shell .refill-summary { font-size: 15px; line-height: 1.5; gap: 12px; }
.app-shell .refill-summary span { min-width: 0; }
.app-shell .refill-summary em { flex-shrink: 0; font-size: 12px; }
.app-shell .refill-panel textarea { display: block; min-height: 100px; margin-bottom: 12px; }
.app-shell .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.app-shell .actions button { flex: 1 1 120px; min-width: 0; }
.app-shell .bottom-nav { bottom: 0; width: min(480px, 100%); grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); border-radius: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: #24252b; border: 0; border-top: 1px solid var(--line); box-shadow: none; }
.app-shell .bottom-nav button { min-height: 48px; padding: 8px; font-size: 13px; border-radius: 6px; }
.app-shell .sticky-generate { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); grid-template-columns: minmax(0, 1fr); border-radius: 8px; background: #24252b; padding: 12px; }
.app-shell .sticky-generate > div { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 8px; text-align: center; }
.app-shell .sticky-generate strong { margin: 0; }
.app-shell .sticky-generate .primary { white-space: normal; width: min(280px, 100%); }
.app-shell .drawer-panel, .app-shell .progress-panel { width: min(480px, 100%); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain; border-radius: 8px 8px 0 0; background: #24252b; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
.app-shell .drawer-panel h3 { font-size: 18px; line-height: 1.5; }
.app-shell .drawer-panel > * + * { margin-top: 12px; }
.app-shell .drawer-panel > .wide { display: block; }
.app-shell .drawer-panel .notice { font-size: 13px; line-height: 1.65; }
.app-shell .drawer-panel textarea { width: 100%; }
.app-shell .drawer-panel .copy-card { max-height: 190px; overflow-y: auto; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.app-shell .progress-panel::before { display: none; }
.app-shell .browser-guide { min-height: calc(100vh - 32px); justify-content: flex-start; gap: 16px; padding-top: 12px; text-align: left; }
.app-shell[data-view="browserGuide"] { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.app-shell .browser-guide h1 { font-size: 24px; margin-top: 8px; }
.app-shell .browser-guide > p { font-size: 14px; line-height: 1.75; }
.app-shell .guide-corner { display: flex; justify-content: flex-end; align-items: center; gap: 12px; width: 100%; color: var(--gold); font-size: 13px; padding-bottom: 28px; }
.app-shell .guide-arrow { font-size: 64px; line-height: 1; }
.app-shell .guide-brand { display: flex; gap: 12px; align-items: center; align-self: stretch; }
.app-shell .guide-brand p { min-width: 0; font-weight: 600; font-size: 14px; }
.app-shell .guide-brand .logo { flex-shrink: 0; }
.app-shell .guide-box { width: 100%; border: 0; border-radius: 0; background: transparent; padding: 8px 0; }
.app-shell .guide-box > div { gap: 12px; align-items: center; }
.app-shell .guide-box strong { flex-shrink: 0; width: 28px; height: 28px; font-size: 13px; }
.app-shell .guide-link-label { display: block; width: 100%; font-size: 12px; color: var(--muted); }
.app-shell .guide-link-label textarea { display: block; margin-top: 8px; width: 100%; font-size: 13px; overflow-wrap: anywhere; }
.admin-shell .merchant-entry-panel { min-width: 0; }
.admin-shell .merchant-entry-grid { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); gap: 32px; margin-top: 20px; }
.admin-shell .merchant-entry-grid > div { min-width: 0; }
.admin-shell .logo-preview { width: 96px; height: 96px; display: grid; place-items: center; border: 1px solid #d7dbe0; border-radius: 8px; margin-bottom: 12px; font-size: 12px; color: #68717c; background: #fff; }
.admin-shell .logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.admin-shell .merchant-entry-panel .field { display: grid; gap: 8px; }
.admin-shell .merchant-entry-panel input, .admin-shell .merchant-entry-panel select { width: 100%; min-width: 0; background: #fff; color: #232832; border: 1px solid #cbd2da; border-radius: 6px; padding: 10px; }
.admin-shell .merchant-entry-panel button:disabled { opacity: 0.5; cursor: default; }
.admin-shell .merchant-qr-settings > button { margin-top: 14px; }
.admin-shell .merchant-qr-preview { display: grid; justify-items: start; gap: 12px; margin-top: 20px; }
.admin-shell .merchant-qr-preview img { width: 240px; max-width: 100%; height: auto; aspect-ratio: 1; border: 1px solid #ddd; }
.admin-shell .qr-download { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 44px; }
.admin-shell .entry-url { overflow-wrap: anywhere; color: #18659a; font-size: 13px; }
.admin-shell .entry-status { margin-top: 12px; min-height: 24px; font-size: 14px; }
@media (max-width: 600px) {
  .admin-shell .merchant-entry-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 359px) {
  .app-shell { padding-left: 12px; padding-right: 12px; }
  .app-shell .feature-card { grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
  .app-shell .feature-card .thumb { width: 52px; font-size: 12px; }
}
#app.app-shell #owner-generation-scope .field {
  display: block;
  margin-bottom: 12px;
}
#app.app-shell #owner-generation-scope .field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

#app.app-shell .record-list { display: grid; gap: 12px; margin-top: 16px; }
#app.app-shell .record-card { margin: 10px 0 0; padding: 14px; min-width: 0; border-radius: 8px; }
#app.app-shell .record-card h3 { margin: 8px 0 6px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#app.app-shell .record-card .note-head { gap: 6px; flex-wrap: wrap; font-size: 12px; }
#app.app-shell .record-card p { margin: 6px 0; font-size: 13px; line-height: 1.55; }
#app.app-shell .record-card .actions { display: flex; align-items: center; margin-top: 10px; gap: 8px; }
#app.app-shell .record-card .actions button:not(.record-delete) { flex: 1 1 120px; }
#app.app-shell .record-card .actions .record-delete { flex: 0 0 40px; width: 40px; padding: 8px; display: inline-flex; align-items: center; justify-content: center; }
#app.app-shell .record-card .actions button, #app.app-shell .record-footer button { min-height: 40px; font-size: 13px; padding: 8px 12px; }
#app.app-shell .record-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
#app.app-shell .record-meta, #app.app-shell .record-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
#app.app-shell .record-footer { margin-top: 12px; }
#app.app-shell .record-draft-actions { display: flex; gap: 8px; align-items: center; }
#app.app-shell .record-footer .record-delete { width: 40px; height: 40px; padding: 8px; color: #ffb4a6; display: inline-flex; align-items: center; justify-content: center; }
#app.app-shell .record-delete svg { width: 18px; height: 18px; }
#app.app-shell .record-card .note-head .note-header-delete { margin-left: auto; flex: 0 0 36px; width: 36px; height: 36px; padding: 7px; display: inline-flex; align-items: center; justify-content: center; color: #ffb4a6; }
#app.app-shell .record-platform[data-platform="douyin"] { color: #86d9da; }
#app.app-shell .record-platform[data-platform="xhs"] { color: #ffb4a6; }
#app.app-shell #comment-refill { padding: 14px 0; }
#app.app-shell #comment-refill label { display: block; margin: 12px 0 6px; font-size: 13px; }
#app.app-shell #comment-refill select { width: 100%; min-width: 0; }
#app.app-shell #comment-refill textarea { margin-bottom: 10px; }
#app.app-shell label.note-authorship { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 13px; line-height: 1.5; }
#app.app-shell label.note-authorship input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; }
#app.app-shell .comment-progress { text-align: center; }
#app.app-shell .comment-spinner { display: block; width: 28px; height: 28px; margin: 0 auto 16px; border: 3px solid rgba(30, 136, 92, .18); border-top-color: #1e885c; border-radius: 50%; animation: comment-spin .8s linear infinite; }
@keyframes comment-spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) {
  #app.app-shell .record-footer { flex-wrap: wrap; }
}
