/* ============================================================
   INKLY DESIGNER — customer-facing designer styles.
   Design tokens + layout from the Inkly (Zakeke-style) design.
   Everything scoped under .inkly-app to survive any theme.
   ============================================================ */
.inkly-app {
  --bg: #FFFFFF;
  --bg-surface: #F7F7F7;
  --bg-hover: #F2F2F2;
  --border: #E8E8E8;
  --border-mid: #CCCCCC;
  --text-primary: #111111;
  --text-second: #666666;
  --text-hint: #AAAAAA;
  --accent: #111111;
  --accent-hover: #333333;
  --success: #1A7A4A;
  --danger: #D93025;
  --warning: #F5A623;
  --info: #1A6FD4;
  --info-tint: rgba(26, 111, 212, 0.04);
  --info-tint-strong: rgba(26, 111, 212, 0.10);
  --overlay: rgba(0, 0, 0, 0.45);
  --r-sm: 4px;
  --r-md: 8px;
  --r-card: 12px;
  --r-pill: 20px;
  --sh-sm: 0 1px 4px rgba(0,0,0,0.08);
  --sh-md: 0 2px 12px rgba(0,0,0,0.10);
  --sh-lg: 0 4px 24px rgba(0,0,0,0.14);
  --sh-float: 0 8px 32px rgba(0,0,0,0.16);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  font-family: var(--font);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  height: 720px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
}
.inkly-app.inkly-fullpage {
  position: fixed;
  inset: 0;
  z-index: 99999;
  height: auto;
  border: none;
  border-radius: 0;
}
.inkly-app *, .inkly-app *::before, .inkly-app *::after { box-sizing: border-box; }
.inkly-app button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }
.inkly-app input, .inkly-app textarea, .inkly-app select { font-family: inherit; font-size: 14px; color: var(--text-primary); }
.inkly-app ::-webkit-scrollbar { width: 8px; height: 8px; }
.inkly-app ::-webkit-scrollbar-thumb { background: #d8d8d8; border-radius: 8px; }
.inkly-app ::-webkit-scrollbar-track { background: transparent; }
.inkly-app .no-sb { scrollbar-width: none; }
.inkly-app .no-sb::-webkit-scrollbar { display: none; }

/* ---------- shared atoms ---------- */
.inkly-app .i-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 500; border-radius: var(--r-md);
  border: 1px solid transparent; padding: 0 14px; height: 36px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap; user-select: none;
}
.inkly-app .i-btn-primary { background: var(--accent); color: #fff; }
.inkly-app .i-btn-primary:hover { background: var(--accent-hover); }
.inkly-app .i-btn-primary:disabled { background: var(--border-mid); cursor: not-allowed; }
.inkly-app .i-btn-primary.is-success { background: var(--success); }
.inkly-app .i-btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-mid); }
.inkly-app .i-btn-ghost:hover { background: var(--bg-surface); }
.inkly-app .i-btn-block { width: 100%; }
.inkly-app .i-btn-sm { height: 30px; font-size: 13px; padding: 0 10px; }
.inkly-app .i-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--r-md); color: var(--text-primary);
  transition: background .15s ease;
}
.inkly-app .i-iconbtn:hover { background: var(--bg-hover); }
.inkly-app .i-iconbtn:disabled { color: var(--border-mid); cursor: not-allowed; background: transparent; }
.inkly-app .i-iconbtn svg { width: 18px; height: 18px; }
.inkly-app .i-input {
  height: 36px; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 0 10px; background: #fff; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.inkly-app .i-input::placeholder { color: var(--text-hint); }
.inkly-app .i-input:focus { outline: none; border-color: var(--info); box-shadow: 0 0 0 3px var(--info-tint-strong); }
.inkly-app textarea.i-input { height: 80px; padding: 8px 10px; resize: vertical; }
.inkly-app .i-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); background: #fff; color: var(--text-primary);
  transition: all .15s ease; white-space: nowrap;
}
.inkly-app .i-pill:hover { background: var(--bg-surface); }
.inkly-app .i-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.inkly-app .i-section { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.inkly-app .i-section-label {
  font-size: 12px; font-weight: 600; color: var(--text-second);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px;
}
.inkly-app .i-row { display: flex; align-items: center; gap: 8px; }
.inkly-app .i-spin {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; animation: inklySpin .7s linear infinite;
}
.inkly-app .i-spin.dark { border-color: rgba(0,0,0,0.15); border-top-color: var(--accent); }
@keyframes inklySpin { to { transform: rotate(360deg); } }
@keyframes inklyPopIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes inklyPanelIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes inklyFadeIn { from { opacity: 0; } to { opacity: 1; } }
.inkly-app .i-switch { position: relative; width: 38px; height: 22px; flex: none; display: inline-block; }
.inkly-app .i-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.inkly-app .i-switch .track { position: absolute; inset: 0; background: var(--border-mid); border-radius: 22px; transition: background .2s ease; cursor: pointer; }
.inkly-app .i-switch .track::before { content:''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s ease; box-shadow: var(--sh-sm); }
.inkly-app .i-switch input:checked + .track { background: var(--accent); }
.inkly-app .i-switch input:checked + .track::before { transform: translateX(16px); }
.inkly-app .i-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.inkly-app .i-badge-beta { background: var(--info-tint-strong); color: var(--info); }
.inkly-app .i-badge-green { background: rgba(26,122,74,0.10); color: var(--success); }
.inkly-app input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; background: var(--border); border-radius: 4px; outline: none; cursor: pointer; padding: 0; flex: 1; }
.inkly-app input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: var(--sh-sm); }
.inkly-app input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--accent); }

