.factory-studio { --factory-teal: #287e76; --factory-ink: #353d3a; color: var(--factory-ink); }
.factory-eyebrow { font-size: 10px; letter-spacing: .18em; font-weight: 800; color: #79938b; margin-bottom: 7px; }
.factory-muted { color: #7b847e; font-size: 12px; line-height: 1.7; }
.factory-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr); grid-template-areas: 'overview ads' 'stage tools'; gap: 13px 20px; }
.factory-work-overview { grid-area: overview; display: grid; gap: 8px; min-width: 0; padding: 10px 13px; border: 1px solid #e4e9e5; border-radius: 14px; background: #fff; }
.factory-main { grid-area: stage; display: flex; flex-direction: column; min-width: 0; container: factory-workspace / inline-size; }
.factory-stage { --factory-stage-gutter: 16px; flex: 1; overflow: hidden; position: relative; border-radius: 18px; border: 1px solid #e4e9e5; background: #fff; }
.factory-stage-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'tabs zoom';
  align-items: center;
  gap: 6px 8px;
  padding: 10px var(--factory-stage-gutter) 6px;
}
.factory-stage-top:has(.factory-view-tools) { grid-template-areas: 'tabs zoom' 'size size'; }
.factory-stage-dimensions { grid-area: size; margin: 0; font-variant-numeric: tabular-nums; line-height: 16px; }
.factory-floor-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.factory-floor-tabs .quiet-button { padding: 4px 8px; min-height: 29px; font-size: 11px; border: 1px solid #d5d9ce; background: #ffffff60; color: #718071; border-radius: 7px; }
.factory-floor-tabs [aria-pressed='true'] { background: #617c69; border-color: #617c69; color: white; }
.factory-room-wrap { padding: 20px 28px 18px; min-height: 380px; display: flex; align-items: center; }
.factory-room { display: block; width: 100%; max-height: 470px; overflow: visible; filter: drop-shadow(0 14px 10px #5e5a4620); }
.factory-cell { cursor: pointer; transition: fill .18s; outline: none; }
.factory-cell:focus-visible { stroke: #748465; stroke-width: 2px; }
.factory-cell:focus-visible { filter: brightness(1.12); }
.factory-object { cursor: pointer; outline: none; }
.factory-object-floating { cursor: grabbing; filter: drop-shadow(0 10px 7px #574c3438); }
.factory-ground-footprint { stroke-linejoin: round; }
.factory-table-slot { cursor: pointer; outline: none; }
.factory-table-slot:hover, .factory-table-slot:focus-visible { fill: #a9d78c88; stroke: #487d42; stroke-width: 2; }
.factory-object:focus-visible > rect { stroke: #438378; stroke-width: 2; stroke-dasharray: 4 3; }
.factory-building .factory-object:hover polygon, .factory-building .factory-object:focus-visible polygon { stroke: #377d6c; stroke-width: 2; }
.factory-print-led { animation: factory-print 2.4s ease-in-out infinite; }
@keyframes factory-print { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
.factory-stage-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; block-size: 32px; padding-inline: var(--factory-stage-gutter); border-top: 1px solid #edf0ed; line-height: 1.3; }
.factory-stage-bottom > :last-child { min-width: 0; overflow: hidden; text-align: end; text-overflow: ellipsis; white-space: nowrap; }
.factory-selection-clear { align-self: stretch; padding: 0 4px; border: 0; background: transparent; color: #365f4c; font: inherit; font-weight: 750; }
.factory-selection-clear:hover { text-decoration: underline; }
.factory-selection-clear:focus-visible { border-radius: 5px; outline-offset: -3px; }
.factory-live { display: inline-flex; align-items: center; gap: 6px; color: #69836b; white-space: nowrap; }
.factory-live::before { content: ''; width: 6px; height: 6px; background: #87a786; border-radius: 50%; }
.factory-side { grid-area: tools; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; overflow: hidden; border: 1px solid #e4e9e5; border-radius: 18px; background: #fff; }
.factory-side-sheet, .factory-sheet-body { display: contents; }
.factory-sheet-header { display: none; }
.factory-panel-tabs { --tool-height: 53px; display: grid; grid-template-columns: minmax(0, 3fr) 1px minmax(0, 2fr); gap: 7px; padding: 9px; border-bottom: 1px solid #edf0ed; }
.factory-panel-tabs::after { content: ''; grid-column: 2; grid-row: 1; margin-block: 7px; background: #bbcbbd; }
.factory-panel-tool-group { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.factory-panel-tool-group.is-workspace { --tool-border: transparent; --tool-ink: #365c3b; --tool-selected: #dbead4; --tool-accent: #79976d; grid-column: 1; padding: 3px; gap: 2px; border-radius: 10px; background: #edf4e9; box-shadow: inset 0 0 0 1px #cbd9c7; }
.factory-panel-tool-group.is-activity { grid-column: 3; gap: 5px; }
.factory-panel-tabs button { display: grid; place-content: center; justify-items: center; gap: 1px; min-height: var(--tool-height); padding: 3px 1px; border: 1px solid var(--tool-border); border-radius: 10px; color: var(--tool-ink); background: var(--tool-surface, transparent); font-size: 12px; font-weight: 700; text-align: center; cursor: pointer; }
.factory-panel-tool-group.is-workspace button { min-height: calc(var(--tool-height) - 6px); border-radius: 7px; }
.factory-panel-tabs [data-factory-panel='shop'] { --tool-surface: #e6f1f8; --tool-border: #adcadc; --tool-ink: #2c5875; --tool-selected: #d5e8f4; --tool-accent: #6d98b4; }
.factory-panel-tabs [data-factory-panel='missions'] { --tool-surface: #fcf0d8; --tool-border: #e4ca96; --tool-ink: #744e22; --tool-selected: #f6e3bd; --tool-accent: #b89154; }
.factory-panel-tabs button:is(:hover, [aria-pressed='true']) { border-color: var(--tool-accent); background: var(--tool-selected); }
.factory-panel-tabs button[aria-pressed='true'] { box-shadow: inset 0 0 0 1px var(--tool-accent); }
.factory-panel-tabs button:active { translate: 0 1px; }
.factory-panel-content { padding: 16px; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d3ded3 transparent; }
.factory-panel-content h3 { font-size: 14px; margin-bottom: 3px; }
.factory-catalog { display: grid; gap: 6px; margin-top: 17px; }
.factory-item { display: grid; grid-template-columns: 65px minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 8px 0; border-bottom: 1px solid #edf0e9; }
.factory-sprite { display: block; width: 65px; height: 65px; }
.factory-sprite > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.factory-object-control { cursor: pointer; outline: none; filter: drop-shadow(0 2px 3px #354c4130); }
.factory-object-control:hover circle, .factory-object-control:focus-visible circle { fill: #e2f0e5; stroke: #497c60; stroke-width: 2; }
.factory-object-control text { pointer-events: none; font-family: Arial, sans-serif; }
.factory-art { stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .factory-nozzle-animation, .factory-rail-animation, .factory-layer-animation { display: none; } .factory-print-layer { opacity: 1; } .factory-nozzle { visibility: hidden; } }
.factory-item strong { display: block; font-size: 11px; line-height: 1.5; }
.factory-item p { font-size: 10px; color: #959a92; line-height: 1.6; margin-top: 4px; }
.factory-item .quiet-button { padding: 5px 7px; font-size: 10px; white-space: nowrap; min-height: 29px; color: #4a7968; background: #edf4ed; border-color: #e1eade; }
.factory-studio button:disabled { opacity: .45; cursor: default; }
.factory-studio button:focus-visible, .factory-studio a:focus-visible { outline: 2px solid #438378; outline-offset: 3px; }
.factory-earn-note { padding: 17px; background: #f6f8f2; border-top: 1px solid #e6eadf; }
.factory-earn-note strong { font-size: 11px; }
.factory-earn-note p { margin-top: 4px; font-size: 10px; color: #929889; }
.factory-earn-note a { display: inline-block; margin-top: 12px; color: #5f8772; font-size: 11px; font-weight: 700; }
.factory-footnote { color: #969c94; font-size: 10px; margin-top: 12px; }
.factory-inventory-hint { margin: 0; color: #53665c; font-size: 12px; line-height: 1.5; word-break: keep-all; }
.factory-stock-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 8px 0; padding: 4px; border-radius: 10px; background: #f1f3ed; }
.factory-stock-tabs .quiet-button { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 6px; border-color: transparent; background: transparent; font-size: 12px; }
.factory-stock-tabs [aria-pressed='true'] { background: #fff; color: #276b5e; border-color: #dce6da; }
.factory-stock-tabs span { color: #526f62; background: #e7efe6; border-radius: 20px; padding: 1px 5px; font-size: 10px; }
.factory-stock-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.factory-stock-filters .quiet-button { padding: 4px 8px; font-size: 11px; border-radius: 20px; }
.factory-stock-filters [aria-pressed='true'] { background: #375f52; color: #fff; border-color: #375f52; }
.factory-inventory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; margin-top: 12px; }
.factory-stock-card { min-width: 0; border: 1px solid #e5e9df; border-radius: 12px; background: #fbfcf8; }
.factory-stock-card.is-fully-placed { background: #e0f0e7; border-color: #b8d8c4; }
.factory-inventory-item { position: relative; width: 100%; min-height: 132px; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 24px 6px 9px; border: 0; border-radius: 11px; background: transparent; color: #283a32; cursor: pointer; }
.factory-inventory-item .factory-sprite { width: min(100%, 82px); height: 74px; }
.factory-inventory-item strong { font-size: 12px; line-height: 1.45; }
.factory-inventory-item strong, .factory-shop-grid .factory-shop-card > strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.factory-inventory-item small { font-size: 10px; color: #4d6859; }
.factory-inventory-item[aria-pressed='true'] { box-shadow: inset 0 0 0 2px #428b7d; }
.factory-stock-badge, .factory-stock-count { position: absolute; top: 6px; padding: 2px 5px; border-radius: 5px; font-size: 10px; font-weight: 700; }
.factory-stock-badge { left: 6px; color: #275d46; background: #cce5d6; }
.factory-stock-count { right: 6px; color: #414d44; background: #ecf0ea; font-variant-numeric: tabular-nums; }
.factory-stock-copies { display: grid; gap: 4px; padding: 5px 6px 7px; }
.factory-stock-copies .quiet-button { padding: 5px; font-size: 10px; }
.factory-stock-copies [aria-pressed='true'] { border-color: #428b7d; color: #235743; background: #f4faf6; }
.factory-stock-empty { margin: 12px 0; padding: 16px 10px; background: #f5f6f1; border-radius: 10px; color: #53665c; font-size: 11px; }
.factory-size-meter { display: grid; grid-template-columns: minmax(0, 115px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px; margin: 10px 0; border: 1px solid #e7decb; border-radius: 12px; background: #faf6ed; }
.factory-floor-plan { aspect-ratio: 1; display: grid; grid-template: repeat(12, 1fr) / repeat(12, 1fr); gap: 2px; }
.factory-floor-plan span, .factory-floor-legend li::before { border-radius: 1px; background: #e7e0d2; }
.factory-floor-plan .is-current, .factory-floor-legend .is-current::before { background: #a68157; }
.factory-floor-plan .is-unlocked, .factory-floor-legend .is-unlocked::before { background: #adc8ad; }
.factory-current-size { display: grid; gap: 3px; color: #425c4f; font-size: 12px; }
.factory-current-size strong { margin-block: 2px; color: #294b3c; font-size: clamp(23px, 3vw, 30px); font-variant-numeric: tabular-nums; line-height: 1; }
.factory-unlocked-size { color: #506a58; font-size: 11px; }
.factory-floor-legend { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 9px 0 0; border-top: 1px solid #e8dfcc; list-style: none; color: #596459; font-size: 11px; }
.factory-floor-legend li { display: flex; align-items: center; gap: 4px; }
.factory-floor-legend li::before { content: ''; width: 8px; height: 8px; }
.factory-expansion-panel:has(.factory-resize-grow[data-axis='0']:enabled:is(:hover, :focus-visible)) .is-next-column,
.factory-expansion-panel:has(.factory-resize-grow[data-axis='1']:enabled:is(:hover, :focus-visible)) .is-next-row { background: #e9b96d; }
.factory-expand-row { padding: 11px; margin-top: 8px; border: 1px solid #e0e8df; border-radius: 11px; background: #fbfdf9; }
.factory-expand-row h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; color: #314e40; font-size: 13px; }
.factory-expand-row h4 strong { color: #345e48; font-size: 12px; font-variant-numeric: tabular-nums; }
.factory-resize-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.factory-resize-actions .quiet-button { display: flex; flex-direction: column; min-height: 46px; gap: 1px; padding: 5px 3px; color: #355e4d; background: #f0f5ee; border-color: #d8e5d8; font-size: 12px; }
.factory-resize-actions .factory-resize-grow:enabled { background: #365f4d; color: #fff; border-color: #365f4d; }
.factory-resize-actions .factory-resize-grow:enabled:hover { background: #254d3c; }
.factory-resize-actions small { font-size: 10px; font-weight: 650; }
.factory-resize-blocked { margin-top: 7px; color: #795038; font-size: 11px; line-height: 1.5; }
.factory-expansion-panel > .factory-note { margin-top: 10px; color: #56685d; }
.factory-note { font-size: 11px; color: #92998d; line-height: 1.8; margin-top: 17px; }
.factory-theme-option { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px 0; border-bottom: 1px solid #edf0e9; }
.factory-swatch { width: 43px; height: 43px; border: 3px solid #fff; box-shadow: 0 0 0 1px #dce3d5; border-radius: 50%; }
.factory-theme-option strong { font-size: 12px; flex: 1; }
.factory-theme-option .quiet-button { font-size: 11px; padding: 5px 8px; }
.factory-public { border: 1px solid #e0e5da; background: #f7f8f0; border-radius: 16px; padding: 18px; }
.factory-public h2 { font-size: 17px; }
.factory-public-stage { max-width: 650px; padding: 20px; margin: auto; }
.factory-public .factory-floor-tabs { margin-top: 9px; }
.factory-profile-mark { width: 90px; height: 90px; flex: 0 0 auto; overflow: hidden; border-radius: 16px; background-color: #eef0e3; }
.factory-profile-mark .factory-sprite { width: 80px; height: 80px; }
.workshop .profile-page { width: min(100%, 1160px); }
.workshop .profile-overview { grid-template-columns: 1fr; }
.workshop .profile-header { background: #fff; border-color: #e5e9e6; padding: clamp(14px, 2vw, 21px); border-radius: 20px; }
.workshop .profile-overview > .profile-progress { display: none; }
.workshop .profile-name h1 { font-size: 25px; }
.workshop .profile-level { color: #66816c; background: #edf3e9; }
.workshop .profile-tabs { margin: 16px 0 20px; }
.workshop .profile-tabs :is([aria-current='page'], [aria-pressed='true']) { color: #397767; background: #edf4e9; border-color: #d6e4d2; }
@media (min-width: 721px) {
  /* Let the work area set the row height so long inventory lists scroll inside the panel. */
  .factory-side { contain: size; }
}
@media (max-width: 1000px) { .factory-layout { grid-template-columns: minmax(0, 1.25fr) minmax(285px, 1fr); gap: 13px; } .factory-item { grid-template-columns: 50px minmax(0, 1fr); } .factory-item > .factory-sprite { width: 50px; height: 50px; grid-row: span 2; } .factory-item > .quiet-button { grid-column: 2; justify-self: start; } .factory-room-wrap { padding-inline: 10px; } }
@media (max-width: 720px) { .factory-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: 'overview' 'stage' 'ads' 'tools'; } .factory-work-overview { padding: 9px; } .factory-room-wrap { min-height: 300px; padding: 20px 12px; } .factory-item { grid-template-columns: 65px minmax(0, 1fr) auto; } .factory-item > .factory-sprite { width: 65px; height: 65px; grid-row: auto; } .factory-item > .quiet-button { grid-column: auto; } .factory-profile-mark { width: 70px; height: 70px; } .factory-profile-mark .factory-sprite { width: 60px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { .factory-print-led { animation: none; } .factory-cell { transition: none; } }

.factory-room-scroll { position: relative; overflow: auto; max-height: 680px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b8c7b4 transparent; }
.factory-room-scroll[data-pannable] { aspect-ratio: var(--factory-room-aspect); }
.factory-room-scroll .factory-room-wrap { min-height: 390px; max-width: none; box-sizing: border-box; padding: 26px 24px; }
.factory-room-scroll:not([data-pannable]) .factory-room-wrap { min-height: 0; padding-block: 8px 12px; }
.factory-room-scroll .factory-room { max-height: none; flex: 0 0 100%; }
@media (min-width: 721px) and (min-height: 620px) {
  #profile-studio > .factory-studio > .factory-layout {
    height: calc(100dvh - var(--site-header-height, 0px) - var(--profile-navigation-height, 46px) - var(--profile-dashboard-gap) - 16px);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px clamp(12px, 1.5vw, 18px);
  }
  #profile-studio .factory-work-overview { gap: 6px; padding: 7px 10px; }
  #profile-studio .factory-ad-positions { gap: 6px; }
  #profile-studio .factory-main { min-height: 0; }
  #profile-studio .factory-stage-work { display: flex; flex-direction: column; }
  #profile-studio .factory-stage-work > :not(.factory-room-scroll) { flex: none; }
  #profile-studio .factory-stage-top { padding-block: 8px 4px; }
  #profile-studio .factory-room-scroll { flex: 1 1 0; min-height: 0; max-height: none; aspect-ratio: auto; }
  #profile-studio .factory-room-scroll:not([data-pannable]) { overflow: hidden; }
  #profile-studio .factory-room-scroll:not([data-pannable]) .factory-room-wrap { height: 100%; padding: 6px 18px 10px; }
  #profile-studio .factory-room-scroll:not([data-pannable]) .factory-room { height: 100%; }
  #profile-studio .factory-panel-tabs { --tool-height: 46px; padding: 7px; }
  #profile-studio .factory-panel-content { padding: 12px; }
  #profile-studio :is(.factory-stage-warehouse, .factory-panel-content) { overflow-y: auto; overscroll-behavior-y: contain; }
}
.factory-view-tools { grid-area: zoom; display: flex; gap: 4px; justify-content: flex-end; }
.factory-view-tools .quiet-button { padding: 4px 7px; min-height: 27px; font-size: 10px; color: #788670; border-color: #d9dfce; background: #ffffff70; }
.factory-view-tools [aria-pressed='true'] { background: #607d68; color: white; }
.factory-printer-card { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 18px 10px; margin: 15px 0; background: #f3f6ed; border-radius: 12px; }
.factory-printer-card .factory-sprite { width: 140px; height: 140px; }
.factory-printer-card strong { max-width: 100%; font-size: 12px; overflow-wrap: anywhere; }
.factory-printer-card p { color: #839279; font-size: 10px; }
.factory-printer-card .quiet-button { padding: 5px 10px; font-size: 11px; }
.factory-panel-content > .quiet-button { display: inline-block; margin: 5px 5px 3px 0; padding: 7px 10px; font-size: 11px; }
.factory-blueprint-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 4px 10px; padding: 13px 0; border-bottom: 1px solid #e4eadc; align-items: center; }
.factory-blueprint-icon { display: block; width: 74px; height: 74px; border-radius: 11px; background: #f4f4e9 url('assets/factory-blueprints.png') no-repeat; background-size: 200% 200%; grid-row: span 3; }
.factory-blueprint-card strong { font-size: 12px; }
.factory-blueprint-card p { font-size: 10px; color: #8b9781; }
.factory-blueprint-card .quiet-button { justify-self: start; font-size: 10px; padding: 4px 8px; }
.factory-print-status { color: #4a8c6d; background: #e2efda; padding: 3px 9px; border-radius: 6px; font-size: 10px; }
.factory-file-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; color: #577850; }
.factory-file { display: block; width: 100%; font-size: 11px; color: #819076; }
.factory-example-download { display: inline-block; margin-top: 11px; color: #527b4c; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.factory-file::file-selector-button { border: 1px solid #d5e1c9; border-radius: 6px; padding: 7px 9px; background: #f0f5e9; color: #5c7f50; font: inherit; cursor: pointer; margin-right: 7px; }
.factory-printed-model { transform-box: fill-box; animation: factory-build 8s linear infinite; }
.factory-moving-head { animation: factory-head 8s linear infinite; }
@keyframes factory-build { 0%, 7%, 100% { clip-path: inset(100% 0 0 0); } 80%, 94% { clip-path: inset(0 0 0 0); } }
@keyframes factory-head {
  0%, 7% { transform: translate(0, 0); opacity: 1; }
  15% { transform: translate(var(--head-travel), calc(var(--head-rise) * -.1)); }
  25% { transform: translate(calc(var(--head-travel) * -1), calc(var(--head-rise) * -.25)); }
  35% { transform: translate(var(--head-travel), calc(var(--head-rise) * -.4)); }
  45% { transform: translate(calc(var(--head-travel) * -1), calc(var(--head-rise) * -.55)); }
  55% { transform: translate(var(--head-travel), calc(var(--head-rise) * -.7)); }
  65% { transform: translate(calc(var(--head-travel) * -1), calc(var(--head-rise) * -.85)); }
  80% { transform: translate(var(--head-travel), calc(var(--head-rise) * -1)); opacity: 1; }
  84%, 98% { transform: translate(var(--head-travel), calc(var(--head-rise) * -1)); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .factory-moving-head, .factory-printed-model { animation: none; } .factory-moving-head { display: none; } }
@media (max-width: 720px) { .factory-room-scroll .factory-room-wrap { min-height: 290px; padding: 20px 9px; } }

.factory-studio {
  font-family: inherit;
  line-height: 1.55;
  letter-spacing: -.015em;
  --factory-ink: #263b32;
}
.factory-studio button { font-family: inherit; }
.factory-muted { color: #5c6c62; font-size: 13px; }
.factory-stage-dimensions, .factory-stage-bottom { color: #596a60; font-size: 12px; }
.factory-view-tools .quiet-button { font-size: 11px; min-height: 36px; }
.factory-stage, .factory-side { box-shadow: 0 4px 12px #31453608; }
.factory-tool-icon, .factory-menu-art { width: 27px; height: 27px; flex: 0 0 auto; }
.factory-earn-note { padding: 12px 16px; background: #f7faf6; border-top-color: #edf0ed; }
.factory-panel-content h3 { font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
.factory-item strong, .factory-blueprint-card strong { font-size: 13px; line-height: 1.45; }
.factory-item p, .factory-blueprint-card p, .factory-note { color: #5c6c62; font-size: 12px; }
.factory-item .quiet-button, .factory-blueprint-card .quiet-button { font-size: 12px; min-height: 30px; }
.factory-inventory-item { min-height: 124px; }
.factory-stock-count, .factory-stock-badge { padding-inline: 3px; }
.factory-earn-note strong { font-size: 13px; }
.factory-earn-note p { color: #5c6c62; font-size: 12px; }
.factory-color-picker { display: flex; gap: 8px; justify-content: center; align-items: center; padding: 4px 8px 10px; }
.factory-color-option { width: 26px; height: 26px; padding: 3px; border: 1px solid #b9c7bc; border-radius: 50%; background: #fff; cursor: pointer; }
.factory-color-option::before { content: ''; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--swatch-color); }
.factory-color-option[aria-pressed='true'] { border: 2px solid #285848; box-shadow: 0 0 0 1px #fff; padding: 2px; }
.factory-stock-card .factory-color-picker { gap: 4px; padding-inline: 4px; }
.factory-stock-card .factory-color-option { width: min(26px, 28%); height: auto; aspect-ratio: 1; }
.factory-outfit-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 64px), 1fr));
  gap: 3px;
  padding: 0 4px 5px;
}
.factory-outfit-picker .quiet-button {
  justify-content: center;
  min-width: 0;
  min-height: 29px;
  padding: 3px;
  border: 1px solid #d9e4da;
  border-radius: 7px;
  color: #36594b;
  font-size: .72rem;
  font-weight: 750;
}
.factory-outfit-picker .quiet-button[aria-pressed='true'] { border-color: #a4c2ac; background: #e9f3ea; }
.factory-outfit-picker [data-outfit-option='christmas'][aria-pressed='true'] { border-color: #d7a9a9; background: #f8e6e6; color: #79383f; }
.factory-active-color { padding: 9px 12px 2px; margin-top: 12px; background: #f2f6ed; border-radius: 10px; font-size: 12px; }
.factory-active-color .factory-color-picker { justify-content: flex-start; padding-left: 0; }
.factory-interior-tabs { margin: 12px 0; }
.factory-theme-label { display: grid; flex: 1; min-width: 0; gap: 2px; }
.factory-theme-label small { font-size: 11px; color: #5c6c62; }
.factory-wall-catalog { display: grid; gap: 9px; }
.factory-fixture-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 8px 11px; padding: 10px; border-radius: 13px; border: 1px solid #e2e9df; background: #fcfdf9; }
.factory-fixture-preview { height: 74px; display: grid; place-items: center; background: #f1f2e8; border-radius: 9px; }
.factory-fixture-preview svg { display: block; width: 59px; height: 62px; overflow: visible; }
.factory-fixture-info { min-width: 0; display: grid; gap: 3px; }
.factory-fixture-info strong { font-size: 13px; line-height: 1.4; }
.factory-fixture-info small { font-size: 11px; color: #52665a; }
.factory-fixture-actions .quiet-button, .factory-fixture-positions .quiet-button { padding: 4px 8px; font-size: 11px; min-height: 28px; }
.factory-fixture-actions .quiet-button { background: #edf5eb; color: #315e4e; border-color: #d6e5d6; }
.factory-fixture-positions { display: flex; gap: 4px; flex-wrap: wrap; grid-column: 1 / -1; }
.factory-fixture-positions [aria-pressed='true'] { background: #315e4e; color: #fff; border-color: #315e4e; }
.factory-wall-art[role='button'] { cursor: pointer; outline-offset: 3px; }
.factory-wall-art:focus-visible .factory-wall-hit { stroke: #6e946c; stroke-width: 1.5; stroke-dasharray: 3 2; }
.factory-wall-target { fill: #bdd6bb38; stroke: #e7f5dbb0; stroke-width: 1.25; cursor: pointer; outline: none; }
.factory-wall-target[data-valid='false'] { fill: #a9594024; stroke: #ffc3a89e; }
.factory-wall-target:hover, .factory-wall-target:focus-visible { stroke: #fff9e8; stroke-width: 3; }
.factory-cloud-near { animation: factory-cloud-pass 23s -9s linear infinite; }
.factory-cloud-far { animation: factory-cloud-pass 37s -19s linear infinite; opacity: .76; }
.factory-window-birds { animation: factory-birds-pass 13s -5s linear infinite; }
.factory-window-bird-wing { transform-box: fill-box; transform-origin: center; animation: factory-wingbeat 1.18s ease-in-out infinite; }
@keyframes factory-cloud-pass { from { transform: translateX(-90px); } to { transform: translateX(94px); } }
@keyframes factory-birds-pass {
  0% { transform: translate(-74px, 5px); }
  30% { transform: translate(-25px, -2px); }
  68% { transform: translate(37px, 0); }
  100% { transform: translate(89px, -6px); }
}
@keyframes factory-wingbeat { 0%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.35); } 70% { transform: scaleY(.55); } }
@media (prefers-reduced-motion: reduce) {
  .factory-window-clouds, .factory-window-birds, .factory-window-bird-wing { animation: none; }
}

.factory-profile-lp, .factory-profile-xp { padding: 3px 7px; border-radius: 8px; background: #f8edda; color: #785426; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.factory-profile-xp { background: #e5eee2; color: #3b644f; }
.factory-print-badge { outline: none; filter: drop-shadow(0 3px 2px #513b3440); }
.factory-badge-clock rect, .factory-badge-tail { fill: #fff5db; stroke: #cbb890; stroke-width: 1.3; stroke-linejoin: round; }
.factory-badge-tail { paint-order: stroke; }
.factory-badge-clock text { fill: #355648; font-size: 14px; font-weight: 800; pointer-events: none; font-variant-numeric: tabular-nums; }
.factory-badge-parcel, .factory-print-badge[data-output-ready='true'] .factory-badge-clock { display: none; }
.factory-print-badge[data-output-ready='true'] { cursor: pointer; filter: drop-shadow(0 3px 1px #48280073); }
.factory-print-badge[data-output-ready='true'] .factory-badge-parcel { display: block; }
.factory-badge-parcel-back { fill: #ffcd63; stroke: #fff7de; stroke-width: 2.5; stroke-linejoin: round; }
.factory-badge-parcel-label { fill: #4f2b16; font-size: 13px; font-weight: 900; pointer-events: none; }
.factory-print-badge:focus-visible .factory-badge-parcel-back, .factory-print-badge[data-output-ready='true']:hover .factory-badge-parcel-back { fill: #ffe399; stroke: #754b20; }
.factory-printer-card [data-output-ready='true'] { color: #fff; background: #317357; border-color: #317357; }
.factory-computer-drawing { stroke-dasharray: 100; animation: factory-computer-trace 5s ease-in-out infinite; }
.factory-computer-cursor { animation: factory-computer-pointer 5s ease-in-out infinite; }
@keyframes factory-computer-trace {
  0%, 8% { stroke-dashoffset: 100; }
  60%, 92% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: .15; }
}
@keyframes factory-computer-pointer {
  0%, 8% { transform: translate(-15px, -10px); }
  29% { transform: translate(0, -10px); }
  60%, 92% { transform: translate(0, 0); opacity: 1; }
  100% { opacity: .15; }
}
@media (prefers-reduced-motion: reduce) {
  .factory-computer-drawing, .factory-computer-cursor { animation: none; }
}
.factory-produce-list { display: grid; gap: 6px; margin: 9px 0 12px; }
.factory-produce-list .quiet-button { justify-content: flex-start; font-size: 12px; }
.factory-mission-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: start; }
.factory-mission-level { display: grid; justify-items: center; align-content: start; gap: 1px; min-width: 54px; padding: 5px 7px; border: 1px solid #ead7b7; border-radius: 9px; color: #6b4b30; background: #faf0db; font-size: 11px; }
.factory-mission-level strong { font-size: 14px; }
.factory-mission-stack { display: grid; gap: 15px; margin-top: 15px; }
.factory-order-sheet { position: relative; padding: 12px; border: 1px solid #e6ddd0; border-top: 5px solid #d9b679; border-radius: 10px; background: #fff; box-shadow: 0 2px 5px #6f5c3914; }
.factory-order-sheet[data-status='active'] { border-top-color: #79a58b; }
.factory-order-sheet[data-status='done'] { border-top-color: #b0c4aa; }
.factory-order-letterhead { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 7px; }
.factory-order-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #f4ead7; box-shadow: inset 0 -2px 0 #93674124; }
.factory-order-icon .factory-blueprint-icon { width: 28px; height: 28px; background-color: transparent; grid-row: auto; }
.factory-order-letterhead small, .factory-order-letterhead strong { display: block; }
.factory-order-letterhead small { color: #806744; font-size: 10px; }
.factory-order-letterhead strong { font-size: 13px; }
.factory-order-status { background: #f4e7c9; border-radius: 10px; padding: 2px 5px; color: #705632; font-size: 9px; }
.factory-order-note { margin: 9px 0; color: #615743; font-size: 11px; }
.factory-order-lines { margin: 0; padding: 0; list-style: none; border-block: 1px dashed #d9c9a7; }
.factory-order-lines li { display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 6px; padding: 3px 0; font-size: 11px; }
.factory-order-lines li .factory-blueprint-icon { width: 28px; height: 28px; grid-row: auto; background-color: #f5eddb; }
.factory-order-lines li > span:last-child { color: #796648; font-variant-numeric: tabular-nums; }
.factory-order-lines li > span.is-ready { color: #347253; font-weight: 800; }
.factory-order-footer { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 8px; }
.factory-order-footer span { color: #6b4d25; font-weight: 800; font-size: 11px; }
.factory-order-footer .solid-button { min-height: 28px; padding: 4px 8px; border-radius: 7px; font-size: 11px; color: #fff; background: #3f735b; border-color: #3f735b; }
.factory-shop { padding: clamp(12px, 3vw, 28px); border: 1px solid #e5e9e5; border-radius: 17px; background: #fff; }
.factory-shop-hero { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0 13px; border-bottom: 1px solid #edf0ed; background: #fff; }
.factory-shop-hero h2 { margin: 0; font-size: clamp(19px, 3vw, 29px); }
.factory-shop-hero p { margin: 3px 0 0; color: #526353; font-size: 12px; }
.factory-shop-wallet { padding: 7px 10px; white-space: nowrap; color: #345d45; background: #fcfff5; border: 1px solid #d4e3ce; border-radius: 10px; font-variant-numeric: tabular-nums; }
.factory-shop-tabs { display: flex; gap: 5px; padding: 12px 0; }
.factory-shop-tabs [aria-pressed='true'] { color: #fff; background: #3f735b; border-color: #3f735b; }
.factory-panel-content .factory-shop-tabs { padding: 0 0 10px; }
.factory-shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; }
.factory-panel-content .factory-shop-toolbar .factory-shop-tabs { padding: 0; }
.factory-shop-panel-wallet { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 7px; border: 1px solid #ebdfc7; border-radius: 8px; color: #614a2d; background: #f8f2e5; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.factory-shop-panel-wallet .factory-currency-icon { width: 17px; height: 17px; }
.factory-shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.factory-shop-card { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 7px 8px 9px; border: 1px solid #e1e9dd; border-radius: 12px; background: #fff; }
.factory-shop-grid .factory-shop-card { padding: 5px; }
.factory-shop-display { position: relative; display: grid; align-items: center; justify-items: center; height: 76px; border-radius: 8px; background: #eef3e8; }
.factory-shop-display .factory-sprite, .factory-shop-display .factory-blueprint-icon { width: min(100%, 72px); height: 72px; }
.factory-shop-display .factory-blueprint-icon { background-color: transparent; }
.factory-shop-owned { position: absolute; top: 3px; right: 3px; padding: 1px 4px; border-radius: 6px; color: #3c624d; background: #ffffffed; font-size: 10px; }
.factory-shop-card.is-locked { position: relative; isolation: isolate; }
.factory-shop-card.is-locked .factory-shop-display :is(.factory-sprite, .factory-blueprint-icon) { filter: saturate(.45); }
.factory-shop-lock { position: absolute; z-index: 1; inset: 0; border-radius: inherit; background: rgb(78 84 82 / 23%); pointer-events: none; }
.factory-shop-lock-label { position: absolute; z-index: 2; top: 8px; left: 50%; width: max-content; max-width: calc(100% - 8px); transform: translateX(-50%); padding: 3px 6px; border-radius: 5px; background: #353c38; color: #fff; font-size: 10px; line-height: 1.35; font-weight: 750; text-align: center; }
.factory-shop-card.is-locked .factory-shop-owned { top: auto; bottom: 3px; }
.factory-shop-card.is-locked .factory-shop-card-footer .solid-button:disabled { opacity: 1; color: #59615b; background: #e9ece8; }
.factory-shop-card strong { font-size: 13px; }
.factory-shop-grid .factory-shop-card > strong { font-size: 12px; line-height: 1.35; }
.factory-shop-card p { margin: 0 0 3px; color: #617064; line-height: 1.4; font-size: 11px; }
.factory-shop-card-footer { display: grid; gap: 4px; margin-top: auto; color: #775826; font-weight: 800; font-size: 12px; }
.factory-shop-card-footer .solid-button { justify-content: center; min-height: 32px; padding: 3px; border: 0; border-radius: 7px; color: #fff; background: #3f735b; font-size: 11px; }
.factory-shop-unlock { margin: 0 0 9px; color: #425c4c; font-size: 12px; line-height: 1.45; word-break: keep-all; }
.factory-shop-grid .factory-starter-product { display: grid; grid-column: 1 / -1; grid-template-columns: 78px minmax(0, 1fr); gap: 4px 10px; padding: 10px; border-color: #a9c2ad; background: #f6f9f3; }
.factory-shop-grid .factory-starter-product > strong { color: #264734; font-size: 15px; }
.factory-starter-product .factory-shop-display { grid-row: span 3; align-self: stretch; min-height: 78px; background: #e9f0e6; }
.factory-starter-product p { margin: 0; word-break: keep-all; }
.factory-starter-product .factory-shop-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.factory-starter-product .factory-starter-price { color: #264734; font-size: 17px; }
.factory-starter-product .factory-shop-card-footer .solid-button { min-height: 42px; padding-inline: 12px; font-size: 12px; }
.factory-blueprint-model { background-image: none; }
.factory-blueprint-model svg { display: block; width: 100%; height: 100%; }
.factory-ad-positions { grid-area: ads; align-self: stretch; display: grid; grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); gap: 8px; }
.factory-ad-slot { display: grid; place-items: center; min-height: 36px; border: 1px dashed #bdcfc1; border-radius: 10px; background: #f8faf7; color: #526559; font-size: 11px; font-weight: 700; }
.factory-stage-tabs { grid-area: tabs; display: flex; gap: 5px; flex-wrap: wrap; }
.factory-stage-tabs .quiet-button { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 3px 6px; border-radius: 10px; border: 1px solid #dde8dd; background: #fff; color: #375649; font-size: 12px; font-weight: 800; box-shadow: 0 2px 0 #eef1ed; }
/* Balance the visible label and artwork inside the printer sprite's padded box. */
.factory-stage-tabs [data-stage-tab='work'] { padding-inline: 4px 8px; }
.factory-stage-tabs [aria-pressed='true'] { background: linear-gradient(#f5faef, #e3efdc); color: #365b46; border-color: #bad0b9; box-shadow: 0 2px 0 #c6dbc4; }
.factory-bag-sort [aria-pressed='true'], .factory-mission-periods [aria-pressed='true'] { background: #416b57; color: #fff; border-color: #416b57; }
.factory-stage-tabs .factory-menu-art { width: 22px; height: 22px; }
.factory-stage-count { border-radius: 9px; padding: 1px 5px; color: #4c674e; background: #edf4e9; font-size: 10px; font-variant-numeric: tabular-nums; }
.factory-room-scroll[data-pannable], .factory-room-scroll[data-pannable] .factory-room * { cursor: grab; user-select: none; }
.factory-room-scroll[data-panning], .factory-room-scroll[data-panning] .factory-room * { cursor: grabbing; }
.factory-room-scroll[data-pannable]:not([data-panning]) [data-output-ready='true'], .factory-room-scroll[data-pannable]:not([data-panning]) [data-output-ready='true'] * { cursor: pointer; }
.factory-warehouse-alert { position: absolute; z-index: 1; inset: 8px var(--factory-stage-gutter) auto; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 8px 10px; border: 1px solid #e3bf91; border-radius: 9px; background: #ffefd9; color: #80502a; font-size: 12px; }
.factory-warehouse-alert p { flex: 1 1 180px; margin: 0; }
.factory-warehouse-alert .quiet-button { min-height: 30px; padding: 4px 7px; font-size: 11px; }
.factory-bag { margin: 12px clamp(10px, 2vw, 22px) clamp(10px, 2vw, 22px); padding: clamp(10px, 2vw, 19px); border: 1px solid #e3e9e4; border-radius: 16px; background: #fff; }
.factory-bag-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.factory-bag-header h3 { margin: 0; font-size: 18px; }
.factory-bag-header p { margin: 2px 0 0; color: #57695a; font-size: 12px; font-variant-numeric: tabular-nums; }
.factory-bag-header button, .factory-bag-sort button, .factory-mission-periods button { min-height: 31px; padding: 4px 8px; font-size: 12px; border-radius: 8px; }
.factory-bag-sort, .factory-mission-periods, .factory-mission-details { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.factory-bag-sort { margin: 14px 0 9px; }
.factory-bag-sort > span { margin-right: 4px; color: #5c6a58; font-size: 11px; font-weight: 750; }
.factory-bag-grid, .factory-bag-overflow { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: clamp(4px, 1vw, 8px); }
.factory-bag-overflow { margin-top: 6px; }
.factory-bag-cell { display: grid; align-content: center; justify-items: center; min-width: 0; aspect-ratio: 1; padding: 3px; border: 1px solid #d4cbb0; border-radius: 8px; background: #f4ecd7; color: #4a5a4d; font-size: clamp(8px, 1vw, 11px); font-weight: 750; line-height: 1.1; text-align: center; }
.factory-bag-cell.is-empty { border-style: dashed; border-color: #dfe5df; background: #fafcfa; }
.factory-bag-cell[data-rarity='1'] { background: #e8efd9; border-color: #bfceab; }
.factory-bag-cell[data-rarity='2'] { background: #e5ebf4; border-color: #b9c9de; }
.factory-bag-cell[data-rarity='3'] { background: #f0e4f5; border-color: #d6b9dc; }
button.factory-bag-cell { cursor: grab; }
button.factory-bag-cell:focus-visible, button.factory-bag-cell[aria-pressed='true'] { outline: 2px solid #547d65; outline-offset: -2px; }
button.factory-bag-cell.is-dragging { opacity: .55; }
.factory-bag-cell .factory-blueprint-icon { width: clamp(22px, 4.2vw, 54px); height: clamp(22px, 4.2vw, 54px); background-color: transparent; pointer-events: none; grid-row: auto; }
.factory-bag-cell > span:last-of-type { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.factory-bag-footer { display: grid; gap: 10px; margin-top: 14px; }
.factory-bag-footer p { margin: 0; color: #606950; font-size: 11px; }
.factory-bag-trash-actions, .factory-bag-trash-item { display: flex; align-items: center; gap: 8px; }
.factory-bag-trash-recent { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid #e3e9e0; border-radius: 9px; background: #f7f9f5; }
.factory-bag-trash-item { color: #354b40; font-size: 12px; }
.factory-bag-trash-item .factory-blueprint-icon { grid-row: auto; width: 33px; height: 33px; background-color: transparent; }
.factory-bag-trash-recent button { flex: none; min-height: 32px; padding: 3px 10px; font-size: 12px; }
.factory-bag-trash { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; white-space: nowrap; border: 1px dashed #c9a78c; border-radius: 9px; padding: 5px 10px; background: #f9ead9; color: #82492f; font-size: 12px; font-weight: 800; cursor: pointer; }
.factory-bag-trash.is-drop-target { background: #f1d8c4; border-color: #ab644c; box-shadow: 0 0 0 2px #e5bc9f; }
.factory-trash-icon { position: relative; width: 11px; height: 11px; margin-top: 3px; border: 1.5px solid currentColor; border-radius: 1px 1px 3px 3px; pointer-events: none; }
.factory-trash-icon::before { position: absolute; inset: -4px -2px auto; border-top: 1.5px solid currentColor; content: ''; }
.factory-mission-periods { margin-top: 12px; }
.factory-mission-periods.has-activity { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 4px; border-radius: 10px; background: #ecf2ea; }
.factory-mission-periods.has-activity button { justify-content: center; min-height: 34px; padding-inline: 4px; border-color: transparent; background: transparent; color: #4b6355; white-space: nowrap; }
.factory-mission-periods.has-activity [aria-pressed='true'] { background: #355e48; color: #fff; }
.is-daily-rewards .factory-mission-periods { margin-top: 0; }
.factory-mission-details { justify-content: space-between; gap: 4px 8px; margin-top: 7px; color: #616f61; font-size: 11px; font-variant-numeric: tabular-nums; }
.factory-first-order { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border: 1px solid #cee1d1; border-radius: 9px; background: #f0f6ed; color: #335d48; font-size: 12px; }
.factory-first-order div { display: grid; gap: 2px; }
.factory-first-order small { font-size: 10px; color: #576e5e; }
.factory-daily-rewards { margin-top: 12px; }
.factory-daily-rewards header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.factory-panel-content .factory-daily-rewards h3 { margin: 0; color: #284838; font-size: 17px; }
.factory-reward-title { display: grid; gap: 2px; }
.factory-reward-reset { display: inline-flex; align-items: center; gap: 4px; color: #5c6c62; font-size: 11px; white-space: nowrap; }
.factory-reward-reset svg { width: 13px; height: 13px; }
.factory-reward-total { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid #eedbb7; border-radius: 8px; background: #fbf0d9; color: #69491e; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.factory-reward-total .factory-currency-icon { width: 19px; height: 19px; }
.factory-reward-progress { display: grid; gap: 7px; margin-top: 8px; }
.factory-reward-progress-row {
  --reward-surface: #f1f6ed;
  --reward-icon-bg: #e1eddb;
  --reward-ink: #315d44;
  display: grid;
  grid-template: 'glyph info action' auto 'glyph count action' auto / 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 9px;
  padding: 8px 9px;
  border: 1px solid #dce6d8;
  border-radius: 11px;
  background: var(--reward-surface);
}
.factory-reward-progress-row[data-reward-activity='post'] { --reward-surface: #fcf7ec; --reward-icon-bg: #f4e9d0; --reward-ink: #705129; border-color: #eee4ce; }
.factory-reward-glyph { grid-area: glyph; align-self: start; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--reward-icon-bg); color: var(--reward-ink); }
.factory-reward-glyph svg { width: 19px; height: 19px; }
.factory-reward-info { grid-area: info; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 7px; }
.factory-reward-info strong { color: var(--reward-ink); font-size: 13px; }
.factory-reward-rates { color: #566157; font-size: 11px; white-space: nowrap; }
.factory-reward-count { grid-area: count; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--reward-ink); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.factory-reward-stamps { display: inline-flex; gap: 3px; }
.factory-reward-stamps > span { display: grid; place-items: center; width: 16px; height: 16px; border: 1px dashed #aab9a6; border-radius: 4px; background: #fff8; font-size: 10px; line-height: 1; }
.factory-reward-stamps > .is-stamped { border-style: solid; border-color: var(--reward-ink); background: var(--reward-ink); color: #fff; }
.factory-reward-actions { grid-area: action; display: grid; justify-items: end; gap: 3px; }
.factory-reward-earned { color: var(--reward-ink); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.factory-reward-link.quiet-button { justify-content: center; min-height: 34px; padding: 4px 8px; border-color: #becdbb; background: #fff; color: #2e523d; font-size: 11px; white-space: nowrap; }
.factory-daily-rewards > .factory-muted { margin: 7px 0 0; font-size: 11px; }
.factory-order-footer:empty { display: none; }
.factory-order-sheet[data-status='shipping'] { border-top-color: #82a086; }
.factory-order-sheet[data-status='shipping'] .factory-order-status { background: #e5efdf; color: #3a654e; }
.factory-order-sheet:is([data-status='shipping'], [data-status='done']) .factory-order-footer:empty { display: block; min-height: 28px; }
.factory-order-seal { position: absolute; z-index: 1; top: 53%; left: 50%; padding: 6px 13px 8px; border: 3px solid currentColor; border-radius: 9px 5px 8px 6px; color: #9e3b29; font: 900 clamp(19px, 2.4vw, 27px)/1.1 "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif; letter-spacing: .045em; white-space: nowrap; transform: translate(-50%, -50%) rotate(-14deg); mix-blend-mode: multiply; mask-image: url('assets/factory-stamp-grain.webp'); mask-size: cover; pointer-events: none; }
.factory-order-seal::before { content: ''; position: absolute; inset: 2px -1px -1px 2px; border: 1px solid currentColor; border-radius: 5px 8px 5px 9px; }
.factory-order-seal.is-fresh { animation: factory-delivery-seal 340ms cubic-bezier(.16, .7, .25, 1.2) both; }
.factory-delivery-track { position: absolute; z-index: 2; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; container-type: size; --delivery-truck-width: min(88cqw, 82cqh); --delivery-hatch-x: calc(50% - var(--delivery-truck-width) * .25); }
.factory-delivery-truck, .factory-delivery-pickup, .factory-delivery-cargo, .factory-delivery-hatch { animation-duration: var(--delivery-duration); animation-delay: var(--delivery-delay); animation-fill-mode: both; }
.factory-delivery-truck { position: absolute; top: 50%; left: 0; width: min(88%, 210px); width: var(--delivery-truck-width); aspect-ratio: 342 / 218; translate: 0 -50%; animation-name: factory-delivery-drive; animation-timing-function: ease-in-out; }
.factory-delivery-truck-art { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 4px #51443040); }
.factory-delivery-hatch { position: absolute; inset: 0; filter: none; animation-name: factory-delivery-hatch; }
.factory-delivery-products { position: absolute; display: flex; align-items: center; gap: 2px; }
.factory-delivery-product { position: relative; display: block; margin-inline: -2px; }
.factory-delivery-product .factory-blueprint-icon { display: block; width: clamp(18px, 9cqw, 30px); height: clamp(18px, 9cqw, 30px); background-color: transparent; filter: drop-shadow(0 1px 1px #3f443655); }
.factory-delivery-product small { position: absolute; right: -2px; bottom: -2px; padding: 0 2px; border-radius: 3px; background: #fff3d9; color: #604a32; font-size: 8px; font-weight: 800; }
.factory-delivery-pickup { left: calc(var(--delivery-hatch-x) - 20px); top: 68%; transform: translate(-50%, -50%); animation-name: factory-delivery-pickup; }
.factory-delivery-cargo { left: 25%; top: 55%; transform: translate(-50%, -50%); animation-name: factory-delivery-cargo; }
.factory-delivery-cargo .factory-blueprint-icon { width: clamp(12px, 6cqw, 20px); height: clamp(12px, 6cqw, 20px); }
@keyframes factory-delivery-drive {
  0% { left: 0; transform: translateX(-108%); }
  35%, 64% { left: 50%; transform: translateX(-50%); }
  100% { left: 100%; transform: translateX(12%); }
}
@keyframes factory-delivery-pickup {
  0%, 39% { opacity: 1; left: calc(var(--delivery-hatch-x) - 20px); top: 68%; }
  51% { opacity: 1; left: var(--delivery-hatch-x); top: 52.5%; }
  54%, 100% { opacity: 0; left: var(--delivery-hatch-x); top: 52.5%; }
}
@keyframes factory-delivery-cargo {
  0%, 50% { opacity: 0; }
  53%, 58% { opacity: 1; }
  63%, 100% { opacity: 0; }
}
@keyframes factory-delivery-hatch {
  0%, 35% { opacity: 0; }
  39%, 58% { opacity: 1; }
  63%, 100% { opacity: 0; }
}
@keyframes factory-delivery-seal {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(1.42); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .factory-order-seal.is-fresh { animation: none; }
}
.factory-earn-note > .quiet-button { display: inline-flex; min-height: 30px; margin: 5px 4px 0 0; padding: 4px 7px; border-radius: 7px; font-size: 11px; }
.factory-point-mall .factory-shop-hero { padding-block: 0 20px; }
.factory-mall-wallet { display: grid; justify-items: end; gap: 4px; color: #4c6557; font-size: 12px; white-space: nowrap; }
.factory-mall-seller { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 15px 0; border-bottom: 1px solid #e8ede8; }
.factory-mall-seller img { width: 40px; height: 32px; object-fit: contain; border: 1px solid #e8ede8; border-radius: 8px; padding: 3px; }
.factory-mall-seller a { margin-inline-start: auto; }
.factory-mall-toolbar, .factory-mall-sort { display: flex; align-items: center; gap: 9px 13px; }
.factory-mall-toolbar { justify-content: space-between; flex-wrap: wrap; padding-block: 15px; }
.factory-mall-filters { flex-wrap: wrap; padding: 0; }
.factory-mall-filters button { min-height: 34px; border-radius: 999px; padding: 4px 13px; }
.factory-mall-sort { color: #566859; font-size: 12px; }
.factory-mall-sort select { min-height: 34px; padding: 3px 8px; border: 1px solid #d9e3da; border-radius: 8px; color: #2c4537; background: #fff; font: inherit; }
.factory-mall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); }
.factory-mall-grid .factory-mall-card { gap: 0; padding: 0; border-color: #e1e9e2; }
.factory-mall-card:hover { border-color: #a7c1b0; }
.factory-mall-photo-button { display: block; width: 100%; padding: 0; border: 0; border-radius: 11px 11px 0 0; background: #f4f6f4; cursor: pointer; }
.factory-mall-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: inherit; background: #f4f6f4; }
.factory-mall-card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: clamp(9px, 1.4vw, 16px); border-top: 1px solid #edf0ed; }
.factory-mall-card h3 { margin: 0; font-size: clamp(13px, 1.25vw, 17px); line-height: 1.35; }
.factory-mall-name { border: 0; padding: 0; background: none; color: #1d3027; text-align: start; font: inherit; font-weight: 750; cursor: pointer; }
.factory-mall-name:hover { text-decoration: underline; }
.factory-point-mall .factory-mall-price { color: #19372b; font-size: clamp(19px, 2vw, 26px); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.factory-mall-spec { margin: 0; color: #536659; font-size: 12px; }
.factory-mall-cap { align-self: start; margin-block: auto 2px; padding: 3px 7px; border-radius: 5px; background: #edf4e9; color: #305b43; font-size: 11px; font-weight: 750; }
.factory-mall-quote { display: grid; gap: 3px; padding: 7px 9px; border-radius: 8px; background: #f2f6f2; color: #375647; font-size: 12px; font-variant-numeric: tabular-nums; }
.factory-point-mall .factory-mall-quote > strong { font-size: 12px; }
.factory-mall-detail { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(16px, 4vw, 42px); margin-top: 12px; }
.factory-mall-detail .factory-mall-photo { border: 1px solid #e1e9e2; border-radius: 13px; }
.factory-mall-detail-copy { display: grid; align-content: center; gap: 10px; }
.factory-mall-detail-copy h3 { margin: 0; font-size: clamp(20px, 3vw, 28px); }
.factory-practice-payment { display: grid; gap: 10px; }
.factory-practice-checkout { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 0; padding: 10px 12px; }
.factory-practice-checkout dd { margin: 0; text-align: end; font-weight: 750; }
.factory-practice-checkout :nth-last-child(-n + 2) { padding-top: 6px; border-top: 1px solid #d7e4d8; color: #234d39; font-weight: 750; }
.factory-point-mall [data-mall-back] { display: inline-flex; margin-top: 15px; }
.factory-mall-links { display: flex; flex-wrap: wrap; gap: 8px; }
.factory-mall-notice { margin: 16px 0 0; color: #58675c; font-size: 12px; line-height: 1.5; }
@media (max-width: 900px) {
  .factory-mall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factory-mall-card h3 { min-height: 2.7em; }
}
@media (max-width: 560px) {
  .factory-mall-detail { grid-template-columns: minmax(0, 1fr); }
}
.factory-studio { overflow-anchor: none; }
.factory-currency { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums; }
.factory-currency-icon { display: block; width: 21px; height: 21px; flex: 0 0 auto; }
.factory-currency strong { font-size: inherit; font-weight: 780; }
.factory-shop-wallet { font-size: 17px; }
.factory-work-wallet { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.factory-dispatch-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-bottom: 10px; }
.factory-dispatch-summary .factory-dispatch-button { display: flex; justify-content: flex-start; min-height: 44px; min-width: 0; gap: 5px; padding: 5px 7px; border-radius: 9px; text-align: left; border-color: #e0e7e0; background: #f7faf6; }
.factory-dispatch-summary .factory-dispatch-button:hover { border-color: #adc7af; background: #f6faf3; }
.factory-dispatch-summary .factory-dispatch-button.is-first-delivery { border-color: #d9c698; background: #fff6e3; }
.factory-dispatch-summary .factory-dispatch-button.is-first-delivery:hover { border-color: #b99554; background: #fff0d3; }
.factory-dispatch-button.is-first-delivery .factory-dispatch-label { color: #6b4922; }
.factory-dispatch-button:active { translate: 0 1px; }
.factory-dispatch-button > :is(.factory-menu-art, .factory-tool-icon, .factory-app-icon) { width: 24px; height: 24px; flex: none; }
.factory-dispatch-body, .factory-dispatch-time { min-width: 0; }
.factory-dispatch-body { display: grid; gap: 1px; }
.factory-dispatch-label { font-size: 12px; font-weight: 800; line-height: 1.2; }
.factory-dispatch-label small { display: inline-block; margin-inline-start: 4px; padding: 1px 4px; border-radius: 5px; background: #e4f0df; color: #426d53; font-size: 9px; }
.factory-dispatch-time { display: flex; flex-wrap: wrap; column-gap: 4px; color: #56675d; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.factory-dispatch-time strong { color: #385b46; font-weight: 820; font-variant-numeric: tabular-nums; }
.factory-dispatch-arrow { margin-left: auto; color: #668473; font-size: 20px; line-height: 1; }
.factory-order-sheet:focus { outline: 2px solid #83a889; outline-offset: 2px; }
.factory-work-amounts { display: grid; grid-template-columns: repeat(2, minmax(48px, auto)); gap: 7px; }
.factory-work-amounts .factory-currency { display: grid; grid-template-columns: auto auto; place-content: center; justify-items: center; column-gap: 4px; row-gap: 1px; padding: 4px 7px; border: 1px solid #e4dbbf; border-radius: 8px; background: #fff; color: #674f33; font-size: 15px; }
.factory-currency-label { grid-column: 1 / -1; font-size: 10px; font-weight: 700; }
.factory-work-amounts [data-currency='note'] { border-color: #d6e4d3; color: #365e4a; }
.factory-energy-main { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.factory-energy-label, .factory-charge-tip { display: flex; align-items: center; gap: 4px; color: #614a2d; }
.factory-energy-label .factory-currency-icon, .factory-charge-tip .factory-currency-icon { width: 19px; height: 19px; }
.factory-energy-amount { color: #78562b; font-size: 13px; font-variant-numeric: tabular-nums; }
.factory-energy-track { display: grid; grid-template-columns: repeat(16,minmax(0,1fr)); gap: 2px; min-height: 13px; margin: 4px 0 2px; }
.factory-energy-cell { min-width: 0; min-height: 13px; border-radius: 3px; border: 1px solid #e2d6bc; background: #f2ead8; }
.factory-energy-cell[data-charged] { border-color: #d3a252; background: linear-gradient(#ffe297,#efb45b); }
.factory-energy-cell[data-expiring] { border: 1px dashed #83582c; background: linear-gradient(#fff4d8,#f7c875); }
.factory-avatar-scene { display: block; width: 100%; height: 100%; }
.factory-produce-list .quiet-button:has(.factory-blueprint-icon) { display: grid; grid-template-columns: 45px minmax(0,1fr) auto; gap: 7px; align-items: center; text-align: left; }
.factory-produce-list .factory-blueprint-icon { width: 44px; height: 44px; grid-row: auto; }
.factory-produce-option { display: grid; line-height: 1.25; }
.factory-produce-option small { color: #627566; font-size: 11px; }
.factory-energy-expiry { color: #6f5d3f; font-size: 11px; font-variant-numeric: tabular-nums; }
.factory-energy-footer { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 6px; }
.factory-auto-charge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border: 1px solid #eddec0; border-radius: 6px; background: #fbf2df; color: #654720; font-size: 11px; line-height: 1.3; white-space: nowrap; }
.factory-auto-charge svg { width: 13px; height: 13px; flex: none; }
.factory-auto-charge strong { font-variant-numeric: tabular-nums; }
.factory-tutorial-progress { margin: 0; color: #426651; font-size: 12px; font-weight: 760; font-variant-numeric: tabular-nums; }
.factory-tour-overlay { position: fixed; z-index: 120; inset: 0; pointer-events: none; }
.factory-tour-ring { position: absolute; inset: var(--tour-top) calc(100% - var(--tour-right)) calc(100% - var(--tour-bottom)) var(--tour-left); border: 2px solid #ffdc86; border-radius: 10px; box-shadow: 0 0 0 2px #593b22a6, 0 0 14px #ffd48682; }
.factory-tour-overlay:not(.has-target) .factory-tour-ring { display: none; }
.factory-tour-pointer { position: absolute; width: 24px; height: 24px; transform: translate(-50%, -50%) rotate(var(--tour-pointer-angle)); }
.factory-tour-pointer[hidden] { display: none; }
.factory-tour-pointer span { display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid #9b692d; border-radius: 50%; background: #ffd887; color: #503618; box-shadow: 0 2px 7px #34271966; }
.factory-tour-pointer span::after { content: ''; width: 7px; height: 7px; border-top: 2px solid; border-right: 2px solid; transform: translateX(-1px) rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .factory-tour-pointer span { animation: factory-tour-point 1.16s ease-in-out 4; }
  @keyframes factory-tour-point { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
}
.factory-tour-guide { position: absolute; display: grid; gap: 10px; width: min(326px, calc(100% - 20px)); max-height: calc(100% - 20px); overflow: auto; padding: 12px 14px; border: 1px solid #d9e5d6; border-radius: 15px; background: #fcfdf9; box-shadow: 0 12px 36px #152c234a; pointer-events: auto; }
.factory-tour-guide [hidden] { display: none; }
.factory-tour-bar, .factory-tour-tools { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.factory-tour-bar .factory-tutorial-progress { margin: 0; color: #38634d; font-size: 12px; line-height: 1.3; }
.factory-tour-guide .factory-tutorial-close { margin-inline-start: auto; min-width: 44px; min-height: 36px; padding: 3px 8px; border-color: transparent; color: #52645a; background: transparent; font-size: 12px; }
.factory-tour-guide .factory-tutorial-close:hover { background: #ecf1e9; }
.factory-tour-guide > .solid-button { min-height: 44px; padding-inline: 40px; }
body:has(.factory-tour-overlay) [data-tour-spotlight] .solid-button { padding-inline-start: 42px; }
.factory-tour-copy h2 { margin: 0 0 4px; color: #244635; font-size: 18px; line-height: 1.28; letter-spacing: -.025em; }
.factory-tour-copy p { margin: 0; color: #435349; font-size: 13px; line-height: 1.5; word-break: keep-all; }
.factory-tour-rewards { display: grid; gap: 6px; margin-top: 9px; }
.factory-tour-guide:has(.factory-tour-rewards:not([hidden])) { gap: 8px; padding-block: 10px; }
.factory-tour-reward { --reward-ink: #71511f; display: grid; grid-template-columns: 21px minmax(0, 1fr); align-items: start; gap: 7px; padding: 6px 8px; border: 1px solid #eadcbe; border-radius: 9px; background: #fbf5e9; }
.factory-tour-reward.is-note { --reward-ink: #305d43; border-color: #d7e6d8; background: #eef5ed; }
.factory-tour-reward .factory-currency-icon { width: 21px; height: 21px; }
.factory-tour-reward strong { display: flex; align-items: center; gap: 6px; color: var(--reward-ink); font-size: 14px; line-height: 1.25; }
.factory-tour-reward-unit { padding: 2px 5px; border-radius: 4px; background: #fff; font-size: 11px; line-height: 1; }
.factory-tour-reward p { margin-top: 2px; font-size: 12px; line-height: 1.4; }
.factory-tour-reward small { display: block; margin-top: 3px; color: var(--reward-ink); font-size: 11px; font-weight: 700; line-height: 1.3; }
.factory-tour-tools .quiet-button { flex: 1; min-height: 38px; padding: 4px 8px; font-size: 12px; }
.factory-tour-tools .quiet-button:disabled { opacity: .55; }
.factory-tour-guide.is-intro { gap: 14px; width: min(424px, calc(100% - 28px)); padding: clamp(14px, 4vw, 24px); border-radius: 19px; }
.factory-tour-guide.is-intro .factory-tour-bar { position: absolute; top: clamp(14px, 4vw, 24px); right: clamp(14px, 4vw, 24px); }
.factory-tour-guide.is-intro h2 { min-height: 36px; margin: 0 50px 3px 0; display: flex; align-items: center; font-size: clamp(20px, 5vw, 25px); }
.factory-tour-chapters { display: grid; margin: 0; padding: 0 12px; border: 1px solid #dce7d9; border-radius: 12px; background: #f2f6ef; list-style: none; counter-reset: tour-chapter; }
.factory-tour-chapters li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; align-content: center; padding: 10px 0; counter-increment: tour-chapter; }
.factory-tour-chapters li + li { border-top: 1px solid #dce7d9; }
.factory-tour-chapters li::before { content: counter(tour-chapter); display: grid; grid-row: span 2; place-items: center; align-self: start; width: 26px; height: 26px; border-radius: 8px; background: #dfeade; color: #305640; font-size: 13px; font-weight: 750; }
.factory-tour-chapters strong { color: #244635; font-size: 14px; line-height: 1.35; }
.factory-tour-chapters span { margin-top: 2px; color: #4b6153; font-size: 12px; line-height: 1.4; word-break: keep-all; }
.factory-tour-note { margin: -5px 0 0; color: #4b6153; font-size: 11px; line-height: 1.45; text-align: center; word-break: keep-all; }
.factory-tour-save-error { margin: 0; color: #85372e; font-size: 12px; }
.factory-produce-list .quiet-button { justify-content: space-between; }
.factory-print-cost .factory-currency-icon, .factory-mission-reward .factory-currency-icon, .factory-mission-month .factory-currency-icon { width: 17px; height: 17px; }
.factory-mission-month, .factory-mission-reward, .factory-mall-discount { display: inline-flex; align-items: center; gap: 5px; }
.factory-mission-schedule { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.factory-mission-schedule .quiet-button { display: grid; place-content: center; gap: 1px; min-width: 0; min-height: 43px; padding: 3px 1px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.factory-mission-schedule strong { font-size: 12px; }
.factory-mission-schedule small { color: #627267; font-size: 9px; }
.factory-mission-schedule [aria-pressed='true'] { border-color: #739581; background: #e6f0e6; color: #325844; }
.factory-order-window { margin: 0 0 8px; color: #745d37; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.factory-order-sheet[data-status='expired'], .factory-order-sheet[data-status='upcoming'] { border-top-color: #c9c8b1; }
.factory-bag-header .quiet-button { display: inline-flex; align-items: center; gap: 4px; }
.factory-fixture-size, .factory-theme-option .quiet-button { display: inline-flex; align-items: center; gap: 6px; }
.factory-fixture-size .factory-currency-icon, .factory-theme-option .factory-currency-icon, .factory-resize-actions .factory-currency-icon { width: 16px; height: 16px; }
.profile-reward:has(.factory-currency) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.profile-reward .factory-currency-icon { width: 18px; height: 18px; }
.profile-reward-progress { padding: 2px 6px; border: 1px solid #dae5d8; border-radius: 6px; background: #f3f7ef; color: #415d4c; font-size: 11px; white-space: nowrap; }
.answer-reward-bonus { display: inline-flex; align-items: center; gap: 5px; padding-inline: 6px; border: 1px solid #e8d9b9; border-radius: 6px; color: #795a31; background: #fff5df; }
.comment-entry.is-accepted-answer { padding: 12px; border: 1px solid #bad3bc; border-radius: 10px; background: #edf6eb; }
.accepted-answer-label { padding: 2px 6px; border-radius: 6px; background: #d8ead8; color: #315b44; font-size: 11px; font-weight: 750; }
.accept-answer-button { min-height: 30px; margin-left: 6px; padding: 3px 8px; color: #356750; font-size: 12px; }
@media (max-width: 720px) {
  .factory-stock-tabs .quiet-button { min-height: 44px; }
}
@media (max-width: 720px) {
  .factory-studio { --factory-app-bottom: var(--profile-app-bar, env(safe-area-inset-bottom, 0px)); overflow-anchor: none; }
  .factory-layout { grid-template-areas: 'overview' 'stage' 'ads'; gap: 9px; }
  .factory-work-overview { gap: 6px; padding: 7px 10px; border-color: #dfe9dd; background: #f5f8f1; }
  .factory-work-wallet { display: block; }
  .factory-energy { display: grid; grid-template-columns: minmax(86px, 29%) minmax(0, 1fr); column-gap: 10px; align-items: center; }
  .factory-energy-main strong { font-size: 13px; line-height: 1.2; }
  .factory-energy-label .factory-currency-icon { width: 17px; height: 17px; }
  .factory-energy-track { min-height: 10px; margin: 0; }
  .factory-energy-cell { min-height: 10px; border-radius: 2px; }
  .factory-energy-expiry { font-size: 10px; line-height: 1.3; }
  .factory-work-amounts { display: none; }
  .factory-stage { --factory-stage-gutter: 10px; --factory-room-max-height: clamp(160px, calc(100dvh - 473px), 420px); }
  .factory-room-scroll:not([data-pannable]) .factory-room-wrap { padding: 2px var(--factory-stage-gutter) 5px; }
  .factory-room-scroll[data-pannable], .factory-room-scroll:not([data-pannable]) .factory-room { max-height: var(--factory-room-max-height); }
  .factory-stage-top { column-gap: 7px; padding-bottom: 4px; }
  .factory-stage-details { grid-area: size; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
  .factory-stage-points {
    margin-inline-start: auto;
    gap: 4px;
    padding: 3px 7px;
    border: 1px solid #eadcbb;
    border-radius: 7px;
    background: #fbf5e8;
    color: #6f502e;
    font-size: 11px;
    line-height: 1.35;
  }
  .factory-stage-points .factory-currency-icon { width: 16px; height: 16px; }
  .factory-stage-tabs { flex-wrap: nowrap; gap: 4px; }
  .factory-stage-tabs .quiet-button { min-height: 38px; border-radius: 8px; box-shadow: none; }
  .factory-stage-tabs [aria-pressed='true'] { border-color: #b4cbb4; background: #e5efe0; }
  .factory-stage-tabs .factory-menu-art { width: 22px; height: 22px; }
  .factory-stage-count { padding-inline: 4px; }
  .factory-view-tools { gap: 3px; }
  .factory-view-tools .quiet-button { min-height: 38px; padding-inline: 5px; border-radius: 8px; font-size: 10px; }
  .factory-stage-top .quiet-button { white-space: nowrap; }
  .factory-side { display: contents; }
  .factory-panel-tabs {
    --tool-height: 52px;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: 6px;
    padding: 6px var(--factory-stage-gutter);
    border: 0;
    border-top: 1px solid #e4ebe1;
    background: #f5f8f2;
  }
  .factory-panel-tabs button {
    grid-auto-flow: row;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 8px;
    font-size: 11.5px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .factory-panel-tabs :is(.factory-menu-art, .factory-tool-icon) { width: 26px; height: 26px; }
  .factory-side-sheet { display: none; }
  .factory-side[data-mobile-open='true'] .factory-side-sheet { position: fixed; z-index: 11; inset: auto 8px calc(var(--factory-app-bottom) + 6px); display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: min(63dvh, calc(100dvh - var(--factory-app-bottom) - 12px), 520px); overflow: hidden; border: 1px solid #d9e5db; border-radius: 17px; background: #fff; box-shadow: 0 -7px 28px #203b2d26; }
  .factory-side[data-mobile-open='true'] .factory-side-sheet.is-daily-rewards { max-height: min(57dvh, 396px); }
  .is-daily-rewards .factory-panel-content { padding: 8px 10px 10px; }
  .is-daily-rewards .factory-mission-periods button { min-height: 40px; }
  .factory-reward-link.quiet-button { min-height: 40px; }
  .factory-side[data-mobile-open='true'] .factory-side-sheet:has(.factory-decoration-tabs) { grid-template-rows: auto auto minmax(0, 1fr); }
  .factory-sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 3px 8px 3px 12px; border-bottom: 1px solid #e8eee7; background: #f6f9f4; color: #355e48; font-size: 14px; }
  .factory-sheet-close { min-height: 40px; padding: 4px 12px; border-color: #d7a397; color: #85372e; background: #f8e6e1; }
  .factory-sheet-close:hover { border-color: #c58679; background: #f3d8d0; }
  .factory-sheet-close:focus-visible { outline-color: #9f5448; }
  .factory-decoration-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px 12px; border-bottom: 1px solid #e8eee7; }
  .factory-decoration-tabs button { justify-content: center; min-height: 44px; }
  .factory-decoration-tabs [aria-pressed='true'] { border-color: #bfd1bd; color: #254f3c; background: #eaf3e5; }
  .factory-sheet-body { display: block; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .factory-panel-content { padding: 12px; overflow: visible; }
  .workshop:has(#profile-studio) .profile-toast { z-index: 15; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .factory-stage-dimensions { font-size: 11px; line-height: 14px; }
  .factory-stage-bottom { block-size: 40px; font-size: 11px; }
  .factory-bag-grid, .factory-bag-overflow { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .factory-ad-positions { grid-template-rows: auto; }
  .factory-dispatch-button > .factory-app-icon { width: 20px; height: 20px; color: #76572d; }
  .factory-dispatch-label { font-size: 11px; }
  .factory-dispatch-arrow { font-size: 15px; }
}

@media (max-width: 380px) {
  .factory-stage-top:has(.factory-view-tools) { grid-template-areas: 'tabs tabs' 'size zoom'; }
  .factory-stage-top:has(.factory-stage-details) { grid-template-areas: 'tabs tabs' 'size zoom' 'points points'; }
  .factory-stage-details { display: contents; }
  .factory-stage-points { grid-area: points; }
  .factory-view-tools .quiet-button { min-height: 32px; }
}

@media (max-width: 380px), (max-width: 720px) and (max-height: 730px) {
  .factory-side[data-mobile-open='true'] .factory-side-sheet.is-daily-rewards {
    max-height: min(48dvh, 326px, calc(100dvh - var(--factory-app-bottom) - 270px));
  }
  .factory-daily-rewards { margin-top: 8px; }
  .factory-reward-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
  .factory-panel-content .factory-daily-rewards h3 { font-size: 15px; }
  .factory-reward-reset { font-size: 10px; }
  .factory-reward-reset svg { display: none; }
  .factory-reward-progress { gap: 6px; margin-top: 6px; }
  .factory-reward-progress-row {
    grid-template: 'glyph info action' auto 'glyph count action' auto / 30px minmax(0, 1fr) auto;
    gap: 3px 7px;
    padding: 6px 8px;
  }
  .factory-reward-glyph { width: 30px; height: 30px; }
  .factory-reward-glyph svg { width: 17px; height: 17px; }
  .factory-reward-info { display: grid; gap: 0; }
  .factory-reward-rates { white-space: normal; }
  .factory-reward-link.quiet-button { padding-inline: 6px; }
  .factory-daily-rewards > .factory-muted { display: none; }
}

@media (min-width: 721px) {
  @container factory-workspace (max-width: 395px) {
    .factory-stage-top:has(.factory-view-tools) { grid-template-areas: 'tabs tabs' 'size zoom'; }
  }
}
