/* Satnam Siri WaheGuru Sahib Ji */
.tool-main { max-width: 1420px; padding-top: 30px; padding-bottom: 72px; }
.tool-main svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tool-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.tool-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.tool-ic svg { width: 27px; height: 27px; }
.tool-head > div:not(.tool-ic):not(.cm-top) { flex: 1; min-width: 0; }
.tool-head h1 { margin: 0; font-size: clamp(1.4rem, 1rem + 1.9vw, 2rem); letter-spacing: -.02em; }
.tool-head p { margin: 3px 0 0; color: var(--muted); font-size: .92rem; }

.cm [hidden], .cm-menu[hidden] { display: none !important; }
.cm-top { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.cm-hist { display: flex; gap: 4px; }
.cm-icbtn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px; border: 1px solid transparent;
  border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.cm-icbtn svg { width: 17px; height: 17px; }
.cm-icbtn:hover:not(:disabled) { background: var(--bg-3); color: var(--text); }
.cm-icbtn:disabled { opacity: .4; cursor: default; }

.cm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--bg-2); color: var(--text);
  font: inherit; font-size: .87rem; font-weight: 600; cursor: pointer; }
.cm-btn svg { width: 16px; height: 16px; }
.cm-btn:hover { border-color: var(--accent); color: var(--accent); }
.cm-btn-soft { background: var(--bg-3); }
.cm-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cm-btn-primary:hover { color: var(--accent-ink); filter: brightness(1.06); }
.cm-full { width: 100%; margin-top: 10px; }

.cm-export { position: relative; display: flex; gap: 6px; }
.cm-caret { padding: 0 10px; }
.cm-caret svg { width: 15px; height: 15px; transition: transform .18s; }
.cm-caret[aria-expanded="true"] svg { transform: rotate(180deg); }
.cm-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 232px; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow-md); }
.cm-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px;
  background: none; color: var(--text); font: inherit; font-size: .86rem; text-align: left; cursor: pointer; }
.cm-menu button svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.cm-menu button:hover { background: var(--bg-3); }
.cm-menu-sep { height: 1px; margin: 5px 8px; background: var(--border); }

.cm-grid { display: grid; gap: 18px; align-items: start; grid-template-columns: 76px minmax(0, 400px) minmax(0, 1fr); }
.cm-grid > * { min-width: 0; }

.cm-rail { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 6px; padding: 8px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; }
.cm-rail button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px; border: 0; border-radius: 11px;
  background: none; color: var(--muted); font: inherit; font-size: .7rem; font-weight: 600; cursor: pointer; }
.cm-rail button svg { width: 21px; height: 21px; }
.cm-rail button:hover { background: var(--bg-3); color: var(--text); }
.cm-rail button.is-active { background: var(--accent-soft); color: var(--accent); }

.cm-panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; }
.cm-sec { display: none; }
.cm-sec.is-open { display: block; }
.cm-sec-head { display: none; }
.cm-h { margin: 0; font-size: 1.06rem; letter-spacing: -.01em; }
.cm-h3 { margin: 22px 0 12px; font-size: .9rem; letter-spacing: -.01em; }
.cm-sub { margin: 4px 0 18px; color: var(--muted); font-size: .85rem; }
.cm-step { margin: 18px 0 9px; font-size: .84rem; font-weight: 700; }
.cm-step:first-of-type { margin-top: 0; }
.cm-step-row { display: flex; align-items: baseline; gap: 6px; }
.cm-dim { color: var(--faint); font-weight: 500; font-size: .78rem; }

.cm-paste { width: 100%; min-height: 118px; padding: 12px 13px; border: 1px solid var(--accent); border-radius: 12px;
  background: var(--bg-2); color: var(--text); font: inherit; font-size: .87rem; line-height: 1.55; resize: vertical; }
.cm-paste::placeholder { color: var(--faint); }
.cm-paste:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

.cm-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--faint); font-size: .8rem; }
.cm-or::before, .cm-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.cm-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px;
  border: 1.5px dashed var(--border); border-radius: 14px; text-align: center; }
.cm-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.cm-drop-ic { width: 26px; height: 26px; color: var(--muted); }
.cm-drop-t { margin: 4px 0 0; font-size: .87rem; font-weight: 600; }
.cm-drop-s { margin: 0 0 10px; color: var(--faint); font-size: .78rem; }

.cm-preview { max-height: 232px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.cm-preview table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.cm-preview th, .cm-preview td { padding: 7px 10px; border-bottom: 1px solid var(--border-2); text-align: left; white-space: nowrap; }
.cm-preview thead th { position: sticky; top: 0; background: var(--bg-3); font-weight: 700; font-size: .76rem; z-index: 1; }
.cm-preview td.num, .cm-preview th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cm-preview td.rn { color: var(--faint); font-variant-numeric: tabular-nums; width: 1%; }
.cm-preview tr:last-child td { border-bottom: 0; }
.cm-preview .cm-empty { padding: 22px 14px; text-align: center; color: var(--faint); font-size: .82rem; }

.cm-check { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: .87rem; cursor: pointer; }
.cm-check input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; cursor: pointer; }
.cm-check > span { flex: 1; }
.cm-info { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--faint); cursor: help; flex: none; }
.cm-info svg { width: 15px; height: 15px; }
.cm-info:hover { color: var(--accent); }

