:root {
  --tmk-ink: #171816;
  --tmk-muted: #74766f;
  --tmk-line: #e3e2dc;
  --tmk-paper: #f5f4ef;
  --tmk-white: #ffffff;
  --tmk-accent: #d7ff41;
  --tmk-dark: #20221e;
  --tmk-danger: #c93636;
  --tmk-radius: 14px;
}

.tmk-app, .tmk-app * { box-sizing: border-box; }
.tmk-app { min-height: 100vh; background: var(--tmk-paper); color: var(--tmk-ink); font-family: Arial, Helvetica, sans-serif; padding-bottom: 84px; }
.tmk-app button, .tmk-app input, .tmk-app textarea { font: inherit; }
.tmk-app button { color: inherit; }
.tmk-app .is-hidden { display: none !important; }

.tmk-header { position: sticky; top: 0; z-index: 30; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 24px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--tmk-line); backdrop-filter: blur(12px); }
.tmk-brand { display: flex; align-items: center; gap: 11px; }
.tmk-brand strong, .tmk-brand small { display: block; }
.tmk-brand strong { font-size: 16px; letter-spacing: .15em; white-space: nowrap; }
.tmk-brand small { margin-top: 4px; color: var(--tmk-muted); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.tmk-mark { width: 28px; height: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skew(-8deg); }
.tmk-mark i { background: var(--tmk-dark); border-radius: 2px; }
.tmk-mark i:nth-child(2) { height: 72%; align-self: end; }
.tmk-mark i:nth-child(3) { height: 45%; align-self: end; }

.tmk-staff-button { min-width: 0; display: grid; grid-template-columns: 36px minmax(0,auto); align-items: center; gap: 9px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.tmk-staff-button > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--tmk-dark); color: var(--tmk-accent); font-weight: 900; font-size: 11px; }
.tmk-staff-button strong, .tmk-staff-button small { display: block; }
.tmk-staff-button strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmk-staff-button small { color: var(--tmk-muted); font-size: 10px; margin-top: 3px; }

