/* ============================================================
   cotyleTablet.css — COTYLE WAREHOUSE Device Layer
   旧 tablet/tablet-polish.css を正式に Device Layer として採用（2026-07-06）。
   タブレット・現場端末・スキャン作業向け。cotyleNet.css の後に読み込むこと。
   body.cotyle-tablet-polish 配下にスコープ済み（既存の設計のまま）。
   ============================================================ */
/* COTYLE TABLET Phase T-7
   Premium tablet polish. Scoped to opt-in pages only. */

body.cotyle-tablet-polish {
  --tp-bg: #f5f5f7;
  --tp-ink: #1d1d1f;
  --tp-muted: #6e6e73;
  --tp-line: rgba(0, 0, 0, 0.08);
  --tp-panel: rgba(255, 255, 255, 0.86);
  --tp-blue: #0071e3;
  --tp-shadow: 0 14px 34px rgba(15, 23, 42, 0.065);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--tp-ink);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.96), rgba(245,246,248,0.86)),
    linear-gradient(135deg, #f7f8fa 0%, #eceff3 100%) !important;
  letter-spacing: 0;
}

body.cotyle-tablet-polish a {
  -webkit-tap-highlight-color: transparent;
}

body.cotyle-tablet-polish .tablet-topbar,
body.cotyle-tablet-polish .cot-nav,
body.cotyle-tablet-polish .top-panel,
body.cotyle-tablet-polish .crew-panel,
body.cotyle-tablet-polish .crew-page {
  background: var(--tp-panel);
  border-color: var(--tp-line);
  box-shadow: var(--tp-shadow);
}

body.cotyle-tablet-polish .tablet-topbar,
body.cotyle-tablet-polish .cot-nav {
  min-height: 72px;
  border-bottom: 1px solid var(--tp-line);
  backdrop-filter: blur(18px);
}

body.cotyle-tablet-home .tablet-shell {
  background: transparent;
}

body.cotyle-tablet-home .tablet-main {
  width: min(1220px, 100%);
  padding: clamp(24px, 4.4vw, 48px);
}

body.cotyle-tablet-home .brand-logo {
  border-radius: 8px;
  background: #1d1d1f;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

body.cotyle-tablet-home .brand-title {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 800;
}

body.cotyle-tablet-home .brand-subtitle,
body.cotyle-tablet-home .hero p,
body.cotyle-tablet-home .menu-desc,
body.cotyle-tablet-home .notice,
body.cotyle-tablet-home .tablet-footer {
  color: var(--tp-muted);
}

body.cotyle-tablet-home .today {
  min-height: 48px;
  border-color: var(--tp-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.05);
}

body.cotyle-tablet-home .hero {
  margin: 6px 0 24px;
}

body.cotyle-tablet-home .hero h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 820;
  letter-spacing: 0;
}

body.cotyle-tablet-home .menu-grid {
  gap: 16px;
}

body.cotyle-tablet-home .menu-card,
body.cotyle-tablet-polish .cot-card,
body.cotyle-tablet-polish .crew-panel,
body.cotyle-tablet-polish .crew-page,
body.cotyle-tablet-polish .modal-box,
body.cotyle-tablet-polish .phase-flow,
body.cotyle-tablet-polish .batch-row,
body.cotyle-tablet-polish .receiving-tablet-note,
body.cotyle-tablet-polish .tablet-guidance,
body.cotyle-tablet-polish .crew-guide,
body.cotyle-tablet-polish .crew-checks {
  border-radius: 8px;
  border: 1px solid var(--tp-line);
  background: var(--tp-panel);
  box-shadow: var(--tp-shadow);
}

body.cotyle-tablet-home .menu-card {
  min-height: 150px;
  padding: 22px;
}

body.cotyle-tablet-home .menu-card:hover,
body.cotyle-tablet-home .menu-card:focus-visible,
body.cotyle-tablet-polish .cot-card:hover,
body.cotyle-tablet-polish .cot-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}

body.cotyle-tablet-home .menu-card:active,
body.cotyle-tablet-polish .cot-card:active {
  transform: scale(0.99);
}

body.cotyle-tablet-home .menu-icon,
body.cotyle-tablet-polish .cot-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #f0f3f7;
  color: #1d1d1f;
}

body.cotyle-tablet-home .menu-label {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 820;
}

body.cotyle-tablet-home .menu-desc {
  font-size: 1rem;
  line-height: 1.55;
}

body.cotyle-tablet-home .status-row {
  color: var(--tp-blue);
}

body.cotyle-tablet-home .notice {
  padding: 18px 20px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 26px rgba(15,23,42,0.05);
}

