@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root { color-scheme: dark; --bg: #0c0c0c; --surface: #141414; --line: #2d2d2d; --muted: #a1a1a1; --white: #f4f4f4; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--white); font: 14px 'DM Sans', sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #ddd; outline-offset: 4px; }
h1:focus { outline: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; background: #111; border-right: 1px solid var(--line); padding: 28px 20px; display: flex; flex-direction: column; z-index: 5; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 38px; font-size: 16px; font-weight: 600; }
.brandlogo { width: 38px; height: 44px; object-fit: contain; }
.brand small, .asidebottom small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 5px; }
.navcaption { font-size: 10px; letter-spacing: .8px; color: var(--muted); margin: 0 12px 14px; }
#nav { display: flex; flex-direction: column; gap: 5px; }
#nav button { display: flex; align-items: center; gap: 11px; padding: 12px; border: 0; background: transparent; color: var(--muted); border-radius: 7px; text-align: left; font-size: 12px; }
#nav button.active { background: #262626; color: #fff; }
#nav button:hover { background: #1e1e1e; }
#nav img { width: 16px; height: 16px; object-fit: contain; }
.asidebottom { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 18px 6px 0; border-top: 1px solid var(--line); font-size: 11px; }
.pill { font-size: 10px; background: #252525; color: #c2c2c2; border: 1px solid #3a3a3a; padding: 4px 8px; border-radius: 20px; white-space: nowrap; }
main { margin-left: 244px; max-width: 1640px; min-width: 0; }
header { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 36px; border-bottom: 1px solid var(--line); gap: 14px; }
.breadcrumb { color: #aaa; font-size: 12px; }
.breadcrumb span { margin: 0 10px; color: #777; }
.breadcrumb b { font-weight: 400; color: #eee; }
.download { font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 13px; white-space: nowrap; }
.notice { margin: 26px 36px 0; font-size: 11px; line-height: 1.7; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { flex-shrink: 0; background: #bbb; width: 6px; height: 6px; border-radius: 50%; }
#content { padding: 26px 36px 36px; min-height: 75vh; }
.eyebrow { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); }
h1 { font-family: Manrope, sans-serif; font-size: 34px; letter-spacing: -1.3px; margin: 10px 0 12px; font-weight: 600; }
h2 { font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: -.5px; font-weight: 600; margin: 0; }
.intro { color: var(--muted); line-height: 1.8; max-width: 720px; margin: 0 0 26px; font-size: 13px; }
.headrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.headrow.compact { margin-bottom: 14px; }
.headrow > select { width: min(240px, 55%); }
.btn { border: 1px solid #404040; background: #292929; border-radius: 6px; padding: 10px 13px; color: #f1f1f1; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: #383838; }
.btn.white { background: #efefef; color: #181818; border-color: #efefef; }
.btn.white:hover { background: #fff; }
.btn img { width: 14px; height: 14px; object-fit: contain; }
.btn.white img { filter: invert(1); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); padding: 20px 22px; border-radius: 10px; }
.stat label { color: var(--muted); font-size: 11px; }
.stat strong { display: block; font-family: Manrope, sans-serif; font-size: 34px; margin: 10px 0 6px; letter-spacing: -1px; font-weight: 500; }
.stat small { font-size: 10px; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 20px; margin-top: 22px; align-items: start; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cardtop { padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.cardtop > img { width: 17px; height: 17px; }
.cardbody { padding: 22px; }
.cardfooter { border-top: 1px solid var(--line); padding: 14px 22px; font-size: 10px; color: var(--muted); }
.tablewrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { font-size: 10px; color: var(--muted); font-weight: 500; padding: 14px 22px; background: #161616; }
td { padding: 16px 22px; border-top: 1px solid #292929; font-size: 12px; }
td small { display: block; color: var(--muted); margin-top: 5px; }
.tableLink { background: transparent; border: 0; color: #eee; font-size: 12px; padding: 0; text-align: left; }
.tableLink:hover { text-decoration: underline; }
.listline { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 15px 0; font-size: 12px; }
.listline:first-child { padding-top: 0; }
.listline:last-child { border: 0; padding-bottom: 0; }
.listline small { display: block; color: var(--muted); margin-top: 6px; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.hint { font-size: 12px; line-height: 1.8; color: var(--muted); }
.embed { background: #272727; border-left: 3px solid #dedede; border-radius: 4px 8px 8px 4px; padding: 22px; overflow: hidden; overflow-wrap: anywhere; }
.embauthor { font-size: 12px; display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.embedLogo { width: 20px; height: 20px; object-fit: contain; }
.embed h2 { font-size: 19px; }
.embed p { line-height: 1.8; color: #d0d0d0; font-size: 12px; }
.embed small { font-size: 10px; }
.embedThumbnail { float: right; width: 66px; height: 66px; object-fit: contain; margin: 0 0 12px 16px; }
.embedImage { display: block; width: 100%; max-height: 260px; object-fit: contain; margin: 18px 0; border-radius: 4px; }
.buttonrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
#ticketActions { margin-top: 1px; }
.ticketCard { margin-top: 24px; }
.auxiliary { border-left: 3px solid #aaa; background: #252525; padding: 14px 18px; margin-top: 12px; font-size: 12px; line-height: 1.7; }
.fieldgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin: 20px 0; }
.field label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 7px; }
.field strong { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.formgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.formfield label { display: block; color: #bbb; font-size: 12px; margin-bottom: 8px; }
input, select, textarea { width: 100%; background: #111; color: #eee; border: 1px solid #3e3e3e; border-radius: 6px; padding: 11px 12px; font-size: 12px; }
input[type="color"] { padding: 5px; min-height: 40px; }
textarea { min-height: 100px; resize: vertical; line-height: 1.7; }
.formfield .checkLabel { display: flex; align-items: center; gap: 10px; }
.checkLabel input { width: 16px; height: 16px; accent-color: #ddd; }
.full { grid-column: 1 / -1; }
.toggle { flex-shrink: 0; background: #333; border: 1px solid #555; width: 42px; height: 23px; border-radius: 20px; position: relative; }
.toggle:after { content: ''; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #aaa; }
.toggle.on { background: #e1e1e1; }
.toggle.on:after { left: 22px; background: #222; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: transparent; border-radius: 20px; color: var(--muted); padding: 8px 14px; font-size: 12px; }
.tabs .selected { color: #151515; background: #fff; }
.featuregrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.feature { padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; }
.callout { padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: #1b1b1b; font-size: 12px; line-height: 1.8; margin-top: 20px; }
.bar { height: 5px; background: #333; border-radius: 5px; margin: 9px 0 16px; }
.bar i { display: block; height: 100%; background: #ccc; border-radius: 5px; }
.muted { color: var(--muted); }
.emptyState { text-align: center; padding: 32px 24px; }
.emptyState > img { width: 26px; height: 26px; margin-bottom: 16px; }
.participantInput { margin-top: 20px; }
.transcriptPreview { max-height: 360px; overflow-y: auto; margin-bottom: 22px; }
.partnershipSplit { margin-top: 0; }
.partnershipBot { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; font-size: 12px; }
.partnershipBot > img { width: 32px; height: 32px; object-fit: contain; }
.partnershipBot small { color: var(--muted); margin-left: auto; font-size: 10px; }
.partnershipTitle { display: flex; align-items: center; gap: 10px; }
.partnershipTitle img { width: 26px; height: 26px; object-fit: contain; }
.partnershipMessage h3 { font-size: 14px; font-weight: 500; margin: 16px 0 0; }
.partnershipMessage hr { border: 0; border-top: 1px solid #484848; margin: 20px 0 16px; }
.sampleCodes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.sampleCodes > span { flex-basis: 100%; font-size: 10px; margin-bottom: 3px; }
.sampleCodes .btn { padding: 7px 10px; font-size: 11px; }
.sampleCodes img { display: none; }
.partnershipTools { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.partnershipFeedback { border: 1px solid var(--line); border-left: 3px solid #388650; border-radius: 6px; padding: 12px 16px; margin: 0 0 20px; font-size: 12px; line-height: 1.8; background: var(--surface); }
.partnershipFeedback[data-kind="warning"] { border-left-color: #d0a735; }
.partnershipFeedback[data-kind="error"] { border-left-color: #c14343; }
.partnershipTests { border: 1px solid var(--line); border-radius: 8px; padding: 15px 18px; margin-top: 24px; background: var(--surface); }
.partnershipTests summary { cursor: pointer; font-size: 12px; }
.partnershipTests .hint { margin-bottom: 0; }
.partnershipModalPreview { margin-top: 20px; }
.partnershipModalPreview .buttonrow { pointer-events: none; }
.partnershipModalPreview .btn { opacity: .65; }
.formError { color: #ef9e9e; line-height: 1.7; font-size: 12px; }
.formError:empty { display: none; }
#partnershipForm h3 { margin: 22px 0 14px; font-size: 13px; font-weight: 500; color: #eee; }
#partnershipForm h3:first-child { margin-top: 0; }
footer { padding: 22px 36px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); display: flex; justify-content: space-between; gap: 14px; }
.toast { position: fixed; bottom: 26px; left: calc(50% + 100px); transform: translateX(-50%); background: #eee; color: #151515; border-left: 4px solid #388650; padding: 13px 18px; border-radius: 7px; box-shadow: 0 8px 50px #0006; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; font-size: 12px; line-height: 1.7; max-width: min(600px, 85vw); }
.toast[data-kind="warning"] { border-color: #d0a735; }
.toast[data-kind="error"] { border-color: #c14343; }
.toast.show { opacity: 1; }
dialog { background: #181818; color: #eee; border: 1px solid #4a4a4a; border-radius: 12px; width: min(620px, 92vw); max-height: 90dvh; overflow-y: auto; padding: 26px; }
dialog::backdrop { background: #000b; }
.close { float: right; border: 0; background: transparent; font-size: 24px; color: #fff; padding: 0 4px; }
.modalintro { margin: 14px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.8; }
#mobileMenu { display: none; background: transparent; border: 0; color: #fff; }
@media (max-width: 1100px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  header, #content, footer { padding-left: 26px; padding-right: 26px; }
  .notice { margin-left: 26px; margin-right: 26px; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; width: min(280px, 85vw); }
  .sidebar.open { transform: translateX(0); box-shadow: 15px 0 60px #000b; }
  main { margin-left: 0; }
  #mobileMenu { display: block; }
  header { padding: 0 18px; min-height: 68px; gap: 10px; }
  .breadcrumb { margin-right: auto; font-size: 11px; }
  .breadcrumb span { margin: 0 5px; }
  .download { font-size: 10px; padding: 8px; }
  #content { padding: 24px 20px; }
  .notice { margin: 20px 20px 0; font-size: 10px; }
  h1 { font-size: 28px; }
  .grid { gap: 8px; }
  .stat { padding: 16px 12px; }
  .stat strong { font-size: 26px; }
  .stat label, .stat small { font-size: 10px; }
  .featuregrid, .formgrid { grid-template-columns: minmax(0, 1fr); }
  .headrow { flex-wrap: wrap; gap: 12px; }
  .headrow > select { width: 100%; }
  .toast { left: 50%; width: 90%; max-width: 90%; text-align: center; }
  footer { padding: 20px; flex-wrap: wrap; }
  .cardbody, .cardtop { padding: 18px; }
  .embed { padding: 18px; }
  .listline { gap: 10px; }
  dialog { padding: 22px; }
}
@media (max-width: 400px) {
  .breadcrumb > span, .breadcrumb > b { display: none; }
  .stat { padding: 14px 9px; }
  .stat strong { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .toast { transition: none; }
}