.tmk-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; height: 70px; padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(32,34,30,.97); }
.tmk-nav button { min-width: 0; border: 0; background: transparent; color: #a8aca3; border-radius: 10px; display: grid; place-items: center; align-content: center; gap: 3px; font-size: 9px; line-height: 1.15; font-weight: 800; cursor: pointer; overflow-wrap: anywhere; }
.tmk-nav button span { font-size: 21px; line-height: 1; }
.tmk-nav button.is-active { color: var(--tmk-ink); background: var(--tmk-accent); }

.tmk-main { width: min(1420px, calc(100% - 28px)); margin: 0 auto; padding: 20px 0 44px; }
.tmk-screen { display: none; }
.tmk-screen.is-active { display: block; }
.tmk-page-title { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tmk-page-title small { color: #999b93; font-size: 9px; font-weight: 900; letter-spacing: .2em; }
.tmk-page-title h1 { margin: 6px 0 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.04em; }
.tmk-page-title > span { color: var(--tmk-muted); font-size: 11px; }
.tmk-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); align-items: start; gap: 14px; }
.tmk-stack { display: grid; gap: 12px; }
.tmk-card { background: var(--tmk-white); border: 1px solid var(--tmk-line); border-radius: var(--tmk-radius); padding: 16px; box-shadow: 0 6px 22px rgba(23,24,22,.035); }
.tmk-card h2 { margin: 0 0 12px; font-size: 14px; }
.tmk-ticket-card { position: sticky; top: 94px; }
.tmk-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tmk-ticket-head h2 { margin: 0; }
.tmk-ticket-head > span { min-width: 28px; height: 28px; padding: 0 8px; display: grid; place-items: center; background: var(--tmk-accent); border-radius: 99px; font-size: 11px; font-weight: 900; }

.tmk-choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tmk-choice-row button { min-height: 40px; min-width: 92px; border: 1px solid var(--tmk-line); background: #fafaf7; border-radius: 9px; padding: 0 15px; font-size: 12px; line-height: 1.2; font-weight: 800; cursor: pointer; white-space: normal; }
.tmk-choice-row button.is-active { background: var(--tmk-dark); color: white; border-color: var(--tmk-dark); }
.tmk-field { margin-top: 12px; }
.tmk-field label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; }
.tmk-field small, .tmk-ecom-field > small { display: block; color: var(--tmk-muted); font-size: 10px; line-height: 1.45; margin-top: 7px; }
.tmk-field input, .tmk-field textarea, .tmk-product-search > input, .tmk-history-search input { width: 100%; border: 1px solid #dad9d3; border-radius: 9px; background: white; color: var(--tmk-ink); outline: 0; transition: border-color .15s, box-shadow .15s; }
.tmk-field input, .tmk-product-search > input, .tmk-history-search input { height: 46px; padding: 0 13px; }
.tmk-field textarea { padding: 12px 13px; resize: vertical; }
.tmk-field input:focus, .tmk-field textarea:focus, .tmk-product-search > input:focus, .tmk-history-search input:focus { border-color: var(--tmk-dark); box-shadow: 0 0 0 3px rgba(215,255,65,.42); }
.tmk-input-action { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.tmk-scan-button { min-width: 112px; border: 0; border-radius: 9px; background: var(--tmk-accent); font-size: 11px; font-weight: 900; cursor: pointer; }
.tmk-scan-button span { font-size: 18px; margin-right: 5px; }
.tmk-money-input { display: grid; grid-template-columns: minmax(0,1fr) 42px; align-items: center; border: 1px solid #dad9d3; border-radius: 9px; background: white; overflow: hidden; }
.tmk-money-input:focus-within { border-color: var(--tmk-dark); box-shadow: 0 0 0 3px rgba(215,255,65,.42); }
.tmk-money-input input { border: 0 !important; box-shadow: none !important; text-align: right; font-variant-numeric: tabular-nums; }
.tmk-money-input span { color: var(--tmk-muted); font-size: 12px; font-weight: 900; text-align: center; }

.tmk-product-search { position: relative; }
.tmk-product-results { display: grid; gap: 6px; margin-top: 8px; max-height: 430px; overflow: auto; overscroll-behavior: contain; }
.tmk-product-row { min-width: 0; display: grid; grid-template-columns: 52px minmax(0,1fr) minmax(116px,auto); align-items: center; gap: 9px; padding: 7px; border: 1px solid var(--tmk-line); border-radius: 9px; background: #fff; }
.tmk-product-image, .tmk-item-image { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; background: #f0efe9; }
.tmk-product-image.is-empty, .tmk-item-image.is-empty { display: grid; place-items: center; color: #a5a69f; font-size: 9px; font-weight: 900; }
.tmk-product-row strong, .tmk-product-row small { display: block; }
.tmk-product-row strong { font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.tmk-product-row small { margin-top: 3px; color: var(--tmk-muted); font-size: 9px; }
.tmk-variant-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.tmk-variant-buttons button { min-width: 34px; height: 30px; padding: 0 7px; border: 1px solid #d9d8d2; background: #f8f7f2; border-radius: 7px; font-size: 9px; font-weight: 900; cursor: pointer; }
.tmk-variant-buttons button:hover { background: var(--tmk-accent); border-color: var(--tmk-accent); }
.tmk-search-note, .tmk-empty { padding: 18px 10px; text-align: center; color: var(--tmk-muted); font-size: 10px; }
.tmk-selected-product { min-width: 0; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #cbd987; border-radius: 10px; background: #fbffec; }
.tmk-selected-product strong, .tmk-selected-product small { display: block; }
.tmk-selected-product strong { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.tmk-selected-product small { margin-top: 3px; color: var(--tmk-muted); font-size: 9px; }
.tmk-selected-product .tmk-product-image { width: 64px; }
.tmk-selected-actions { display: grid; grid-template-columns: repeat(3, 30px); align-items: center; }
.tmk-selected-actions button, .tmk-selected-actions b { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #d4d7c4; background: white; font-size: 10px; }
.tmk-selected-actions button { cursor: pointer; }
.tmk-selected-actions button:first-child { border-radius: 7px 0 0 7px; }
.tmk-selected-actions button:last-child { border-radius: 0 7px 7px 0; }
.tmk-selected-remove { grid-column: 1 / -1; width: 100% !important; margin-top: 5px; border-radius: 7px !important; color: var(--tmk-danger); }
.tmk-exchange-section { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.tmk-exchange-card { position: relative; min-width: 0; border-top-width: 3px; }
.tmk-exchange-in { border-top-color: #7b9b36; }
.tmk-exchange-out { border-top-color: #31342c; }
.tmk-exchange-card h2 { margin-bottom: 4px; padding-right: 34px; }
.tmk-exchange-card > p { margin: 0 0 12px; color: var(--tmk-muted); font-size: 9px; }
.tmk-section-label { position: absolute; top: 12px; right: 12px; min-width: 28px; height: 24px; display: grid; place-items: center; border-radius: 99px; background: var(--tmk-accent); font-size: 9px; font-weight: 900; }

.tmk-item-list { display: grid; gap: 9px; margin: 16px 0; max-height: 420px; overflow: auto; }
.tmk-item-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #efeee9; }
.tmk-item-image { width: 42px; }
.tmk-item-row:last-child { border-bottom: 0; }
.tmk-item-row strong, .tmk-item-row small { display: block; }
.tmk-item-row strong { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.tmk-item-row small { color: var(--tmk-muted); font-size: 9px; margin-top: 4px; }
.tmk-direction-badge { display: inline-block !important; width: fit-content; padding: 3px 6px; color: var(--tmk-ink) !important; background: #ebeae5; border-radius: 5px; font-weight: 900; }
.tmk-stepper { display: grid; grid-template-columns: 30px 30px 30px; align-items: center; }
.tmk-stepper button { width: 30px; height: 30px; border: 1px solid #dad9d3; background: white; cursor: pointer; }
.tmk-stepper button:first-child { border-radius: 7px 0 0 7px; }
.tmk-stepper button:last-child { border-radius: 0 7px 7px 0; }
.tmk-stepper b { height: 30px; display: grid; place-items: center; border-top: 1px solid #dad9d3; border-bottom: 1px solid #dad9d3; font-size: 10px; }
.tmk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.tmk-button { min-height: 46px; border: 1px solid var(--tmk-dark); background: var(--tmk-dark); color: white !important; border-radius: 9px; padding: 0 16px; font-size: 11px; font-weight: 900; cursor: pointer; }
.tmk-button:disabled { opacity: .45; cursor: not-allowed; }
.tmk-button-secondary { background: white; color: var(--tmk-ink) !important; border-color: #d6d5cf; }
.tmk-button-danger { background: var(--tmk-danger); border-color: var(--tmk-danger); }

.tmk-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tmk-upload-button { height: 44px; margin-top: 14px; display: grid; place-items: center; border: 1px dashed #b9bab3; border-radius: 9px; color: var(--tmk-muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.tmk-upload-note { display: block; margin-top: 7px; color: var(--tmk-muted); font-size: 9px; }
.tmk-image-preview { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.tmk-image { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eee; }
.tmk-image img { width: 100%; height: 100%; object-fit: cover; }
.tmk-image button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(20,20,20,.76); color: white; cursor: pointer; }

.tmk-history-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.tmk-history-list { display: grid; gap: 8px; margin-top: 16px; }
.tmk-history-row { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--tmk-line); border-radius: 10px; background: white; text-align: left; cursor: pointer; }
.tmk-history-row strong, .tmk-history-row small { display: block; }
.tmk-history-row strong { font-size: 12px; overflow-wrap: anywhere; }
.tmk-history-row small { margin-top: 5px; color: var(--tmk-muted); font-size: 10px; }
.tmk-status { padding: 5px 8px; border-radius: 99px; background: #e7f5de; color: #236721; font-size: 9px; font-weight: 900; white-space: nowrap; }
.tmk-status.is-draft { background: #eeece6; color: #65665f; }
.tmk-status.is-cancelled { background: #f8dddd; color: #972c2c; }
.tmk-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tmk-summary-card { padding: 20px; border-radius: 12px; background: var(--tmk-dark); color: white; }
.tmk-summary-card small { color: #afb2aa; font-size: 10px; }
.tmk-summary-card strong { display: block; margin-top: 12px; color: var(--tmk-accent); font-size: 34px; }
.tmk-manager-tool-card { margin-top: 12px; }
.tmk-manager-tool { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tmk-manager-tool h2 { margin-bottom: 5px; }
.tmk-manager-tool p { margin: 0; color: var(--tmk-muted); font-size: 10px; line-height: 1.45; }
.tmk-manager-tool-card > small { display: block; margin-top: 10px; color: var(--tmk-muted); font-size: 9px; line-height: 1.45; }
.tmk-manager-tool .tmk-button { min-width: 188px; }
.tmk-manager-tool .tmk-button span { display: inline-block; margin-right: 7px; font-size: 16px; vertical-align: -1px; }
.tmk-manager-tool .tmk-button.is-loading span { animation: tmk-spin .8s linear infinite; }

.tmk-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; padding: 18px; }
.tmk-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(17,18,16,.58); backdrop-filter: blur(3px); }
.tmk-modal-card { position: relative; width: min(520px, 100%); max-height: min(720px, calc(100vh - 36px)); overflow: auto; background: white; border-radius: 18px; padding: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.tmk-detail-card { width: min(680px, 100%); }
.tmk-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.tmk-modal-head small { color: var(--tmk-muted); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.tmk-modal-head h2 { margin: 5px 0 0; font-size: 22px; }
.tmk-modal-head > button { width: 34px; height: 34px; border: 1px solid var(--tmk-line); background: white; border-radius: 50%; font-size: 20px; cursor: pointer; }
.tmk-staff-list { display: grid; gap: 8px; }
.tmk-staff-option { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--tmk-line); background: white; border-radius: 10px; text-align: left; cursor: pointer; }
.tmk-staff-option > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--tmk-dark); color: var(--tmk-accent); font-size: 10px; font-weight: 900; }
.tmk-staff-option strong, .tmk-staff-option small { display: block; }
.tmk-staff-option small { color: var(--tmk-muted); font-size: 10px; margin-top: 3px; }
.tmk-detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tmk-detail-meta > div { padding: 11px; border-radius: 9px; background: #f5f4ef; }
.tmk-detail-meta small, .tmk-detail-meta strong { display: block; }
.tmk-detail-meta small { color: var(--tmk-muted); font-size: 9px; }
.tmk-detail-meta strong { margin-top: 5px; font-size: 11px; overflow-wrap: anywhere; }
.tmk-detail-section { margin-top: 18px; }
.tmk-detail-section h3 { font-size: 12px; }
.tmk-detail-images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tmk-detail-images img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.tmk-scanner { position: fixed; inset: 0; z-index: 90; background: #020302; color: white; overflow: hidden; }
.tmk-scanner video { width: 100%; height: 100%; object-fit: cover; }
.tmk-scanner-shade { position: absolute; inset: 0; background: rgba(0,0,0,.36); }
.tmk-scanner-frame { position: absolute; left: 50%; top: 48%; width: min(84vw, 540px); height: min(38vw, 210px); transform: translate(-50%, -50%); box-shadow: 0 0 0 9999px rgba(0,0,0,.34); border-radius: 14px; }
.tmk-scanner-frame i { position: absolute; width: 38px; height: 38px; border-color: var(--tmk-accent); border-style: solid; }
.tmk-scanner-frame i:nth-child(1) { left: 0; top: 0; border-width: 4px 0 0 4px; border-radius: 12px 0 0 0; }
.tmk-scanner-frame i:nth-child(2) { right: 0; top: 0; border-width: 4px 4px 0 0; border-radius: 0 12px 0 0; }
.tmk-scanner-frame i:nth-child(3) { right: 0; bottom: 0; border-width: 0 4px 4px 0; border-radius: 0 0 12px 0; }
.tmk-scanner-frame i:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 4px 4px; border-radius: 0 0 0 12px; }
.tmk-scanner-top { position: absolute; top: max(18px, env(safe-area-inset-top)); left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; }
.tmk-scanner-top strong { font-size: 15px; }
.tmk-scanner-top button { width: 42px; height: 42px; border: 0; background: rgba(255,255,255,.18); color: white; border-radius: 50%; font-size: 25px; }
.tmk-scanner-help { position: absolute; left: 16px; right: 16px; bottom: calc(70px + env(safe-area-inset-bottom)); text-align: center; font-size: 12px; }
.tmk-torch { position: absolute; bottom: calc(112px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.45); color: white; border-radius: 99px; padding: 10px 16px; }

.tmk-loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 10px; background: rgba(245,244,239,.78); backdrop-filter: blur(4px); }
.tmk-loader span { width: 30px; height: 30px; border: 3px solid #d8d7d1; border-top-color: var(--tmk-dark); border-radius: 50%; animation: tmk-spin .8s linear infinite; }
.tmk-loader p { margin: 0; font-size: 11px; font-weight: 800; }
.tmk-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 110; width: max-content; max-width: min(420px, calc(100% - 30px)); transform: translateX(-50%); padding: 10px 10px 10px 14px; border-radius: 10px; background: var(--tmk-dark); color: white; font-size: 11px; font-weight: 800; text-align: left; box-shadow: 0 12px 30px rgba(0,0,0,.2); display: grid; grid-template-columns: minmax(0,1fr) 28px; align-items: center; gap: 8px; }
.tmk-toast > button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: white; font-size: 18px; line-height: 1; cursor: pointer; }
.tmk-background-jobs { position: fixed; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 108; width: min(340px, calc(100% - 28px)); display: grid; gap: 7px; }
.tmk-job { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 10px 11px; border-radius: 10px; background: white; border: 1px solid var(--tmk-line); box-shadow: 0 10px 28px rgba(0,0,0,.14); font-size: 10px; }
.tmk-job i { width: 18px; height: 18px; border: 2px solid #d8d7d1; border-top-color: var(--tmk-dark); border-radius: 50%; animation: tmk-spin .8s linear infinite; }
.tmk-job strong, .tmk-job small { display: block; }
.tmk-job small { margin-top: 2px; color: var(--tmk-muted); }
.tmk-job.is-success i { border: 0; animation: none; color: #267225; font-style: normal; }
.tmk-job.is-error { border-color: #e9bcbc; }
.tmk-job.is-error i { border: 0; animation: none; color: var(--tmk-danger); font-style: normal; }
.tmk-job button { border: 0; border-radius: 7px; background: var(--tmk-accent); padding: 7px 9px; font-size: 9px; font-weight: 900; cursor: pointer; }
.tmk-job-actions { display: flex; align-items: center; gap: 5px; }
.tmk-job button.tmk-job-close { width: 28px; height: 28px; padding: 0; border-radius: 50%; background: #efeee8; color: var(--tmk-ink); font-size: 16px; }
@keyframes tmk-spin { to { transform: rotate(360deg); } }

@media (min-width: 960px) {
  .tmk-app { padding-left: 210px; padding-bottom: 0; }
  .tmk-header { margin-left: -210px; padding-left: 24px; }
  .tmk-nav { top: 76px; right: auto; bottom: 0; width: 210px; height: auto; padding: 22px 14px; grid-template-columns: 1fr; grid-template-rows: repeat(4, 48px); align-content: start; gap: 6px; }
  .tmk-nav button { grid-template-columns: 28px 1fr; place-items: center start; padding: 0 14px; font-size: 11px; }
  .tmk-nav button span { font-size: 20px; }
  .tmk-toast { bottom: 24px; }
  .tmk-background-jobs { bottom: 18px; }
  .tmk-modal { place-items: center; }
}

@media (max-width: 1100px) and (min-width: 821px) {
  .tmk-main { width: min(100% - 24px, 1180px); }
  .tmk-layout { grid-template-columns: minmax(0,1fr) minmax(300px,340px); }
  .tmk-product-row { grid-template-columns: 48px minmax(0,1fr); }
  .tmk-product-row .tmk-variant-buttons { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 820px) {
  .tmk-layout { grid-template-columns: 1fr; }
  .tmk-ticket-card { position: static; }
  .tmk-summary-grid { grid-template-columns: 1fr 1fr; }
  .tmk-exchange-section { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .tmk-header { min-height: 66px; padding: 10px 14px; gap: 10px; }
  .tmk-brand strong { font-size: 14px; }
  .tmk-brand small { letter-spacing: .12em; }
  .tmk-mark { width: 24px; height: 24px; }
  .tmk-staff-button { grid-template-columns: 32px minmax(0,1fr); max-width: 48vw; }
  .tmk-staff-button > span:first-child { width: 32px; height: 32px; }
  .tmk-staff-button small { display: none; }
  .tmk-main { width: calc(100% - 20px); padding-top: 18px; }
  .tmk-page-title { align-items: flex-start; }
  .tmk-page-title > span { max-width: 130px; text-align: right; }
  .tmk-card { padding: 15px; border-radius: 12px; }
  .tmk-choice-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tmk-choice-row button { width: 100%; min-width: 0; padding: 0 10px; }
  .tmk-input-action { grid-template-columns: 1fr; }
  .tmk-scan-button { height: 44px; }
  .tmk-product-row { grid-template-columns: 48px minmax(0,1fr); }
  .tmk-product-row .tmk-variant-buttons { grid-column: 2; justify-content: flex-start; }
  .tmk-selected-product { grid-template-columns: 54px minmax(0,1fr); }
  .tmk-selected-product .tmk-product-image { width: 54px; }
  .tmk-selected-actions { grid-column: 1 / -1; grid-template-columns: 36px 36px 36px minmax(74px,1fr); }
  .tmk-selected-actions button, .tmk-selected-actions b { width: 36px; }
  .tmk-selected-remove { grid-column: 4; width: auto !important; margin: 0 0 0 6px; }
  .tmk-image-preview { grid-template-columns: repeat(3, 1fr); }
  .tmk-history-search { grid-template-columns: 1fr; }
  .tmk-history-search .tmk-button { width: 100%; }
  .tmk-history-row { grid-template-columns: 1fr; align-items: start; }
  .tmk-status { width: fit-content; }
  .tmk-manager-tool { align-items: stretch; flex-direction: column; gap: 12px; }
  .tmk-manager-tool .tmk-button { width: 100%; }
  .tmk-modal { padding: 8px; }
  .tmk-modal-card { max-height: calc(100vh - 16px); border-radius: 16px; }
  .tmk-detail-meta { grid-template-columns: 1fr; }
  .tmk-detail-images { grid-template-columns: repeat(3, 1fr); }
}