body.cotyle-tablet-polish .tablet-return,
body.cotyle-tablet-polish .cot-nav-link.tablet-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--tp-line);
  background: rgba(255,255,255,0.74);
  color: var(--tp-ink);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15,23,42,0.05);
}

body.cotyle-tablet-polish .crew-page {
  margin-top: 32px;
  margin-bottom: 32px;
  padding: clamp(28px, 5vw, 44px);
}

body.cotyle-tablet-polish .crew-page h1,
body.cotyle-tablet-polish .crew-panel h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--tp-ink);
}

body.cotyle-tablet-polish .crew-field textarea,
body.cotyle-tablet-polish input,
body.cotyle-tablet-polish select,
body.cotyle-tablet-polish textarea {
  min-height: 48px;
  border-radius: 8px;
  border-color: var(--tp-line);
  font-size: 16px;
}

body.cotyle-tablet-polish .crew-field textarea {
  min-height: 148px;
}

body.cotyle-tablet-polish .crew-btn,
body.cotyle-tablet-polish .cot-btn,
body.cotyle-tablet-polish button {
  min-height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 740;
}

body.cotyle-tablet-polish .crew-btn[type="submit"] {
  min-height: 64px;
  padding: 0 24px;
}

body.cotyle-tablet-polish .crew-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.cotyle-tablet-polish .crew-btn.secondary {
  background: rgba(255,255,255,0.7);
  color: var(--tp-ink);
  border: 1px solid var(--tp-line);
}

body.cotyle-tablet-polish .crew-checks label {
  min-height: 48px;
}

body.cotyle-tablet-polish .cot-main {
  max-width: 1160px;
}

body.cotyle-tablet-polish .phase-flow {
  gap: 0;
  overflow: hidden;
}

body.cotyle-tablet-polish .phase-step {
  padding: 20px;
}

body.cotyle-tablet-polish .batch-row {
  min-height: 76px;
  padding: 18px 20px;
}

body.cotyle-tablet-polish .picking-table {
  border-collapse: separate;
  border-spacing: 0;
}

body.cotyle-tablet-polish .picking-table thead th {
  height: 44px;
}

body.cotyle-tablet-polish .picking-table td {
  padding: 13px 14px;
}

body.cotyle-tablet-polish .btn-shortage,
body.cotyle-tablet-polish .reason-pill {
  min-height: 44px;
  border-radius: 8px;
}

@media (max-width: 920px) {
  body.cotyle-tablet-home .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.cotyle-tablet-home .menu-grid {
    grid-template-columns: 1fr;
  }

  body.cotyle-tablet-home .tablet-main {
    padding: 20px;
  }

  body.cotyle-tablet-polish .crew-page {
    margin: 16px;
  }
}

/* Phase T-8: subtle advanced interactions */
body.cotyle-tablet-polish::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(0,113,227,0.08), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(255,255,255,0.58), transparent 24%),
    radial-gradient(circle at 78% 92%, rgba(120,130,150,0.07), transparent 30%);
}

body.cotyle-tablet-home .tablet-topbar,
body.cotyle-tablet-home .hero,
body.cotyle-tablet-home .notice,
body.cotyle-tablet-home .tablet-footer {
  animation: cotyle-rise-in 440ms cubic-bezier(.2,.8,.2,1) both;
}

body.cotyle-tablet-home .hero {
  animation-delay: 60ms;
}

body.cotyle-tablet-home .menu-card {
  position: relative;
  overflow: hidden;
  animation: cotyle-card-in 460ms cubic-bezier(.2,.8,.2,1) both;
  will-change: transform;
}

body.cotyle-tablet-home .menu-card:nth-child(1) { animation-delay: 70ms; }
body.cotyle-tablet-home .menu-card:nth-child(2) { animation-delay: 95ms; }
body.cotyle-tablet-home .menu-card:nth-child(3) { animation-delay: 120ms; }
body.cotyle-tablet-home .menu-card:nth-child(4) { animation-delay: 145ms; }
body.cotyle-tablet-home .menu-card:nth-child(5) { animation-delay: 170ms; }
body.cotyle-tablet-home .menu-card:nth-child(6) { animation-delay: 195ms; }
body.cotyle-tablet-home .menu-card:nth-child(7) { animation-delay: 220ms; }
body.cotyle-tablet-home .menu-card:nth-child(8) { animation-delay: 245ms; }

body.cotyle-tablet-home .menu-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.44), transparent 38%);
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

body.cotyle-tablet-home .menu-card:hover::after,
body.cotyle-tablet-home .menu-card:focus-visible::after {
  opacity: 1;
}

body.cotyle-tablet-home .menu-card:active {
  transform: scale(0.992) translateY(0);
  box-shadow: 0 9px 22px rgba(15,23,42,0.085);
}

body.cotyle-tablet-home .menu-icon {
  position: relative;
}

