.account-placeholder{box-sizing:border-box;width:min(760px,calc(100% - 40px));margin:48px auto;padding:28px;border:1px solid #dce2eb;border-radius:16px;background:#fff}.account-placeholder p{line-height:1.7}.account-placeholder a{display:inline-block;padding:12px 16px;color:white;background:#0069d7;border-radius:9px;text-decoration:none}
@scope (.workspace-shell) {

    :scope {
      --ink: #172033;
      --text-meta: .8125rem;
      --text-small: .875rem;
      --text-body: 1rem;
      --muted: #73809a;
      --soft: #a0abc0;
      --line: rgba(119, 137, 168, .18);
      --panel: rgba(255, 255, 255, .77);
      --panel-solid: #fdfdff;
      --blue: #3d70f5;
      --blue-deep: #2452d3;
      --cyan: #36bde9;
      --purple: #9064ef;
      --green: #2fb779;
      --orange: #ed9a3d;
      --red: #ee6c73;
      --small-shadow: 0 10px 30px rgba(58, 74, 108, .08);
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", sans-serif;
      color: var(--ink);
      background: #e9eef7;
      font-synthesis: none;
    }

    * { box-sizing: border-box; }
    html { min-width: 320px; scroll-behavior: smooth; }
    :scope { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #e9eef7; }
    button, input { font: inherit; }
    button { cursor: pointer; }
    button:focus-visible, input:focus-visible { outline: 3px solid rgba(61, 112, 245, .28); outline-offset: 2px; }

    .main { grid-row: 2; min-width: 0; padding: 28px clamp(16px, 1.6vw, 32px) 36px; }
    .hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 26px; }
    .hero h1 { margin: 9px 0 9px; color: #1b2942; font-size: clamp(2rem, 1.5rem + 1.4vw, 3rem); line-height: 1.13; letter-spacing: -.045em; font-weight: 760; }
    .hero p { max-width: 72ch; margin: 0; color: #61718b; font-size: 1.0625rem; line-height: 1.65; }
    .status-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
    .status-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid rgba(125,142,171,.14); border-radius: 13px; background: rgba(255,255,255,.65); box-shadow: 0 7px 20px rgba(77,94,128,.04); }
    .status-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; }
    .status-icon svg { width: 17px; height: 17px; }
    .status-icon.blue { background: #edf2ff; color: #537af1; }

    .status-icon.paused { background: #fff1dc; color: #a26724; }
    .status-card-copy { min-width: 0; }
    .status-card-label { color: #93a0b3; font-size: var(--text-meta); line-height: 1.4; }
    .status-card-value { margin-top: 3px; color: #50617e; font-size: var(--text-body); font-weight: 700; overflow-wrap: anywhere; }

    .workspace-grid { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(300px, .84fr); gap: 16px; align-items: start; }
    .panel { min-width: 0; border: 1px solid rgba(125,142,171,.15); border-radius: 16px; background: var(--panel); box-shadow: var(--small-shadow); }
    .panel-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 19px 20px 15px; border-bottom: 1px solid rgba(125,142,171,.12); }
    .panel-kicker { margin-bottom: 4px; color: #8f9bb0; font-size: var(--text-meta); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
    .panel-title { margin: 0; color: #394b68; font-size: 1.25rem; letter-spacing: -.015em; font-weight: 750; }
    .panel-subtitle { margin: 5px 0 0; color: #63738d; font-size: var(--text-small); line-height: 1.45; }
    .panel-action { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 0; border-radius: 7px; background: rgba(239,243,251,.7); color: #70809d; font-size: var(--text-small); white-space: nowrap; }
    .panel-action:hover { background: #edf1fb; color: #5270bf; }
    .panel-action svg { width: 13px; }

    .redeem-panel { overflow: hidden; }

    .form-wrap { padding: 21px 20px 20px; }
    .field-group { margin-bottom: 17px; }
    .field-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #596b88; font-size: var(--text-body); font-weight: 700; }
    .field-label span { color: #6b7b94; font-size: var(--text-small); font-weight: 500; }
    .input-shell { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1px solid #dfe5f0; border-radius: 10px; background: rgba(255,255,255,.78); transition: .2s ease; }
    .input-shell:focus-within { border-color: #86a5fa; box-shadow: 0 0 0 3px rgba(87,126,237,.1); }
    .input-shell > svg { width: 16px; flex: 0 0 auto; color: #9aa7bc; }
    .input-shell input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #33425d; font-size: var(--text-body); }

    .input-shell input::placeholder { color: #b1bac9; }
    .input-action { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border: 0; border-radius: 6px; background: #f0f3fb; color: #6c7fa4; font-size: var(--text-small); font-weight: 700; }
    .input-action:hover { background: #e6ebf8; color: #4d6fc0; }
    .input-action svg { width: 12px; }

    .primary-btn { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 46px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(100deg, #557cf1, #6e62e8); box-shadow: 0 10px 18px rgba(84,111,226,.2); font-size: var(--text-body); font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
    .primary-btn:hover { transform: translateY(-1px); box-shadow: 0 13px 22px rgba(84,111,226,.27); }
    .primary-btn:active { transform: translateY(0); }
    .primary-btn:disabled { cursor: not-allowed; opacity: .72; transform: none; }
    .primary-btn svg { width: 15px; }
    .form-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 11px; color: #677892; font-size: var(--text-meta); line-height: 1.5; }
    #receiptPanel { margin: 16px 0; font-size: var(--text-small); }
    #updateAccount[hidden] { display: none; }
    #updateAccount { min-height: 44px; max-width: 100%; margin-top: 10px; padding: 8px 14px; border-radius: 8px; background: #234b98; color: #fff; }
    #updateAccount:hover { background: #173b80; }
    #invoiceActions { margin-top: 12px; }
    #invoiceActions .input-action { min-height: 44px; padding: 8px 14px; color: #245a42; background: #deeee4; }
    #invoiceActions [hidden], #invoiceMessage:empty { display: none; }
    #receiptInvoice { min-height: 44px; margin-inline-start: 6px; }
    #receiptInvoice[hidden] { display: none; }
    .form-note svg { width: 13px; flex: 0 0 auto; margin-top: 1px; color: #8ba1dc; }
    .form-message { display: none; overflow-wrap: anywhere; margin: -3px 0 14px; padding: 9px 10px; border-left: 3px solid #a32a22; border-radius: 8px; color: #821e18; background: #fff0ee; font-size: var(--text-small); line-height: 1.5; font-weight: 600; }
    .form-message.show { display: block; }
    .form-message.success { color: #327151; background: #eaf8f0; border-color: transparent; }
    .form-note.issue, #receiptOutcomeLink { color: #8c221b; font-weight: 700; }
    #receiptProgress.issue { padding-left: 8px; border-left: 3px solid #a32a22; }
    #receiptProgress.success, #receiptProgress.success + #receiptOutcomeLink { color: #14603d; font-weight: 700; }

    #accountFlow[hidden] { display: none; }
    #accountFlow { margin-top: 16px; }
    #accountExpiryNotice { margin: 12px 0; padding: 10px 12px; border-left: 3px solid #b42318; border-radius: 6px; color: #a3221a; background: #fff2f0; font-size: var(--text-body); font-weight: 700; line-height: 1.6; white-space: pre-line; }
    #accountExpiryNotice:empty { display: none; }
    #accountSession { width: 100%; resize: vertical; min-height: 68px; padding: 10px; color: inherit; background: #fff; border: 1px solid #d5deea; border-radius: 9px; font: inherit; }
    #accountFlow .form-note { margin: 8px 0 12px; }
    #sessionDrop.dragging #accountSession { outline: 2px dashed #557cf1; background: #f3f6ff; }
    .captcha-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
    #captchaImage { max-width: 100%; height: auto; }
    .task-:scope { padding: 20px; }
    .task-empty { overflow-wrap: anywhere; padding: 16px; border: 1px solid #dce3ef; border-radius: 12px; background: #f8faff; }
    .result-heading { display: flex; align-items: center; gap: 10px; }
    .empty-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: #edf2ff; color: #5573c8; }
    .empty-icon svg { width: 19px; height: 19px; }
    .task-empty h3 { margin: 0; color: #314563; font-size: var(--text-body); }
    .task-empty p { margin: 10px 0 0; color: #536580; font-size: var(--text-small); line-height: 1.6; }

    .task-empty.verified { background: #f2faf6; border-color: #afdac2; }
    .task-empty.verified .empty-icon { color: #25805a; background: #ddf2e7; }
    .task-empty.blocked { background: #fff3f1; border: 1px solid #e4aaa5; }
    .task-empty.blocked h3, .task-empty.blocked p { color: #962e28; }
    .task-empty.blocked .empty-icon { color: #962e28; background: #ffe1dc; }
    #receiptFailure { margin-top: 14px; padding: 13px 14px; border-left: 5px solid #681914; border-radius: 8px; background: #932820; color: white; }
    #receiptFailure h4 { margin: 0 0 5px; color: inherit; font-size: var(--text-body); }
    #receiptFailure p { margin: 0; color: inherit; }
    #failureCode:not(:empty) { display: block; margin-top: 6px; }
    #failureCode { font-size: var(--text-meta); }
    #receiptNextStep { margin-top: 13px; font-size: var(--text-small); }
    #receiptNextStep:not([hidden]) + #resultDetail { margin-top: 3px; color: #3b4556; }
    #resultDetail:empty, #accountFacts:empty, #progressSteps:empty { display: none; }
    #accountFacts { margin: 14px 0 0; border-top: 1px solid var(--line); }
    .fact-row { display: grid; grid-template-columns: 7em minmax(0,1fr); gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--text-small); line-height: 1.5; }
    .fact-row:last-child { padding-bottom: 0; border: 0; }
    .fact-row dt { color: #5a6b82; }
    .fact-row dd { margin: 0; color: #253956; font-weight: 600; font-variant-numeric: tabular-nums; }
    .fact-zone { display: inline-block; white-space: nowrap; font-weight: 400; color: #5a6b82; }
    .fact-row.expiry-warning dd, .fact-row.expiry-warning .fact-zone { color: #a3221a; font-weight: 700; }
    #progressSteps { list-style: none; margin: 15px 0 0; padding: 0; }
    #progressSteps li { position: relative; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; column-gap: 10px; padding: 8px 9px; color: #65748a; font-size: var(--text-small); line-height: 1.5; }
    #progressSteps li:not(:last-child)::after { content: ''; position: absolute; top: calc(50% + 11px); bottom: calc(-50% + 11px); left: 19px; width: 2px; background: #d3dceb; }
    .step-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #ccd6e7; color: #63748b; background: #fff; font-size: 12px; font-weight: 700; }
    #progressSteps [data-state=done] .step-marker { color: #227252; background: #e3f4eb; border-color: #c4e5d4; }
    #progressSteps [aria-current=step] { color: #244aa6; border-radius: 7px; background: #e9efff; font-weight: 700; }
    #progressSteps [aria-current=step] .step-marker { color: white; background: #4167cc; border-color: #4167cc; }
    .step-caption { color: #3f5da0; font-size: var(--text-meta); }
    .blocked #progressSteps [aria-current=step] { background: #ffe1dc; color: #962e28; }
    .blocked #progressSteps [aria-current=step] .step-marker { background: #a5332c; border-color: #a5332c; }
    .blocked .step-caption { color: #962e28; }
    #resultBox.receipt-success { border-color: #89bb9e; background: #f1faf4; }
    #resultBox:not(.receipt-success) .session-safety-note { display: none; }
    .receipt-success .result-heading { padding: 12px; border-radius: 8px; background: #176443; }
    .receipt-success .result-heading h3 { color: #fff; }
    .receipt-success .empty-icon { color: #fff; background: #104c32; font-size: 19px; font-weight: 700; }
    .receipt-success .empty-icon svg { display: none; }
    .receipt-success .empty-icon::after { content: '✓'; }
    .receipt-success #progressSteps [aria-current=step] { color: #145336; background: #d1ebda; }
    .receipt-success #progressSteps [aria-current=step] .step-marker { background: #176443; border-color: #176443; }
    .receipt-success .step-caption { color: #145336; }
    .result-column { display: grid; gap: 16px; min-width: 0; }
    .session-guide { margin: 14px 16px 16px; border: 1px solid #cbdaf4; border-radius: 14px; background: #f8faff; overflow: hidden; }
    .session-guide summary { padding: 14px 16px; color: #1d5ee5; background: #f0f5ff; font-weight: 650; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
    .session-guide summary::-webkit-details-marker { display: none; }
    .session-guide summary::before { content: ''; width: 8px; height: 8px; flex: none; border: solid #1d5ee5; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
    .session-guide[open] summary::before { transform: rotate(45deg); }
    .session-guide summary:focus-visible, .session-guide a:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
    .guide-steps { margin: 0; padding: 14px 20px 18px 42px; color: #596b88; font-size: var(--text-small); line-height: 1.65; }
    .guide-steps > li + li { margin-top: 10px; }
    .guide-steps a { color: #1d5ee5; font-weight: 600; text-underline-offset: 2px; overflow-wrap: anywhere; }
    .footer-note { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 0 3px; color: #9ca8bb; font-size: var(--text-meta); }
    .footer-note a { color: #7585bd; text-decoration: none; }
    .footer-note a:hover { text-decoration: underline; }

    @media (max-width: 55rem) {
      .workspace-grid { grid-template-columns: minmax(0, 1fr); }
    }
    @media (max-width: 40rem) {
      .hero { margin-bottom: 20px; }
      .hero p { font-size: var(--text-body); }
      .status-strip { grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
      .status-card { padding: 10px 12px; }

      .form-wrap { padding: 18px 14px 15px; }
      .field-label { gap: 2px 8px; }
      .panel-header { gap: 8px; padding: 16px 14px 13px; }
      .task-:scope { padding: 14px; }

      .footer-note { flex-direction: column; }
    }
  
:scope {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #535968;
  --line: rgba(44, 56, 80, .13);
  --panel: rgba(255, 255, 255, .85);
  --small-shadow: 0 10px 32px -20px rgba(48, 62, 89, .32), 0 1px 3px #25385c0a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
[hidden] { display: none !important; }
.app-window { min-height: 100vh; }
.main { width: min(1148px, calc(100% - 64px)); margin: auto; padding: 54px 0; }
.hero { align-items: center; justify-content: flex-start; gap: 20px; margin-bottom: 32px; }
.hero h1 { margin: 0 0 5px; font-size: clamp(32px, 4.2vw, 45px); color: var(--ink); letter-spacing: -.043em; }
.hero p, .panel-subtitle, .field-label span, .form-note, .status-card-label { color: var(--muted); }
.hero p { font-size: 1rem; }
.service-icon {
  width: 70px;
  height: 70px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #ffffffb8;
  border-radius: 21px;
  color: white;
  background: linear-gradient(150deg, #6bbcff, #2683f5 53%, #1263dc);
  box-shadow: inset 0 1px 1px #ffffff8a, inset 0 -1px 1px #153d8b38, 0 7px 16px -8px #3a68bb81;
}
.service-icon svg { width: 38px; height: 38px; }
.service-icon g { display: none; }
.glyph-redeem, :scope[data-service="redeem"] .glyph-redeem,
:scope[data-service="progress"] .glyph-progress, :scope[data-service="bill"] .glyph-bill { display: inline; }
:scope[data-service="progress"] .service-icon { background: linear-gradient(150deg, #958afe, #6554da 90%); }
:scope[data-service="bill"] .service-icon { background: linear-gradient(150deg, #4ec5a4, #188369 90%); }
.panel, .status-card { background: var(--panel); border-color: var(--line); box-shadow: var(--small-shadow); }
.panel { border-radius: 17px; overflow: hidden; }
.panel-header { background: linear-gradient(180deg, #fcfdffe6, #f5f6f8bd); border-bottom: 1px solid #27334b14; }
.panel-title, .field-label, .status-card-value { color: var(--ink); }
.panel-title { font-size: 1.14rem; }
.task-empty { background: #f6f8fc; border-color: #dce2eb; }
.primary-btn, :scope.lookup-mode #lookupReceipt {
  color: #fff;
  border: 1px solid #005dc5;
  background: linear-gradient(#147df1, #0065d4);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 #ffffff35, 0 3px 7px #09499620;
}
.primary-btn:hover, :scope.lookup-mode #lookupReceipt:hover { background: #0064d0; box-shadow: 0 3px 9px #09499635; }
.primary-btn:disabled { color: #68717e; background: #e5e8ee; border-color: #d9dee7; box-shadow: none; }
.input-shell { background: #fff; border-color: #cdd2da; box-shadow: inset 0 1px 2px #1f334009; }
.input-shell input { color: var(--ink); }
.input-shell input::placeholder { color: #717987; }
.input-shell:focus-within { border-color: #1671d7; box-shadow: 0 0 0 3px #1671d726; }
.panel-action, .input-action {
  background: #f0f3f8;
  color: #285b95;
  border-radius: 7px;
}
#receiptPanel { margin: 16px 0 0; }
#lookupReceipt { padding: 8px 12px; }
#receiptProgress:empty { display: none; }
.footer-note, .footer-note a { color: #575f6c; }
:scope.lookup-mode .status-strip, :scope.lookup-mode #submitButton, :scope.lookup-mode .redeem-note, :scope.lookup-mode #help-panel { display: none; }
:scope.lookup-mode #lookupReceipt { display: block; width: 100%; min-height: 46px; font-size: 1rem; }
:scope.lookup-mode #lookupReceipt:disabled { cursor: wait; opacity: .68; }
:scope.lookup-mode .workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
:scope.lookup-mode #receiptInvoice { margin: 8px 0; }
:scope.lookup-mode #receiptOutcomeLink:not([hidden]) { display: block; width: fit-content; margin-top: 8px; }
@media (max-width: 55rem) {
  :scope.lookup-mode .workspace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .main { width: calc(100% - 32px); padding: 32px 0; }
  .hero { gap: 13px; margin-bottom: 22px; }
  .hero p { font-size: .875rem; }
  .service-icon { width: 52px; height: 52px; border-radius: 15px; }
  .service-icon svg { width: 29px; height: 29px; }
  .status-strip { gap: 6px; }
}
@media (prefers-reduced-transparency: reduce) {
  .panel, .status-card { background: #fff; }
}

}
[hidden] { display:none !important; }