.cm-cols { display: flex; flex-direction: column; gap: 8px; }
.cm-col { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); }
.cm-col.is-off { opacity: .62; }
.cm-col-info { flex: 1; min-width: 0; }
.cm-col-name { display: block; font-size: .85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-col-meta { display: block; margin-top: 2px; font-size: .74rem; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-col-kind { display: inline-block; padding: 1px 6px; margin-right: 5px; border-radius: 999px; background: var(--bg-3); color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.cm-col select { width: auto; min-width: 108px; height: 36px; flex: none; font-size: .82rem; }
.cm-reset { margin-left: auto; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; }
.cm-reset:hover { text-decoration: underline; }

.cm-notes-strip { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--ok) 34%, var(--border)); border-radius: 12px; background: var(--ok-soft);
  color: var(--text); font-size: .81rem; line-height: 1.5; }
.cm-notes-strip svg { width: 17px; height: 17px; color: var(--ok); flex: none; margin-top: 1px; }
.cm-notes-strip.is-bad { border-color: color-mix(in srgb, var(--c-amber) 40%, var(--border)); background: color-mix(in srgb, var(--c-amber) 12%, transparent); }
.cm-notes-strip.is-bad svg { color: var(--c-amber); }

.cm-field { margin-bottom: 14px; }
.cm-field > label, .cm-field > .cm-lbl { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.cm-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cm-input, .cm-select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--bg-2); color: var(--text); font: inherit; font-size: .87rem; }
.cm-select { appearance: none; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.cm-input:focus, .cm-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.cm-seg { display: inline-flex; width: 100%; background: var(--bg-3); border: 1px solid var(--border); border-radius: 11px; padding: 4px; gap: 3px; }
.cm-seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: .82rem; font-weight: 600;
  white-space: nowrap; cursor: pointer; }
.cm-seg button svg { width: 15px; height: 15px; }
.cm-seg button:hover { color: var(--text); }
.cm-seg button.is-active { background: var(--bg-2); color: var(--text); box-shadow: var(--shadow-sm); }

.cm-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cm-types button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); color: var(--text);
  font: inherit; font-size: .72rem; font-weight: 600; text-align: center; cursor: pointer; }
.cm-types button svg.cm-tico { width: 100%; height: 30px; }
.cm-types button:hover:not(:disabled) { border-color: var(--accent); }
.cm-types button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cm-types button:disabled { opacity: .42; cursor: not-allowed; }
.cm-types button.is-rec::after { content: "Suggested"; display: block; margin-top: 1px; font-size: .62rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; }

.cm-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cm-swatch { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--bg-2); font-size: .76rem; font-weight: 600; }
.cm-swatch input[type="color"] { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.cm-swatch input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.cm-swatch input[type="color"]::-webkit-color-swatch { border: 1px solid var(--border); border-radius: 50%; }
.cm-swatch span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cm-warns { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.cm-warn { display: flex; gap: 9px; padding: 10px 12px; border-radius: 11px; font-size: .8rem; line-height: 1.5;
  border: 1px solid color-mix(in srgb, var(--c-amber) 40%, var(--border)); background: color-mix(in srgb, var(--c-amber) 11%, transparent); }
.cm-warn svg { width: 16px; height: 16px; color: var(--c-amber); flex: none; margin-top: 1px; }

.cm-ratios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.cm-ratios button { height: 40px; padding: 0 8px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-2); color: var(--text);
  font: inherit; font-size: .82rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.cm-ratios button:hover { border-color: var(--accent); }
.cm-ratios button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.cm-stage { display: flex; flex-direction: column; gap: 14px; }
.cm-rec { position: relative; display: flex; align-items: center; gap: 13px; padding: 15px 44px 15px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border)); border-radius: 16px; background: var(--accent-soft); }
.cm-rec-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.cm-rec-ic svg { width: 20px; height: 20px; }
.cm-rec-txt { flex: 1; min-width: 0; }
.cm-rec-t { margin: 0; font-size: .95rem; font-weight: 600; }
.cm-rec-s { margin: 5px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.cm-why { margin-left: 4px; padding: 2px 9px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: 999px; background: var(--bg-2); color: var(--accent); font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.cm-rec-change { flex: none; background: var(--bg-2); }
.cm-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--muted); cursor: pointer; }
.cm-x svg { width: 15px; height: 15px; }
.cm-x:hover { background: var(--bg-2); color: var(--text); }