body.cotyle-tablet-home .menu-icon::after {
  position: absolute;
  right: -6px;
  bottom: -7px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.08);
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(15,23,42,0.10);
}

body.cotyle-tablet-home .menu-card:nth-child(1) .menu-icon::after { content: "↓"; }
body.cotyle-tablet-home .menu-card:nth-child(2) .menu-icon::after { content: "→"; }
body.cotyle-tablet-home .menu-card:nth-child(3) .menu-icon::after { content: "↔"; }
body.cotyle-tablet-home .menu-card:nth-child(4) .menu-icon::after { content: "◎"; }
body.cotyle-tablet-home .menu-card:nth-child(5) .menu-icon::after { content: "◇"; }
body.cotyle-tablet-home .menu-card:nth-child(6) .menu-icon::after { content: "▶"; }
body.cotyle-tablet-home .menu-card:nth-child(7) .menu-icon::after { content: "✓"; }
body.cotyle-tablet-home .menu-card:nth-child(8) .menu-icon::after { content: "⚙"; }

body.cotyle-tablet-home .tablet-status-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid var(--tp-line);
  background: rgba(255,255,255,0.74);
  box-shadow: 0 10px 24px rgba(15,23,42,0.065);
}

body.cotyle-tablet-home .tablet-status-panel strong {
  display: block;
  color: var(--tp-ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

body.cotyle-tablet-home .tablet-status-panel span:not(.status-pulse) {
  display: block;
  margin-top: 2px;
  color: var(--tp-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

body.cotyle-tablet-home .status-pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52,199,89,0.10);
  flex: 0 0 auto;
}

body.cotyle-tablet-polish .tablet-return:active,
body.cotyle-tablet-polish .cot-btn:active,
body.cotyle-tablet-polish .crew-btn:active,
body.cotyle-tablet-polish button:active {
  transform: scale(0.992);
}

body.cotyle-tablet-polish input:focus,
body.cotyle-tablet-polish select:focus,
body.cotyle-tablet-polish textarea:focus {
  outline: none;
  border-color: rgba(0,113,227,0.55);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.12);
}

@keyframes cotyle-rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cotyle-card-in {
  from { opacity: 0; transform: translateY(10px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 920px) {
  body.cotyle-tablet-home .tablet-status-panel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cotyle-tablet-polish *,
  body.cotyle-tablet-polish *::before,
  body.cotyle-tablet-polish *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Phase T-9c-T12: minimal operations refinement */
body.cotyle-tablet-home .menu-card {
  min-height: 118px;
  justify-content: center;
  gap: 16px;
}

body.cotyle-tablet-home .menu-head {
  align-items: center;
}

body.cotyle-tablet-home .menu-label {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

body.cotyle-tablet-home .menu-desc,
body.cotyle-tablet-home .status-row {
  display: none;
}

body.cotyle-tablet-home .notice {
  margin-top: 18px;
  padding: 12px 16px;
  font-size: 0.9rem;
  box-shadow: none;
}

body.cotyle-tablet-home .tablet-footer {
  justify-content: center;
  padding: 12px clamp(18px, 4vw, 40px);
}

body.cotyle-tablet-polish .cot-card-desc {
  line-height: 1.45;
}

body.cotyle-tablet-polish .cotyle-scan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 999px;
  color: #1d1d1f;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.cotyle-receiving-tablet .cot-main {
  max-width: 1080px;
}

body.cotyle-receiving-tablet .phase-desc {
  display: none;
}

body.cotyle-receiving-tablet .phase-step {
  min-height: 72px;
  justify-content: center;
}

body.cotyle-receiving-tablet .cot-card {
  min-height: 128px;
}

body.cotyle-receiving-tablet .cot-card[href*="register"] {
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 18px 38px rgba(15,23,42,0.09);
}

body.cotyle-receiving-tablet .cot-card[href*="register"] .cot-card-icon {
  background: #111;
  color: #fff;
}

body.cotyle-receiving-tablet input,
body.cotyle-receiving-tablet select,
body.cotyle-receiving-tablet textarea,
body.cotyle-receiving-tablet button,
body.cotyle-receiving-tablet .cot-btn {
  min-height: 48px;
}

body.cotyle-picking-tablet .top-panel {
  top: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 28px rgba(15,23,42,0.06);
}

body.cotyle-picking-tablet .top-row select,
body.cotyle-picking-tablet .top-row input[type="date"] {
  min-height: 44px;
  border-radius: 8px;
  font-size: 0.95rem;
}

body.cotyle-picking-tablet .summary-chips {
  gap: 10px;
}

body.cotyle-picking-tablet .s-chip {
  min-height: 42px;
  padding: 7px 12px;
  border-color: rgba(0,0,0,0.10);
  background: #fff;
  color: #1d1d1f;
}

body.cotyle-picking-tablet .s-chip.partial,
body.cotyle-picking-tablet .s-chip.done,
body.cotyle-picking-tablet .s-chip.warn {
  background: #fff;
  border-color: rgba(0,0,0,0.14);
}

body.cotyle-picking-tablet .table-area > div[style*="overflow-x"] {
  padding: 2px 0 14px;
}

body.cotyle-picking-tablet .picking-table {
  border-collapse: separate;
  border-spacing: 0 10px;
}

body.cotyle-picking-tablet .picking-table thead th {
  height: 40px;
  background: #1d1d1f;
  color: #fff;
}

body.cotyle-picking-tablet .picking-table tbody tr {
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}

body.cotyle-picking-tablet .picking-table tbody tr td {
  min-height: 54px;
  padding: 16px 14px;
  background: #fff !important;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

body.cotyle-picking-tablet .picking-table tbody tr td:first-child {
  border-left: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px 0 0 8px;
}

body.cotyle-picking-tablet .picking-table tbody tr td:last-child {
  border-right: 1px solid rgba(0,0,0,0.08);
  border-radius: 0 8px 8px 0;
}

body.cotyle-picking-tablet .picking-table td:nth-child(4),
body.cotyle-picking-tablet .picking-table td:nth-child(5),
body.cotyle-picking-tablet .picking-table td:nth-child(10),
body.cotyle-picking-tablet .picking-table td:nth-child(11),
body.cotyle-picking-tablet .picking-table td:nth-child(12),
body.cotyle-picking-tablet .picking-table td:nth-child(13) {
  font-size: 0.95rem;
  font-weight: 760;
}

body.cotyle-picking-tablet .st-badge {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  background: #fff !important;
  color: #1d1d1f !important;
}

body.cotyle-picking-tablet .action-row .cot-btn,
body.cotyle-picking-tablet .modal-actions .cot-btn,
body.cotyle-picking-tablet .upload-area {
  min-height: 52px;
}

body.cotyle-picking-tablet .upload-area {
  border-color: rgba(0,0,0,0.20);
  background: #fff;
}

@media (max-width: 768px) {
  body.cotyle-tablet-home .menu-card {
    min-height: 104px;
  }

  body.cotyle-picking-tablet .table-area {
    padding: 12px;
  }

  body.cotyle-picking-tablet .picking-table {
    min-width: 860px;
  }
}

/* Phase T-13: visual minimal refinement */
body.cotyle-tablet-home {
  background: linear-gradient(180deg, #f7f7f5 0%, #eeeeec 100%) !important;
}

body.cotyle-tablet-home::before {
  display: none;
}

body.cotyle-tablet-home .tablet-shell {
  min-height: 100vh;
}

body.cotyle-tablet-home .tablet-topbar {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(22px, 4vw, 52px);
  background: rgba(247,247,245,0.82);
  border-bottom: 1px solid rgba(0,0,0,0.055);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

body.cotyle-tablet-home .brand-mark {
  gap: 0;
}

body.cotyle-tablet-home .brand-logo,
body.cotyle-tablet-home .brand-subtitle {
  display: none;
}

body.cotyle-tablet-home .brand-title {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 680;
  letter-spacing: 0.03em;
}

body.cotyle-tablet-home .today {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(29,29,31,0.62);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

body.cotyle-tablet-home .tablet-status-panel {
  min-width: auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.48);
  box-shadow: none;
}

body.cotyle-tablet-home .tablet-status-panel strong {
  color: rgba(29,29,31,0.66);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.11em;
}

body.cotyle-tablet-home .tablet-status-panel span,
body.cotyle-tablet-home .status-pulse {
  display: none;
}

body.cotyle-tablet-home .tablet-main {
  width: min(1040px, 100%);
  padding: clamp(26px, 5vw, 64px) clamp(20px, 4vw, 44px) 34px;
}

body.cotyle-tablet-home .hero {
  display: block;
  margin: 0 0 20px;
}

body.cotyle-tablet-home .hero h2 {
  display: none;
}

body.cotyle-tablet-home .hero p {
  margin: 0;
  color: rgba(29,29,31,0.48);
  font-size: clamp(0.9rem, 1.35vw, 1rem);
  font-weight: 560;
  letter-spacing: 0.01em;
}

body.cotyle-tablet-home .menu-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 18px);
}

body.cotyle-tablet-home .menu-card {
  min-height: clamp(135px, 15vw, 155px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 18px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 28px rgba(0,0,0,0.045);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

body.cotyle-tablet-home .menu-card:hover,
body.cotyle-tablet-home .menu-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.11);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 30px rgba(0,0,0,0.055);
}

body.cotyle-tablet-home .menu-card:focus-visible {
  outline: 2px solid rgba(0,0,0,0.28);
  outline-offset: 3px;
}

body.cotyle-tablet-home .menu-card:active {
  transform: scale(0.985);
  box-shadow: 0 7px 18px rgba(0,0,0,0.04);
}

body.cotyle-tablet-home .menu-card::after,
body.cotyle-tablet-home .menu-icon::after,
body.cotyle-tablet-home .menu-arrow {
  display: none;
}

body.cotyle-tablet-home .menu-head {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.cotyle-tablet-home .menu-icon {
  width: auto;
  height: auto;
  display: inline-flex;
  border-radius: 0;
  background: transparent;
  color: #1d1d1f;
  font-size: clamp(1.8rem, 3.2vw, 2.2rem);
}

body.cotyle-tablet-home .menu-label {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 660;
  letter-spacing: 0.02em;
  line-height: 1;
}

body.cotyle-tablet-home .notice,
body.cotyle-tablet-home .tablet-footer {
  display: none;
}

body.cotyle-tablet-home .tablet-topbar,
body.cotyle-tablet-home .hero {
  animation: cotyle-rise-in 360ms cubic-bezier(.2,.8,.2,1) both;
}

body.cotyle-tablet-home .menu-card {
  animation: cotyle-card-in 380ms cubic-bezier(.2,.8,.2,1) both;
}

@media (max-width: 920px) {
  body.cotyle-tablet-home .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.cotyle-tablet-home .tablet-topbar {
    grid-template-columns: 1fr auto;
  }

  body.cotyle-tablet-home .today {
    width: auto;
    justify-content: flex-end;
  }

  body.cotyle-tablet-home .tablet-status-panel {
    grid-column: 1 / -1;
    width: max-content;
  }

  body.cotyle-tablet-home .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.cotyle-tablet-home .menu-card {
    min-height: 118px;
    border-radius: 20px;
  }
}

/* Phase T-14: final device visual adjustment */
body.cotyle-tablet-home {
  background: #f6f5f2 !important;
}

body.cotyle-tablet-home .tablet-topbar {
  min-height: 60px;
  padding: 16px clamp(22px, 4vw, 48px);
  gap: 18px;
  background: rgba(246,245,242,0.88);
  border-bottom-color: rgba(0,0,0,0.045);
}

body.cotyle-tablet-home .brand-title {
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  font-weight: 620;
  letter-spacing: 0.035em;
}

body.cotyle-tablet-home .today {
  color: rgba(29,29,31,0.66);
  font-size: 0.95rem;
  font-weight: 620;
}

body.cotyle-tablet-home .tablet-status-panel {
  padding: 5px 9px;
  border-color: rgba(0,0,0,0.065);
  background: rgba(255,255,255,0.36);
}

body.cotyle-tablet-home .tablet-status-panel strong {
  color: rgba(29,29,31,0.54);
  font-size: 0.64rem;
  font-weight: 720;
  letter-spacing: 0.10em;
}

body.cotyle-tablet-home .tablet-main {
  width: min(1010px, 100%);
  padding: clamp(34px, 6vw, 72px) clamp(20px, 4vw, 44px) 34px;
}

body.cotyle-tablet-home .hero {
  display: none;
}

body.cotyle-tablet-home .menu-grid {
  gap: clamp(12px, 1.55vw, 16px);
}

body.cotyle-tablet-home .menu-card {
  min-height: clamp(130px, 14vw, 146px);
  gap: 12px;
  padding: 20px 16px;
  border-color: rgba(0,0,0,0.055);
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 8px 22px rgba(0,0,0,0.035);
}

body.cotyle-tablet-home .menu-card:hover,
body.cotyle-tablet-home .menu-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.09);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 24px rgba(0,0,0,0.045);
}

body.cotyle-tablet-home .menu-card:active {
  transform: scale(0.99);
  box-shadow: 0 6px 16px rgba(0,0,0,0.035);
}

body.cotyle-tablet-home .menu-icon {
  color: rgba(17,17,17,0.88);
  font-size: clamp(1.72rem, 2.6vw, 2rem);
}

body.cotyle-tablet-home .menu-label {
  font-size: clamp(1.55rem, 2.45vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.cotyle-tablet-home .tablet-topbar,
body.cotyle-tablet-home .menu-card {
  animation-duration: 320ms;
}

@media (max-width: 620px) {
  body.cotyle-tablet-home .tablet-main {
    padding-top: 26px;
  }

  body.cotyle-tablet-home .tablet-status-panel {
    display: none;
  }

  body.cotyle-tablet-home .menu-card {
    min-height: 116px;
    border-radius: 20px;
  }
}

/* Phase T-15: quiet luxury interactions */
body.cotyle-tablet-home-luxury {
  background: #f4f3ef !important;
  color: #111;
}

body.cotyle-tablet-home-luxury .tablet-topbar {
  min-height: 62px;
  background: #111;
  border-bottom: 0;
  color: #fff;
  box-shadow: none;
}

body.cotyle-tablet-home-luxury .brand-title {
  color: #fff;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}

body.cotyle-tablet-home-luxury .today {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

body.cotyle-tablet-home-luxury .tablet-status-panel {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  opacity: 0;
  animation: cotyle-ready-in 420ms ease 160ms both;
}

body.cotyle-tablet-home-luxury .tablet-status-panel strong {
  color: rgba(255,255,255,0.72);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

body.cotyle-tablet-home-luxury .tablet-main {
  width: min(1040px, 100%);
  padding-top: clamp(30px, 5.4vw, 58px);
}

body.cotyle-tablet-home-luxury .tablet-whisper {
  margin: 0 0 16px;
  color: rgba(17,17,17,0.42);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

body.cotyle-tablet-home-luxury .menu-grid {
  gap: clamp(10px, 1.45vw, 15px);
}

body.cotyle-tablet-home-luxury .menu-card {
  min-height: clamp(132px, 13vw, 146px);
  position: relative;
  border: 1px solid rgba(0,0,0,0.075);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.026);
  opacity: 0;
  transform: translateY(6px);
  animation: cotyle-luxury-card-in 420ms cubic-bezier(.2,.75,.2,1) both;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

body.cotyle-tablet-home-luxury .menu-card:nth-child(1) { animation-delay: 35ms; }
body.cotyle-tablet-home-luxury .menu-card:nth-child(2) { animation-delay: 55ms; }
body.cotyle-tablet-home-luxury .menu-card:nth-child(3) { animation-delay: 75ms; }
body.cotyle-tablet-home-luxury .menu-card:nth-child(4) { animation-delay: 95ms; }
body.cotyle-tablet-home-luxury .menu-card:nth-child(5) { animation-delay: 115ms; }
body.cotyle-tablet-home-luxury .menu-card:nth-child(6) { animation-delay: 135ms; }
body.cotyle-tablet-home-luxury .menu-card:nth-child(7) { animation-delay: 155ms; }
body.cotyle-tablet-home-luxury .menu-card:nth-child(8) { animation-delay: 175ms; }

body.cotyle-tablet-home-luxury .menu-card:hover {
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 10px 22px rgba(0,0,0,0.035);
}

body.cotyle-tablet-home-luxury .menu-card:active {
  transform: scale(0.985);
  background: #111;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.025);
}

body.cotyle-tablet-home-luxury .menu-card:active .menu-icon,
body.cotyle-tablet-home-luxury .menu-card:active .menu-label {
  color: #fff;
}

body.cotyle-tablet-home-luxury .menu-card:focus-visible {
  outline: 1px solid #111;
  outline-offset: 4px;
  border-color: rgba(0,0,0,0.18);
  box-shadow: none;
}

body.cotyle-tablet-home-luxury .menu-icon {
  color: #111;
  font-size: clamp(1.64rem, 2.35vw, 1.95rem);
}

body.cotyle-tablet-home-luxury .menu-label {
  color: #111;
  font-size: clamp(1.48rem, 2.25vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.cotyle-tablet-home-luxury .menu-card.is-last::before {
  content: "LAST";
  position: absolute;
  top: 13px;
  right: 14px;
  color: rgba(17,17,17,0.32);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

body.cotyle-tablet-home-luxury .menu-card:active.is-last::before {
  color: rgba(255,255,255,0.45);
}

@keyframes cotyle-luxury-card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cotyle-ready-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.cotyle-tablet-home-luxury .menu-card,
  body.cotyle-tablet-home-luxury .tablet-status-panel {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 620px) {
  body.cotyle-tablet-home-luxury .tablet-topbar {
    background: #111;
  }

  body.cotyle-tablet-home-luxury .tablet-whisper {
    margin-bottom: 12px;
  }

  body.cotyle-tablet-home-luxury .menu-card {
    min-height: 116px;
  }
}

/* Phase T-17-T20: review, scan, and progress refinement */
body.cotyle-tablet-polish .picking-progress {
  margin-top: 2px;
  padding: 10px 0 2px;
}

body.cotyle-tablet-polish .picking-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #1d1d1f;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

body.cotyle-tablet-polish .picking-progress-meta strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.cotyle-tablet-polish .picking-progress-track {
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}

body.cotyle-tablet-polish .picking-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #111;
  transition: width 180ms ease;
}

body.cotyle-tablet-polish .score-title {
  font-weight: 760;
}

body.cotyle-tablet-polish .score-demo {
  font-weight: 760;
}

body.cotyle-tablet-polish .cot-card[href="scan.html"] {
  border-color: rgba(0,0,0,0.16);
}

@media (prefers-reduced-motion: reduce) {
  body.cotyle-tablet-polish .picking-progress-track span {
    transition: none !important;
  }
}

/* Phase T-21: final screenshot-based refinement */
body.cotyle-tablet-home-luxury .menu-head {
  display: none;
}

body.cotyle-tablet-home-luxury .menu-card {
  min-height: clamp(116px, 12vw, 134px);
  border-color: rgba(0,0,0,0.07);
  box-shadow: none;
}

body.cotyle-tablet-home-luxury .menu-card:hover {
  box-shadow: none;
}

body.cotyle-tablet-home-luxury .menu-card.is-last::before {
  display: none;
  content: none;
}

body.cotyle-tablet-home-luxury .menu-label {
  font-size: clamp(1.45rem, 2.05vw, 1.75rem);
  font-weight: 560;
  letter-spacing: 0.06em;
}

body.cotyle-tablet-home-luxury .tablet-whisper {
  color: rgba(17,17,17,0.34);
  font-size: 0.76rem;
}

body.cotyle-tablet-polish .score-title {
  font-size: clamp(2.1rem, 6vw, 4rem);
  font-weight: 680;
}

body.cotyle-tablet-polish .score-number {
  font-size: clamp(2.4rem, 5.6vw, 3.8rem);
  font-weight: 620;
}

body.cotyle-tablet-polish .cotyle-score-card {
  box-shadow: none;
  border-color: rgba(0,0,0,0.07);
}

body.cotyle-tablet-polish .score-demo,
body.cotyle-tablet-polish .scan-demo {
  min-height: 28px;
  padding: 0 9px;
  font-size: 0.66rem;
  font-weight: 700;
}

body.cotyle-receiving-scan .scan-title {
  font-size: clamp(2rem, 5.4vw, 3.7rem);
  font-weight: 680;
}

body.cotyle-receiving-scan .scan-panel {
  box-shadow: none;
}

body.cotyle-tablet-polish .picking-progress {
  padding-top: 6px;
}

body.cotyle-tablet-polish .picking-progress-meta {
  color: rgba(29,29,31,0.72);
  font-size: 0.66rem;
}

body.cotyle-tablet-polish .picking-progress-track {
  height: 4px;
  background: rgba(0,0,0,0.06);
}

/* Phase T-22: brand home redesign */
body.cotyle-home-brand {
  --brand-ink: #111;
  --brand-paper: #f4f3ef;
  --brand-line: rgba(17,17,17,0.14);
  --brand-soft-line: rgba(17,17,17,0.08);
  background: var(--brand-paper) !important;
  color: var(--brand-ink);
}

body.cotyle-home-brand::before {
  display: none;
}

body.cotyle-home-brand .tablet-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f6f2 0%, #efeee9 100%);
}

body.cotyle-home-brand .tablet-topbar {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(28px, 5vw, 64px);
  background: #0f0f0f;
  color: #fff;
  border: 0;
  box-shadow: none;
}

body.cotyle-home-brand .brand-mark {
  gap: 0;
}

body.cotyle-home-brand .brand-logo,
body.cotyle-home-brand .brand-subtitle {
  display: none;
}

body.cotyle-home-brand .brand-title {
  color: #fff;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.10em;
}

body.cotyle-home-brand .today {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255,255,255,0.78);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

body.cotyle-home-brand .tablet-status-panel {
  min-width: auto;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  box-shadow: none;
}

body.cotyle-home-brand .tablet-status-panel strong {
  color: rgba(255,255,255,0.68);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.13em;
}

body.cotyle-home-brand .tablet-main.cotyle-home-stage {
  width: min(1080px, 100%);
  display: grid;
  gap: 28px;
  padding: 54px clamp(28px, 5vw, 64px) 34px;
}

body.cotyle-home-brand .cotyle-home-hero {
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}

body.cotyle-home-brand .cotyle-home-hero-action {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 6px;
  color: var(--brand-ink);
  touch-action: manipulation;
  transition: background 160ms ease, color 160ms ease, padding 160ms ease;
}

body.cotyle-home-brand .cotyle-home-action-kicker {
  display: block;
  font-size: 6.4rem;
  font-weight: 560;
  line-height: 0.92;
  letter-spacing: 0.02em;
}

body.cotyle-home-brand .cotyle-home-hero-action strong {
  display: block;
  margin-top: 18px;
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: 0.14em;
}

body.cotyle-home-brand .cotyle-home-hero-action:hover,
body.cotyle-home-brand .cotyle-home-hero-action:focus-visible {
  background: rgba(255,255,255,0.38);
}

body.cotyle-home-brand .cotyle-home-hero-action:focus-visible,
body.cotyle-home-brand .cotyle-home-menu-item:focus-visible {
  outline: 1px solid #111;
  outline-offset: 5px;
}

body.cotyle-home-brand .cotyle-home-hero-action:active {
  padding-left: 14px;
  background: #111;
  color: #fff;
}

body.cotyle-home-brand .cotyle-home-menu-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--brand-soft-line);
  border-bottom: 1px solid var(--brand-soft-line);
}

body.cotyle-home-brand .cotyle-home-menu-item {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--brand-soft-line);
  color: rgba(17,17,17,0.86);
  font-size: 1.14rem;
  font-weight: 540;
  letter-spacing: 0.08em;
  touch-action: manipulation;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

body.cotyle-home-brand .cotyle-home-menu-item:last-child {
  border-right: 0;
}

body.cotyle-home-brand .cotyle-home-menu-item:hover,
body.cotyle-home-brand .cotyle-home-menu-item:focus-visible {
  background: rgba(255,255,255,0.46);
  color: #111;
}

body.cotyle-home-brand .cotyle-home-menu-item:active {
  background: #111;
  color: #fff;
  transform: translateY(1px);
}

body.cotyle-home-brand .cotyle-home-last {
  justify-self: end;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-height: 28px;
  color: rgba(17,17,17,0.46);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.13em;
}

body.cotyle-home-brand .cotyle-home-last[hidden] {
  display: none;
}

body.cotyle-home-brand .cotyle-home-last strong {
  color: rgba(17,17,17,0.72);
  font-size: 0.88rem;
  font-weight: 560;
  letter-spacing: 0.08em;
}

body.cotyle-home-brand .cotyle-home-hero-action,
body.cotyle-home-brand .cotyle-home-menu-strip,
body.cotyle-home-brand .cotyle-home-last:not([hidden]),
body.cotyle-home-brand .brand-mark,
body.cotyle-home-brand .today,
body.cotyle-home-brand .tablet-status-panel {
  animation: cotyle-brand-home-in 520ms cubic-bezier(.2,.75,.2,1) both;
}

body.cotyle-home-brand .today {
  animation-delay: 40ms;
}

body.cotyle-home-brand .tablet-status-panel {
  animation-delay: 80ms;
}

body.cotyle-home-brand .cotyle-home-hero-action {
  animation-delay: 90ms;
}

body.cotyle-home-brand .cotyle-home-menu-strip {
  animation-delay: 150ms;
}

body.cotyle-home-brand .cotyle-home-last:not([hidden]) {
  animation-delay: 190ms;
}

@keyframes cotyle-brand-home-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  body.cotyle-home-brand .cotyle-home-action-kicker {
    font-size: 5.2rem;
  }

  body.cotyle-home-brand .cotyle-home-menu-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.cotyle-home-brand .cotyle-home-menu-item:nth-child(4n) {
    border-right: 0;
  }

  body.cotyle-home-brand .cotyle-home-menu-item:nth-child(n + 5) {
    border-top: 1px solid var(--brand-soft-line);
  }
}

@media (max-width: 620px) {
  body.cotyle-home-brand .tablet-topbar {
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
    padding: 16px 22px;
  }

  body.cotyle-home-brand .tablet-status-panel {
    grid-column: 1 / -1;
    width: max-content;
  }

  body.cotyle-home-brand .tablet-main.cotyle-home-stage {
    gap: 22px;
    padding: 34px 22px 28px;
  }

  body.cotyle-home-brand .cotyle-home-hero-action {
    min-height: 224px;
    padding: 30px 4px;
  }

  body.cotyle-home-brand .cotyle-home-action-kicker {
    font-size: 3.45rem;
  }

  body.cotyle-home-brand .cotyle-home-hero-action strong {
    margin-top: 14px;
    font-size: 1.18rem;
  }

  body.cotyle-home-brand .cotyle-home-menu-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.cotyle-home-brand .cotyle-home-menu-item {
    min-height: 68px;
    font-size: 1.02rem;
  }

  body.cotyle-home-brand .cotyle-home-menu-item:nth-child(2n) {
    border-right: 0;
  }

  body.cotyle-home-brand .cotyle-home-menu-item:nth-child(n + 3) {
    border-top: 1px solid var(--brand-soft-line);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cotyle-home-brand .cotyle-home-hero-action,
  body.cotyle-home-brand .cotyle-home-menu-strip,
  body.cotyle-home-brand .cotyle-home-last:not([hidden]),
  body.cotyle-home-brand .brand-mark,
  body.cotyle-home-brand .today,
  body.cotyle-home-brand .tablet-status-panel {
    animation: none !important;
    transition: none !important;
  }
}