/* ---------- top bar ---------- */
.inkly-topbar {
  height: 48px; flex: none; background: var(--bg); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 12px; gap: 12px; z-index: 40;
}
.inkly-topbar .grp { display: flex; align-items: center; gap: 8px; }
.inkly-topbar .grp-left { flex: 1; min-width: 0; }
.inkly-topbar .grp-right { flex: 1; justify-content: flex-end; }
.inkly-topbar .prod-name { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inkly-topbar .vdiv { width: 1px; height: 16px; background: var(--border); }
.inkly-topbar .zoom-val { width: 48px; height: 28px; text-align: center; border: 1px solid transparent; border-radius: var(--r-sm); font-size: 13px; background: transparent; }
.inkly-topbar .zoom-val:hover { border-color: var(--border); }
.inkly-topbar .zoom-val:focus { outline: none; border-color: var(--info); }
.inkly-topbar .price { font-size: 16px; font-weight: 500; white-space: nowrap; }
.inkly-topbar .price small { color: var(--success); font-size: 12px; font-weight: 500; margin-left: 4px; }
.inkly-qty { display: inline-flex; align-items: center; height: 32px; border: 1px solid var(--border); border-radius: var(--r-md); }
.inkly-qty button { width: 28px; height: 100%; font-size: 15px; color: var(--text-second); }
.inkly-qty button:hover { color: var(--text-primary); }
.inkly-qty span { min-width: 24px; text-align: center; font-weight: 500; font-size: 13px; }
.inkly-viewtoggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 2px; gap: 2px; background: #fff;
}
.inkly-viewtoggle button {
  height: 24px; padding: 0 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600;
  color: var(--text-second); transition: all .15s ease;
}
.inkly-viewtoggle button.on { background: var(--accent); color: #fff; }

/* ---------- body: 3 columns ---------- */
.inkly-body { flex: 1; display: flex; min-height: 0; }

/* left toolbar */
.inkly-toolbar {
  width: 64px; flex: none; background: var(--bg); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; padding: 8px 0; gap: 8px; z-index: 30;
}
.inkly-toolbar .brand {
  width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; margin-bottom: 4px; flex: none;
}
.inkly-toolbar .spacer { flex: 1; }
.inkly-tool {
  position: relative; width: 48px; height: 48px; border-radius: var(--r-md); flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #888888; transition: background .15s ease, color .15s ease;
}
.inkly-tool svg { width: 21px; height: 21px; }
.inkly-tool .lbl { font-size: 9px; font-weight: 500; letter-spacing: 0.02em; }
.inkly-tool:hover { background: var(--bg-surface); }
.inkly-tool.active { background: var(--bg-hover); color: var(--text-primary); }
.inkly-tool.active::before {
  content: ''; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px;
  background: var(--accent); border-radius: 0 2px 2px 0;
}

/* tooltip */
.inkly-tt { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%) scale(0.96);
  background: var(--accent); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 6px;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s ease .4s, transform .1s ease .4s;
  z-index: 200; box-shadow: var(--sh-md); }
