/* Page layouts. Shared colours and controls live in theme.css. */
.workspace { width: 100%; max-width: 1240px; margin: auto; padding: 44px 36px 64px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.workspace-heading h1 { margin-bottom: 10px; }
.workspace-heading .eyebrow { margin-bottom: 10px; }
.workspace-heading p { margin-bottom: 0; }
.workspace.narrow { max-width: 780px; }
.workspace.narrow .panel { overflow-wrap: anywhere; }
.workspace.narrow form+form { margin-top: 28px; }
.public-shell .workspace.narrow { max-width: 792px; padding-block: 55px 80px; }
.public-shell .panel { line-height: 1.85; }
.public-shell .panel p:last-child { margin-bottom: 0; }
.public-shell .panel ol { padding-left: 22px; color: var(--muted); }
.public-shell .panel li+li { margin-top: 12px; }
.focused-shell .workspace.narrow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 32px; margin: 40px auto 32px; width: calc(100% - 40px); }
.auth-shell .workspace.narrow { max-width: 440px; }
.customer-shell .workspace.narrow { max-width: 480px; }
.focused-shell .workspace-heading { margin-bottom: 24px; }
.focused-shell .workspace-heading h1 { font-size: 29px; margin: 0; letter-spacing: -1px; }
.focused-shell .workspace.narrow>.panel { padding: 0; border: 0; box-shadow: none; background: transparent; }
.focused-shell .panel>.profile-form:first-child { margin-top: 0; }
.auth-shell .profile-form>.button { width: 100%; }
.auth-shell .panel>p { font-size: 13px; }
.setup-key { padding: 16px; border-radius: var(--radius-control); background: var(--surface-soft); overflow-wrap: anywhere; }
.setup-key input { display: block; margin-top: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.authenticator-qr { display: block; width: min(200px, 100%); height: auto; margin: 20px auto; padding: 10px; border-radius: var(--radius-control); background: #fff; }
.profile-live-preview { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface-soft); }
.profile-live-preview h2 { margin: 8px 0 4px; }
.profile-live-preview p { margin: 4px 0; }
.profile-live-preview small { display: block; margin-top: 12px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.stat { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.stat>span:first-child { color: var(--muted); font-size: 13px; }
.stat>strong { display: block; font-size: 38px; margin: 12px 0; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 12px; }
.dashboard-grid, .profile-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.tip-row { display: flex; align-items: flex-start; gap: 13px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tip-row:last-child { border-bottom: 0; }
.tip-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; background: var(--blue-soft); color: var(--blue); border-radius: 10px; font-size: 21px; }
.tip-detail { flex: 1; min-width: 0; }
.tip-detail>strong, .tip-detail time { display: block; }
.tip-detail p { margin: 8px 0 0; overflow-wrap: anywhere; }
.tip-total { text-align: right; flex-shrink: 0; }
.tip-total strong { display: block; }
.tip-total .badge { margin-top: 7px; }
.activity-meta { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.jar-empty { text-align: center; }
.jar-empty p { max-width: 310px; }
.other-attempts { border-top: 1px solid var(--line); }
.activity-announcement:empty { display: none; }
.share-panel { text-align: center; }
.share-panel>.avatar { margin: 0 auto 18px; }
.share-panel>.button+.button { margin-top: 12px; }
.share-link { text-align: left; margin: 22px 0 14px; }
.workspace-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.workspace-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
.workspace-nav { display: none; }
.operator-shell .workspace.narrow { max-width: 1160px; }
.operator-shell .workspace.narrow>.panel { display: grid; gap: 28px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.operator-section { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.operator-section>h2 { margin-bottom: 10px; }
.operator-section>.profile-form { max-width: 520px; }
.operator-section .panel { margin-top: 20px; box-shadow: none; background: var(--page); }
.operator-section .panel p, .operator-section .panel h3 { overflow-wrap: anywhere; }
.operator-section .form-actions { margin-top: 12px; }
.operator-section .form-actions form { margin: 0; }
.tipping-wrap { width: 100%; max-width: 520px; margin: auto; padding: 40px 20px 32px; }
.tipping-card { padding: 32px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.tipping-card h1 { font-size: 29px; margin-bottom: 8px; }
.tipping-card h2 { font-size: 23px; margin-bottom: 10px; }
.tipping-card .eyebrow { font-size: 10px; margin-bottom: 24px; }
.worker-role { color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.worker-place { font-size: 13px; }
.worker-intro { font-size: 14px; line-height: 1.8; margin: 20px 0 0; overflow-wrap: anywhere; }
.card-divider { border-top: 1px solid var(--line); margin: 26px 0; }
.tip-form { margin-top: 24px; text-align: left; }
.amount-options { border: 0; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.amount-options label { position: relative; margin: 0; }
.amount-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amount-options span { display: grid; place-items: center; min-height: 62px; padding: 12px 4px; border: 1px solid var(--control-line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font-size: 23px; font-weight: 600; cursor: pointer; }
.amount-options input:checked+span { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.amount-options input:focus-visible+span { outline: 3px solid var(--blue); outline-offset: 3px; }
.amount-options .custom-choice { grid-column: 1 / -1; }
.amount-options .custom-choice span { font-size: 13px; min-height: 46px; padding: 10px; font-weight: 500; }
.message-label { margin-top: 24px; }
.under-card { text-align: center; font-size: 12px; margin: 24px 0 0; }
.checkout-heart, .result-symbol { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 24px; background: var(--blue-soft); color: var(--blue); border-radius: 22px; }
.checkout-heart .ui-icon, .result-symbol .ui-icon { width: 32px; height: 32px; }
.result-symbol.succeeded { background: var(--success-soft); color: var(--success); }
.result-symbol.failed { background: var(--error-soft); color: var(--error); }
.checkout h1 { line-height: 1.3; }
.checkout-amount { font-size: 46px; font-weight: 600; letter-spacing: -.04em; color: var(--ink); margin: 20px 0; }
blockquote { background: var(--surface-soft); border-radius: var(--radius-control); padding: 16px; margin: 0 0 24px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.checkout .notice strong { display: block; }
.other-outcomes { margin-top: 20px; color: var(--muted); font-size: 13px; }
.other-outcomes summary { padding: 12px 0; text-decoration: underline; text-underline-offset: 3px; }
.outcome-buttons { display: grid; gap: 14px; justify-items: center; margin-top: 16px; }
.tipping-card>.back-link { margin-top: 16px; }
.result>p { font-size: 14px; line-height: 1.8; }
.receipt { padding: 24px 0; border-block: 1px solid var(--line); margin: 24px 0; }
.receipt>span:first-child { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.receipt>strong { display: block; font-size: 40px; letter-spacing: -.04em; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.result .button+.button { margin-top: 12px; }
.receipt-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin: 16px 0 0; }
.empty { max-width: 600px; min-height: 55vh; padding: 56px 24px; margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.empty h1 { font-size: 32px; }
.empty p { max-width: 440px; }
.big-symbol { font-size: 48px; color: var(--blue); margin-bottom: 20px; }
.qr-workspace { max-width: 610px; margin: auto; padding: 28px 24px 60px; }
.qr-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.print-card { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); text-align: center; box-shadow: var(--shadow-card); }
.print-card h1 { font-size: 38px; margin: 22px 0 24px; }
.print-card h2 { font-size: 26px; margin-bottom: 8px; }
.print-card p { overflow-wrap: anywhere; }
.print-card h1 span, .qr-brand { color: var(--blue); }
.qr-display { background: #fff; max-width: 320px; margin: 0 auto 24px; }
.qr-display img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qr-brand { display: block; margin-top: 16px; font-size: 20px; letter-spacing: -.04em; }
.print-url { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.qr-actions { margin-top: 26px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.share-buttons .button { flex: 1 1 40%; padding: 12px; }
@media (max-width: 760px) {
  .workspace { padding: 32px 20px 48px; }
  .public-shell .workspace.narrow { padding: 32px 20px 48px; }
  .public-shell .panel { padding: 24px; }
  .focused-shell .workspace.narrow { margin-top: 28px; padding: 24px; }
  .tipping-wrap { padding-top: 28px; }
  .tipping-card { padding: 26px 24px; }
  .print-card { padding: 28px 22px; }
  .print-card h1 { font-size: 32px; }
  .operator-section { padding: 22px; }
}

/* Shared personal workspace: light surfaces, native type, and quiet controls. */
.app-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}
.workspace-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 35px 17px 18px;
  background: #f0f2f6;
  border-right: 1px solid #e5e8ee;
}
.workspace-brand { display: flex; text-decoration: none; align-items: center; gap: 10px; padding: 0 12px; margin-bottom: 55px; font-size: 23px; font-weight: 730; letter-spacing: -1.2px; }
.sidebar-label { font-size: 10px; font-weight: 650; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 0 13px 12px; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-link { display: flex; text-decoration: none; align-items: center; gap: 11px; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-control); font-size: 13px; font-weight: 500; color: #686f7d; transition: background .16s, color .16s; }
.sidebar-link .ui-icon { width: 18px; height: 18px; }
.sidebar-link:hover { background: #e8ecf2; color: #303947; }
.sidebar-link.is-active { background: #e1eafa; color: #316bd4; font-weight: 600; box-shadow: inset 0 0 0 1px #3977eb06; }
.sidebar-bottom { margin-top: auto; padding-top: 48px; }
.sidebar-note { margin: 0 13px 27px; color: var(--muted); font-size: 13px; line-height: 1.85; letter-spacing: -.15px; }
.sidebar-note strong { color: #6c7584; font-weight: 500; }
.workspace-person { display: flex; color: var(--ink); text-decoration: none; align-items: center; gap: 10px; padding: 19px 8px 0; margin-top: 16px; border-top: 1px solid #dfe4ec; }
.workspace-avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; background: #e0e5ef; color: #69768e; border: 2px solid #fff9; border-radius: 50%; font-size: 11px; font-weight: 650; }
.workspace-person>span:nth-child(2) { min-width: 0; flex: 1; }
.workspace-person strong { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-person small { color: var(--muted); font-size: 10px; }
.workspace-person>.ui-icon { width: 13px; color: #98a0ad; }
.workspace-body { min-width: 0; display: flex; flex-direction: column; }
.workspace-body>main { flex: 1; min-width: 0; }
.workspace-toolbar { min-height: 76px; padding: 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #ffffffb3; }
.workspace-breadcrumb { display: flex; align-items: center; gap: 16px; font-size: 11px; color: var(--muted); }
.workspace-breadcrumb strong { color: #616978; font-weight: 500; }
.workspace-mode { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.workspace-mode>span { flex-shrink: 0; width: 5px; height: 5px; background: #7b9bb6; border-radius: 50%; }
.app-shell .workspace { max-width: 1320px; padding: 43px 44px 24px; }
.app-shell .workspace-heading>div { min-width: 0; }
.app-shell .workspace-heading { display: flex; margin-bottom: 30px; gap: 24px; }
.app-shell .eyebrow { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 1.7px; margin-bottom: 10px; }
.app-shell h1, .app-shell h2, .app-shell h3 { color: var(--ink); letter-spacing: -.7px; }
.app-shell .workspace-heading h1 { font-size: 36px; font-weight: 620; letter-spacing: -1.4px; margin-bottom: 10px; }
.app-shell .greeting-dot { color: var(--blue); }
.app-shell .workspace-heading p { font-size: 13px; margin-bottom: 0; }
.app-shell .button .ui-icon { width: 16px; height: 16px; }
.app-shell .workspace-heading>.button { width: auto; margin: 0; flex-shrink: 0; }
.app-shell .workspace-nav { display: none; }
.app-shell .demo-note { display: flex; align-items: center; gap: 11px; padding: 13px 16px; background: #f0f4fb; border-color: #e7edf7; font-size: 11px; margin-bottom: 24px; }
.app-shell .demo-note>.ui-icon { width: 16px; height: 16px; color: #7b94b8; }
.app-shell .demo-note strong { color: #546b89; font-weight: 600; }
.app-shell .demo-note>div { flex: 1; }
.app-shell .demo-note>a { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; text-decoration: none; color: #4f75ae; font-weight: 550; }
.app-shell .demo-note>a .ui-icon { width: 14px; height: 14px; }
.app-shell .stats { gap: 18px; margin: 0 0 28px; }
.app-shell .jar-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-shell .account-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-shell .stat { min-width: 0; padding: 21px 23px 22px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.app-shell .stat.featured { grid-column: auto; background: #edf3ff; color: #2e5089; border-color: #e0e9fa; }
.app-shell .stat-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #6f7785; font-size: 12px; font-weight: 500; }
.app-shell .stat-symbol { color: #929eaf; display: inline-flex; }
.app-shell .stat-symbol .ui-icon { width: 17px; height: 17px; }
.app-shell .featured .stat-label, .app-shell .featured .stat-symbol { color: #5576a6; }
.app-shell .stat>strong { font-size: 38px; font-weight: 600; letter-spacing: -1.8px; line-height: 1.3; margin: 17px 0 9px; font-variant-numeric: tabular-nums; }
.app-shell .stat>.stat-secondary-value { font-size: clamp(23px, 2.4vw, 34px); line-height: 1.45; letter-spacing: -1.1px; }
.app-shell .stat small, .app-shell .stat.featured small { display: block; color: var(--muted); font-size: 10px; }
.app-shell .dashboard-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.app-shell .panel { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 25px; box-shadow: var(--shadow-card); min-width: 0; }
.app-shell .panel-heading { flex-wrap: wrap; }
.app-shell .panel-heading h2 { font-size: 16px; font-weight: 600; letter-spacing: -.35px; margin: 0; }
.app-shell .panel-heading p { font-size: 11px; margin: 6px 0 0; color: var(--muted); }
.app-shell .icon-button .ui-icon { width: 15px; height: 15px; }
.app-shell .activity-meta { margin-top: 23px; padding: 11px 0; border-top: 1px solid #f0f2f5; border-bottom: 1px solid #f0f2f5; font-size: 10px; color: var(--muted); }
.app-shell .activity-meta a { min-height: 44px; font-size: 10px; }
.app-shell .text-button .ui-icon { width: 14px; height: 14px; }
.app-shell .jar-empty { display: flex; align-items: center; flex-direction: column; padding: 52px 8px 47px; }
.app-shell .jar-empty>.empty-jar-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 19px; background: #f0f5ff; box-shadow: 0 0 0 9px #f9fbff; color: #84a8e6; margin-bottom: 12px; }
.app-shell .empty-jar-icon .ui-icon { width: 27px; height: 27px; stroke-width: 1.4; }
.app-shell .jar-empty h3 { font-size: 18px; font-weight: 550; letter-spacing: -.5px; margin: 13px 0 10px; }
.app-shell .jar-empty p { font-size: 12px; line-height: 1.85; color: var(--muted); margin-bottom: 22px; }
.app-shell .jar-empty .button { font-size: 11px; min-height: 44px; }
.app-shell .other-attempts { margin-top: 0; padding-top: 8px; border-color: #eef0f4; }
.app-shell .other-attempts summary { min-height: 44px; font-size: 13px; color: var(--muted); padding: 10px 0; }
.app-shell .micro { font-size: 11px; color: var(--muted); }
.app-shell .tip-row { padding: 20px 0; gap: 13px; border-color: #eef1f6; }
.app-shell .tip-row:last-child { padding-bottom: 20px; }
.app-shell .tip-icon { width: 36px; height: 36px; border-radius: 11px; background: #eef4ff; color: #83a3d7; }
.app-shell .tip-icon.inactive { background: #f3f4f7; color: var(--muted); }
.app-shell .tip-detail>strong { font-size: 12px; font-weight: 550; }
.app-shell .tip-detail time { font-size: 10px; color: var(--muted); margin-top: 3px; }
.app-shell .tip-detail p { color: #778292; font-size: 12px; margin-top: 9px; }
.app-shell .tip-detail p.micro { color: var(--muted); font-size: 10px; }
.app-shell .tip-total strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.app-shell .tip-total .badge { font-size: 8px; text-transform: none; }
.app-shell .dashboard-share { text-align: left; padding: 23px; }
.app-shell .share-symbol { display: inline-flex; color: #96a2b5; }
.app-shell .share-symbol .ui-icon { width: 17px; height: 17px; }
.app-shell .dashboard-share>p { margin-top: 7px; font-size: 11px; color: var(--muted); }
.app-shell .qr-box { width: fit-content; background: #fff; border: 1px solid #e7ecf4; padding: 12px; margin: 26px auto 18px; border-radius: 14px; box-shadow: 0 4px 18px #152f5605; }
.app-shell .qr-box img { width: 155px; height: 155px; display: block; border-radius: 0; }
.app-shell .qr-owner { text-align: center; margin: 0 0 22px; overflow-wrap: anywhere; }
.app-shell .qr-owner strong { display: block; font-size: 13px; font-weight: 550; }
.app-shell .qr-owner span { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.app-shell input.compact-share-url { font-size: 16px; padding: 8px 10px; margin-top: 12px; text-overflow: ellipsis; color: var(--muted); background: #fafbfc; border-color: #edf0f4; border-radius: var(--radius-control); }
.app-shell .quick-share-actions { display: flex; justify-content: center; gap: 19px; margin-top: 7px; }
.app-shell .quick-share-actions .text-button { font-size: 12px; min-height: 44px; }
.app-shell #copy-status:empty { display: none; }
.app-shell .dashboard-share>.privacy-note { display: flex; align-items: center; justify-content: center; gap: 6px; border-top: 1px solid #eef1f5; padding-top: 16px; margin-top: 15px; font-size: 10px; }
.app-shell .privacy-note .ui-icon { width: 12px; height: 12px; color: #9ca7b7; }
.app-shell .activity-history-note { border-top: 1px solid #eef1f5; padding-top: 16px; margin-bottom: 0; font-size: 10px; }
.app-shell .activity-history-note a, .app-shell .dashboard-disclaimer a { color: #6785b1; }
.app-shell .workspace-footnote { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 24px; }
.app-shell .workspace-footnote p { font-size: 10px; line-height: 1.8; color: var(--muted); margin: 0; }
.app-shell .workspace-footnote .text-button { white-space: nowrap; font-size: 10px; color: var(--muted); }
.app-shell .dashboard-disclaimer { font-size: 10px; color: var(--muted); margin: 22px 0 0; }
.app-shell .workspace-footer { max-width: none; padding: 18px 0; margin: 0 44px; border-color: var(--line); color: var(--muted); font-size: 10px; gap: 16px; }
.app-shell .workspace-footer nav { gap: 18px; }
.app-shell .workspace-footer>span { width: auto; }
.app-shell .setup-banner { border: 1px solid #e1e9f6; background: #f0f4fc; border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; }
.app-shell .setup-banner-copy { display: flex; align-items: center; gap: 12px; }
.app-shell .setup-symbol { width: 36px; height: 36px; border-radius: 11px; background: #e4ecfb; display: grid; place-items: center; color: #7595cc; flex: 0 0 auto; }
.app-shell .setup-banner strong { font-size: 12px; font-weight: 550; color: #557197; }
.app-shell .setup-banner p { color: var(--muted); font-size: 11px; margin: 3px 0 0; }
.app-shell .setup-steps { display: flex; gap: 10px; margin-top: 15px; }
.app-shell .setup-steps a { display: flex; min-height: 44px; text-decoration: none; align-items: center; flex: 1; padding: 9px 11px; gap: 8px; background: #ffffffb3; border: 1px solid #e4eaf4; border-radius: 7px; color: #647a9d; font-size: 11px; }
.app-shell .setup-steps a:hover { background: #fff; }
.app-shell .setup-steps a>span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #ecf1fb; color: #7a97c0; font-size: 9px; }
.app-shell .setup-steps .ui-icon { margin-left: auto; width: 12px; height: 12px; color: #99acc7; }
.app-shell .muted { color: var(--muted); }
.app-shell .back-link { color: #7588a4; }
.app-shell .workspace.narrow { max-width: 850px; }
.app-shell .workspace.narrow h2 { font-size: 23px; }
.app-shell .workspace.narrow .panel>p { font-size: 13px; line-height: 1.8; }
.app-shell .qr-workspace { padding-top: 28px; }
.app-shell .print-card h1 span, .app-shell .qr-brand { color: #527baa; }
.app-shell .activity-announcement { color: #527baa; }
@media (min-width: 1600px) {
  .app-shell { grid-template-columns: 244px minmax(0, 1fr); }
  .workspace-sidebar { padding-inline: 23px; }
  .app-shell .workspace { padding-top: 54px; }
}
@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .workspace-sidebar { padding-inline: 12px; }
  .workspace-brand { font-size: 21px; padding-inline: 9px; }
  .workspace-toolbar { padding-inline: 30px; }
  .app-shell .workspace { padding-inline: 30px; }
  .app-shell .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .dashboard-grid { grid-template-columns: minmax(0, 1fr) 275px; gap: 18px; }
  .app-shell .panel { padding: 21px; }
  .app-shell .workspace-footer { margin-inline: 30px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .app-shell .dashboard-grid, .app-shell .profile-grid { grid-template-columns: 1fr; }
  .app-shell .dashboard-share { max-width: none; }
  .app-shell .dashboard-share .qr-box img { width: 180px; height: 180px; }
  .app-shell .setup-steps { flex-wrap: wrap; }
  .app-shell .setup-steps a { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .workspace-sidebar { position: relative; height: auto; overflow: visible; padding: 18px 18px 12px; border-right: 0; border-bottom: 1px solid #e3e7ef; }
  .workspace-brand { margin: 0 0 21px; padding: 0; font-size: 22px; gap: 9px; width: fit-content; }
  .sidebar-label, .sidebar-note, .workspace-person { display: none; }
  .workspace-sidebar>.sidebar-nav { display: flex; gap: 5px; }
  .workspace-sidebar>.sidebar-nav .sidebar-link { flex: 1; justify-content: center; flex-direction: column; gap: 6px; padding: 10px 5px; font-size: 10px; text-align: center; line-height: 1.3; }
  .sidebar-bottom { margin: 0; padding: 0; position: absolute; top: 16px; right: 18px; }
  .sidebar-bottom .sidebar-nav { display: flex; }
  .sidebar-bottom .sidebar-link { padding: 8px; min-height: 44px; }
  .sidebar-bottom .sidebar-link>span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .workspace-toolbar { padding: 0 22px; min-height: 49px; gap: 10px; }
  .workspace-breadcrumb { gap: 10px; font-size: 10px; }
  .workspace-breadcrumb>span { display: none; }
  .workspace-mode { font-size: 9px; }
  .app-shell .workspace { padding: 29px 22px 24px; }
  .app-shell .workspace-heading { flex-direction: column; gap: 16px; margin-bottom: 25px; align-items: flex-start; }
  .app-shell .workspace-heading h1 { font-size: 30px; letter-spacing: -1px; }
  .app-shell .workspace-heading p { font-size: 13px; line-height: 1.65; }
  .app-shell .workspace-heading>.button { padding: 9px 11px; font-size: 13px; min-height: 44px; margin-top: 0; gap: 6px; }
  .app-shell .workspace-heading>.button .ui-icon { width: 14px; height: 14px; }
  .app-shell .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
  .app-shell .stats { gap: 11px; margin-bottom: 20px; }
  .app-shell .jar-stats .stat { padding: 17px 15px; border-radius: var(--radius-card); }
  .app-shell .stat-label { font-size: 11px; }
  .app-shell .stat-symbol .ui-icon { width: 14px; height: 14px; }
  .app-shell .jar-stats .stat>strong { font-size: 30px; letter-spacing: -1px; margin: 17px 0 8px; }
  .app-shell .jar-stats .stat>.stat-secondary-value { font-size: 25px; }
  .app-shell .jar-stats .stat small { font-size: 9px; }
  .app-shell .demo-note { font-size: 10px; padding: 12px; gap: 9px; align-items: flex-start; }
  .app-shell .demo-note>a { display: none; }
  .app-shell .dashboard-grid, .app-shell .profile-grid { grid-template-columns: 1fr; gap: 20px; }
  .app-shell .panel { padding: 20px; }
  .app-shell .jar-empty { padding: 42px 0; }
  .app-shell .dashboard-share .qr-box img { width: 180px; height: 180px; }
  .app-shell .dashboard-share .qr-box { max-width: none; }
  .app-shell .workspace-footnote { align-items: flex-start; gap: 15px; }
  .app-shell .workspace-footnote p { font-size: 9px; }
  .app-shell .workspace-footer { margin-inline: 22px; font-size: 9px; }
  .app-shell .workspace-footer nav { gap: 15px; }
  .app-shell .setup-banner { padding: 15px; }
  .app-shell .setup-steps { flex-direction: column; gap: 7px; }
  .app-shell .setup-banner p { font-size: 10px; }
  .app-shell .qr-workspace { padding: 22px 18px 40px; }
  .app-shell .qr-workspace .back-link { font-size: 12px; }
}
@media (max-width: 360px) {
  .app-shell .workspace { padding-inline: 16px; }
  .workspace-toolbar { padding-inline: 16px; }
  .app-shell .workspace-heading h1 { font-size: 27px; }
  .app-shell .workspace-heading>.button { padding-inline: 9px; }
  .app-shell .jar-stats .stat { padding-inline: 12px; }
  .app-shell .jar-stats .stat>strong { font-size: 26px; }
  .app-shell .jar-stats .stat>.stat-secondary-value { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell .sidebar-link { transition: none; }
}

/* Only the printable card is exposed, regardless of the surrounding shell. */
@media print {
  @page { size: A4; margin: 18mm; }
  body, .app-shell, .workspace-body, .workspace-body>main { display: block !important; background: #fff !important; }
  .skip-link, .workspace-sidebar, .workspace-toolbar, .workspace-footer, .qr-toolbar, .qr-actions, .qr-workspace>.back-link { display: none !important; }
  .workspace-body>main>*:not(.qr-workspace) { display: none !important; }
  .app-shell .qr-workspace { max-width: none; padding: 0; margin: 0; }
  .app-shell .print-card { width: 95mm; margin: 0 auto; padding: 9mm 7mm; border: 1px solid #777; border-radius: 5mm; box-shadow: none; break-inside: avoid; page-break-inside: avoid; color: #000; }
  .app-shell .print-card h1 { font-size: 22pt; color: #000; margin: 5mm 0; }
  .app-shell .print-card h1 span, .app-shell .print-card p, .app-shell .qr-brand, .print-url { color: #000 !important; }
  .qr-display, .qr-display img { width: 50mm; height: 50mm; }
  .qr-display { margin: 5mm auto; }
  .app-shell .print-card h2 { font-size: 16pt; }
  .print-card .badge { background: #fff; color: #000; border: 1px solid #555; font-size: 8pt; }
  .print-url { font-size: 8pt; }
  .qr-brand { font-size: 14pt; }
}
