    /* Reset */

    :root {
      --bg: #F5F7F7;
      --surface: rgba(255, 255, 255, 0.94);
      --surface-soft: #EFF3F5;
      --line: #DCE1E3;
      --text: #1c332b;
      --muted: #66776f;
      --primary: #4A9FCA;
      --primary-dark: #3A8AB5;
      --primary-soft: #EBF4FA;
      --cta: #E8734A;
      --cta-dark: #D4623C;
      --cta-soft: #FDF0EB;
      --danger: #b54754;
      --danger-soft: #faedef;
      --success: #17764b;
      --success-soft: #e8f5ee;
      --shadow: 0 18px 44px rgba(14, 49, 38, 0.08);
      --radius-xl: 28px;
      --radius-lg: 22px;
      --radius-md: 16px;
      --radius-sm: 12px;
      --max-width: 1120px;
      --ease: cubic-bezier(.2,.9,.2,1);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-height: 100vh;
      font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top right, rgba(74, 159, 202, 0.08), transparent 22%),
        linear-gradient(180deg, #FCFDFD 0%, #F5F7F7 100%);
    }

    button, input, textarea { font: inherit; }
    button {
      border: 0;
      background: none;
      padding: 0;
      color: inherit;
      cursor: pointer;
    }
    a {
      color: inherit;
      text-decoration: none;
    }
    img {
      display: block;
      max-width: 100%;
    }

    /* Layout */

    .app {
      width: min(100%, var(--max-width));
      margin: 0 auto;
      padding: 18px 16px 64px;
    }

    .topbar {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      padding: 6px 0 22px;
    }

    .brand {
      display: flex;
      gap: 14px;
      align-items: center;
      min-width: 0;
    }

    .brand-logo {
      width: 132px;
      height: auto;
      display: block;
      flex: 0 0 auto;
    }

    .brand-name {
      font-size: .98rem;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .brand-sub {
      margin-top: 4px;
      font-size: .92rem;
      color: var(--muted);
    }

    .lang-toggle {
      display: inline-flex;
      gap: 6px;
      padding: 5px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 8px 18px rgba(43, 61, 61, 0.05);
    }

    .lang-toggle button {
      min-width: 48px;
      padding: 9px 12px;
      border-radius: 999px;
      font-size: .84rem;
      font-weight: 800;
      color: var(--muted);
      transition: background 180ms var(--ease), color 180ms var(--ease);
    }

    .lang-toggle button.active {
      background: var(--primary);
      color: #fff;
    }

    /* Screens */

    .screen {
      animation: fade-up 260ms var(--ease) both;
    }

    @keyframes fade-up {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .hero,
    .panel,
    .status-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow);
    }

    .hero {
      padding: 28px;
      position: relative;
      overflow: hidden;
    }

    .hero-spaced {
      margin-top: 20px;
    }

    .hero::after {
      content: "";
      position: absolute;
      width: 220px;
      height: 220px;
      right: -70px;
      bottom: -90px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(74, 159, 202, 0.12), rgba(74, 159, 202, 0.02));
    }

    .hero-copy,
    .header-copy {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 14px;
      max-width: 62ch;
    }

    .lookup-panel {
      display: grid;
      gap: 18px;
      margin-top: 18px;
      padding: 20px;
    }

    .lookup-copy,
    .lookup-form,
    .lookup-results {
      display: grid;
      gap: 10px;
    }

    .lookup-copy h2 {
      font-size: clamp(1.35rem, 5vw, 1.8rem);
    }

    .lookup-form label {
      font-weight: 800;
    }

    .lookup-form-row {
      display: grid;
      gap: 10px;
    }

    .lookup-form input {
      width: 100%;
      min-height: 52px;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 14px 15px;
      background: #fff;
      color: var(--text);
      outline: none;
      transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
    }

    .lookup-form input:focus {
      border-color: rgba(74, 159, 202, 0.36);
      box-shadow: 0 0 0 4px rgba(74, 159, 202, 0.12);
    }

    .lookup-form input:disabled {
      background: var(--surface-soft);
      color: var(--muted);
    }

    .lookup-form-row .button {
      width: 100%;
    }

    .lookup-result-root:empty,
    .lookup-results-root:empty {
      display: none;
    }

    .lookup-feedback {
      padding: 14px 16px;
      border-radius: 16px;
      border: 1px solid #DCE5E8;
      background: var(--surface-soft);
      color: var(--muted);
      font-weight: 700;
    }

    .lookup-feedback.error {
      border-color: rgba(181, 71, 84, 0.16);
      background: var(--danger-soft);
      color: #923943;
    }

    .lookup-products-grid {
      margin-top: 4px;
    }

    h1, h2, h3 {
      margin: 0;
      line-height: 1.08;
    }

    h1 {
      font-size: clamp(2rem, 7vw, 4rem);
      max-width: 11ch;
      margin-top: 4px;
    }

    h2 {
      font-size: clamp(1.6rem, 4vw, 2.35rem);
    }

    h3 {
      font-size: 1.08rem;
    }

    p {
      margin: 0;
      line-height: 1.6;
    }

    .muted { color: var(--muted); }
    .hint { color: var(--muted); font-size: .92rem; }
    .hint-spaced { margin-top: 8px; }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    /* Components */

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 50px;
      padding: 13px 18px;
      border-radius: 16px;
      font-weight: 800;
      border: 1px solid transparent;
      transition: transform 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease);
    }

    .button:hover:not(:disabled) { transform: translateY(-1px); }
    .button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

    .button.primary {
      background: var(--cta);
      color: #fff;
      box-shadow: 0 14px 26px rgba(232, 115, 74, 0.18);
    }

    .button.primary:hover:not(:disabled) {
      background: var(--cta-dark);
    }

    .button.secondary {
      background: #fff;
      color: var(--text);
      border-color: var(--line);
    }

    .button.outline {
      background: var(--primary-soft);
      color: var(--primary-dark);
      border-color: rgba(74, 159, 202, 0.22);
    }

    .button.ghost {
      min-height: auto;
      padding: 0;
      border: 0;
      color: var(--danger);
      background: none;
      font-weight: 700;
    }

    .button.ghost-primary {
      color: var(--primary-dark);
    }

    .button-row {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .panel-padded {
      padding: 20px;
    }

    .status-card.compact {
      padding: 16px;
    }

    .header-block {
      display: grid;
      gap: 18px;
      margin-bottom: 24px;
    }

    .header-row {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: flex-start;
      flex-wrap: wrap;
    }

    .progress {
      display: grid;
      gap: 12px;
    }

    .progress-text {
      color: var(--muted);
    }

    .progress-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
    }

    .progress-steps {
      display: inline-flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .progress-step {
      min-width: 38px;
      height: 38px;
      padding: 0 12px;
      border-radius: 999px;
      border: 1px solid #D5DDE1;
      background: rgba(255, 255, 255, 0.92);
      color: var(--muted);
      font-weight: 800;
      transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
    }

    .progress-step.active {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }

    .progress-bar {
      height: 10px;
      border-radius: 999px;
      background: #E3EAEE;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      width: 0;
      background: linear-gradient(90deg, var(--primary), #6BB8D9);
      transition: width 220ms var(--ease);
    }

    .catalog {
      display: grid;
      gap: 24px;
    }

    .catalog-controls {
      display: grid;
      gap: 12px;
    }

    .search-wrap {
      position: relative;
    }

    .search-input,
    .catalog-select {
      width: 100%;
      min-height: 54px;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 14px 16px;
      background: rgba(255, 255, 255, 0.95);
      color: var(--text);
      outline: none;
      transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
    }

    .search-input {
      padding-right: 52px;
    }

    .search-input:focus,
    .catalog-select:focus {
      border-color: rgba(74, 159, 202, 0.36);
      box-shadow: 0 0 0 4px rgba(74, 159, 202, 0.12);
    }

    .search-clear {
      position: absolute;
      top: 50%;
      right: 14px;
      transform: translateY(-50%);
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--surface-soft);
      color: var(--muted);
      font-size: 1.1rem;
      font-weight: 800;
    }

    .catalog-filter {
      display: block;
    }

    .catalog-select {
      appearance: none;
      background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
      background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
      padding-right: 42px;
    }

    .category-block {
      display: grid;
      gap: 14px;
    }

    .category-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
    }

    .products-grid {
      display: grid;
      gap: 16px;
    }

    .product-card {
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      overflow: hidden;
      background: #fff;
      box-shadow: 0 14px 30px rgba(16, 44, 36, 0.05);
      display: grid;
      align-content: start;
      scroll-margin-top: 92px;
    }

    .product-card-grid {
      gap: 0;
      cursor: pointer;
    }

    .product-cover-button,
    .product-title-link,
    .details-link {
      border: 0;
      background: none;
      text-align: left;
      padding: 0;
    }

    .product-cover-button {
      display: block;
      width: 100%;
    }

    .product-image {
      position: relative;
      aspect-ratio: 16 / 11;
      overflow: hidden;
      background: linear-gradient(180deg, #F2F6F8, #FBFCFD);
    }

    .product-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .image-fallback {
      width: 100%;
      height: 100%;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      text-align: center;
      color: var(--muted);
    }

    .photo-badge {
      position: absolute;
      top: 12px;
      right: 12px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 10px;
      border-radius: 999px;
      background: rgba(23, 118, 75, 0.94);
      color: #fff;
      font-size: .78rem;
      font-weight: 800;
      box-shadow: 0 10px 20px rgba(23, 118, 75, 0.22);
    }

    .product-body {
      display: grid;
      gap: 14px;
      padding: 18px;
    }

    .product-card-grid .product-body {
      gap: 12px;
    }

    .product-copy {
      display: grid;
      gap: 10px;
    }

    .product-title-link {
      font-size: 1.08rem;
      font-weight: 800;
      color: var(--text);
    }

    .clamp-one-line {
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .details-link {
      color: var(--primary-dark);
      font-weight: 800;
      width: fit-content;
    }

    .card-hint {
      font-size: .8rem;
      color: var(--muted);
      margin-top: -4px;
    }

    .category-toggle {
      width: fit-content;
    }

    .ar-return-prompt {
      display: grid;
      gap: 10px;
      padding: 14px;
      border-radius: 16px;
      background: linear-gradient(180deg, #F8FBFD, #EEF5FA);
      border: 1px solid #D9E4EA;
    }

    .inline-confirmation {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border-radius: 14px;
      background: var(--success-soft);
      color: var(--success);
      border: 1px solid rgba(23, 118, 75, 0.14);
      font-size: .88rem;
      font-weight: 700;
      width: fit-content;
    }

    .thumb-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .thumb-row-scroll {
      flex-wrap: nowrap;
      overflow-x: auto;
      align-items: flex-start;
      padding-bottom: 4px;
      -webkit-overflow-scrolling: touch;
    }

    .thumb-card {
      display: grid;
      gap: 8px;
      justify-items: start;
      flex: 0 0 auto;
    }

    .thumb-card-large .thumb-actions {
      max-width: 120px;
    }

    .thumb-wrap {
      position: relative;
      width: 72px;
      height: 72px;
    }

    .thumb-wrap-large {
      width: 120px;
      height: 120px;
    }

    .thumb-image {
      width: 72px;
      height: 72px;
      border-radius: 14px;
      object-fit: cover;
      border: 1px solid #D6E0E5;
      background: #fff;
    }

    .thumb-image-large {
      width: 120px;
      height: 120px;
    }

    .thumb-remove {
      position: absolute;
      top: -6px;
      right: -6px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: rgba(43, 61, 61, 0.92);
      color: #fff;
      font-size: .82rem;
      font-weight: 800;
      box-shadow: 0 8px 16px rgba(18, 35, 29, 0.16);
    }

    .thumb-badge {
      position: absolute;
      left: 8px;
      right: 8px;
      bottom: 8px;
      padding: 6px 8px;
      border-radius: 999px;
      background: rgba(43, 61, 61, 0.88);
      color: #fff;
      font-size: .72rem;
      font-weight: 800;
      line-height: 1.2;
      text-align: center;
      backdrop-filter: blur(4px);
    }

    .thumb-actions {
      display: grid;
      gap: 6px;
      width: 100%;
    }

    .thumb-annotate {
      min-height: 38px;
      padding: 8px 12px;
      border-radius: 12px;
      font-size: .82rem;
      font-weight: 800;
    }

    .upload-wrap {
      position: relative;
      overflow: hidden;
    }

    .upload-wrap input {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
    }

    .action-footer {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 8px;
    }

    .detail-footer {
      padding-bottom: 12px;
    }

    /* Screen Sections */

    .catalog-results {
      display: grid;
      gap: 14px;
    }

    .screen-with-floating-bar {
      padding-bottom: 116px;
    }

    .product-detail {
      padding: 16px;
      display: grid;
      gap: 18px;
      padding-bottom: 108px;
      scroll-margin-top: 92px;
    }

    .detail-topbar {
      position: sticky;
      top: 0;
      z-index: 2;
      margin: -4px -4px 0;
      padding: 4px;
      background: linear-gradient(180deg, rgba(245, 247, 247, 0.98), rgba(245, 247, 247, 0.9));
      backdrop-filter: blur(8px);
    }

    .detail-back {
      color: var(--primary-dark);
      width: fit-content;
    }

    .detail-layout {
      display: grid;
      gap: 18px;
    }

    .detail-media,
    .detail-content,
    .detail-copy {
      display: grid;
      gap: 14px;
    }

    .detail-image {
      border-radius: 20px;
    }

    .category-badge {
      display: inline-flex;
      width: fit-content;
      padding: 8px 12px;
      border-radius: 999px;
      background: var(--primary-soft);
      color: var(--primary-dark);
      font-size: .82rem;
      font-weight: 800;
    }

    .detail-specs {
      display: grid;
      gap: 10px;
    }

    .detail-spec {
      display: grid;
      gap: 4px;
      padding: 14px;
      border-radius: 16px;
      background: var(--surface-soft);
      border: 1px solid #DCE5E8;
    }

    .detail-actions {
      display: grid;
      gap: 10px;
    }

    .detail-actions .button {
      width: 100%;
    }

    .detail-tip {
      margin-top: -2px;
    }

    .annotation-overlay {
      position: fixed;
      inset: 0;
      z-index: 100;
      background: #000;
      display: flex;
      flex-direction: column;
      touch-action: none;
    }

    .annotation-stage {
      flex: 1 1 auto;
      min-height: 0;
      display: grid;
      place-items: center;
      padding: 16px;
      overflow: hidden;
      touch-action: none;
      pointer-events: auto;
    }

    .annotation-frame {
      position: relative;
      display: grid;
      place-items: center;
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
    }

    .annotation-image,
    .annotation-canvas {
      display: block;
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    .annotation-canvas {
      position: absolute;
      inset: 0;
      touch-action: none;
      pointer-events: auto;
    }

    .annotation-toolbar {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 110;
      display: grid;
      gap: 8px;
      padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(6px);
      flex-shrink: 0;
      pointer-events: auto;
    }

    .annotation-toolbar-row {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .annotation-toolbar-main {
      display: grid;
      gap: 8px;
    }

    .annotation-toolbar-primary {
      justify-content: space-between;
    }

    .annotation-toolbar-actions {
      justify-content: center;
    }

    .annotation-tools,
    .annotation-swatches,
    .annotation-widths {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      justify-content: center;
    }

    .annotation-options-panel {
      display: grid;
      gap: 8px;
      padding: 8px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .annotation-options-panel[hidden] {
      display: none;
    }

    .annotation-options-choices,
    .annotation-options-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .annotation-options-actions .button {
      min-height: 44px;
      padding: 9px 14px;
    }

    .annotation-divider {
      width: 1px;
      align-self: stretch;
      min-height: 44px;
      background: rgba(255, 255, 255, 0.2);
    }

    .annotation-swatch,
    .annotation-width,
    .annotation-tool {
      width: 44px;
      height: 44px;
      min-width: 44px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      border: 2px solid transparent;
      background: rgba(255, 255, 255, 0.08);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
      touch-action: manipulation;
    }

    .annotation-swatch {
      background: var(--annotation-color);
    }

    .annotation-tool {
      color: #fff;
    }

    .annotation-tool svg {
      width: 20px;
      height: 20px;
      display: block;
    }

    .annotation-options-toggle {
      position: relative;
    }

    .annotation-options-preview {
      position: absolute;
      right: 4px;
      bottom: 4px;
      width: 11px;
      height: 11px;
      border-radius: 50%;
      background: var(--annotation-current-color, #FFD700);
      border: 1px solid rgba(255, 255, 255, 0.85);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }

    .annotation-snap {
      font-size: .78rem;
      font-weight: 800;
      letter-spacing: .02em;
    }

    .annotation-tool:disabled,
    .annotation-snap:disabled {
      opacity: .35;
      cursor: not-allowed;
    }

    .annotation-swatch.active,
    .annotation-width.active,
    .annotation-tool.active,
    .annotation-snap.active {
      box-shadow: 0 0 0 3px #fff, inset 0 0 0 1px rgba(0, 0, 0, 0.15);
    }

    .annotation-width span {
      display: block;
      border-radius: 50%;
      background: #fff;
    }

    .annotation-hint {
      color: rgba(255, 255, 255, 0.75);
      font-size: .82rem;
      text-align: center;
    }

    .annotation-action {
      min-height: 44px;
      touch-action: manipulation;
    }

    .annotation-action svg {
      width: 20px;
      height: 20px;
      flex: 0 0 auto;
    }

    .annotation-action-utility {
      width: 44px;
      min-width: 44px;
      padding: 0;
      border-radius: 14px;
    }

    .annotation-action-label {
      display: none;
    }

    .annotation-action-text {
      flex: 1 1 0;
      min-width: 68px;
      padding: 10px 12px;
    }

    .annotation-action.is-hidden {
      display: none;
    }

    .review-layout {
      display: grid;
      gap: 18px;
    }

    .review-list,
    .additional-photos,
    .review-photos {
      display: grid;
      gap: 14px;
    }

    .review-item,
    .additional-item {
      padding: 16px;
      border-radius: 18px;
      background: var(--surface-soft);
      border: 1px solid #DCE5E8;
      display: grid;
      gap: 12px;
    }

    .row-between {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
      flex-wrap: wrap;
    }

    .form-card,
    .status-card {
      padding: 20px;
    }

    .status-line {
      margin-top: 10px;
    }

    .status-action {
      margin-top: 16px;
    }

    .form-status,
    .form-actions {
      margin-top: 18px;
    }

    .form-grid {
      display: grid;
      gap: 14px;
    }

    .field {
      display: grid;
      gap: 8px;
    }

    .field label,
    .checkbox-copy strong {
      font-weight: 800;
    }

    .field input,
    .field textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 14px 15px;
      background: #fff;
      color: var(--text);
      outline: none;
      transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
    }

    .field input:focus,
    .field textarea:focus {
      border-color: rgba(74, 159, 202, 0.36);
      box-shadow: 0 0 0 4px rgba(74, 159, 202, 0.12);
    }

    .field textarea {
      min-height: 120px;
      resize: vertical;
    }

    .checkbox-row {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      padding: 14px;
      border-radius: 16px;
      background: var(--surface-soft);
      border: 1px solid #DCE5E8;
    }

    .checkbox-row input {
      width: 20px;
      height: 20px;
      margin-top: 3px;
      accent-color: var(--primary);
    }

    .required {
      color: var(--danger);
      margin-left: 4px;
    }

    .field-error {
      display: none;
      color: var(--danger);
      font-size: .88rem;
      font-weight: 700;
    }

    .field-error.show { display: block; }

    .status-card.success {
      background: var(--success-soft);
      border: 1px solid rgba(23, 118, 75, 0.16);
      color: #115739;
    }

    .status-card.error {
      background: var(--danger-soft);
      border: 1px solid rgba(181, 71, 84, 0.16);
      color: #923943;
    }

    .loading,
    .empty,
    .error-view {
      display: grid;
      gap: 14px;
      justify-items: center;
      text-align: center;
      color: var(--muted);
      padding: 28px 20px;
    }

    .spinner {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.35);
      border-top-color: currentColor;
      animation: spin .85s linear infinite;
    }

    .spinner.block {
      width: 34px;
      height: 34px;
      border-width: 3px;
      color: var(--primary);
      border-color: rgba(74, 159, 202, 0.14);
      border-top-color: var(--primary);
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 20px;
      transform: translateX(-50%);
      z-index: 14;
      max-width: min(92vw, 420px);
      padding: 12px 16px;
      border-radius: 16px;
      background: rgba(43, 61, 61, 0.94);
      color: #fff;
      box-shadow: 0 16px 32px rgba(18, 35, 29, 0.24);
      text-align: center;
    }

    .toast.with-floating-bar {
      top: 20px;
      bottom: auto;
    }

    .floating-bar {
      position: fixed;
      left: 50%;
      bottom: 16px;
      transform: translateX(-50%);
      z-index: 13;
      width: min(calc(100% - 20px), 920px);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      border-radius: 22px;
      background: rgba(43, 61, 61, 0.96);
      color: #fff;
      box-shadow: 0 18px 40px rgba(18, 35, 29, 0.28);
      backdrop-filter: blur(8px);
      animation: fade-up 180ms var(--ease) both;
    }

    /* Responsive */

    @media (min-width: 760px) {
      .app { padding: 24px 24px 72px; }
      .hero { padding: 36px; }
      .lookup-panel { padding: 28px; }
      .lookup-form-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
      }
      .lookup-form-row .button {
        width: auto;
        min-width: 170px;
      }
      .catalog-controls {
        grid-template-columns: minmax(0, 1fr) 250px;
        align-items: center;
      }
      .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .product-detail {
        padding: 20px;
        padding-bottom: 120px;
      }
      .detail-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
      .detail-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .review-layout { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); }
      .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .field.full { grid-column: 1 / -1; }
      .annotation-toolbar {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
      }
      .annotation-toolbar-main {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .annotation-toolbar-primary,
      .annotation-toolbar-actions {
        flex: 0 0 auto;
      }
      .annotation-action-text {
        flex: 0 0 auto;
      }
      .annotation-options-panel {
        grid-template-columns: auto auto;
        justify-content: center;
      }
    }

    @media (min-width: 1080px) {
      .products-grid.mobile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .annotation-action-utility {
        width: auto;
        padding: 10px 14px;
      }
      .annotation-action-label {
        display: inline;
      }
    }

    @media (max-width: 759px) {
      .action-footer { flex-direction: column; }
      .detail-footer .button {
        width: 100%;
      }
      .floating-bar {
        width: calc(100% - 16px);
        bottom: 10px;
        padding: 12px 14px;
      }
    }
  