.inkly-tool:hover .inkly-tt { opacity: 1; transform: translateY(-50%) scale(1); }

/* ---------- canvas area ---------- */
.inkly-stage { flex: 1; min-width: 0; background: var(--bg-surface); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.inkly-stage-inner { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.inkly-canvas-card {
  background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-md);
  position: relative; transition: transform .12s ease;
}
.inkly-canvas {
  width: 420px; height: 520px; position: relative; overflow: hidden; border-radius: var(--r-md);
}
.inkly-canvas .inkly-mockup { position: absolute; inset: 0; pointer-events: none; }
.inkly-canvas .inkly-mockup svg { width: 100%; height: 100%; }
.inkly-print-frame {
  position: absolute; border: 1px dashed var(--border-mid); background: var(--info-tint);
  pointer-events: none; z-index: 1; transition: opacity .15s ease;
}
.inkly-print-frame .pa-label {
  position: absolute; top: 2px; left: 4px; font-size: 9px; font-weight: 500; color: var(--text-hint);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.inkly-el { cursor: move; z-index: 2; }
.inkly-el.locked { cursor: default; }

/* selection */
.inkly-sel-box { position: absolute; pointer-events: none; z-index: 10; }
.inkly-sel-box .outline { position: absolute; inset: 0; border: 2px solid var(--info); }
.inkly-sel-box.locked .outline { border-color: var(--border-mid); }
.inkly-handle {
  position: absolute; width: 10px; height: 10px; background: #fff; border: 2px solid var(--info);
  border-radius: 2px; pointer-events: all; z-index: 11;
}
.inkly-handle.rot {
  width: 12px; height: 12px; border-radius: 50%; left: 50%; top: -28px; transform: translateX(-50%);
  cursor: grab;
}
.inkly-handle.rot::after { content:''; position: absolute; left: 50%; top: 100%; width: 1px; height: 16px; background: var(--info); transform: translateX(-50%); }
.inkly-handle.nw { left: -6px; top: -6px; cursor: nwse-resize; }
.inkly-handle.ne { right: -6px; top: -6px; cursor: nesw-resize; }
.inkly-handle.sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.inkly-handle.se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.inkly-handle.n { left: 50%; top: -6px; transform: translateX(-50%); cursor: ns-resize; }
.inkly-handle.s { left: 50%; bottom: -6px; transform: translateX(-50%); cursor: ns-resize; }
.inkly-handle.w { left: -6px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.inkly-handle.e { right: -6px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }

/* floating bars */
.inkly-floatbar {
  position: absolute; background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-float);
  display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px; z-index: 50;
  animation: inklyPopIn .12s ease;
}
.inkly-floatbar .fdiv { width: 1px; height: 20px; background: var(--border); margin: 0 2px; }
.inkly-floatbar .fbtn {
  width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-primary); position: relative;
}
.inkly-floatbar .fbtn:hover { background: var(--bg-hover); }
.inkly-floatbar .fbtn.on { background: var(--bg-hover); }
.inkly-floatbar .fbtn svg { width: 16px; height: 16px; }
.inkly-floatbar.props { gap: 6px; font-size: 12px; color: var(--text-second); }
.inkly-floatbar.props label { display: inline-flex; align-items: center; gap: 3px; }
.inkly-floatbar.props input {
  width: 48px; height: 28px; border: 1px solid var(--border); border-radius: var(--r-sm);
  text-align: center; font-size: 12px; -moz-appearance: textfield;
}
.inkly-floatbar.props input::-webkit-inner-spin-button { -webkit-appearance: none; }
.inkly-floatbar.props input:focus { outline: none; border-color: var(--info); }

/* side tabs */
.inkly-sides { display: flex; justify-content: center; gap: 8px; padding: 14px 12px; flex-wrap: wrap; }

/* empty state overlay (design: white card with dark sparkles tile) */
.inkly-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 5; pointer-events: none; animation: inklyFadeIn .2s ease;
}
.inkly-empty-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.94); border: 1px solid var(--border); border-radius: 20px;
  padding: 30px 42px; box-shadow: var(--sh-float); backdrop-filter: blur(5px); pointer-events: auto;
}
.inkly-empty-card .ec-icon {
  width: 58px; height: 58px; border-radius: 16px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.inkly-empty-card .ec-icon svg { width: 28px; height: 28px; }
.inkly-empty-card h3 { margin: 0; font-size: 20px; font-weight: 500; }
.inkly-empty-card p { margin: 0; color: var(--text-second); font-size: 14px; text-align: center; max-width: 300px; }
.inkly-empty-card .cta { display: flex; gap: 10px; margin-top: 4px; }

/* warn-mode print frame (element outside the print area) */
.inkly-print-frame.warn { border-color: var(--danger); background: rgba(217,48,37,0.05); }
.inkly-print-frame.warn .pa-label { color: var(--danger); }

/* low-res warning banner (design: top-center, warm yellow, Resize link) */
.inkly-warnbar {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  background: #FEF6E6; border: 1px solid #F5D78A; color: #8a6500;
  font-size: 13px; padding: 8px 14px; border-radius: var(--r-md); display: flex; gap: 10px; align-items: center;
  z-index: 30; box-shadow: var(--sh-sm); white-space: nowrap;
}
.inkly-warnbar svg { width: 18px; height: 18px; color: var(--warning); flex: none; }

/* stage corner controls */
.inkly-stage-controls { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 20; }
.inkly-stage-controls .box { background: #fff; box-shadow: var(--sh-sm); border-radius: var(--r-md); display: flex; align-items: center; padding: 2px; }

/* ---------- right panel ---------- */
.inkly-panel {
  width: 320px; flex: none; background: var(--bg); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; min-height: 0; z-index: 30; animation: inklyPanelIn .15s ease;
}
.inkly-panel-head {
  height: 48px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 500;
}
.inkly-panel-body { flex: 1; overflow-y: auto; min-height: 0; }

/* swatches */
.inkly-swatch {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-mid);
  cursor: pointer; position: relative; flex: none; padding: 0;
}
.inkly-swatch.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.inkly-swatch.add { background: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-second); }
.inkly-swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* toggle icon buttons row (B/I/U…) */
.inkly-togglerow { display: flex; gap: 6px; flex-wrap: wrap; }
.inkly-toggle {
  width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  color: var(--text-second); transition: all .12s ease;
}
.inkly-toggle:hover { background: var(--bg-surface); }
.inkly-toggle.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.inkly-toggle svg { width: 16px; height: 16px; }

