:root {
  --product-ink: #171719;
  --product-muted: #6d6d75;
  --product-surface: #ffffff;
  --product-canvas: #f4f5f7;
  --product-border: rgba(23, 23, 25, .12);
  --product-blue: #2878f0;
  --product-green: #238b62;
  --product-coral: #e95043;
  --product-yellow: #e4a928;
  --product-shadow: 0 18px 52px rgba(15, 20, 24, .18);
}

.product-tabbar,
.product-sheet,
.product-modal,
.local-dock,
.tablet-edit-bar,
.product-toast {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

.product-tabbar button,
.product-sheet button,
.product-sheet summary,
.product-modal button,
.local-dock button,
.tablet-edit-bar button,
.sheet-back,
.sheet-close,
.account-quick,
.launch-tile,
.workbench-actions button,
.current-actions button,
.settings-group button,
.admin-period button,
.admin-filter button,
.studio-color-switch button,
.market-controls button,
.market-controls label,
.market-work,
.my-local-work,
.load-more,
.publish-dialog button,
.product-primary,
.danger,
.soft-btn,
.panel-action {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.modal:not(.open) {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.product-tabbar {
  position: fixed;
  z-index: 38;
  inset: auto 0 0;
  height: calc(66px + env(safe-area-inset-bottom));
  padding: 6px 8px env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: rgba(250, 250, 252, .92);
  border-top: 1px solid var(--product-border);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.product-tabbar button {
  min-width: 0;
  min-height: 52px;
  padding: 4px 2px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--product-muted);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  touch-action: manipulation;
}

.product-tabbar button.active {
  color: var(--product-blue);
  background: rgba(40, 120, 240, .08);
}

.product-tabbar i {
  width: 24px;
  height: 23px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
}

.product-tabbar [data-glyph="grid"]::before { content: "▦"; }
.product-tabbar [data-glyph="market"]::before { content: "◇"; }
.product-tabbar [data-glyph="person"]::before { content: "○"; font-size: 26px; }
.product-tabbar [data-glyph="settings"]::before { content: "⌘"; }
.product-tabbar span { font-size: 10px; font-weight: 750; white-space: nowrap; }

.product-sheet {
  position: fixed;
  z-index: 37;
  left: 0;
  right: 0;
  bottom: calc(66px + env(safe-area-inset-bottom));
  height: min(78dvh, 760px);
  background: rgba(248, 249, 251, .97);
  border-top: 1px solid var(--product-border);
  box-shadow: 0 -16px 50px rgba(20, 25, 30, .16);
  transform: translateY(calc(100% + 16px));
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
  overflow: hidden;
}

.product-sheet.open { transform: translateY(0); pointer-events: auto; }
.product-sheet > header {
  height: 66px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid var(--product-border);
}

.product-sheet > header small,
.sheet-kicker {
  display: block;
  color: var(--product-blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
}

.product-sheet > header h1 { margin: 1px 0 0; font-size: 18px; line-height: 1.1; }
.sheet-back,
.sheet-close,
.account-quick {
  border: 0;
  background: #eceef1;
  color: var(--product-ink);
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
  font-weight: 800;
}
.sheet-back { font-size: 18px; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 22px; }
.account-quick { max-width: 94px; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-sheet-body { height: calc(100% - 66px); overflow: auto; padding: 16px max(14px, env(safe-area-inset-left)) 34px; overscroll-behavior: contain; }

.studio-public-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 14px;
  border: 2px solid #2d6f5b;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef9f4, #fffdf6);
  box-shadow: 0 8px 22px rgba(45, 111, 91, .12);
}
.studio-public-url span { display: block; color: #2d6f5b; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.studio-public-url strong { display: block; margin-top: 5px; color: #173f34; font: 800 13px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.studio-public-url p { margin: 5px 0 0; color: #52645e; font-size: 10px; line-height: 1.5; }
.studio-public-url-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; min-width: 206px; }
.studio-public-url-actions button,
.studio-public-url-actions a { min-height: 42px; display: flex; align-items: center; justify-content: center; padding: 8px 11px; border: 1px solid #2d6f5b; border-radius: 9px; font-size: 11px; font-weight: 900; text-decoration: none; cursor: pointer; }
.studio-public-url-actions button { color: #245b4b; background: #fff; }
.studio-public-url-actions a { color: #fff; background: #2d6f5b; }

.studio-summary,
.server-control-band,
.settings-account,
.profile-hero,
.guest-profile {
  padding: 16px;
  background: var(--product-surface);
  border: 1px solid var(--product-border);
  border-radius: 8px;
}

.studio-summary,
.server-control-band,
.settings-account { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.studio-summary span,
.settings-account span,
.guest-profile > span { color: var(--product-muted); font-size: 11px; font-weight: 700; }
.studio-summary h2,
.settings-account h2,
.guest-profile h2 { margin: 3px 0; font-size: 18px; overflow-wrap: anywhere; }
.studio-summary p,
.server-control-band p,
.settings-account p,
.guest-profile p { margin: 0; color: var(--product-muted); font-size: 11px; line-height: 1.55; }
.studio-summary button,
.server-control-band button,
.settings-account button,
.guest-profile button,
.current-actions button,
.settings-group button,
.admin-period button {
  min-height: 42px;
  border: 1px solid var(--product-border);
  border-radius: 7px;
  background: #f1f2f4;
  color: var(--product-ink);
  padding: 0 13px;
  font-weight: 750;
  touch-action: manipulation;
}

.launch-section { margin-top: 20px; }
.band-title { min-height: 34px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.band-title h3 { margin: 0; font-size: 14px; }
.band-title span { color: var(--product-muted); font-size: 10px; }
.launch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.launch-tile {
  position: relative;
  min-width: 0;
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--product-border);
  border-radius: 8px;
  background: var(--product-surface);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--product-ink);
  touch-action: manipulation;
}
.launch-tile:active { transform: scale(.985); }
.launch-tile i { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: #e8f0fd; color: var(--product-blue); font-style: normal; }
.launch-tile i::before { font-size: 21px; font-weight: 900; }
.launch-tile [data-launch-icon="recognize"]::before { content: "识"; }
.launch-tile [data-launch-icon="align"]::before { content: "⊞"; }
.launch-tile [data-launch-icon="photo"]::before { content: "图"; }
.launch-tile [data-launch-icon="market"]::before { content: "选"; }
.launch-tile:nth-child(2) i { background: #e7f5ef; color: var(--product-green); }
.launch-tile:nth-child(3) i { background: #fff1e8; color: var(--product-coral); }
.launch-tile:nth-child(4) i { background: #fff6da; color: #8f6600; }
.launch-tile span { min-width: 0; }
.launch-tile b,
.launch-tile small { display: block; }
.launch-tile b { font-size: 13px; }
.launch-tile small { margin-top: 5px; color: var(--product-muted); font-size: 10px; line-height: 1.35; }
.launch-tile em { position: absolute; right: 7px; top: 7px; border-radius: 4px; background: #eef0f3; color: var(--product-muted); padding: 3px 5px; font-size: 8px; font-style: normal; }

.server-control-band { margin-top: 16px; border-left: 4px solid var(--product-green); }
.server-control-band h3 { margin: 0 0 4px; font-size: 14px; }
.server-control-band button { flex: 0 0 auto; background: var(--product-ink); color: #fff; border-color: var(--product-ink); }
.current-actions { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.current-actions button:first-child { border-color: rgba(40, 120, 240, .35); color: #145bb9; background: #edf4ff; }

.product-modal-backdrop {
  position: fixed;
  z-index: 110;
  inset: 0;
  padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  background: rgba(10, 12, 14, .48);
  opacity: 0;
  transition: opacity .18s ease;
  backdrop-filter: blur(8px);
}
.product-modal-backdrop.open { opacity: 1; }
.product-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 24px;
  overflow: auto;
  border-radius: 12px;
  background: var(--product-surface);
  box-shadow: var(--product-shadow);
  color: var(--product-ink);
}
.product-modal h2 { margin: 5px 44px 8px 0; font-size: 22px; }
.product-modal > p { margin: 0 0 16px; color: var(--product-muted); font-size: 12px; line-height: 1.55; }
.product-primary,
.work-actions .primary {
  background: var(--product-blue) !important;
  border-color: var(--product-blue) !important;
  color: #fff !important;
}

.option-form fieldset { margin: 0 0 16px; padding: 0; border: 0; }
.option-form legend { margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.style-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.style-options input { position: absolute; opacity: 0; pointer-events: none; }
.style-options span { min-height: 45px; padding: 6px 4px; border: 1px solid var(--product-border); border-radius: 7px; display: grid; place-items: center; text-align: center; font-size: 10px; font-weight: 750; }
.style-options input:checked + span { border-color: var(--product-blue); background: #edf4ff; color: #145bb9; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option-grid label,
.auth-form label { display: grid; gap: 6px; color: var(--product-muted); font-size: 11px; font-weight: 700; }
.option-grid input,
.option-grid select,
.auth-form input,
.auth-form select,
.auth-form textarea,
.comments input,
.tablet-edit-bar select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--product-border);
  border-radius: 7px;
  background: #f5f6f8;
  color: var(--product-ink);
  padding: 9px 10px;
}
.option-grid input[type="color"] { padding: 4px; }
.option-grid .switch-line { display: flex; align-items: center; justify-content: space-between; }
.option-grid .switch-line input { width: 46px; min-height: 28px; }
.option-form > button,
.auth-form > button { width: 100%; min-height: 48px; margin-top: 16px; border: 0; border-radius: 8px; font-weight: 800; }

.market-open-head { margin-bottom: 14px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--product-border); border-left: 4px solid var(--product-green); border-radius: 8px; background: var(--product-surface); }
.market-open-head span { color: var(--product-green); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.market-open-head h3 { margin: 3px 0; font-size: 15px; }
.market-open-head p { margin: 0; color: var(--product-muted); font-size: 10px; line-height: 1.45; }
.market-open-head button { min-height: 42px; padding: 0 14px; border: 0; border-radius: 7px; font-size: 10px; font-weight: 850; white-space: nowrap; }
@media (max-width: 560px) { .market-open-head { align-items: stretch; flex-direction: column; } .market-open-head button { width: 100%; } }
.market-cache-budget { margin: -4px 0 14px; padding: 11px 12px; border: 1px solid var(--product-border); border-radius: 8px; background: var(--product-surface); }
.market-cache-budget > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.market-cache-budget span { color: var(--product-muted); font-size: 9px; font-weight: 800; }
.market-cache-budget b { font-size: 10px; }
.market-cache-track { height: 7px; margin: 8px 0 6px; overflow: hidden; border-radius: 999px; background: #e7e8e5; }
.market-cache-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--product-green); transition: width .2s ease; }
.market-cache-budget small { display: block; color: var(--product-muted); font-size: 9px; line-height: 1.45; }
.market-cache-budget[data-blocked="true"] .market-cache-track i { background: var(--product-coral); }
.market-cache-budget[data-blocked="true"] small { color: var(--product-coral); }
.market-controls { margin-bottom: 14px; }
.dual-range { position: relative; height: 42px; padding-top: 8px; }
.dual-range input { position: absolute; inset: 4px 0 auto; width: 100%; accent-color: var(--product-blue); pointer-events: none; }
.dual-range input::-webkit-slider-thumb { pointer-events: auto; }
.dual-range input::-moz-range-thumb { pointer-events: auto; }
.category-strip { display: flex; gap: 6px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.category-strip button { flex: 0 0 auto; min-height: 34px; padding: 0 11px; border: 1px solid var(--product-border); border-radius: 7px; background: #fff; font-size: 10px; font-weight: 750; }
.category-strip button.active { background: var(--product-ink); border-color: var(--product-ink); color: #fff; }
.market-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.market-work { min-width: 0; padding: 0; border: 1px solid var(--product-border); border-radius: 8px; background: #fff; overflow: hidden; text-align: left; color: var(--product-ink); }
.market-work > img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; }
.market-work span { display: block; padding: 8px; min-width: 0; }
.market-work b,
.market-work small,
.market-work em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-work b { font-size: 11px; }
.market-work small,
.market-work em { margin-top: 3px; color: var(--product-muted); font-size: 8px; font-style: normal; }
.market-author { display: flex; align-items: center; gap: 5px; margin-top: 6px; min-width: 0; }
.market-author small { margin: 0; font-weight: 700; }
.market-work { display: grid; grid-template-rows: auto 1fr auto; }
.market-work-preview { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: #f4f2ed; }
.market-work-preview img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.market-work-info { display: grid; gap: 3px; min-width: 0; padding: 8px 8px 5px; }
.market-work-info b,.market-work-info small,.market-work-info em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-work-info b { font-size: 11px; }
.market-work-info small,.market-work-info em { color: var(--product-muted); font-size: 8px; font-style: normal; }
.market-work-author { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 8px 8px; border-top: 1px solid rgba(50,54,60,.08); }
.market-work-author > span { overflow: hidden; padding: 0; color: var(--product-muted); text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 800; }
.author-avatar { overflow: hidden; }
img.author-avatar { display: block; object-fit: cover; }
.profile-avatar { overflow: hidden; }
.profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.author-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--product-border); border-radius: 50%; object-fit: cover; background: #e8edf5; color: var(--product-blue); font-size: 10px; font-style: normal; font-weight: 850; }
.work-author-button { display: flex; align-items: center; gap: 7px; padding: 5px 8px; font-weight: 750; }
.work-author-button span { max-width: 124px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.work-author-button .author-avatar { width: 28px; height: 28px; }
.load-more,
.empty-product,
.offline-product { grid-column: 1 / -1; min-height: 72px; border: 1px dashed var(--product-border); border-radius: 8px; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--product-muted); background: #fff; }
.load-more { width: 100%; font-weight: 800; }
.market-load-state { grid-column: 1 / -1; display: grid; gap: 7px; color: var(--product-muted); text-align: center; font-size: 9px; }
.market-load-state .load-more { min-height: 44px; border: 1px dashed var(--product-border); border-radius: 8px; background: #fff; color: var(--product-ink); }
.offline-product b,
.offline-product span { display: block; }
.offline-product span { font-size: 10px; }

.work-detail-modal { width: min(720px, 100%); }
.work-detail-image { display: block; width: 100%; max-height: 45dvh; object-fit: contain; background: #f0f1f2; border-radius: 8px; }
.work-preview-modal { width: min(760px, 100%); }
.work-preview-image { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--product-border); border-radius: 8px; background: #f0f1f2; }
.work-preview-image img { display: block; width: 100%; max-height: 64dvh; object-fit: contain; }
.work-preview-meta { padding: 12px 2px 2px; }
.work-preview-meta span { color: var(--product-coral); font-size: 10px; font-weight: 800; }
.work-preview-meta h2 { margin: 3px 0; font-size: 20px; }
.work-preview-meta p { margin: 0; color: var(--product-muted); font-size: 11px; }
.work-detail-title { margin-top: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.work-detail-title span { color: var(--product-coral); font-size: 10px; font-weight: 800; }
.work-detail-title h2 { margin: 2px 0; }
.work-detail-title p { margin: 0; color: var(--product-muted); font-size: 10px; }
.work-detail-title button { min-height: 38px; border: 1px solid var(--product-border); border-radius: 7px; background: #f2f3f5; }
.work-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 7px; }
.work-actions button { min-height: 42px; border: 1px solid var(--product-border); border-radius: 7px; background: #f1f2f4; font-size: 10px; font-weight: 750; }
.work-actions button.active { color: var(--product-coral); border-color: rgba(233, 80, 67, .35); background: #fff0ee; }
.work-actions button.danger { color: #b23b31; border-color: #efc1b9; background: #fff4f1; }
.comments { margin-top: 18px; border-top: 1px solid var(--product-border); }
.comments h3 { font-size: 14px; }
.comments article { position: relative; padding: 8px 70px 8px 0; border-bottom: 1px solid var(--product-border); }
.comments article b { font-size: 10px; }
.comments article p { margin: 3px 0; font-size: 11px; }
.comments time { position: absolute; right: 0; top: 10px; color: var(--product-muted); font-size: 8px; }
.comments form { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 7px; }
.comments button { border: 0; border-radius: 7px; background: var(--product-blue); color: #fff; font-weight: 800; }
.comments-disabled { padding: 13px 14px; border: 1px dashed var(--product-border); border-radius: 8px; background: #f7f7f5; }
.comments-disabled h3 { margin: 0 0 4px; }
.comments-disabled p { margin: 0; color: var(--product-muted); font-size: 10px; }

.guest-profile { text-align: center; }
.guest-profile > div { margin-top: 14px; display: flex; justify-content: center; gap: 8px; }
.profile-hero { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #e7f5ef; color: var(--product-green); font-size: 24px; font-weight: 900; }
.profile-hero span { color: var(--product-blue); font-size: 10px; font-weight: 800; }
.profile-hero h2 { margin: 2px 0; font-size: 19px; }
.profile-hero p { margin: 0; color: var(--product-muted); font-size: 10px; }
.profile-stats { margin: 10px 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--product-border); }
.profile-stats span { padding: 12px; display: grid; text-align: center; }
.profile-stats b { font-size: 17px; }
.profile-stats small { color: var(--product-muted); font-size: 9px; }
.profile-works h3 { font-size: 14px; }
.logout-button,
.admin-button { width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid var(--product-border); border-radius: 7px; background: #fff; font-weight: 800; }
.admin-button { background: var(--product-ink); color: #fff; }

.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; background: #eceef1; border-radius: 8px; }
.auth-tabs button { min-height: 38px; border: 0; border-radius: 6px; background: transparent; font-weight: 750; }
.auth-tabs button.active { background: #fff; box-shadow: 0 1px 4px rgba(20, 24, 28, .12); }
.auth-form { margin-top: 14px; display: grid; gap: 10px; }
.auth-form textarea { min-height: 84px; resize: vertical; }

.settings-account { margin-bottom: 12px; }
.settings-group { margin: 0; border-bottom: 1px solid var(--product-border); background: #fff; }
.settings-group:first-of-type { border-radius: 8px 8px 0 0; }
.settings-group:last-of-type { border-radius: 0 0 8px 8px; }
.settings-group summary { min-height: 50px; padding: 0 14px; display: flex; align-items: center; font-size: 13px; font-weight: 800; cursor: pointer; }
.settings-group > button { width: calc(100% - 28px); margin: 0 14px 8px; text-align: left; background: #f6f7f8; }
.settings-group > p { margin: 0; padding: 0 14px 13px; color: var(--product-muted); font-size: 10px; line-height: 1.55; }
.settings-row { min-height: 50px; margin: 0 14px; display: grid; grid-template-columns: minmax(112px, .8fr) minmax(0, 1fr) 40px; align-items: center; gap: 9px; border-top: 1px solid rgba(23, 23, 25, .07); font-size: 11px; }
.settings-row input[type="range"] { width: 100%; min-width: 0; accent-color: var(--product-blue); }
.settings-row input[type="color"] { grid-column: 2 / 4; width: 48px; height: 34px; justify-self: end; padding: 2px; border: 1px solid var(--product-border); border-radius: 6px; background: #fff; }
.settings-row input[type="checkbox"] { grid-column: 3; width: 22px; height: 22px; justify-self: end; accent-color: var(--product-green); }
.settings-row output { color: var(--product-muted); text-align: right; font-size: 9px; }

.admin-period { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.admin-period button.active { background: var(--product-ink); color: #fff; }
.admin-metrics { margin: 12px 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--product-border); border: 1px solid var(--product-border); border-radius: 8px; overflow: hidden; }
.admin-metrics span { min-height: 72px; padding: 11px 5px; background: #fff; display: grid; place-items: center; align-content: center; }
.admin-metrics b { font-size: 17px; }
.admin-metrics small { color: var(--product-muted); font-size: 9px; }
.admin-view-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 10px 0; }.admin-view-tabs button { min-height: 36px; border: 1px solid var(--product-border); border-radius: 7px; background: #fff; color: var(--product-muted); font-size: 10px; font-weight: 800; }.admin-view-tabs button.active { border-color: #1f7ae0; background: #edf5ff; color: #1769c2; }
#productSheet[data-admin-view="works"] .admin-user-section,#productSheet[data-admin-view="works"] .admin-traffic-section,#productSheet[data-admin-view="works"] .admin-growth-section,#productSheet[data-admin-view="traffic"] .admin-growth-section,#productSheet[data-admin-view="growth"] .admin-user-section,#productSheet[data-admin-view="growth"] .admin-traffic-section { display: none; }
#productSheet[data-admin-view="traffic"] .admin-filter,#productSheet[data-admin-view="growth"] .admin-filter { display: none; }
.moderation-list article { min-height: 64px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px 52px; align-items: center; gap: 7px; border-bottom: 1px solid var(--product-border); }
.moderation-list img { width: 52px; height: 52px; object-fit: cover; }
.moderation-list b,
.moderation-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moderation-list b { font-size: 11px; }
.moderation-list small { color: var(--product-muted); font-size: 9px; }
.moderation-list button { min-height: 36px; border: 0; border-radius: 6px; background: #e8f5ef; color: #176a4a; font-size: 10px; font-weight: 800; }
.moderation-list button[data-moderate="reject"] { background: #fff0ee; color: #a9372d; }
.admin-user-section,.admin-traffic-section,.admin-growth-section { margin: 18px 0; }
.admin-user-list article { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--product-border); }
.admin-user-list b,.admin-user-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-list b { font-size: 12px; }.admin-user-list small { color: var(--product-muted); font-size: 9px; }
.admin-traffic { display: flex; gap: 8px; text-align: right; }.admin-traffic span { min-width: 48px; }.admin-traffic b,.admin-traffic small { display: block; }.admin-traffic b { font-size: 11px; }.admin-traffic small { color: var(--product-muted); font-size: 8px; }
.admin-table-list { border: 1px solid var(--product-border); border-radius: 8px; overflow: hidden; }.admin-table-list article { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid var(--product-border); }.admin-table-list article:last-child { border-bottom: 0; }.admin-table-list b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.admin-table-list span { font-size: 10px; font-weight: 800; }.admin-table-list small { color: var(--product-muted); font-size: 9px; text-align: right; }
.my-work-review { display: inline-block; width: fit-content; margin-top: 5px; padding: 3px 6px; border-radius: 999px; background: #edf4ff; color: #1f67bb; font-size: 9px; font-style: normal; font-weight: 800; }.my-work-review.approved { background: #e8f6ef; color: #197451; }.my-work-review.rejected { background: #fff0ee; color: #ad3b30; }

.local-dock-button {
  position: fixed;
  z-index: 35;
  left: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  background: rgba(22, 22, 24, .86);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}
.local-dock { position: fixed; z-index: 45; left: 12px; bottom: calc(122px + env(safe-area-inset-bottom)); width: min(310px, calc(100vw - 24px)); max-height: 48dvh; overflow: hidden; background: #fff; border: 1px solid var(--product-border); border-radius: 8px; box-shadow: var(--product-shadow); }
.local-dock[hidden] { display: none; }
.local-dock header { height: 44px; padding: 0 9px 0 13px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--product-border); cursor: move; touch-action: none; }
.local-dock header button { width: 34px; height: 34px; border: 0; border-radius: 7px; background: #eceef1; }
#localDockList { max-height: calc(48dvh - 44px); overflow: auto; }
#localDockList > button { width: 100%; min-height: 62px; padding: 7px; border: 0; border-bottom: 1px solid var(--product-border); background: #fff; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; text-align: left; }
#localDockList img { width: 48px; height: 48px; object-fit: cover; border-radius: 5px; }
#localDockList b,
#localDockList small { display: block; }
#localDockList small { color: var(--product-muted); font-size: 9px; }

.tablet-edit-bar { position: fixed; z-index: 70; left: max(8px, env(safe-area-inset-left)); top: 50%; width: min(236px, calc(100vw - 16px)); max-height: calc(100dvh - 24px); padding: 7px; display: grid; gap: 7px; transform: translateY(-50%); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: rgba(22, 22, 24, .94); box-shadow: var(--product-shadow); backdrop-filter: blur(16px); transition: width .2s ease, padding .2s ease; }
.tablet-edit-bar[hidden] { display: none; }
.tablet-edit-head { min-height: 34px; display: flex; align-items: center; gap: 5px; color: #fff; }
.tablet-edit-head b { flex: 1; padding-left: 5px; font-size: 11px; letter-spacing: .08em; }
.tablet-edit-head button { width: 30px; min-width: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 6px; background: #4b4b50; color: #fff; font-size: 19px; line-height: 1; }
.tablet-edit-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; overflow: auto; }
.tablet-edit-bar button { min-width: 0; min-height: 40px; border: 0; border-radius: 6px; background: #3a3a3e; color: #fff; font-size: 10px; font-weight: 800; }
.tablet-edit-bar button.active { background: var(--product-blue); }
.tablet-edit-bar select { min-height: 42px; padding: 6px; background: #fff; }
.tablet-edit-bar[data-expanded="false"] { width: 44px; padding: 5px; }
.tablet-edit-bar[data-expanded="false"] .tablet-edit-head b,
.tablet-edit-bar[data-expanded="false"] #painterDockClose,
.tablet-edit-bar[data-expanded="false"] .tablet-edit-tools { display: none; }
.tablet-edit-bar[data-expanded="false"] .tablet-edit-head { min-height: 34px; }
.tablet-edit-bar[data-expanded="false"] #painterDockToggle { width: 34px; height: 44px; border-radius: 7px; font-size: 26px; }

.finish-actions,
.onboarding-choice,
.calibration-intro-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.finish-actions button,
.onboarding-choice button,
.calibration-intro-actions button { min-height: 48px; padding: 9px; border: 1px solid var(--product-border); border-radius: 8px; background: #f1f2f4; color: var(--product-ink); font-weight: 800; }
.onboarding-choice button { min-height: 82px; text-align: left; }
.onboarding-choice b,
.onboarding-choice span { display: block; }
.onboarding-choice span { margin-top: 5px; font-size: 9px; font-weight: 600; opacity: .76; }
.skip-onboarding { position: absolute; top: 14px; left: 14px; min-height: 34px; border: 0; background: transparent; color: var(--product-blue); font-weight: 800; }
.product-modal.onboarding-modal { padding-top: 58px; }
.product-loading { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--product-muted); }
.product-toast { position: fixed; z-index: 160; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); max-width: calc(100vw - 24px); padding: 10px 14px; border-radius: 7px; background: rgba(20, 20, 22, .92); color: #fff; opacity: 0; pointer-events: none; transition: .18s; font-size: 11px; text-align: center; }
.product-toast.show { opacity: 1; transform: translate(-50%, 0); }

.remote-calibrate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.remote-calibrate button { min-height: 46px; border: 1px solid var(--product-border); border-radius: 7px; background: #fff; font-weight: 800; }
.remote-setting { min-height: 48px; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 8px; border-top: 1px solid var(--product-border); font-size: 11px; }
.remote-setting input { width: 100%; accent-color: var(--product-blue); }

.app:not(.locked) .unlock-btn { bottom: calc(76px + env(safe-area-inset-bottom)); }
.app:not(.locked) .fullscreen-btn { bottom: calc(76px + env(safe-area-inset-bottom)); }
.board-locked .product-tabbar,
.board-locked .product-sheet,
.board-locked .local-dock-button,
.board-locked .local-dock { display: none !important; }
.locked.lock-peek .unlock-btn {
  display: flex !important;
  opacity: .32 !important;
  pointer-events: auto !important;
  transform: translateX(calc(100% - 14px)) !important;
}

@media (min-width: 760px) {
  .product-tabbar { inset: 0 auto 0 0; width: 76px; height: 100dvh; padding: max(70px, env(safe-area-inset-top)) 7px 18px; grid-template-columns: 1fr; grid-template-rows: repeat(4, 64px); align-content: start; border-top: 0; border-right: 1px solid var(--product-border); }
  .product-tabbar button { min-height: 60px; }
  .product-sheet { left: 76px; right: auto; bottom: 0; width: min(520px, calc(100vw - 76px)); height: 100dvh; border-top: 0; border-right: 1px solid var(--product-border); transform: translateX(-105%); }
  .product-sheet.open { transform: translateX(0); }
  .product-sheet-body { padding-bottom: 30px; }
  .local-dock-button { left: 88px; bottom: 14px; }
  .local-dock { left: 88px; bottom: 62px; }
  .app:not(.locked) .unlock-btn { left: auto; right: 18px; top: 58px; bottom: auto; }
  .app:not(.locked) .fullscreen-btn { top: 104px; bottom: auto; }
  .market-feed { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .product-sheet { height: calc(100dvh - 66px - env(safe-area-inset-bottom)); }
  .product-sheet-body { padding: 12px 10px 28px; }
  .studio-public-url { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .studio-public-url strong { font-size: 12px; }
  .studio-public-url-actions { min-width: 0; }
  .studio-public-url-actions button,
  .studio-public-url-actions a { min-height: 44px; }
  .launch-grid { grid-template-columns: 1fr; }
  .launch-tile { min-height: 78px; }
  .server-control-band { align-items: flex-start; }
  .server-control-band button { max-width: 112px; }
  .market-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-modal { padding: 20px 14px; border-radius: 10px; }
  .product-modal.onboarding-modal { padding-top: 58px; }
  .style-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .option-grid { grid-template-columns: 1fr; }
  .work-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-row { grid-template-columns: minmax(92px, .75fr) minmax(0, 1fr) 34px; margin-inline: 10px; }
  .moderation-list article { grid-template-columns: 44px minmax(0, 1fr) 48px 48px; }
  .moderation-list img { width: 44px; height: 44px; }
  .finish-actions { grid-template-columns: 1fr; }
  .onboarding-choice { grid-template-columns: 1fr; }
  .app:not(.locked) .unlock-btn { left: 10px; right: auto; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .app:not(.locked) .fullscreen-btn { right: 10px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .product-sheet,
  .product-modal-backdrop,
  .product-toast { transition: none; }
}

/* v48 creation, privacy, and review surfaces */
.workbench-tool-section,
.recent-project-section { margin-top: 14px; padding: 14px; border: 1px solid var(--product-border); border-radius: 8px; background: #fff; }
.workbench-tool-section p { margin: 7px 0 0; color: var(--product-muted); font-size: 10px; line-height: 1.5; }
.studio-color-switch { display: flex; gap: 6px; margin-top: 11px; overflow-x: auto; scrollbar-width: none; }
.studio-color-switch::-webkit-scrollbar { display: none; }
.studio-color-switch button { flex: 0 0 auto; min-height: 34px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid var(--product-border); border-radius: 7px; background: #f7f8fa; font-size: 10px; font-weight: 800; }
.studio-color-switch i { width: 14px; height: 14px; border: 1px solid rgba(0,0,0,.15); border-radius: 4px; }
.studio-color-switch b { color: var(--product-muted); font-size: 9px; }
.recent-project-section { margin-bottom: 10px; }
.studio-recent-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.studio-recent-list > span { grid-column: 1 / -1; color: var(--product-muted); font-size: 10px; }
.studio-recent-list button { min-width: 0; padding: 0; border: 1px solid var(--product-border); border-radius: 7px; overflow: hidden; background: #fff; text-align: left; }
.studio-recent-list img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #f0f1f2; }
.studio-recent-list span { display: grid; gap: 2px; padding: 6px; }
.studio-recent-list b,.studio-recent-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-recent-list b { font-size: 9px; }.studio-recent-list small { color: var(--product-muted); font-size: 8px; }

.palette-picker-modal { width: min(680px,100%); }
.palette-search { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 9px; margin: 10px 0 6px; color: var(--product-muted); font-size: 10px; font-weight: 800; }
.palette-search input { min-width: 0; min-height: 42px; border: 1px solid var(--product-border); border-radius: 8px; padding: 0 11px; background: #fff; color: var(--product-ink); font-size: 16px; touch-action: manipulation; }
.palette-search input:focus { border-color: var(--product-blue); outline: 3px solid rgba(42,112,214,.14); }
.palette-family-tabs { display: flex; gap: 6px; margin: 12px 0; overflow-x: auto; scrollbar-width: none; }
.palette-family-tabs::-webkit-scrollbar { display: none; }
.palette-family-tabs button { flex: 0 0 auto; min-height: 35px; padding: 0 10px; border: 1px solid var(--product-border); border-radius: 7px; background: #f5f6f8; color: var(--product-ink); font-size: 10px; font-weight: 800; }
.palette-family-tabs button.active { border-color: var(--product-blue); background: #edf4ff; color: #145bb9; }
.palette-swatch-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(82px,1fr)); gap: 7px; max-height: 54dvh; overflow: auto; touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
.palette-swatch { min-height: 78px; padding: 7px; border: 1px solid var(--product-border); border-radius: 7px; background: #fff; display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 6px; text-align: left; }
.palette-swatch.active { outline: 2px solid var(--product-blue); outline-offset: -2px; }.palette-swatch i { grid-row: 1 / span 2; width: 20px; height: 42px; border: 1px solid rgba(0,0,0,.12); border-radius: 5px; }.palette-swatch b { font-size: 10px; }.palette-swatch small { overflow: hidden; color: var(--product-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.scheme-slider { padding: 14px; border: 1px solid var(--product-border); border-radius: 8px; background: #f7f8fa; }.scheme-slider output { display: block; margin-bottom: 9px; color: var(--product-blue); font-size: 22px; font-weight: 850; }.scheme-slider input { width: 100%; accent-color: var(--product-blue); }.scheme-slider div { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 11px; }.scheme-slider button { min-height: 34px; border: 1px solid var(--product-border); border-radius: 6px; background: #fff; font-size: 10px; font-weight: 800; }
.modal-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }.modal-action-row button { min-height: 46px; border: 1px solid var(--product-border); border-radius: 8px; background: #f1f2f4; font-weight: 800; }
.painter-current { display: grid; grid-template-columns: minmax(0,1fr) 92px; gap: 8px; }.painter-current button { min-height: 48px; border: 1px solid var(--product-border); border-radius: 8px; background: #f6f7f9; font-weight: 800; }.painter-current button:first-child { display: flex; align-items: center; gap: 9px; padding: 0 12px; }.painter-current i { width: 26px; height: 26px; border: 1px solid rgba(0,0,0,.14); border-radius: 6px; }.painter-tools { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 12px; }.painter-tools button { min-height: 40px; border: 1px solid var(--product-border); border-radius: 7px; background: #fff; font-size: 10px; font-weight: 800; }.painter-tools button:first-child { background: #edf4ff; color: #145bb9; border-color: rgba(40,120,240,.32); }.painter-background { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-top: 12px; padding: 0 11px; border: 1px solid var(--product-border); border-radius: 8px; font-size: 11px; font-weight: 800; }.painter-background input { width: 42px; height: 30px; padding: 2px; border: 1px solid var(--product-border); border-radius: 6px; }

.editor-final-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; }.editor-final-actions button { min-height: 42px; border: 1px solid var(--product-border); border-radius: 7px; background: #f1f2f4; font-size: 10px; font-weight: 800; }.editor-final-actions button:last-child { background: var(--product-ink); border-color: var(--product-ink); color: #fff; }
.settings-primary-row { width: 100%; min-height: 50px; margin: 0 0 12px; border: 1px solid rgba(40,120,240,.28); border-radius: 8px; background: #edf4ff; color: #145bb9; font-weight: 850; text-align: left; padding: 0 14px; }.settings-group summary { list-style: none; }.settings-group summary::-webkit-details-marker { display: none; }.settings-group summary::after { content: '›'; margin-left: auto; color: var(--product-muted); font-size: 22px; transition: transform .18s; }.settings-group[open] summary::after { transform: rotate(90deg); }.settings-row select { grid-column: 2 / 4; width: 100%; min-height: 34px; border: 1px solid var(--product-border); border-radius: 6px; background: #f6f7f9; padding: 0 8px; }.release-notes article { padding: 13px 0; border-bottom: 1px solid var(--product-border); }.release-notes article:last-child { border-bottom: 0; }.release-notes span { color: var(--product-blue); font-size: 9px; font-weight: 800; }.release-notes h3 { margin: 5px 0 7px; font-size: 14px; }.release-notes ul { margin: 0; padding-left: 18px; color: var(--product-muted); font-size: 11px; line-height: 1.65; }
.support-qr-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }.support-qr-grid figure { margin: 0; padding: 10px; border: 1px solid var(--product-border); border-radius: 8px; text-align: center; }.support-qr-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; }.support-qr-grid figcaption { margin-top: 6px; font-size: 11px; font-weight: 800; }
.admin-filter { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 8px; }.admin-filter button { min-height: 38px; border: 1px solid var(--product-border); border-radius: 7px; background: #fff; font-size: 10px; font-weight: 800; }.admin-filter button.active { background: var(--product-blue); border-color: var(--product-blue); color: #fff; }.admin-details { margin-top: 12px; padding: 0 13px 12px; border: 1px solid var(--product-border); border-radius: 8px; background: #fff; }.admin-details summary { min-height: 46px; display: flex; align-items: center; font-size: 12px; font-weight: 850; cursor: pointer; }.admin-status { padding: 0 6px; color: var(--product-muted); font-size: 9px; text-align: center; }.admin-feedback article { padding: 10px 0; border-top: 1px solid var(--product-border); }.admin-feedback b { font-size: 10px; }.admin-feedback p { margin: 4px 0; color: var(--product-muted); font-size: 10px; line-height: 1.5; }.admin-feedback img { width: 58px; height: 58px; margin: 4px 4px 0 0; object-fit: cover; border-radius: 5px; }
.tablet-edit-bar { max-width: min(96vw, 330px); }.tablet-edit-bar select { min-width: 0; }
@media (max-height: 700px) and (min-width: 561px) { .tablet-edit-bar { width: min(330px, calc(100vw - 16px)); }.tablet-edit-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tablet-edit-bar button { min-height: 36px; } }
body[data-lock-position='left'] .unlock-btn { left: 12px !important; right: auto !important; }body[data-lock-position='right'] .unlock-btn { right: 18px; left: auto; }body[data-fullscreen-position='left'] .fullscreen-btn { left: 12px !important; right: auto !important; }body[data-fullscreen-position='right'] .fullscreen-btn { right: 142px; left: auto; }body[data-workbench-position='left'] #productTabbar [data-product-tab='studio'] { order: -1; }

/* Keep the lock control directly above fullscreen on phones. */
@media (max-width: 560px) {
  .app:not(.locked) .unlock-btn { left: auto; right: 10px; bottom: calc(124px + env(safe-area-inset-bottom)); }
  .app:not(.locked) .fullscreen-btn { left: auto; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) { .studio-recent-list { grid-template-columns: repeat(3,minmax(0,1fr)); }.palette-swatch-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.painter-tools { grid-template-columns: repeat(2,1fr); }.editor-final-actions { grid-template-columns: 1fr; }.settings-row select { min-width: 0; }.tablet-edit-bar { left: 6px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom)); transform: none; width: min(330px, calc(100vw - 12px)); }.tablet-edit-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: min(50dvh, 260px); }.tablet-edit-bar button { min-height: 36px; }.support-qr-grid { grid-template-columns: 1fr 1fr; }body[data-fullscreen-position='right'] .fullscreen-btn { right: 10px; }.modal-action-row { grid-template-columns: 1fr; } }

/* The board color tray belongs to the board, never over an open workbench. */
body.product-sheet-open .color-quick-btn,
body.product-sheet-open .color-quick-menu { display: none !important; }
.sheet-back { touch-action: manipulation; }
.color-quick-btn,
.color-quick-menu { z-index: 23 !important; }

/* Local project management lives in the My tab, not in a temporary floating tray. */
.my-account-summary,
.my-local-library,
.my-published-library {
  margin-bottom: 14px;
}

.my-account-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--product-border);
  border-radius: 8px;
  background: var(--product-surface);
}

.my-account-summary span,
.my-account-summary p {
  color: var(--product-muted);
  font-size: 10px;
}

.my-account-summary h2 { margin: 3px 0; font-size: 17px; }
.my-account-summary p { margin: 0; line-height: 1.45; }
.my-account-summary button { min-height: 42px; flex: 0 0 auto; }
.my-published-card { position: relative; min-width: 0; }
.my-published-card .market-work { width: 100%; height: 100%; }
.my-published-delete { position: absolute; right: 6px; top: 6px; z-index: 1; min-height: 30px; padding: 0 9px; border: 1px solid #efc1b9; border-radius: 6px; color: #9b3028; background: rgba(255, 244, 241, .96); font-size: 9px; font-weight: 850; }
.my-account-identity { display: flex; align-items: center; min-width: 0; gap: 10px; }
.my-account-identity .author-avatar { width: 46px; height: 46px; font-size: 16px; }
.my-account-actions { display: grid; flex: 0 0 auto; gap: 6px; }
.my-account-actions button { min-width: 100px; }
.avatar-publish-notice { margin: 0 0 12px !important; padding: 9px 10px; border: 1px solid rgba(40,120,240,.25); border-radius: 7px; background: #edf4ff; color: #145bb9 !important; font-weight: 750; }
.avatar-work-picker { display: grid; grid-template-columns: repeat(auto-fill,minmax(104px,1fr)); gap: 10px; margin-top: 14px; }
.avatar-work-picker button { overflow: hidden; min-width: 0; padding: 0; border: 1px solid var(--product-border); border-radius: 10px; background: #fff; color: var(--product-ink); text-align: left; }
.avatar-work-picker button:active { transform: scale(.98); }
.avatar-work-picker img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #f2efe9; }
.avatar-work-picker span { display: block; overflow: hidden; padding: 7px 8px; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

.my-local-work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.my-local-work {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--product-border);
  border-radius: 8px;
  background: var(--product-surface);
  color: var(--product-ink);
  text-align: left;
  display: block;
  touch-action: manipulation;
}

.my-local-work.legacy > img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  background: #f4f2ed;
  image-rendering: pixelated;
}

.my-local-work > span { display: grid; gap: 2px; padding: 7px; min-width: 0; }
.my-local-work b,
.my-local-work small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-local-work b { font-size: 11px; }
.my-local-work small { color: var(--product-muted); font-size: 9px; }

.local-work-detail-modal { width: min(720px, 100%); }
.local-work-detail-image { display: block; width: 100%; max-height: 46dvh; object-fit: contain; background: #f4f2ed; border-radius: 8px; image-rendering: pixelated; }
.local-work-description { margin: 14px 0; color: var(--product-muted); font-size: 12px; line-height: 1.55; }
.local-work-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.local-work-actions button { min-height: 42px; border: 1px solid var(--product-border); border-radius: 7px; background: #f1f2f4; color: var(--product-ink); font-size: 11px; font-weight: 750; }
.local-work-actions button:disabled { opacity: .42; }
.local-work-actions button.danger { color: #b23b31; background: #fff4f1; border-color: #efc1b9; }

/* Legacy horizontal-card rules kept for older cached markup. */
.my-local-work.legacy {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--product-border);
  border-radius: 8px;
  background: var(--product-surface);
}

.my-local-work > img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #f4f2ed;
  image-rendering: pixelated;
}

.my-local-work.legacy .my-local-work-main { min-width: 0; display: grid; gap: 8px; }
.my-local-work.legacy h3 { margin: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.my-local-work.legacy p { margin: 3px 0 0; color: var(--product-muted); font-size: 10px; }

.my-local-work.legacy .my-local-work-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.my-local-work.legacy .my-local-work-actions button {
  min-width: 0;
  min-height: 31px;
  overflow: hidden;
  border: 1px solid var(--product-border);
  border-radius: 6px;
  background: #f7f7f8;
  color: var(--product-ink);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-local-work.legacy .my-local-work-actions button:disabled { opacity: .42; }
.my-local-work.legacy .my-local-work-actions button.danger { color: #b23b31; background: #fff4f1; border-color: #efc1b9; }

@media (max-width: 560px) {
  .my-account-summary { align-items: flex-start; }
  .my-account-summary button { min-width: 84px; }
  .my-local-work-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .my-local-work.legacy { grid-template-columns: 76px minmax(0, 1fr); }
  .my-local-work.legacy > img { width: 76px; height: 76px; }
  .my-local-work.legacy .my-local-work-actions button { min-height: 30px; padding: 0 4px; font-size: 9px; }
}
@media (max-width: 560px) {
  .color-quick-btn { left: auto; right: 10px; top: 56px; bottom: auto; }
  .color-quick-menu { left: auto; right: 10px; top: 96px; bottom: auto; max-height: min(34dvh, 280px); }
}

/* Tablet and desktop: keep the board clear and place the full workbench at lower right. */
@media (min-width: 760px) {
  .product-tabbar {
    inset: auto 18px 18px auto;
    width: min(420px, calc(100vw - 36px));
    height: 66px;
    padding: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 1fr;
    align-content: stretch;
    border: 1px solid var(--product-border);
    border-radius: 12px;
    box-shadow: var(--product-shadow);
  }
  .product-tabbar button { min-height: 52px; }
  .product-sheet {
    left: auto;
    right: 18px;
    bottom: 96px;
    width: min(420px, calc(100vw - 36px));
    height: min(76dvh, 720px);
    border: 1px solid var(--product-border);
    border-radius: 12px;
    transform: translateY(calc(100% + 20px));
  }
  .product-sheet.open { transform: translateY(0); }
  .product-sheet-body { padding-bottom: 28px; }
  .product-sheet .market-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-dock-button { left: auto; right: 18px; bottom: 96px; }
  .local-dock { left: auto; right: 18px; bottom: 154px; width: min(420px, calc(100vw - 36px)); }
  .tool-panel,
  .orb-btn { display: none !important; }
  .app:not(.locked) .unlock-btn { left: auto !important; right: 18px !important; top: 58px !important; bottom: auto !important; }
  .app:not(.locked) .fullscreen-btn { left: auto !important; right: 18px !important; top: 104px !important; bottom: auto !important; max-width: calc(100vw - 36px); }
}

/* The paint dock is intentionally available on desktop after it is opened. */
@media (min-width: 760px) {
  .tablet-edit-bar:not([hidden]) { display: grid !important; }
}
.painter-dock-visible .tablet-edit-bar { display: grid !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; }

/* v59: one coordinated right-side rail for board controls. */
.app:not(.locked) .unlock-btn,
.app:not(.locked) .fullscreen-btn,
.app:not(.locked) .place-image-btn,
.app:not(.locked) .color-quick-btn {
  left: auto !important;
  right: 18px !important;
  bottom: auto !important;
  width: 92px;
  min-width: 92px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  z-index: 26 !important;
  font-size: 11px;
  box-shadow: 0 8px 22px rgba(32, 48, 43, .22);
}
.app:not(.locked) .unlock-btn { top: 58px !important; gap: 5px; }
.app:not(.locked) .fullscreen-btn { top: 100px !important; }
.app:not(.locked) .place-image-btn { top: 142px !important; }
.app:not(.locked) .color-quick-btn {
  top: 184px !important;
  right: 18px !important;
  width: 100px;
  min-width: 100px;
  height: 40px;
  font-size: 12px;
  font-weight: 900;
}
.app:not(.locked):not(.empty-board) .board-page-switcher {
  top: 234px;
}
.app:not(.locked).empty-board .board-page-switcher {
  top: 142px;
}
.app:not(.locked) .color-quick-menu {
  top: 232px;
  right: 18px;
  bottom: auto;
  z-index: 40 !important;
}

@media (max-width: 560px) {
  .app:not(.locked) .unlock-btn,
  .app:not(.locked) .fullscreen-btn,
  .app:not(.locked) .place-image-btn {
    right: 10px !important;
    width: 88px;
    min-width: 88px;
    height: 34px;
  }
  .app:not(.locked) .unlock-btn { top: 52px !important; }
  .app:not(.locked) .fullscreen-btn { top: 92px !important; }
  .app:not(.locked) .place-image-btn { top: 132px !important; }
  .app:not(.locked) .color-quick-btn {
    top: 172px !important;
    right: 10px !important;
    width: 96px;
    min-width: 96px;
    height: 40px;
  }
  .app:not(.locked):not(.empty-board) .board-page-switcher {
    top: 220px;
    right: 10px;
  }
  .app:not(.locked).empty-board .board-page-switcher {
    top: 132px;
    right: 10px;
  }
  .app:not(.locked) .color-quick-menu {
    top: 218px;
    right: 10px;
    bottom: auto;
    max-height: min(34dvh, 280px);
  }
}

/* Remote mobile workbench. */
.control-mode .control-view {
  background: #eef2ef;
  color: #242522;
}
.remote-appbar {
  position: sticky;
  z-index: 35;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 9px max(14px, env(safe-area-inset-right)) 9px max(14px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(35, 45, 40, .11);
  background: rgba(250, 252, 250, .96);
  backdrop-filter: blur(18px);
}
.remote-appbar span,
.remote-section-head span,
.remote-summary > div:first-child > span {
  color: #61736b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
}
.remote-appbar h1 {
  margin: 2px 0 0;
  font-size: 19px;
  letter-spacing: 0;
}
.remote-connection {
  max-width: 52%;
  padding: 7px 9px;
  border: 1px solid #d1d8d4;
  border-radius: 7px;
  background: #fff;
  color: #68726d;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}
.remote-connection.online {
  border-color: #9dccb9;
  background: #eaf6f0;
  color: #21684f;
}

.remote-appbar-actions{display:flex;align-items:center;gap:8px}.remote-appbar-actions>button{border:1px solid rgba(255,255,255,.28);border-radius:10px;background:rgba(255,255,255,.12);color:#fff;padding:7px 9px;font-size:10px;font-weight:800;white-space:nowrap}@media(max-width:560px){.remote-appbar-actions{gap:6px}.remote-appbar-actions>button{padding:6px 7px;font-size:9px}.remote-appbar-actions .remote-connection{font-size:9px}}
.remote-preview-thumb{display:grid;width:100%;grid-template-columns:66px minmax(0,1fr);align-items:center;gap:9px;margin-top:10px;padding:6px;border:1px solid #e4ddd3;border-radius:12px;background:#fff;text-align:left}.remote-preview-thumb img{width:66px;height:52px;object-fit:cover;border-radius:8px;background:#eee7dd}.remote-preview-thumb span{font-size:11px;font-weight:800;color:#4b5b53}.remote-preview-modal{width:min(920px,calc(100vw - 24px))}.remote-preview-large{max-height:70vh;overflow:auto;border-radius:15px;background:#292724;touch-action:pan-x pan-y pinch-zoom}.remote-preview-large img{display:block;width:100%;min-width:560px;height:auto}.remote-preview-modal>p{margin-right:48px}
.remote-workbench {
  width: min(560px, 100%);
  padding: 12px 10px calc(28px + env(safe-area-inset-bottom));
}
.remote-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(35, 45, 40, .13);
  border-radius: 8px;
  background: #252824;
  color: #fff;
}
.remote-summary h2 {
  margin: 3px 0;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.remote-summary p {
  margin: 0;
  color: #bfc8c3;
  font-size: 10px;
}
.remote-summary-badges {
  display: grid;
  gap: 5px;
}
.remote-summary-badges b {
  min-width: 72px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  font-size: 9px;
  text-align: center;
  white-space: nowrap;
}
.control-view .control-card {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(35, 45, 40, .13);
  border-radius: 8px;
  background: #fff;
}
.remote-section-head,
.remote-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.remote-section-head {
  margin-bottom: 11px;
}
.remote-section-head h2 {
  margin: 2px 0 0;
  font-size: 15px;
}
.remote-section-head > button,
.remote-section-head > b {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #d7ddd9;
  border-radius: 7px;
  background: #f4f6f5;
  color: #4d5953;
  font-size: 9px;
  font-weight: 850;
}
.remote-control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.remote-control-grid + .remote-control-grid {
  margin-top: 6px;
}
.remote-control-grid button,
.remote-tool-grid button,
.remote-view-switch button,
.remote-page-row button,
.remote-step-switch button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid #d9dedb;
  border-radius: 7px;
  background: #f4f6f5;
  color: #37413c;
  font-size: 10px;
  font-weight: 850;
  touch-action: manipulation;
}
.remote-control-primary button {
  background: #272b28;
  color: #fff;
}
.remote-control-primary button.active,
.remote-control-secondary button.active,
.remote-view-switch button.active {
  border-color: #2f9b76;
  background: #dff2ea;
  color: #176346;
}
.remote-view-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.remote-move-block {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #e2e6e3;
}
.remote-subhead b {
  font-size: 12px;
}
.remote-subhead span {
  color: #6d7973;
  font-size: 9px;
}
.remote-move-touchpad {
  display: grid;
  place-items: center;
  min-height: 92px;
  margin-top: 8px;
  border: 1px dashed #9eb2a8;
  border-radius: 8px;
  background: #edf5f1;
  color: #315f4e;
  touch-action: none;
  user-select: none;
}
.remote-move-touchpad b,
.remote-move-touchpad span {
  display: block;
  pointer-events: none;
}
.remote-move-touchpad b {
  font-size: 13px;
}
.remote-move-touchpad span {
  margin-top: -18px;
  color: #6d8178;
  font-size: 9px;
}
.remote-move-touchpad.dragging {
  border-style: solid;
  border-color: #2f9b76;
  background: #dff2ea;
}
.remote-move-touchpad.disabled {
  border-style: solid;
  border-color: #d8ddda;
  background: #f5f6f5;
  color: #89928d;
  opacity: .72;
}
.control-mode .remote-workbench button,
.control-mode .remote-workbench label,
.control-mode .remote-workbench summary,
.control-mode .remote-workbench .remote-move-touchpad {
  -webkit-user-select: none;
  user-select: none;
}
.remote-move-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}
.remote-move-controls button {
  min-width: 0;
  height: 40px;
  border: 1px solid #d4dad6;
  border-radius: 7px;
  background: #2b2f2c;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}
.remote-move-controls button:nth-child(3) {
  font-size: 10px;
}
.remote-step-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}
.remote-step-switch button {
  min-height: 34px;
}
.remote-step-switch button.active {
  border-color: #d4a13a;
  background: #fff2cf;
  color: #785817;
}
.remote-page-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.remote-page-row b {
  min-width: 76px;
  color: #526059;
  font-size: 9px;
  text-align: center;
}
.remote-upload-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.remote-upload-card.remote-upload-paused {
  position: relative;
  overflow: hidden;
}
.remote-upload-card.remote-upload-paused > :not(.remote-upload-unavailable) {
  opacity: .34;
  filter: grayscale(1);
  pointer-events: none;
  user-select: none;
}
.remote-upload-unavailable {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 5px;
  width: 100%;
  border: 0;
  background: rgba(231, 234, 232, .56);
  color: #59615d;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.remote-upload-unavailable b { font-size: 14px; }
.remote-upload-unavailable span { font-size: 10px; font-weight: 700; }
.remote-upload-unavailable:active { background: rgba(218, 223, 220, .7); }
.remote-upload-modes button {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 72px;
  padding: 9px;
  border: 1px solid #d9dedb;
  border-radius: 7px;
  background: #f5f7f6;
  color: #303b35;
  text-align: left;
}
.remote-upload-modes button.active {
  border-color: #e05f4a;
  background: #fff0ed;
  box-shadow: inset 0 0 0 1px rgba(224, 95, 74, .12);
}
.remote-upload-modes b {
  font-size: 11px;
}
.remote-upload-modes span {
  color: #728078;
  font-size: 8px;
  line-height: 1.4;
}
.remote-file-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}
.remote-file-actions label {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 46px;
  border: 1px solid #cbd4cf;
  border-radius: 7px;
  background: #eef3f0;
  color: #324c40;
  font-size: 11px;
  cursor: pointer;
}
.remote-file-actions input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.remote-file-actions label b { pointer-events: none; }
.remote-upload-preview {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-top: 9px;
  padding: 8px;
  border: 1px solid #d9dedb;
  border-radius: 7px;
  background: #fafbfa;
}
.remote-upload-preview[hidden] {
  display: none;
}
.remote-upload-preview img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 5px;
  background: #e7ebe8;
}
.remote-upload-preview b,
.remote-upload-preview span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.remote-upload-preview b {
  font-size: 11px;
}
.remote-upload-preview span {
  margin-top: 4px;
  color: #748078;
  font-size: 9px;
}
.remote-upload-preview button {
  min-height: 34px;
  border: 1px solid #e0c4be;
  border-radius: 6px;
  background: #fff2ef;
  color: #a44535;
  font-size: 9px;
}
.remote-upload-options {
  margin-top: 9px;
  border-top: 1px solid #e2e6e3;
}
.remote-upload-options summary,
.remote-settings-card summary,
.remote-tools-card summary,
.remote-extra summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  color: #4e5b55;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.remote-upload-options summary::-webkit-details-marker,
.remote-settings-card summary::-webkit-details-marker,
.remote-tools-card summary::-webkit-details-marker,
.remote-extra summary::-webkit-details-marker {
  display: none;
}
.remote-upload-options > label,
.remote-toggle,
.remote-setting {
  min-height: 45px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border-top: 1px solid #edf0ee;
  color: #55635c;
  font-size: 10px;
}
.remote-upload-options select {
  width: 100%;
  min-height: 35px;
  border: 1px solid #d7ddd9;
  border-radius: 6px;
  background: #fff;
  padding: 0 7px;
}
.remote-toggle span b,
.remote-toggle span small {
  display: block;
}
.remote-toggle span small {
  margin-top: 2px;
  color: #87918c;
  font-size: 8px;
}
.remote-toggle input,
.remote-setting input[type="checkbox"] {
  justify-self: end;
  width: 22px;
  height: 22px;
  accent-color: #2f9b76;
}
.remote-send-image {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 0;
  border-radius: 7px;
  background: #e05f4a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.remote-send-image:disabled {
  background: #c8cfcb;
  color: #f5f6f5;
}
.remote-upload-progress {
  position: relative;
  min-height: 30px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf0ee;
}
.remote-upload-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #cde9dd;
  transition: width .18s ease;
}
.remote-upload-progress span {
  position: relative;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  color: #53615a;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}
.remote-transfer-route {
  margin: 7px 2px 0;
  color: #718078;
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}
.remote-transfer-route::before {
  content: '●';
  margin-right: 5px;
  color: #2f9b76;
}
.remote-transfer-overlay { z-index: 185; }
.remote-transfer-overlay .upload-progress-head span { color: #1d7257; }
.remote-transfer-overlay small { color: #65766d; }
.remote-color-card .color-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: 178px;
  overflow: auto;
}
.remote-color-card .color-chip {
  min-height: 62px;
  padding: 5px;
  border-radius: 6px;
}
.remote-color-card .color-chip i {
  height: 24px;
}
.remote-setting input[type="range"] {
  width: 100%;
  accent-color: #2f9b76;
}
.remote-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding-top: 4px;
}
.remote-tool-grid button:last-child {
  border-color: #e0c4be;
  background: #fff2ef;
  color: #a44535;
}
.remote-receive-modal,
.remote-fullscreen-modal {
  width: min(430px, calc(100vw - 24px));
  border-radius: 10px;
}
.remote-receive-modal > img {
  display: block;
  width: 100%;
  max-height: 48dvh;
  margin-top: 12px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ecefeb;
}
.remote-receive-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
}
.remote-receive-meta b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.remote-receive-meta span {
  color: #69766f;
  font-size: 9px;
  white-space: nowrap;
}
.remote-receive-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.remote-receive-actions button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f2f4f3;
  font-weight: 850;
}
.remote-receive-actions .primary-btn {
  border: 0;
  background: #e05f4a;
}

@media (max-width: 420px) {
  .remote-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .remote-upload-modes {
    grid-template-columns: 1fr;
  }
  .remote-upload-modes button {
    min-height: 54px;
  }
  .remote-color-card .color-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .remote-summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .remote-summary-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .remote-summary-badges b {
    min-width: 0;
  }
}

.qr-network-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}
.qr-network-switch button {
  min-height: 38px;
  border: 1px solid #d7ddd9;
  border-radius: 7px;
  background: #f3f5f4;
  color: #4d5953;
  font-size: 11px;
  font-weight: 850;
}
.qr-network-switch button.active {
  border-color: #2f9b76;
  background: #dff2ea;
  color: #176346;
}
.qr-network-switch button:disabled { opacity: .45; }
.qr-route-hint {
  display: block;
  margin-top: 7px;
  color: #61736b;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}
.resource-saver-notice{margin:0 0 14px;padding:12px 14px;border:1px solid #d8c9ae;border-radius:14px;background:#fff8e9;color:#765c2e;font-size:13px;line-height:1.55}
