/* Shared product-mock kit (kit.js). Prefix kt-. Satoshi everywhere, tabular numbers, nothing under 14 px.
 * Scale with --kt on any ancestor (1 = desktop). Colours: Slack aubergine side bar, Claude warm paper, Ads Manager blue. */
:root { --kt-line: #E3E1DB; --kt-ink: #1d1c1a; --kt-mut: #6c6a64; --kt-bar: #E6E3DC; --kt-green: #227A47; --kt-rose: #C2463A; --kt-rose-l: #F9E3DF;
  --kt-yellow: #8A6300; --kt-yellow-l: #FBF0CC; --kt-green-l: #DDF3E5; --kt-aqua-l: #DDF4F0; --kt-aqua: #1F6E64; --kt-blue: #0866FF; --kt-blue-l: #E7F0FF; }
.kt-sl, .kt-cl, .kt-doc, .kt-tbl, .kt-desk, .kt-br, .kt-ap { font-family: var(--font-sans, Satoshi, sans-serif); font-variant-numeric: tabular-nums; color: var(--kt-ink); font-size: calc(16px * var(--kt, 1)); line-height: 1.4; box-sizing: border-box; }
.kt-sl *, .kt-cl *, .kt-doc *, .kt-tbl *, .kt-desk *, .kt-br * { box-sizing: border-box; }
.kt-i { display: inline-grid; place-items: center; flex: none; }
.kt-dots { display: inline-flex; gap: 7px; flex: none; }
.kt-dots i { width: 11px; height: 11px; border-radius: 50%; background: #E6584F; }
.kt-dots i:nth-child(2) { background: #E9B23B; }
.kt-dots i:nth-child(3) { background: #5FBF4C; }
.kt-bar { display: inline-block; height: calc(9px * var(--kt, 1)); max-width: 100%; border-radius: 5px; background: var(--kt-bar); vertical-align: middle; flex: none; }
.kt-bar--side { background: rgb(255 255 255 / .22); }
.kt-bar--dark { background: #CFCBC1; }
.kt-ex { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--kt-line); font-size: 14px; font-weight: 500; color: var(--kt-mut); background: #fff; white-space: nowrap; }
.kt-pill { display: inline-flex; align-items: center; height: calc(26px * var(--kt, 1)); min-height: 24px; padding: 0 10px; border-radius: 13px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .35s, color .35s, opacity .35s; }
.kt-pill--line { box-shadow: inset 0 0 0 1px var(--kt-line); color: var(--kt-mut); }
.kt-pill--rose { background: var(--kt-rose-l); color: var(--kt-rose); }
.kt-pill--yellow { background: var(--kt-yellow-l); color: var(--kt-yellow); }
.kt-pill--green { background: var(--kt-green-l); color: var(--kt-green); }
.kt-pill--aqua { background: var(--kt-aqua-l); color: var(--kt-aqua); }
.kt-pill--ink { background: #1d1c1a; color: #fff; }
.kt-pill--orange { background: #FFE6D6; color: #B4501A; }
.kt-pill--blue { background: var(--kt-blue-l); color: var(--kt-blue); }
.kt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: calc(34px * var(--kt, 1)); padding: 0 14px; border-radius: 8px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .3s, color .3s, transform .15s, box-shadow .3s; }
.kt-btn--line { box-shadow: inset 0 0 0 1px #D8D4CA; background: #fff; color: var(--kt-ink); }
.kt-btn--dark { background: var(--kt-ink); color: #fff; }
.kt-btn--green { background: var(--kt-green); color: #fff; }
.kt-btn--slack { background: #007A5A; color: #fff; }
.kt-btn--blue { background: var(--kt-blue); color: #fff; }
.kt-btn.is-press { transform: scale(.95); }
.kt-rbg { display: inline-grid; place-items: center; flex: none; width: var(--rb, 22px); height: var(--rb, 22px); border-radius: 6px; background: #17110d; box-shadow: 0 0 0 1px rgb(255 127 50 / .3), 0 0 8px rgb(255 127 50 / .45); }

/* ---------- Slack ---------- */
.kt-sl { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #DDDBD5, 0 30px 60px -30px rgb(40 20 50 / .35), 0 8px 18px -12px rgb(40 20 50 / .2); }
.kt-sl__bar { display: flex; align-items: center; height: 34px; padding: 0 12px; background: #3F0E40; }
.kt-sl__body { display: grid; grid-template-columns: calc(150px * var(--kt, 1)) minmax(0, 1fr); min-height: 0; }
.kt-sl__side { display: grid; align-content: start; gap: 14px; padding: 16px 14px; background: #4A154B; }
.kt-sl__main { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.kt-sl__head { display: flex; align-items: center; gap: 6px; height: calc(44px * var(--kt, 1)); padding: 0 16px; border-bottom: 1px solid #ECEAE4; font-weight: 700; font-size: 16px; }
.kt-sl__feed { display: flex; flex-direction: column; justify-content: flex-start; gap: calc(14px * var(--kt, 1)); padding: calc(14px * var(--kt, 1)) 16px; min-height: 0; overflow: hidden; }
.kt-sl__msg { display: grid; grid-template-columns: calc(36px * var(--kt, 1)) minmax(0, 1fr); gap: 10px; align-items: start; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.kt-sl__av { display: grid; place-items: center; width: calc(36px * var(--kt, 1)); height: calc(36px * var(--kt, 1)); border-radius: 8px; color: #fff; }
.kt-sl__av--agent { background: #2B5D8C; }
.kt-sl__av--you { background: #B5835A; }
.kt-sl__av--ryze { background: transparent; }
.kt-sl__mb { display: grid; gap: 4px; min-width: 0; }
.kt-sl__mh { display: flex; align-items: baseline; gap: 8px; }
.kt-sl__mh b { font-weight: 700; }
.kt-sl__time { font-size: 14px; color: var(--kt-mut); }
.kt-sl__ln { margin: 0; }
.kt-sl__card { display: grid; gap: 6px; margin-top: 4px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 3px 0 0 #DDDBD5, inset 0 0 0 1px #ECEAE4; background: #FBFAF8; }
.kt-sl__card--orange { box-shadow: inset 3px 0 0 #FF7F32, inset 0 0 0 1px #ECEAE4; }
.kt-sl__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ---------- Claude ---------- */
.kt-cl { --cl-bg: #FAF9F5; --cl-side: #F3F1EA; --cl-line: #E6E2D8; --cl-mut: #75736d; --cl-bub: #EFEBE1; --cl-clay: #D97757;
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; border-radius: 12px; overflow: hidden; background: var(--cl-bg);
  box-shadow: 0 0 0 1px var(--cl-line), 0 30px 60px -30px rgb(60 40 20 / .35), 0 8px 18px -12px rgb(60 40 20 / .2); }
.kt-cl__bar { display: flex; align-items: center; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--cl-line); background: var(--cl-side); }
.kt-cl__body { display: grid; grid-template-columns: 52px minmax(0, 1fr); min-height: 0; }
.kt-cl__rail { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 14px; background: var(--cl-side); border-right: 1px solid var(--cl-line); color: var(--cl-mut); }
.kt-cl__logo { width: 24px; height: 24px; margin-bottom: 6px; }
.kt-cl__rb { width: 30px; height: 30px; border-radius: 6px; }
.kt-cl__rb.is-on { background: #E9E5DA; color: var(--kt-ink); }
.kt-cl__main { position: relative; display: grid; min-width: 0; min-height: 0; }
.kt-cl__view { grid-area: 1 / 1; min-width: 0; padding: calc(18px * var(--kt, 1)) calc(22px * var(--kt, 1)); display: flex; flex-direction: column; gap: calc(14px * var(--kt, 1)); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.kt-cl[data-v] .kt-cl__view { opacity: 0; visibility: hidden; transform: translateY(8px); }
.kt-cl[data-v="a"] .kt-cl__view[data-view="a"], .kt-cl[data-v="b"] .kt-cl__view[data-view="b"], .kt-cl[data-v="c"] .kt-cl__view[data-view="c"] { opacity: 1; visibility: inherit; transform: none; }
.kt-cl__crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; color: var(--cl-mut); }
.kt-cl__crumbs .kt-i { color: #A9A59B; }
.kt-cl__here { color: var(--kt-ink); font-weight: 500; }
.kt-cl__panel { display: grid; gap: 4px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--cl-line); }
.kt-cl__ph { padding: 8px 10px 4px; font-weight: 500; font-size: 17px; }
.kt-cl__prow { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: calc(46px * var(--kt, 1)); padding: 0 10px; border-radius: 8px; }
.kt-cl__prow + .kt-cl__prow { box-shadow: 0 -1px 0 #F0EDE6; }
.kt-cl__u { align-self: flex-end; max-width: 86%; }
.kt-cl__ub { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--cl-bub); }
.kt-cl__a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.kt-cl__spark { width: 22px; height: 22px; margin-top: 4px; }
.kt-cl__ab { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.kt-cl__tool { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--cl-line); background: #fff; font-size: 14px; }
.kt-cl__ti { color: var(--cl-mut); }
.kt-cl__spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #E2DED4; border-top-color: var(--cl-clay); animation: kt-spin .8s linear infinite; }
@keyframes kt-spin { to { transform: rotate(360deg); } }
.kt-cl__ok { display: none; color: #2E9E5B; }
.kt-cl__tool.is-done .kt-cl__spin { display: none; }
.kt-cl__tool.is-done .kt-cl__ok { display: inline-grid; }
.kt-cl__tog { position: relative; width: 34px; height: 20px; border-radius: 10px; background: #DCD8CE; flex: none; transition: background .3s; }
.kt-cl__tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .3s; }
.kt-cl__tog.is-on { background: #2B7FFF; }
.kt-cl__tog.is-on::after { left: 16px; }
/* approval card */
.kt-ap { display: grid; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #E6E2D8, 0 10px 24px -16px rgb(31 30 29 / .35); transition: opacity .4s var(--ease), transform .4s var(--ease), box-shadow .4s; }
.kt-ap__t { margin: 0; font-weight: 500; }
.kt-ap__f { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.kt-ap__f .kt-ex { margin-right: auto; }
.kt-ap__aok { display: none; }
.kt-ap.is-ok .kt-ap__allow { background: var(--kt-green); }
.kt-ap.is-ok .kt-ap__aok { display: inline-grid; }
.kt-ap.is-ok .kt-ap__f > .kt-btn--line { opacity: .45; }
.kt-ap.is-ok { box-shadow: inset 0 0 0 1.5px #9BD7B1, 0 10px 24px -16px rgb(34 122 71 / .45); }

/* ---------- editor window ---------- */
.kt-doc { display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #E2E0DA, 0 30px 60px -30px rgb(40 40 40 / .3), 0 8px 18px -12px rgb(40 40 40 / .18); }
.kt-doc__bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 12px; background: #F4F3EF; border-bottom: 1px solid #E8E6E0; }
.kt-doc__tab { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 6px 6px 0 0; background: #fff; box-shadow: 0 0 0 1px #E8E6E0; font-size: 15px; font-weight: 500; margin-bottom: -10px; }
.kt-doc__body { display: grid; align-content: start; gap: 2px; padding: calc(14px * var(--kt, 1)) 16px; }
.kt-doc__ln { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; min-height: calc(34px * var(--kt, 1)); border-radius: 4px; transition: background .4s; }
.kt-doc__ln.is-hot { background: #FFF1E6; }
.kt-doc__no { font-size: 14px; color: #B3B0A8; }
.kt-doc__tx { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- ads table ---------- */
.kt-tbl { position: relative; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px #DADDE1, 0 24px 50px -30px rgb(30 40 60 / .35); }
.kt-tr { display: grid; grid-template-columns: var(--cols); align-items: center; min-height: calc(48px * var(--kt, 1)); padding: 0 8px; border-top: 1px solid #EDEEF1; transition: background .4s; }
.kt-tr--h { min-height: calc(42px * var(--kt, 1)); border-top: 0; background: #F5F6F7; color: #65676B; font-weight: 500; font-size: 15px; border-bottom: 1px solid #DADDE1; }
.kt-td { min-width: 0; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kt-td--r { text-align: right; }
.kt-tr.is-rose { background: #FDF1EF; }
.kt-tr.is-dim { opacity: .55; }

/* ---------- helpdesk ---------- */
.kt-desk { display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #E2E0DA, 0 30px 60px -30px rgb(40 40 40 / .3); }
.kt-desk__bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 12px; background: #1F3B46; }
.kt-desk__list { display: grid; align-content: start; }
.kt-desk__row { display: grid; grid-template-columns: calc(34px * var(--kt, 1)) minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: calc(58px * var(--kt, 1)); padding: 0 16px; border-top: 1px solid #EFEDE8; transition: background .4s, transform .5s var(--ease), opacity .4s; }
.kt-desk__av { display: grid; place-items: center; width: calc(34px * var(--kt, 1)); height: calc(34px * var(--kt, 1)); border-radius: 50%; background: #EEF1F3; color: #6A7780; }
.kt-desk__sub { display: grid; gap: 6px; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- browser ---------- */
.kt-br { display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #E2E0DA, 0 30px 60px -30px rgb(40 40 40 / .3); }
.kt-br__bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 12px; background: #F1F0EC; border-bottom: 1px solid #E4E2DC; }
.kt-br__url { flex: 1; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: #fff; font-size: 14px; color: var(--kt-mut); min-width: 0; overflow: hidden; white-space: nowrap; }
.kt-br__page { position: relative; min-height: 0; }

@media (prefers-reduced-motion: reduce) { .kt-cl__spin { animation: none; } }
/* compact and phone: tighter chrome, same 14 px floor */
@media (max-width: 959px), (max-height: 599px) {
  .kt-sl, .kt-cl, .kt-doc, .kt-tbl, .kt-desk, .kt-br, .kt-ap { font-size: 14px; --kt: .82; }
  .kt-sl__bar, .kt-cl__bar { height: 24px; }
  .kt-sl__side { display: none; }
  .kt-sl__body { grid-template-columns: minmax(0, 1fr); }
  .kt-cl__rail { display: none; }
  .kt-cl__body { grid-template-columns: minmax(0, 1fr); }
  .kt-cl__view { padding: 10px 12px; gap: 8px; }
  .kt-sl__feed { padding: 8px 10px; gap: 8px; }
  .kt-btn { font-size: 14px; padding: 0 10px; }
  .kt-doc__bar, .kt-desk__bar, .kt-br__bar { height: 30px; }
  .kt-doc__tab { height: 24px; margin-bottom: -6px; font-size: 14px; }
  .kt-tr--h, .kt-cl__crumbs, .kt-cl__ph { font-size: 14px; }
  .kt-ap { padding: 9px 10px; gap: 8px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .kt-sl, .kt-cl, .kt-doc, .kt-tbl, .kt-desk, .kt-br, .kt-ap { --kt: .85; }
}