/* upload zone */
.inkly-dropzone {
  border: 1px dashed var(--border-mid); border-radius: var(--r-md); background: var(--bg-surface);
  height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; text-align: center; transition: all .15s ease; padding: 8px;
}
.inkly-dropzone:hover, .inkly-dropzone.over { border-color: var(--info); background: var(--info-tint); }
.inkly-dropzone svg { width: 24px; height: 24px; color: var(--text-second); }
.inkly-dropzone .sub { font-size: 11px; color: var(--text-hint); }
.inkly-upload-progress { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.inkly-upload-progress > div { height: 100%; background: var(--info); width: 30%; transition: width .2s ease; }

/* grids */
.inkly-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.inkly-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.inkly-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.inkly-thumb {
  aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden;
  transition: border-color .12s ease, transform .12s ease; position: relative; padding: 8px;
}
.inkly-thumb:hover { border-color: var(--text-primary); transform: scale(1.04); }
.inkly-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.inkly-thumb svg { width: 60%; height: 60%; }
.inkly-tpl-card { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; cursor: pointer; transition: border-color .12s ease; background: #fff; }
.inkly-tpl-card:hover { border-color: var(--text-primary); }
.inkly-tpl-card .tpl-prev {
  height: 96px; display: flex; align-items: center; justify-content: center; text-align: center;
  white-space: pre-line; font-size: 17px; line-height: 1.1; padding: 8px;
}
.inkly-tpl-card .tpl-name { padding: 6px 8px; font-size: 12px; border-top: 1px solid var(--border); }

/* layers */
.inkly-layer {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px; border-radius: var(--r-md);
  cursor: pointer; transition: background .12s ease;
}
.inkly-layer:hover { background: var(--bg-surface); }
.inkly-layer.active { background: var(--bg-hover); }
.inkly-layer .lthumb {
  width: 28px; height: 28px; border: 1px solid var(--border); border-radius: var(--r-sm); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 10px; overflow: hidden; background: #fff;
}
.inkly-layer .lname { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inkly-layer .ldrag { color: var(--text-hint); cursor: grab; font-size: 14px; flex: none; user-select: none; }
.inkly-layer .lname-input {
  flex: 1; min-width: 0; font-size: 13px; border: 1px solid transparent; background: transparent;
  height: 26px; padding: 0 4px; border-radius: 4px;
}
.inkly-layer .lname-input:hover { border-color: var(--border); }
.inkly-layer .lname-input:focus { outline: none; border-color: var(--info); background: #fff; }
.inkly-layer .i-iconbtn { width: 26px; height: 26px; }
.inkly-layer .i-iconbtn svg { width: 14px; height: 14px; }
.inkly-layer.dimmed { opacity: 0.45; }

/* select rows / fonts */
.inkly-select {
  width: 100%; height: 36px; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 0 10px; background: #fff; cursor: pointer;
}
.inkly-select:focus { outline: none; border-color: var(--info); }

/* ---------- modals ---------- */
.inkly-overlay {
  position: absolute; inset: 0; background: var(--overlay); z-index: 100;
  display: flex; align-items: center; justify-content: center; animation: inklyFadeIn .15s ease;
}
.inkly-modal {
  background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-lg); width: 400px; max-width: calc(100% - 32px);
  max-height: calc(100% - 48px); overflow-y: auto; animation: inklyPopIn .15s ease;
}
.inkly-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 500; }
.inkly-modal-body { padding: 20px; }
.inkly-modal.wide { width: 640px; }
.inkly-success-check {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(26,122,74,0.10); color: var(--success);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; animation: inklyPopIn .3s ease;
}
.inkly-success-check svg { width: 32px; height: 32px; }
.inkly-order-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; display: flex; gap: 12px; align-items: center; margin: 16px 0; text-align: left; }
.inkly-order-card .oc-thumb { width: 64px; height: 76px; flex: none; background: var(--bg-surface); border-radius: var(--r-sm); position: relative; overflow: hidden; }

/* price breakdown rows */
.inkly-price-line { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--text-second); }
.inkly-price-line.total { font-weight: 600; color: var(--text-primary); border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-size: 14px; }