.cm-card { padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-2); }
.cm-canvas { overflow: auto; }
.cm-canvas svg { display: block; max-width: 100%; height: auto; margin: 0 auto; fill: none; stroke: none; stroke-width: 1; }
.cm-canvas.is-zoomed { overflow: auto; }
.cm-canvas.is-zoomed svg { max-width: none; margin: 0; }
.cm-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px; }
.cm-table { overflow: auto; max-height: 560px; }
.cm-table table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.cm-table th, .cm-table td { padding: 9px 12px; border-bottom: 1px solid var(--border-2); text-align: left; }
.cm-table td { text-align: right; font-variant-numeric: tabular-nums; }
.cm-table th[scope="row"] { text-align: left; font-weight: 600; }
.cm-table thead th { position: sticky; top: 0; background: var(--bg-3); font-size: .78rem; }

.cm-stagebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cm-stagebar .cm-seg { width: auto; }
.cm-zoom { display: flex; align-items: center; gap: 8px; }
.cm-zoomer { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 4px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--bg-2); }
.cm-zoomer span { min-width: 46px; text-align: center; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-zoomer .cm-icbtn { height: 32px; padding: 0 7px; }
.cm-zoomer .cm-icbtn svg { width: 15px; height: 15px; }

.cm-panel-note { display: flex; gap: 12px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-2); }
.cm-note-ic { width: 19px; height: 19px; color: var(--muted); flex: none; margin-top: 1px; }
.cm-note-t { margin: 0; font-size: .9rem; font-weight: 700; }
.cm-note-s { margin: 4px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }

.cm-privacy { display: flex; align-items: flex-start; gap: 8px; margin: 26px 0 0; color: var(--faint); font-size: .8rem; line-height: 1.6; }
.cm-privacy svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

.cm-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(12px); z-index: 60;
  padding: 11px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-2); color: var(--text);
  font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.cm-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1280px) {
  .cm-grid { grid-template-columns: 68px minmax(0, 340px) minmax(0, 1fr); }
  .cm-panel { padding: 18px; }
  .cm-rail button { font-size: .66rem; padding: 10px 3px; }
}

@media (max-width: 1080px) {
  .tool-main { padding-top: 22px; }
  .cm-grid { grid-template-columns: minmax(0, 1fr); }
  .cm-rail { display: none; }
  .cm-stage { order: -1; }
  .cm-panel { padding: 0; background: none; border: 0; border-radius: 0; display: flex; flex-direction: column; gap: 12px; }
  .cm-sec { display: block; background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .cm-sec-head { display: flex; align-items: center; gap: 11px; width: 100%; padding: 16px 16px; border: 0;
    background: none; color: var(--text); font: inherit; font-size: 1rem; font-weight: 700; text-align: left; cursor: pointer; }
  .cm-sec-head .cm-sec-ic { width: 21px; height: 21px; color: var(--muted); flex: none; }
  .cm-sec-head > span { flex: 1; }
  .cm-sec-head .cm-chev { width: 17px; height: 17px; color: var(--muted); flex: none; transition: transform .18s; }
  .cm-sec.is-open .cm-sec-head { color: var(--accent); }
  .cm-sec.is-open .cm-sec-head .cm-sec-ic { color: var(--accent); }
  .cm-sec.is-open .cm-sec-head .cm-chev { transform: rotate(180deg); }
  .cm-sec-body { display: none; padding: 0 16px 18px; }
  .cm-sec.is-open .cm-sec-body { display: block; }
  .cm-sec-body > .cm-h { display: none; }
  .cm-sec-body > .cm-sub { margin-top: 0; }
  .cm-rec { padding: 14px 40px 14px 14px; order: 2; }
  .cm-card { order: 1; }
  .cm-stagebar { order: 3; }
  .cm-panel-note { order: 4; }
  .cm-rec-change { position: absolute; right: 10px; bottom: 10px; }
}

@media (max-width: 720px) {
  .tool-head { gap: 11px; }
  .cm-top { width: 100%; margin-left: 0; gap: 8px; }
  .cm-top .pill { flex: 1 1 100%; }
  .cm-export { margin-left: auto; }
  .cm-icbtn span { display: none; }
  .cm-types { grid-template-columns: repeat(2, 1fr); }
  .cm-rec { flex-wrap: wrap; }
  .cm-rec-change { position: static; width: 100%; margin-top: 4px; }
  .cm-stagebar { flex-direction: column; align-items: stretch; }
  .cm-stagebar .cm-seg { width: 100%; }
  .cm-zoom { justify-content: space-between; }
  .cm-card { padding: 12px; }
  .cm-2col { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .cm-rail, .cm-panel, .cm-stagebar, .cm-rec, .cm-top, .cm-privacy, .cm-panel-note, .tool-head { display: none !important; }
  .cm-grid { display: block; }
  .cm-card { border: 0; padding: 0; background: #fff; }
  .cm-canvas svg { max-width: 100%; }
}
.cm-canvas:empty { aspect-ratio: 16 / 9; }
.cm-preview:empty { min-height: 93px; }
.cm-types:empty { min-height: 176px; }

/* webk · v0.1.0 */
