:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: #24263d; background: #f5f6fb; line-height: 1.75; font-size: 14px;
  --accent: #6855d9; --muted: #697086; --line: #e5e7f0;
}
* { box-sizing: border-box; }
body { max-width: 1240px; margin: 0 auto; padding: 40px 40px 80px; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8270ed; outline-offset: 4px; }
h1,h2,h3,h4,p { margin-top: 0; }
h1 { font-size: clamp(23px, 3vw, 32px); letter-spacing: -.04em; line-height: 1.4; margin-bottom: 7px; }
h2 { font-size: 26px; letter-spacing: -.035em; margin-bottom: 8px; line-height: 1.5; }
h3 { margin-top: 30px; font-size: 16px; }
h4 { margin-bottom: 12px; }
p { margin-bottom: 14px; overflow-wrap: anywhere; }
.app-header { display: flex; align-items: center; gap: 20px; padding-bottom: 28px; }
.app-header p:last-child { margin: 0; color: var(--muted); }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .19em; margin-bottom: 9px; }
.brand-mark { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 0 0 64px; height: 64px; border-radius: 20px; background: #25203f; transform: rotate(-5deg); box-shadow: 0 7px 16px #25203f18; }
.brand-mark span { width: 5px; height: 16px; background: #d5caff; border-radius: 5px; }
.brand-mark span:nth-child(2) { height: 32px; }.brand-mark span:nth-child(3) { height: 23px; }.brand-mark span:nth-child(4) { height: 12px; }
.header-tag { margin-left: auto; border: 1px solid #e0ddeb; border-radius: 99px; padding: 5px 16px; white-space: nowrap; font-size: 12px; color: var(--muted); }
.account-bar { display: flex; justify-content: flex-end; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding: 12px 0; font-size: 12px; }
.account-bar p { margin: 0; }.account-bar button { margin: 0; padding: 6px 12px; font-size: 12px; }
.dashboard-nav { display: flex; gap: 6px; margin: 0 0 24px; padding: 6px; background: #eae8f5; border-radius: 13px; width: fit-content; max-width: 100%; }
.dashboard-nav a { text-decoration: none; padding: 9px 24px; border-radius: 9px; font-size: 13px; font-weight: 650; }
.dashboard-nav a:first-child { background: white; box-shadow: 0 2px 5px #213a3010; }.dashboard-nav a:hover { background: #ffffffa0; }
section { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; margin: 24px 0; scroll-margin-top: 24px; box-shadow: 0 4px 24px #24263d03; min-width: 0; }
section > p { color: var(--muted); max-width: 88ch; }
.settings-panel > p:nth-of-type(2) { font-size: 15px; margin-bottom: 24px; }
.settings-panel > p:nth-of-type(3), .settings-panel > p:nth-of-type(4) { font-size: 12px; margin-bottom: 8px; padding-left: 12px; border-left: 2px solid #c7bff0; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 22px; margin-top: 32px; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 8px 20px 20px; margin: 0; background: #fff; }
legend { padding: 0 8px; font-weight: 750; font-size: 16px; letter-spacing: -.02em; }
[data-feature] legend::before { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; margin-right: 9px; background: #f0edfc; color: #6855d9; content: '↗'; font-size: 17px; }
[data-feature=heart] legend::before { content: '♡'; background: #fbefee; color: #aa5a60; }
[data-feature=liveInfo] legend::before { content: '≋'; background: #edf1fb; color: #5578a8; }
[data-feature=listenerLookup] legend::before { content: '◎'; background: #f2effb; color: #7d65a7; }
[data-feature=schedule] legend::before { content: '▦'; background: #fcf3e6; color: #977331; }
[data-feature=timer] legend::before { content: '◷'; background: #eaf4f5; color: #417d83; }
[data-feature=help] legend::before { content: '?'; }
fieldset > p { font-size: 12px; color: var(--muted); margin: 16px 0 0; }
label { display: block; margin: 14px 0; font-weight: 550; font-size: 13px; }
input:not([type=checkbox]):not([type=radio]), textarea, select { max-width: 100%; border: 1px solid #dcdfea; border-radius: 9px; background: #fcfcff; padding: 11px 12px; color: #24263d; }
input:not([type=checkbox]):not([type=radio]) { display: block; width: min(100%,28rem); margin-top: 7px; }
textarea { display: block; width: 100%; resize: vertical; margin-top: 8px; line-height: 1.7; }
input:hover,textarea:hover,select:hover { border-color: #a49bc8; }
.toggle-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; margin: 0; cursor: pointer; font-weight: 500; }
.toggle-row > span:first-child { flex: 1; }
.toggle-row + .toggle-row { border-top: 1px solid #eff0f6; }
fieldset > .toggle-row:first-of-type { border-bottom: 1px solid var(--line); margin-bottom: 8px; font-weight: 700; }
.toggle-state { font-size: 10px; letter-spacing: .05em; font-weight: 750; color: #74758b; }
.toggle-row:has(input:checked) .toggle-state { color: var(--accent); }
.toggle-row input[type=checkbox] { appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 42px; width: 42px; height: 25px; border: 1px solid #c2c5d4; border-radius: 99px; background: #c2c5d4; cursor: pointer; margin: 0; transition: background .18s, border-color .18s; }
.toggle-row input::before { content: ''; display: block; position: absolute; width: 17px; height: 17px; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #15332630; transition: transform .18s; }
.toggle-row input:checked { background: var(--accent); border-color: var(--accent); }.toggle-row input:checked::before { transform: translateX(17px); }
button { border: 1px solid #dedfeb; border-radius: 9px; background: white; color: #514b70; padding: 10px 16px; margin: 8px 8px 4px 0; font-size: 12px; font-weight: 650; cursor: pointer; transition: background .15s, box-shadow .15s; }
button:hover { background: #f0edfc; box-shadow: 0 2px 4px #213f3010; }button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary-button, form button[type=submit] { background: var(--accent); color: white; border-color: var(--accent); padding: 12px 24px; }.primary-button:hover,form button[type=submit]:hover { background: #5542c1; }
.danger-button { color: #a34242; border-color: #ebd6d3; }.danger-button:hover { background: #fff0ec; }
output { display: block; min-height: 1.5em; overflow-wrap: anywhere; }
.template-preview { white-space: pre-wrap; font-size: 12px; line-height: 1.9; color: #65617f; padding: 14px; background: #f7f6fd; border: 1px dashed #dcd7f0; border-radius: 9px; margin-top: 12px; }
.template-counter { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; text-align: right; }
.gift-top5-notice { padding: 10px 12px; border-radius: 8px; background: #fff8e8; color: #785d26; }
.save-bar { display: flex; align-items: center; gap: 8px; position: sticky; bottom: 16px; z-index: 2; border: 1px solid #dcd7f0; background: #ffffff; border-radius: 13px; padding: 12px 16px; margin-top: 28px; box-shadow: 0 8px 24px #243f3012; }
.save-bar output { flex: 1; font-size: 12px; color: var(--accent); }.save-bar button { margin: 0; white-space: nowrap; }
.notice { border-left: 3px solid #b8883f; border-radius: 8px; padding: 14px 18px; background: #fcf6e9; color: #775923; }
.error,.save-bar .error { color: #ab3939; }
.bot-time-row { border: 1px solid var(--line); padding: 16px; margin: 14px 0; border-radius: 12px; background: #fafaff; }.bot-time-row input[type=number] { width: 7rem; margin: 0; }
.time-input-group { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 16px 0; }.time-input-label { flex-basis: 100%; margin: 0; font-weight: 700; }.time-value { display: flex; align-items: center; gap: 6px; margin: 0; }
.integration-state { display: inline-flex; align-items: center; gap: 9px; width: fit-content; padding: 8px 14px; border-radius: 999px; background: #f1eff8; color: #56526b; font-size: 13px; font-weight: 700; }
.integration-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #8d8b99; }.integration-state[data-state=linked] { background: #edf8f3; color: #227457; }.integration-state[data-state=linked]::before { background: #23906a; }.integration-state[data-state=verifying_dj],.integration-state[data-state=authorizing] { background: #fff7e8; color: #896128; }.integration-state[data-state=verifying_dj]::before,.integration-state[data-state=authorizing]::before { background: #bb8737; }.integration-state[data-state=reauthorization_required],.integration-state[data-state=refresh_uncertain] { background: #fff0ee; color: #9b4141; }.integration-state[data-state=reauthorization_required]::before,.integration-state[data-state=refresh_uncertain]::before { background: #c34f4f; }
[data-runtime-status] > p { color: var(--muted); font-size: 13px; }
[data-runtime-status] .feature-status { border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; margin: 8px 0; }
.feature-status::before { content: ''; display: inline-block; width: 7px; height: 7px; background: #8d9b92; border-radius: 50%; margin-right: 10px; }
.feature-status[data-state=ready]::before { background: #23906a; }.feature-status[data-state=blocked]::before { background: #bb8737; }
small { display: block; color: var(--muted); overflow-wrap: anywhere; }
svg { max-width: 100%; height: auto; }table { border-collapse: collapse; width: 100%; font-size: 13px; }th,td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px 8px; overflow-wrap: anywhere; }th { min-width: 6rem; color: var(--muted); }
@media (max-width: 760px) {
 body { padding: 24px 16px 48px; }.app-header { gap: 14px; }.brand-mark { flex-basis: 48px; height: 48px; border-radius: 15px; }.header-tag { display: none; }
 section { padding: 22px 16px; border-radius: 16px; }.settings-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }fieldset { padding: 8px 16px 18px; }
 .dashboard-nav { width: 100%; }.dashboard-nav a { padding: 8px 10px; font-size: 12px; flex: 1; text-align: center; }
 .save-bar { flex-wrap: wrap; bottom: 8px; padding: 12px; }.save-bar output { flex-basis: 100%; }.save-bar button { flex: 1; padding: 10px; }
 h2 { font-size: 23px; }.account-bar { gap: 10px; }th { min-width: 0; }th,td { padding: 8px 4px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before { transition: none !important; } }
@media (forced-colors: active) { .toggle-row input[type=checkbox] { appearance: auto; }.toggle-row input::before { display: none; } }

/* Workspace shell and shared visual hierarchy. No remote assets or fonts. */
:root { --surface: #fff; --sidebar: #1c1d31; --shadow: 0 6px 28px #25204406; color-scheme: light; }
body { max-width: 1440px; padding: 36px 48px 72px; background: radial-gradient(ellipse at 92% 0%, #eae6fd 0, transparent 38%); min-height: 100vh; }
.app-header { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.app-header h1 { font-size: 23px; letter-spacing: -.045em; }
.app-header p:last-child { font-size: 12px; }
.brand-mark { flex-basis: 48px; height: 48px; border-radius: 15px; transform: none; background: var(--accent); box-shadow: 0 6px 16px #6855d926; }
.brand-mark span { width: 4px; }
.brand-mark span:nth-child(2) { height: 26px; }
.header-tag { font-size: 9px; letter-spacing: .12em; background: #ffffff80; padding: 8px 14px; }
section { box-shadow: var(--shadow); border-radius: 20px; padding: 32px; }
h2 { font-size: 27px; letter-spacing: -.04em; }
.settings-panel > .eyebrow { margin-bottom: 5px; color: var(--accent); }
.settings-panel > p:nth-of-type(2) { margin-bottom: 22px; }
.settings-panel > p:nth-of-type(3), .settings-panel > p:nth-of-type(4) { background: #f7f7fc; padding: 12px 16px; border: 0; border-radius: 8px; line-height: 1.9; }
.settings-panel > p:nth-of-type(4) { padding-top: 0; margin-top: -12px; }
.settings-grid { gap: 24px; margin-top: 28px; align-items: stretch; }
fieldset { padding: 12px 20px 22px; border-color: #e4e5ef; border-radius: 14px; transition: border-color .18s, box-shadow .18s; }
fieldset:focus-within { border-color: #b8aded; box-shadow: 0 0 0 3px #6855d908; }
legend { font-size: 15px; }
[data-feature] legend::before { width: 34px; height: 34px; border-radius: 10px; }
[data-feature=entry] legend::before { content: '↗'; }
[data-feature=help] { grid-column: 1 / -1; }
fieldset > .toggle-row:first-of-type { padding: 10px 0 16px; margin-bottom: 16px; }
input:not([type=checkbox]):not([type=radio]), textarea, select { background: #fafbfe; border-color: #dfe1ec; border-radius: 8px; }
input:focus, textarea:focus, select:focus { background: #fff; border-color: var(--accent); }
select { margin: 6px 8px 0 8px; }
.toggle-row { min-height: 44px; }
.toggle-row input[type=checkbox] { height: 24px; }
.toggle-row input::before { width: 16px; height: 16px; }
.toggle-row input:disabled { opacity: .5; cursor: not-allowed; }
button { min-height: 40px; padding: 10px 15px; border-radius: 8px; }
button:hover:not(:disabled) { border-color: #bab0e6; background: #f4f1ff; box-shadow: 0 3px 8px #35296d08; }
.primary-button, form button[type=submit] { background: var(--accent); border-color: var(--accent); box-shadow: 0 4px 10px #6855d91a; }
.primary-button:hover:not(:disabled), form button[type=submit]:hover:not(:disabled) { color: white; background: #5542c1; border-color: #5542c1; }
.danger-button:hover:not(:disabled) { color: #a34242; background: #fff0ec; border-color: #e4b9b9; }
.template-preview { border: 1px solid #ebe7f7; border-radius: 10px; padding: 16px; }
.save-bar { bottom: 20px; padding: 14px 18px; border: 1px solid #e2def0; background: #fffffff5; box-shadow: 0 8px 32px #30255412; backdrop-filter: blur(12px); }
.save-bar output { color: #64617a; }
.save-bar .primary-button { padding-inline: 26px; }
.notice { font-size: 13px; border-left-width: 3px; }
[data-runtime-status] .feature-status { padding: 14px 16px; background: #fafbfe; border-color: #ececf4; }
.feature-status[data-state=ready] { color: #227457; background: #f2faf6; }
.feature-status[data-state=blocked] { color: #896128; background: #fffaf0; }
#reports select { margin: 8px 8px 8px 0; }
#reports svg { margin-top: 20px; border-radius: 12px; background: #fafaff; }
.account-bar { border-top: 0; color: var(--muted); padding: 16px 0; }
.account-bar p::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #38a77c; margin-right: 9px; }
.dashboard-nav a { display: flex; align-items: center; gap: 12px; }
.dashboard-nav a::before { content: '◫'; font-size: 20px; line-height: 1; font-weight: 400; }
.dashboard-nav a[href='#integration']::before { content: '◎'; }
.dashboard-nav a[href='#reports']::before { content: '▥'; }
.dashboard-nav a:first-child { background: transparent; box-shadow: none; }
.dashboard-nav a[aria-current] { color: var(--accent); background: white; box-shadow: 0 2px 5px #213a3010; }
.login-panel { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; max-width: 1080px; margin: 56px auto; min-height: 560px; }
.login-introduction { position: relative; display: flex; flex-direction: column; justify-content: center; background: #23213b; color: #fff; padding: 56px 44px; overflow: hidden; }
.login-introduction::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: #8d72f21a; border: 1px solid #b8a4ff18; bottom: -180px; right: -80px; }
.login-introduction .eyebrow { color: #b9a9ff; font-size: 10px; margin-bottom: 24px; }
.login-introduction h2 { white-space: pre-line; font-size: clamp(25px, 3vw, 36px); line-height: 1.65; margin-bottom: 20px; }
.login-introduction p:last-of-type { color: #bfbcd5; white-space: pre-line; line-height: 2; }
.login-waveform { display: flex; height: 84px; gap: 7px; align-items: center; margin-top: 28px; }
.login-waveform span { width: 6px; height: 20px; border-radius: 8px; background: #ad98ff; }
.login-waveform span:nth-child(3n) { height: 40px; background: #d5caff; }
.login-waveform span:nth-child(4n) { height: 64px; }
.login-waveform span:nth-child(5n) { height: 84px; background: #8264e6; }
.login-content { padding: 48px 40px; align-self: center; }
.login-content h2 { font-size: 25px; margin-bottom: 18px; }
.login-content > p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.login-content form { margin-top: 28px; }
.login-content input:not([type=checkbox]):not([type=radio]) { width: 100%; }
.login-content button[type=submit] { width: 100%; margin: 12px 0; min-height: 48px; }
@media (min-width: 1100px) {
 body:has(.dashboard-nav) { padding: 32px 48px 72px 280px; max-width: 1680px; }
 body:has(.dashboard-nav)::before { content: ''; position: fixed; inset: 0 auto 0 0; width: 232px; background: var(--sidebar); z-index: 3; }
 body:has(.dashboard-nav) .brand-mark { position: fixed; z-index: 4; left: 26px; top: 33px; width: 42px; height: 42px; border-radius: 13px; }
 body:has(.dashboard-nav) .app-header::after { content: '配信アシスタント'; position: fixed; left: 80px; top: 44px; z-index: 4; color: #f1efff; font-size: 13px; font-weight: 700; }
 .dashboard-nav { position: fixed; top: 132px; left: 16px; width: 200px; z-index: 4; flex-direction: column; gap: 8px; border-radius: 0; padding: 0; background: transparent; }
 .dashboard-nav::before { content: 'WORKSPACE'; color: #9190ac; font-size: 9px; font-weight: 700; letter-spacing: .15em; padding: 0 16px 12px; }
 .dashboard-nav::after { content: 'YOUR STREAM, IN SYNC'; position: fixed; bottom: 30px; left: 32px; font-size: 9px; letter-spacing: .12em; color: #9190ac; }
 .dashboard-nav a { color: #bdbbd1; padding: 14px 16px; font-size: 12px; border-radius: 10px; }
 .dashboard-nav a:hover { background: #ffffff0b; color: white; }
 .dashboard-nav a[aria-current] { color: #fff; background: #6855d9; box-shadow: 0 5px 14px #00000012; }
 .app-header .eyebrow { margin-bottom: 5px; }
 #app > section:first-of-type { margin-top: 4px; }
}
@media (max-width: 1099px) {
 .dashboard-nav { width: 100%; }
 .dashboard-nav a { flex: 1; justify-content: center; padding-inline: 14px; }
}
@media (max-width: 760px) {
 body { padding: 24px 16px 48px; }
 .app-header { gap: 12px; padding-bottom: 20px; }
 .app-header h1 { font-size: 20px; }
 .app-header .eyebrow { font-size: 8px; }
 section { padding: 24px 16px; }
 .settings-grid { gap: 22px; }
 .dashboard-nav { gap: 2px; }
 .dashboard-nav a { padding: 10px 4px; font-size: 11px; gap: 5px; }
 .dashboard-nav a::before { font-size: 16px; }
 .save-bar { bottom: 8px; padding: 12px; }
 .save-bar .primary-button { padding-inline: 12px; }
 .login-panel { grid-template-columns: 1fr; margin-top: 24px; }
 .login-introduction { padding: 32px 28px; }
 .login-introduction h2 { font-size: 28px; }
 .login-introduction .eyebrow { margin-bottom: 14px; }
 .login-waveform { height: 42px; margin-top: 8px; gap: 6px; }
 .login-waveform span { transform: scaleY(.65); }
 .login-content { padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) {
 .brand-mark, .login-introduction { border: 1px solid CanvasText; }
 .dashboard-nav a[aria-current] { outline: 2px solid Highlight; }
 .toggle-row input[type=checkbox] { appearance: auto; }
}