/* ---------- mobile ---------- */
.inkly-bottomnav { display: none; }
@media (max-width: 860px) {
  .inkly-toolbar { display: none; }
  .inkly-panel {
    position: absolute; left: 0; right: 0; bottom: 56px; top: auto; width: auto; height: 46%;
    border-left: none; border-top: 1px solid var(--border); border-radius: 16px 16px 0 0;
    box-shadow: var(--sh-lg); transition: height .3s cubic-bezier(0.34,1.56,0.64,1); z-index: 60;
  }
  .inkly-panel.expanded { height: 88%; }
  .inkly-panel.hidden-panel { display: none; }
  .inkly-panel-head { cursor: grab; }
  .inkly-panel-head::before {
    content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; background: #DDDDDD; border-radius: 8px;
  }
  .inkly-bottomnav {
    display: flex; height: 56px; flex: none; background: #fff; border-top: 1px solid var(--border); z-index: 70;
  }
  .inkly-bottomnav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 10px; color: var(--text-hint); border-top: 2px solid transparent;
  }
  .inkly-bottomnav button.active { color: var(--text-primary); border-top-color: var(--accent); }
  .inkly-bottomnav button svg { width: 20px; height: 20px; }
  .inkly-topbar .grp-center { display: none; }
  .inkly-topbar .price small { display: none; }
  .inkly-topbar .i-btn-ghost { display: none; }
  .inkly-qty { display: none; }
  .inkly-app:not(.inkly-fullpage) { height: 640px; }
}
