:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --paper: #f7f6f1;
  --ink: #241d2d;
  --muted: #625a69;
  --line: #e4dfe6;
  --white: #fff;
  --accent: #563587;
  --deep: #2b2040;
  --soft: #f2eafa;
  --lime: #d7ff88;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, select, input { font: inherit; color: inherit; }
button, a, label:has(input[type="checkbox"]), select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #8d59cd; outline-offset: 3px; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
svg { flex: none; vertical-align: middle; }
.shell { width: min(1120px, calc(100% - 72px)); margin: auto; }
.masthead { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 18px; font-weight: 760; letter-spacing: -.04em; }
.device { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
.device-dot, .eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #976fc0; flex: none; }
.hero { min-height: 283px; position: relative; isolation: isolate; background: #eaddf5; border: 1px solid #ddd0eb; border-radius: 20px; overflow: hidden; }
.hero-copy { padding: 36px 45px 39px; position: relative; z-index: 1; }
.eyebrow { font-size: 11px; letter-spacing: .12em; font-weight: 790; display: flex; align-items: center; gap: 8px; color: #544066; }
.hero h1 { font-size: clamp(48px, 6.5vw, 84px); line-height: .98; margin: 16px 0; letter-spacing: -.079em; font-weight: 770; }
.hero-copy > p:last-child { color: #50445b; font-size: 15px; line-height: 1.55; max-width: 405px; }
.hero-art { position: absolute; z-index: 0; width: 49%; height: 100%; right: 1.7%; top: 0; }
.profiles-section { margin: 28px 0 24px; }
.section-heading { margin-bottom: 11px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.section-heading h2 { font-size: 18px; letter-spacing: -.025em; }
.section-heading > span { font-size: 12px; color: var(--muted); }
.profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.profile-card { border: 1px solid var(--line); background: var(--white); border-radius: 12px; min-width: 0; overflow: clip; }
.profile-card.selected { border-color: #8c68b4; box-shadow: 0 0 0 1px #8c68b4; }
.profile-select { width: 100%; border: none; background: transparent; display: flex; align-items: center; text-align: left; gap: 11px; padding: 13px; }
.profile-select:focus-visible, .card-action:focus-visible { outline-offset: -4px; }
.profile-icon, .block-icon { background: var(--soft); color: var(--accent); border-radius: 9px; width: 36px; height: 36px; display: grid; place-items: center; flex: none; }
.vibrate .profile-icon { color: #43561e; background: #eaf2d7; }
.quiet .profile-icon { color: #435576; background: #e8edf8; }
.profile-title { display: grid; min-width: 0; gap: 2px; }
.profile-title strong { font-size: 16px; letter-spacing: -.03em; }
.profile-title small { color: var(--muted); font-size: 12px; }
.selection-mark { background: var(--accent); border-radius: 50%; width: 17px; height: 17px; display: grid; place-items: center; margin-left: auto; color: white; visibility: hidden; flex: none; }
.selection-mark svg { width: 13px; height: 13px; }
.selected .selection-mark { visibility: visible; }
.card-action { border: 0; border-top: 1px solid var(--line); background: #fcfafd; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 13px; color: var(--accent); font-size: 13px; min-height: 44px; text-decoration: none; font-weight: 720; }
.card-action svg, .button svg { width: 16px; height: 16px; }
.card-action:hover { background: #f0e8f8; }
.card-more { display: none; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 302px; gap: 20px; align-items: start; scroll-margin-top: 12px; }
.editor { background: var(--white); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.editor-head { padding: 22px 24px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor-head h2 { margin-top: 3px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.055em; line-height: 1.1; }
.editor-head > div { min-width: 0; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; border: 1px solid transparent; padding: 8px 13px; text-decoration: none; font-size: 13px; font-weight: 720; }
.primary { background: var(--deep); color: white; }
.primary:hover { background: #493463; }
.secondary { color: var(--ink); background: #fff; border-color: #d9d0e0; }
.secondary:hover { background: var(--soft); }
.tabs { padding: 0 24px; display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tabs button { min-height: 44px; padding: 4px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 14px; font-weight: 650; white-space: nowrap; }
.tabs button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.editor-block { padding: 23px 24px; }
.editor-block + .editor-block { border-top: 1px solid var(--line); }
.block-heading { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px; }
.block-heading h3, .editor-block > h3 { font-size: 18px; letter-spacing: -.025em; }
.block-heading p, .hint, .notice p, .notice li { color: var(--muted); line-height: 1.55; font-size: 13px; }
.hint { margin: 8px 0; }
.editor-block > h3 { margin-bottom: 12px; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
label, legend { font-size: 13px; font-weight: 670; }
select, input:not([type="checkbox"]) { border: 1px solid #d9d0e0; background: #fff; width: 100%; min-width: 0; min-height: 44px; border-radius: 8px; padding: 7px 10px; font-size: 16px; }
label + select, label + input, label > select, label > input:not([type="checkbox"]) { margin-top: 5px; }
select { padding-right: 12px; }
.toggle-line { display: flex; align-items: center; gap: 14px; justify-content: space-between; min-height: 52px; margin-top: 10px; padding: 6px 0; cursor: pointer; }
.toggle-line strong, .toggle-line small { display: block; }
.toggle-line small { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 3px; line-height: 1.45; }
input[type="checkbox"] { accent-color: var(--accent); }
.switch { appearance: none; flex: none; width: 42px; height: 24px; margin: 0; border: 1px solid #a09aa6; border-radius: 16px; position: relative; background: #eae6ed; }
.switch::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: #fff; position: absolute; top: 3px; left: 3px; box-shadow: 0 1px 2px #241d2d55; }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::before { left: 21px; }
.social-list, .app-list, .schedule-list { list-style: none; padding: 0; margin: 9px 0 0; }
.social-list li, .app-list li { border-top: 1px solid #eeeaf0; }
.social-list li { padding: 6px 0 9px; }
.app-line { display: flex; align-items: center; gap: 8px; min-height: 52px; font-size: 14px; }
.app-line strong, .app-name { overflow-wrap: anywhere; min-width: 0; }
.app-badge { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.app-badge.pink { background: #f9e5eb; color: #893654; }
.app-badge.green { background: #e7f3de; color: #3b601f; }
.app-badge.slate { background: #e8e7ed; color: #3b3746; }
.app-badge.yellow { background: #fff4cd; color: #694d0c; }
.app-badge.violet { background: #efe6ff; color: var(--accent); }
.app-badge.blue { background: #e7eefa; color: #354c8b; }
.app-toggle { min-height: 44px; min-width: 76px; margin-left: auto; border: 1px solid #dfd9e4; background: #f6f3f7; border-radius: 8px; padding: 5px 9px; font-size: 12px; font-weight: 700; flex: none; }
.app-toggle.is-allowed { color: #375221; background: #edf4e7; border-color: #c4d6b5; }
.app-toggle:hover { border-color: #805ca7; }
.test-line { display: flex; gap: 8px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.test-line select { width: min(75%, 340px); font-size: 16px; margin: 0; }
.minor-label { display: flex; align-items: center; color: var(--muted); font-size: 11px; min-height: 23px; cursor: pointer; }
.inline-form { margin-top: 16px; }
.inline-form > div { display: flex; gap: 8px; margin-top: 5px; }
.inline-form .button { flex: none; }
.form-message { font-size: 13px; color: #962830; margin-top: 8px; }
.schedule-list li { display: flex; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 7px; font-size: 13px; }
.schedule-list li > div { margin-right: auto; overflow-wrap: anywhere; min-width: 0; }
.schedule-list li strong, .schedule-list li small { display: block; }
.schedule-list li small { color: var(--muted); margin-top: 3px; }
.empty-schedule { background: #faf8fc; }
.bare { background: transparent; border: 0; min-height: 44px; padding: 4px; color: var(--accent); font-size: 12px; font-weight: 650; }
.bare.remove { color: #812c40; }
#trigger-form > label:not(:first-child), .schedule-time { margin-top: 12px; }
#trigger-form > label { display: block; }
.day-field { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.days { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.days label { position: relative; min-width: 39px; }
.days input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.days span { display: grid; place-items: center; min-height: 44px; padding: 0 5px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); pointer-events: none; }
.days input:checked + span { background: var(--soft); border-color: #ac91cc; color: var(--accent); }
.days input:focus-visible + span { outline: 3px solid #8d59cd; outline-offset: 2px; }
.form-actions { display: flex; margin-top: 13px; gap: 7px; }
.notice { margin: 12px 0; padding: 12px; border: 1px solid #ded2ec; background: #f7f1fc; border-radius: 8px; font-size: 13px; }
.notice ul { margin: 5px 0; padding-left: 18px; }
.notice.warn { background: #fff4df; border-color: #ebcc96; }
.notice p { margin-top: 4px; }
.checklist { margin: 13px 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist input { width: 18px; height: 18px; flex: none; margin: 3px 0; cursor: pointer; }
.checklist label { display: inline-block; font-size: 14px; cursor: pointer; }
.checklist p { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.sidebar { display: grid; gap: 13px; }
.setup-card { padding: 19px; border-radius: 14px; background: var(--deep); color: #fff; }
.setup-card .eyebrow { color: #e3d3f3; }
.setup-card .eyebrow span { background: var(--lime); }
.setup-card h2 { margin-top: 8px; font-size: 23px; letter-spacing: -.035em; }
.setup-card > p:not(.eyebrow) { margin-top: 5px; color: #e1d6ea; font-size: 13px; line-height: 1.6; }
.progress-caption { margin: 20px 0 3px; display: flex; justify-content: space-between; gap: 6px; color: #e1d6ea; font-size: 12px; }
.progress-caption strong { color: var(--lime); }
progress { width: 100%; height: 7px; border: 0; border-radius: 8px; overflow: hidden; appearance: none; background: #544261; accent-color: var(--lime); }
progress::-webkit-progress-bar { background: #544261; }
progress::-webkit-progress-value { background: var(--lime); }
progress::-moz-progress-bar { background: var(--lime); }
.sidebar-link { width: 100%; justify-content: space-between; margin-top: 12px; color: var(--white); background: #4b365e; border-color: #6c5480; }
.sidebar-link:hover { background: #604775; }
.privacy-card { display: flex; gap: 9px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf7; }
.privacy-card h3 { font-size: 14px; }
.privacy-card p { line-height: 1.5; margin-top: 4px; color: var(--muted); font-size: 12px; }
.footer { margin: 27px 0 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 13px; color: var(--muted); font-size: 11px; }
.footer span span { color: #8659a3; margin: 0 3px; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); padding: 12px 16px; border-radius: 9px; background: var(--deep); color: #fff; box-shadow: 0 8px 30px #21113139; font-size: 14px; }
@media (max-width: 860px) { .shell { width: calc(100% - 40px); } .workspace { grid-template-columns: minmax(0, 1fr) 246px; gap: 12px; } }
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .masthead { min-height: 62px; }
  .hero { min-height: 0; border-radius: 14px; }
  .hero-copy { padding: 23px 18px; }
  .hero h1 { font-size: clamp(41px, 11vw, 60px); margin: 13px 0 11px; }
  .hero-art { width: 56%; right: -17%; top: -21%; opacity: .34; }
  .hero-copy > p:last-child { font-size: 13px; max-width: 270px; }
  .profiles-section { margin: 19px 0 17px; }
  .profiles { gap: 7px; }
  .profile-select { position: relative; align-items: flex-start; flex-direction: column; gap: 5px; padding: 8px; }
  .profile-icon { width: 30px; height: 30px; }
  .profile-icon svg { width: 17px; height: 17px; }
  .profile-title { gap: 0; }
  .profile-title strong { font-size: 14px; }
  .profile-title small { font-size: 11px; }
  .selection-mark { position: absolute; right: 6px; top: 8px; width: 15px; height: 15px; }
  .card-action { padding: 0 8px; font-size: 12px; }
  .editor-head { padding: 16px 13px 8px; }
  .editor-head .button { font-size: 12px; padding: 5px 8px; }
  .tabs { padding: 0 13px; gap: 17px; }
  .tabs button { font-size: 13px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .editor-block { padding: 16px 13px; }
  .setup-card { padding: 16px; }
}
@media (max-width: 359px) {
  .shell { width: calc(100% - 22px); }
  .wordmark { font-size: 16px; }
  .device { font-size: 10px; }
}
