/* AmplifysCX console. Plain CSS, system fonts, no framework. */
:root {
  --navy: #1B1F6B;
  --navy-dark: #14185A;
  --navy-line: #3A3F8F;
  --navy-soft: #EEF0FF;
  --navy-muted: #C7C9E8;
  --teal: #0D9488;
  --teal-soft: #CCFBF1;
  --teal-ink: #115E59;
  --mint: #5EEAD4;
  --ink: #1D1D1F;
  --grey: #6E6E73;
  --grey-2: #86868B;
  --grey-ink: #515154;
  --line: #E8E8ED;
  --line-2: #F0F0F2;
  --field: #D2D2D7;
  --page: #F5F5F7;
  --card: #FFFFFF;
  --row-hover: #FAFAFB;
  --amber: #B45309;
  --amber-ink: #92400E;
  --amber-soft: #FEF3C7;
  --red: #B91C1C;
  --red-ink: #991B1B;
  --red-soft: #FEE2E2;
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --focus: 0 0 0 3px rgba(27, 31, 107, 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); font-family: var(--font); color: var(--ink); font-size: 14px; line-height: 1.45; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 24px; margin: 0; }
h2 { font-size: 16px; margin: 0; }
h3 { font-size: 14px; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: var(--focus); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lbl { font-size: 12px; color: var(--grey); }
.muted { color: var(--grey); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }
.right { margin-left: auto; }

/* ---------- global header ---------- */
.hdr { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; background: var(--navy); color: #fff; position: relative; z-index: 20; }
.ib { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border: 0; background: transparent; color: #fff; border-radius: 8px; cursor: pointer; gap: 6px; font-size: 13px; font-family: inherit; text-decoration: none; }
.ib:hover { background: var(--navy-dark); color: #fff; }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; }
.logo:hover { color: #fff; }
.logo .cx { color: var(--mint); }
.logo.on-light { color: var(--navy); }
.logo.on-light .cx { color: var(--teal); }
.search { flex: 1 1 280px; max-width: 560px; display: flex; align-items: center; gap: 8px; background: var(--navy-dark); border: 1px solid var(--navy-line); border-radius: 8px; padding: 0 12px; height: 34px; color: var(--navy-muted); margin: 0; }
.search input, .search input[type=search] { background: transparent; border: 0; color: #fff; font-size: 14px; width: 100%; font-family: inherit; outline: none; height: auto; padding: 0; box-shadow: none; }
.search input::placeholder { color: var(--navy-muted); }
.search:focus-within { box-shadow: var(--focus); border-color: #fff; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--navy-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

/* menus built on details/summary: keyboard friendly without script */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 46px; min-width: 240px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(20, 24, 90, 0.18); padding: 8px; z-index: 30; }
.menu-panel a, .menu-panel button.link { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.menu-panel a:hover, .menu-panel button.link:hover { background: var(--navy-soft); color: var(--navy); }
.menu-panel .current { font-weight: 600; color: var(--navy); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-panel .head { padding: 6px 10px; }

/* app launcher */
.launcher-panel { left: 0; right: auto; width: min(720px, calc(100vw - 24px)); padding: 20px; }
.launcher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.app-tile { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; }
a.app-tile:hover { border-color: var(--navy); background: var(--navy-soft); color: var(--ink); }
.app-tile[aria-disabled="true"] { opacity: 0.75; }
.app-tile .tile { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.app-tile .tile.soon { background: #E8E8ED; color: var(--grey-ink); }
.app-tile strong { display: block; }
.launcher-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.launcher-items a { padding: 6px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink); text-decoration: none; font-size: 13px; }
.launcher-items a:hover { background: var(--navy-soft); color: var(--navy); }

/* ---------- app navigation bar ---------- */
.nav { display: flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.nav-app { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-right: 16px; font-size: 15px; }
.nav-app .tile { width: 24px; height: 24px; border-radius: 6px; background: var(--navy); display: flex; align-items: center; justify-content: center; color: #fff; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tab { padding: 12px 12px 9px; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; font-size: 14px; }
.tab:hover { color: var(--navy); }
.tab.on { border-bottom-color: var(--navy); font-weight: 600; }
.nav-toggle { display: none; }

/* ---------- page ---------- */
main.page { padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 20px; max-width: 1400px; width: 100%; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 16px; }
.card-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; }
.card-head h2 { flex: 1; font-size: 15px; }
.card-head a { font-size: 13px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.two-col { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.two-col > .main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.two-col > .side-col { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tile-stat { padding: 16px 18px; }
.tile-stat .num { font-size: 30px; font-weight: 600; margin-top: 6px; }
.tile-stat .num.bad { color: var(--red); }
.tile-stat a { text-decoration: none; color: inherit; }

/* page header macro */
.page-header { display: flex; gap: 14px; align-items: center; padding: 16px; flex-wrap: wrap; }
.obj-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; color: #fff; font-weight: 700; }
.page-header .titles { flex: 1 1 260px; min-width: 0; }
.page-header h1 { font-size: 20px; }
.page-header .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--field); background: #fff; color: var(--navy); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; font-family: inherit; white-space: nowrap; }
.btn:hover { border-color: var(--navy); color: var(--navy-dark); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-dark); color: #fff; }
.btn.danger { color: var(--red); border-color: #F1B8B8; }
.btn.small { height: 30px; font-size: 13px; padding: 0 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn.block { width: 100%; height: 46px; font-size: 15px; font-weight: 600; border-radius: 10px; }
.link-btn { background: none; border: 0; color: var(--navy); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.badge.ok { background: var(--teal-soft); color: var(--teal-ink); }
.badge.warn { background: var(--amber-soft); color: var(--amber-ink); }
.badge.bad { background: var(--red-soft); color: var(--red-ink); }
.badge.neu { background: var(--navy-soft); color: var(--navy); }
.badge.grey { background: var(--line-2); color: var(--grey-ink); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; background: var(--navy-soft); color: var(--navy); font-weight: 600; }

/* tables and list view */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 12px; color: var(--grey-ink); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--row-hover); white-space: nowrap; }
th a { color: inherit; text-decoration: none; }
th a:hover { color: var(--navy); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); font-size: 13px; vertical-align: middle; }
tbody tr:hover td { background: var(--row-hover); }
td a.rec { font-weight: 500; }
.list-head { display: flex; gap: 14px; align-items: center; padding: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.list-views { display: flex; gap: 8px; padding: 10px 16px; align-items: center; background: var(--row-hover); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--field); border-radius: 8px; padding: 0 10px; height: 34px; background: #fff; }
.list-search input { border: 0; font-size: 13px; width: 160px; font-family: inherit; outline: none; }
.list-search:focus-within { box-shadow: var(--focus); }
.seg { display: inline-flex; border: 1px solid var(--field); border-radius: 8px; overflow: hidden; }
.seg a { display: flex; align-items: center; justify-content: center; width: 44px; height: 34px; color: var(--grey-ink); text-decoration: none; border-right: 1px solid var(--field); }
.seg a:last-child { border-right: 0; }
.seg a.on { background: var(--navy-soft); color: var(--navy); }
.pager { display: flex; align-items: center; padding: 12px 16px; gap: 12px; }
.pager .lbl { flex: 1; }
.empty { padding: 40px 16px; text-align: center; color: var(--grey); }
.empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.rowmenu > summary { width: 32px; height: 32px; border: 1px solid var(--field); border-radius: 6px; background: #fff; color: var(--grey-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rowmenu .menu-panel { top: 36px; min-width: 200px; }
.bulk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: #EDEDF1; border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.colh { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 2px 4px; }
.colh span:first-child { flex: 1; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.kcard a.title { font-weight: 600; text-decoration: none; color: var(--ink); }
.kcard a.title:hover { color: var(--navy); }
.kcard form { display: flex; gap: 6px; align-items: center; }
.kcard select { height: 30px; border: 1px solid var(--field); border-radius: 6px; font: inherit; font-size: 12px; background: #fff; max-width: 150px; }

/* record page */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; padding: 12px 16px 16px; border-top: 1px solid var(--line-2); }
.path { display: flex; gap: 4px; flex-wrap: wrap; padding: 0 16px 16px; margin: 0; list-style: none; }
.path li { flex: 1 1 120px; height: 36px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); }
.path li.done { background: var(--teal-soft); color: var(--teal-ink); }
.path li.cur { background: var(--navy); color: #fff; }
.path li.todo { background: #EDEDF1; color: var(--grey-ink); }
.path li.stop { background: var(--red-soft); color: var(--red-ink); }
.rtabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.rtab { padding: 10px 12px 8px; text-decoration: none; color: var(--ink); border-bottom: 3px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0; font: inherit; cursor: pointer; }
.rtab.on, .rtab[aria-selected="true"] { border-bottom-color: var(--navy); font-weight: 600; }
.fields { padding: 4px 16px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.field-ro { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line-2); min-width: 0; overflow-wrap: anywhere; }
.caption-box { border: 1px solid var(--line); border-radius: 10px; padding: 14px; line-height: 1.5; background: var(--row-hover); white-space: pre-wrap; overflow-wrap: anywhere; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line-2); }
.check:first-child { border-top: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.timeline li { display: flex; gap: 10px; }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grey-2); margin-top: 4px; flex: none; }
.timeline .dot.ok { background: var(--teal); }
.timeline .dot.neu { background: var(--navy); }
.timeline .dot.warn { background: var(--amber); }
.timeline .dot.bad { background: var(--red); }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.fl { display: flex; flex-direction: column; gap: 6px; }
.fl > span, .fl > legend { font-size: 13px; font-weight: 600; }
.fl .hint { font-size: 12px; color: var(--grey); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=date], input[type=datetime-local], input[type=number], select, textarea {
  height: 40px; border: 1px solid var(--field); border-radius: 8px; padding: 0 12px; font-family: inherit; font-size: 14px; background: #fff; color: var(--ink); width: 100%; }
textarea { height: auto; min-height: 120px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: var(--focus); }
fieldset { border: 0; padding: 0; margin: 0; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.check-row input { margin-top: 3px; width: 18px; height: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.channel-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.ch { display: flex; align-items: center; gap: 10px; border: 1px solid var(--field); border-radius: 10px; padding: 8px 12px; background: #fff; flex-wrap: wrap; }
.ch.off { background: var(--line-2); color: var(--grey); }
.ch select { height: 32px; width: auto; font-size: 13px; }
.counter { display: flex; gap: 16px; flex-wrap: wrap; }
.counter .over { color: var(--red); font-weight: 600; }
.note { background: var(--navy-soft); color: var(--navy); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.note.warn { background: var(--amber-soft); color: var(--amber-ink); }
.note.bad { background: var(--red-soft); color: var(--red-ink); }
.note.ok { background: var(--teal-soft); color: var(--teal-ink); }

/* progress bars */
.bar { height: 8px; background: var(--line-2); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.bar > span { display: block; height: 8px; background: var(--navy); border-radius: 4px; }
.bar > span.full { background: var(--red); }
.meter-row { display: flex; font-size: 13px; }
.meter-row span:first-child { flex: 1; font-weight: 500; }

/* toast and modal */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.2); max-width: 420px; }
.toast.ok { background: var(--teal-ink); }
.toast.bad { background: var(--red-ink); }
dialog.modal { border: 0; border-radius: var(--radius); padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(20, 24, 90, 0.3); }
dialog.modal::backdrop { background: rgba(20, 24, 90, 0.35); }
.modal-head { padding: 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-head h2 { flex: 1; }
.modal-body { padding: 16px; }
.modal-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
details.modal-lite > summary { list-style: none; }
details.modal-lite > summary::-webkit-details-marker { display: none; }
details.modal-lite[open] > .modal-lite-panel { position: fixed; inset: 0; background: rgba(20, 24, 90, 0.35); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
details.modal-lite .modal-lite-card { background: #fff; border-radius: var(--radius); width: min(520px, 100%); box-shadow: 0 24px 64px rgba(20, 24, 90, 0.3); }

/* assistant panel */
.assistant { display: flex; flex-direction: column; }
.assistant-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.assistant-head .tile { width: 32px; height: 32px; border-radius: 8px; background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--mint); flex: none; }
.assistant-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; }
.draft { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--row-hover); white-space: pre-wrap; }
.bubble { align-self: flex-end; background: var(--navy-soft); color: var(--navy); border-radius: 10px; padding: 8px 12px; max-width: 90%; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 110px; padding: 6px; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.cal > div.out { background: var(--row-hover); color: var(--grey-2); }
.cal > div.today .daynum { background: var(--navy); color: #fff; border-radius: 999px; padding: 0 7px; }
.cal .dayname { background: var(--row-hover); min-height: auto; font-size: 12px; font-weight: 600; color: var(--grey-ink); }
.cal .event { font-size: 12px; background: var(--navy-soft); color: var(--navy); border-radius: 6px; padding: 2px 6px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .event.live { background: var(--teal-soft); color: var(--teal-ink); }

/* media */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 16px; }
.media-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.media-thumb { height: 120px; background: var(--navy-soft); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.media-card .meta { padding: 8px 10px; font-size: 12px; overflow-wrap: anywhere; }

/* sign in */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; background: #fff; }
.auth-form { flex: 1 1 520px; display: flex; justify-content: center; align-items: center; padding: 48px 24px; }
.auth-inner { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.auth-inner h1 { font-size: 26px; }
.toggle { display: flex; background: var(--line-2); border-radius: 10px; padding: 4px; }
.toggle a { flex: 1; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--grey-ink); text-decoration: none; }
.toggle a.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.auth input[type=text], .auth input[type=email], .auth input[type=password], .auth select { height: 44px; border-radius: 10px; font-size: 15px; }
.auth-side { flex: 1 1 520px; background: var(--navy); color: #fff; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-side .mark { position: absolute; right: -140px; bottom: -120px; opacity: 0.07; width: 640px; height: 640px; }
.auth-side-inner { position: relative; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; justify-content: center; max-width: 620px; }
.points { flex: 1 1 260px; display: flex; flex-direction: column; gap: 22px; }
.points h2 { font-size: 30px; line-height: 1.2; }
.point { display: flex; gap: 12px; }
.point svg { flex: none; color: var(--mint); }
.point small { display: block; color: var(--navy-muted); font-size: 13px; margin-top: 2px; }
.phone { width: 220px; height: 440px; border-radius: 36px; background: var(--navy-dark); border: 6px solid #2A2F85; padding: 18px 12px; display: flex; flex-direction: column; gap: 10px; flex: none; }
.phone .notch { width: 60px; height: 6px; border-radius: 3px; background: #2A2F85; align-self: center; margin-bottom: 6px; }
.phone .post { background: #fff; border-radius: 12px; padding: 10px; color: var(--ink); animation: rise 6s ease-in-out infinite; }
.phone .post.b { animation-delay: 2s; }
.phone .post.c { animation-delay: 4s; }
.phone .line { height: 8px; background: var(--line); border-radius: 4px; }
.phone .img { height: 60px; background: var(--navy-soft); border-radius: 8px; margin: 8px 0; }
.phone .tag { font-size: 11px; font-weight: 700; color: var(--teal-ink); background: var(--teal-soft); border-radius: 999px; padding: 2px 8px; display: inline-block; }
@keyframes rise { 0% { transform: translateY(16px); opacity: 0; } 15% { transform: translateY(0); opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .phone .post { animation: none; } }

/* simple centered pages (error, check your email) */
.plain { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.plain .card { max-width: 520px; width: 100%; padding: 28px; display: flex; flex-direction: column; gap: 14px; }

/* style page */
.kit-section { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 120px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 12px; }
.swatch span { display: block; height: 48px; }
.swatch div { padding: 6px 8px; }

/* helpers (no inline styles: the content security policy blocks them) */
.mt-16 { margin-top: 16px; }
.highlights dd { margin: 2px 0 0; }
.related { list-style: none; margin: 0; padding: 0 16px 16px; }
.nav .nav-toggle { color: var(--navy); }
.nav .nav-toggle:hover { background: var(--navy-soft); color: var(--navy); }
.kcard.dragging { opacity: 0.5; }
.ws-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar > span.w-0 { width: 0%; }
.bar > span.w-5 { width: 5%; }
.bar > span.w-10 { width: 10%; }
.bar > span.w-15 { width: 15%; }
.bar > span.w-20 { width: 20%; }
.bar > span.w-25 { width: 25%; }
.bar > span.w-30 { width: 30%; }
.bar > span.w-35 { width: 35%; }
.bar > span.w-40 { width: 40%; }
.bar > span.w-45 { width: 45%; }
.bar > span.w-50 { width: 50%; }
.bar > span.w-55 { width: 55%; }
.bar > span.w-60 { width: 60%; }
.bar > span.w-65 { width: 65%; }
.bar > span.w-70 { width: 70%; }
.bar > span.w-75 { width: 75%; }
.bar > span.w-80 { width: 80%; }
.bar > span.w-85 { width: 85%; }
.bar > span.w-90 { width: 90%; }
.bar > span.w-95 { width: 95%; }
.bar > span.w-100 { width: 100%; }
.plan-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.plan-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--field); border-radius: 10px; padding: 10px 12px; cursor: pointer; text-decoration: none; color: var(--ink); }
.plan-opt:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); }
.plan-opt input { margin-top: 3px; }
.plan-opt strong, .plan-opt .lbl { display: block; }
a.plan-opt:hover { border-color: var(--navy); color: var(--ink); }
.phone .line.w40 { width: 40%; } .phone .line.w60 { width: 60%; } .phone .line.w80 { width: 80%; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 0; }
.codes code, code.key { font-size: 14px; background: var(--line-2); padding: 4px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.steps { padding-left: 20px; margin: 0; }
.small-select { height: 30px; width: auto; font-size: 13px; padding: 0 8px; }
.sw-navy { background: var(--navy); } .sw-teal { background: var(--teal); } .sw-mint { background: var(--mint); } .sw-page { background: var(--page); } .sw-ink { background: var(--ink); }
.toast-demo .toast { position: static; display: inline-block; }
.media-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.media-opt { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; cursor: pointer; overflow-wrap: anywhere; }
.media-opt:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); }
.media-opt img, .media-img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; display: block; }
.media-img { height: 120px; border-radius: 0; }
.small-input { height: 30px; width: auto; min-width: 220px; font-size: 13px; }
.daynum { font-size: 12px; font-weight: 600; align-self: flex-start; }
.seg-wide a { width: auto; padding: 0 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launcher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .search { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav .tabs { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .nav.open .tabs { display: flex; }
  .nav .tab.on { border-bottom-color: transparent; border-left: 3px solid var(--navy); }
  .fields, .form-grid, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  main.page { padding: 16px; }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .launcher-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .hdr .ws-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 420px) {
  .hdr .ws-name { display: none; }
  .hdr { gap: 6px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spark { color: var(--teal); display: block; }
.trend { color: var(--teal); width: 100%; height: 120px; display: block; }
