/* NoName Macro: the supplied smiley and title card define the visual identity.
   Layout and pointer/fullscreen mechanics remain in style.css. */
:root {
  color-scheme: dark;
  --paper: #0c0e10;
  --surface: #15181b;
  --slate: #0b0d0f;
  --ink: #f4f5f6;
  --muted: #a7adb4;
  --line: #30353a;
  --accent: #45ed59;
  --accent-dark: #79f387;
  --pale: #202a23;
  --green: #85e79d;
  --green-bg: #1c3024;
  --danger: #ff9397;
  --coral: #ff7074;
  --radius: 12px;
  --control-bg: #202428;
  --control-hover: #2a3035;
  --control-border: #6f7881;
  --ui-font: Inter, 'Segoe UI', sans-serif;
  font-family: var(--ui-font);
}
body { font-size:15px; }
.button.discord-signin { color:#fff; background:#5865F2; border:1px solid transparent; border-radius:999px; padding:13px 25px; gap:10px; }
.button.discord-signin:hover { background:#4752c4; }
.discord-signin img { width:110px; height:auto; }
.public-footer { position:relative; }
.footer-egg { position:absolute; left:50%; transform:translateX(-50%); font-size:11px; color:var(--muted); }
@media(max-width:600px) { .public-footer { flex-wrap:wrap; } .footer-egg { position:static; transform:none; order:3; width:100%; text-align:center; } }
body.public { min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; }
.public-header,.public-main,.public-footer { width:100%; }
.public-main { flex:1; }
.public-footer { margin-top:auto; margin-bottom:0; }
.profile-link:hover,.profile-link[aria-current] { background:var(--control-bg); border-radius:8px; }
.pc-name { font:inherit; color:inherit; background:none; border:0; padding:8px 0; text-align:left; min-height:44px; overflow-wrap:anywhere; cursor:pointer; }
.pc-name::after { content:'Edit'; color:var(--muted); font-size:11px; font-weight:400; margin-left:10px; letter-spacing:0; }
.pc-name:hover { color:var(--accent); }
.stats-note:empty { display:none; }
#rename-pc { background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:12px; padding:28px; max-width:460px; width:calc(100% - 32px); }
#rename-pc::backdrop { background:#000b; }
#rename-form { display:grid; gap:16px; }
#rename-form p { font-size:14px; }
#rename-name { width:100%; min-height:46px; padding:10px 12px; border:1px solid var(--control-border); border-radius:7px; background:var(--paper); color:var(--ink); }
#rename-feedback:empty { display:none; }
#rename-feedback { color:var(--danger); }
#rename-form .macro-actions { justify-content:flex-end; }
.macro-hero-image { aspect-ratio:auto!important; }
.visual-guide,.privacy-guide { max-width:1120px; }
.setup-flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding:0; margin:36px 0 24px; list-style:none; }
.setup-flow>li { padding:24px; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.step-top { display:flex; align-items:center; gap:12px; font-size:12px; color:var(--muted); }
.step-top .guide-number { margin:0; color:var(--accent); background:var(--pale); }
.step-picture { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; height:168px; margin:24px 0; border:1px solid var(--line); border-radius:9px; background:var(--paper); }
.step-picture>.icon { width:36px; height:36px; color:var(--accent); }
.example-code { font:600 14px ui-monospace,monospace; letter-spacing:.04em; }
.example-action { font-size:12px; padding:7px 10px; border:1px solid var(--control-border); border-radius:5px; }
.picture-caption { color:var(--muted); font-size:11px; }
.setup-flow h2 { font-size:21px; margin:0 0 14px; }
.setup-flow p { font-size:14px; line-height:1.75; margin:12px 0 0; }
.setup-flow strong { color:var(--ink); font-weight:550; }
.setup-bottom { display:flex; justify-content:space-between; gap:20px; align-items:center; margin:24px 0 40px; }
.setup-bottom p { font-size:14px; }
.setup-bottom .icon { color:var(--accent); margin-right:8px; }
.guide-questions { border-top:1px solid var(--line); margin:28px 0; }
.guide-questions details { border-bottom:1px solid var(--line); padding:8px 0; }
.guide-questions summary { padding:14px 0; min-height:44px; font-size:15px; font-weight:600; }
.guide-questions p { font-size:14px; line-height:1.8; margin:8px 0 18px; max-width:80ch; }
.privacy-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:36px 0 42px; }
.privacy-summary section { padding:22px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.privacy-summary .icon { color:var(--accent); width:28px; height:28px; }
.privacy-summary h2 { font-size:18px; margin:18px 0 12px; }
.privacy-summary p { font-size:14px; line-height:1.75; }
.privacy-guide>h2 { font-size:23px; margin-bottom:20px; }
.privacy-table { width:100%; border-collapse:collapse; font-size:14px; text-align:left; }
.privacy-table th,.privacy-table td { padding:16px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.privacy-table th { font-weight:550; }
.privacy-table td { color:var(--muted); }
.privacy-table thead { background:var(--surface); }
.privacy-note { font-size:12px; margin-top:18px; max-width:85ch; }
@media(max-width:1000px) { .setup-flow { gap:12px; } .setup-flow>li { padding:18px; } }
@media(max-width:800px) {
  .signed-in .sidebar nav { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  .sidebar-bottom .identity { display:flex; margin:0; padding:4px; border:0; }
  .sidebar-bottom .identity>div { display:none; }
  .sidebar-bottom form { display:none; }
  .sidebar-bottom .avatar { width:40px; height:40px; }
  .setup-flow,.privacy-summary { grid-template-columns:1fr; }
  .step-picture { height:145px; }
  .setup-bottom { align-items:flex-start; flex-direction:column; }
  .privacy-table th,.privacy-table td { padding:14px 8px; }
}
h1,h2,h3 { letter-spacing:-.035em; }
button:disabled { cursor:not-allowed; opacity:.48; }
.button { border-radius:7px; box-shadow:none; font-weight:600; }
.button.primary { color:#0b210e; background:var(--accent); box-shadow:none; }
.button.primary:hover { background:#74f383; }
.button.secondary { background:var(--control-bg); border-color:var(--control-border); }
.button.secondary:hover { background:var(--control-hover); border-color:#89929c; }
.button.danger { color:#ffb8ba; border-color:#a95a60; background:#342022; }
.button.danger:hover { background:#4c282c; border-color:var(--danger); }
.button:active:not(:disabled) { transform:none; filter:brightness(.85); }
.button.text:hover,.inline-link:hover { color:var(--ink); }
.status { color:var(--muted); background:var(--control-bg); }
.brand { font-size:20px; gap:11px; letter-spacing:-.045em; }
.brand-mark,.sidebar .brand-mark,.public-header .brand-mark {
  display:block; width:42px; height:42px; flex:none; object-fit:contain;
  border-radius:11px; background:transparent;
}
.brand-sub { color:var(--muted); font-size:11px; font-weight:450; margin-top:6px; letter-spacing:.01em; }
.sidebar { width:230px; background:#101214; border-right:1px solid var(--line); padding:30px 16px 18px; }
.sidebar .brand { padding:0 8px; font-size:18px; }
.sidebar .brand>span { white-space:nowrap; }
.sidebar .brand-sub,.identity span:not(.avatar) { color:var(--muted); }
.workspace-label { color:var(--muted); margin:44px 12px 12px; font-size:12px; }
.sidebar nav { gap:5px; }
.sidebar nav a,.privacy-link,.signout { color:#b9bfc5; font-size:13px; border-radius:7px; }
.sidebar nav a:hover,.privacy-link:hover,.signout:hover { background:var(--control-bg); color:var(--ink); }
.sidebar nav a[aria-current] { background:#252b27; color:var(--ink); }
.sidebar nav a[aria-current] .icon { color:var(--accent); }
.identity { border-color:var(--line); padding:18px 8px 12px; }
.avatar { background:#30363b; color:var(--ink); }
.workspace { margin-left:230px; padding:0 40px 36px; max-width:1650px; }
.workspace-top { min-height:68px; font-size:13px; }
.workspace-help { display:flex; align-items:center; gap:8px; min-height:44px; }
.workspace-help .icon { width:17px; height:17px; }
.workspace-help:hover { color:var(--ink); }
.dashboard-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:32px; padding:30px 0 32px; }
.dashboard-heading .welcome { color:var(--muted); font-size:14px; margin:0 0 16px; }
.dashboard-heading .dashboard-intro { margin:0 0 4px; font-size:13px; line-height:1.8; text-align:right; max-width:28ch; }
.brand-tagline,.hero h1.brand-tagline,.page-heading .dashboard-tagline {
  font-family:var(--ui-font); font-weight:800; font-style:normal;
  color:var(--ink); line-height:1.12; letter-spacing:-.055em;
  border:0; padding:0; margin:0; max-width:none; text-wrap:initial;
}
.brand-tagline>span,.dashboard-tagline>span { display:block; }
.brand-tagline em,.dashboard-tagline em { font:inherit; color:var(--coral); }
.page-heading .dashboard-tagline { font-size:clamp(30px,3.15vw,47px); }
.panel { border-radius:var(--radius); padding:24px; box-shadow:none; }
.section-heading { justify-content:space-between; margin-bottom:16px; }
.section-heading h2 { font-size:19px; font-weight:650; }
.section-heading p { margin-top:6px; font-size:13px; max-width:70ch; }
.section-symbol { display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--line); color:var(--muted); border-radius:9px; flex:none; }
.pcs-panel { margin-bottom:28px; }
.pcs-panel .live-status { font-size:12px; margin:0 0 12px; min-height:20px; }
.device-row { padding:18px 0; gap:20px; }
.device-info h3 { font-size:16px; font-weight:600; }
.device-info p { font-size:12px; max-width:65ch; }
.device-info h3::before { content:''; display:inline-block; width:8px; height:8px; border:1px solid #98a2ad; border-radius:50%; margin-right:10px; }
.stream-empty>.icon { color:var(--muted); }
.stream-empty h3 { font-size:22px; }
.control-workspace>.section-heading { margin-bottom:8px; }
.control-workspace>.field-note { font-size:12px; }
.macro-list { margin:18px 0 12px; gap:20px; }
.macro-card { border-radius:var(--radius); background:var(--surface); padding:24px; }
.macro-card>.section-heading { border-bottom:1px solid var(--line); padding-bottom:18px; margin:0 0 22px; align-items:flex-start; }
.macro-card .section-heading h3 { font-size:16px; }
.macro-card .section-heading p { font-size:12px; line-height:1.6; }
.macro-card .section-heading .button { min-width:74px; color:var(--muted); }
.macro-card-body { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:32px; }
.control-group-title { font-size:13px; font-weight:600; letter-spacing:0; margin:0 0 12px; color:var(--muted); }
.macro-run-stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border:1px solid var(--line); border-radius:9px; overflow:hidden; margin:0; }
.macro-run-stats>div { border:0; border-radius:0; background:transparent; padding:16px; }
.macro-run-stats>div:nth-child(-n+3) { border-bottom:1px solid var(--line); }
.macro-run-stats>div:not(:nth-child(3n)) { border-right:1px solid var(--line); }
.macro-run-stats dt { font-size:12px; margin-bottom:8px; }
.macro-run-stats dd { font-size:clamp(19px,1.8vw,26px); font-weight:650; letter-spacing:-.035em; }
.stats-details { margin-top:10px; font-size:12px; color:var(--muted); }
.stats-details summary { min-height:44px; display:list-item; align-content:center; cursor:pointer; }
.stats-note { margin:12px 0 0!important; line-height:1.7; font-size:12px; }
.actions-pane .macro-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.actions-pane .button { min-height:44px; padding:9px 10px; font-size:13px; }
.run-actions .button:last-child { grid-column:1/-1; }
.recovery-title { margin-top:20px; }
.recovery-actions .button:last-child { grid-column:1/-1; }
.command-result { font-size:12px; padding:11px 14px; margin-top:22px; border:1px solid var(--line); background:#101315; }
.command-result[data-state=idle] { color:var(--muted); }
.control-error:empty { display:none; }
.macro-log { margin-top:14px; padding-top:4px; }
.macro-log summary { font-size:13px; }
.macro-log .field-note { font-size:12px; }
.macro-log-lines { color:#d0d7dc; border:1px solid var(--line); border-radius:6px; background:#0e1113; }
.control-footnote { max-width:80ch; }
.live-note { max-width:900px; padding:20px 0; margin:12px 0 0; border-top:1px solid var(--line); gap:10px; }
.live-note>.icon { width:17px; height:17px; color:var(--muted); }
.live-note p { font-size:12px; }
.live-note a { text-decoration:underline; text-underline-offset:3px; color:var(--ink); }
.pairing-help { padding:18px; background:var(--surface); border:1px solid var(--line); border-radius:10px; }
.pairing-help summary { color:var(--ink); }
.pair-code-row input,.deletion input { background:var(--paper); border:1px solid var(--control-border); border-radius:7px; color:var(--ink); padding:10px 12px; }
.notice { background:var(--control-bg); }
.guide p,.prose p { max-width:75ch; }
.auth-card { box-shadow:none; border-radius:12px; }
.auth-story .brand-mark { width:60px; height:60px; }
.public-header { padding-block:24px; }
.public-main { padding-top:20px; }
.hero { grid-template-columns:1fr; gap:44px; padding:36px 0 56px; }
.hero-copy { text-align:center; padding:0; }
.hero h1.brand-tagline { font-size:clamp(38px,5.5vw,80px); margin:0 0 26px; }
.hero-copy>p { max-width:53ch; margin:auto; font-size:16px; }
.hero-actions { justify-content:center; margin-top:26px; gap:24px; }
.identity-note { justify-content:center; }
.hero-visual { max-width:1000px; width:100%; margin:auto; border:1px solid var(--line); border-radius:12px; box-shadow:none; background:var(--surface); }
.scene-label { color:var(--ink); padding:20px 24px 0; }
.scene-label span,.scene-number { color:var(--muted); }
.macro-hero-image { margin:20px 0 0; }
.scene-footer { border-color:var(--line); color:var(--muted); padding:14px 24px; }
.release-step h3 { margin-top:0; }
.intro-title h2 { font-size:23px; }
.intro-strip { gap:26px; }
.public-footer { font-size:12px; }
#control-confirm { box-shadow:0 24px 80px #0008; }
#control-confirm::backdrop { background:#000b; }
.video-stage,.video-stage video { background:#050607; }
#remote-trackpad { border-color:#65716a; border-radius:8px; }
#remote-trackpad.gesturing { background:#24392a; }
#remote-inputs { border-color:var(--line); }
#remote-keypad .input-held,#pointer-buttons .input-held { color:#09220d; box-shadow:none; }
.input-help summary { min-height:44px; }
.trackpad-tools select,#remote-click-mode { border-color:var(--control-border); }
.control-scroll-hint { background:#1d2225; }
.landscape-hint { border-left-color:var(--line); background:var(--surface); }
@media(min-width:1600px) { .workspace { margin-inline:auto; padding-left:270px; max-width:1750px; } }
@media(max-width:1100px) {
  .sidebar { width:210px; padding-inline:12px; }
  .sidebar .brand { font-size:16.5px; gap:9px; }
  .workspace { margin-left:210px; padding-inline:24px; }
  .dashboard-intro { display:none; }
  .macro-card-body { grid-template-columns:1fr; gap:24px; }
  .macro-run-stats dd { font-size:25px; }
  .recovery-actions .button:last-child { grid-column:auto; }
  .actions-pane .recovery-actions { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:800px) {
  .sidebar { width:100%; position:static; padding:18px 24px 12px; border-right:0; border-bottom:1px solid var(--line); gap:16px; }
  .sidebar .brand { padding:0; font-size:19px; }
  .sidebar nav { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  .workspace { margin:0; padding:0 24px 28px; }
  .workspace-top { min-height:58px; }
  .dashboard-heading { padding:24px 0 28px; }
  .page-heading .dashboard-tagline { font-size:clamp(30px,5.5vw,43px); }
  .macro-card-body { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; }
  .macro-run-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .macro-run-stats>div { border:0!important; border-radius:0; padding:12px; }
  .macro-run-stats>div:not(:nth-last-child(-n+2)) { border-bottom:1px solid var(--line)!important; }
  .macro-run-stats>div:nth-child(odd) { border-right:1px solid var(--line)!important; }
  .macro-run-stats dd { font-size:22px; }
  .actions-pane .recovery-actions { grid-template-columns:1fr 1fr; }
  .recovery-actions .button:last-child { grid-column:1/-1; }
}
@media(max-width:600px) {
  .sidebar { padding:16px 16px 10px; }
  .signed-in .sidebar nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .sidebar nav a { gap:6px; padding:10px 5px; font-size:12px; }
  .sidebar nav .icon { width:17px; height:17px; }
  .sidebar .brand-mark { width:36px; height:36px; border-radius:9px; }
  .workspace { padding-inline:16px; }
  .workspace-top { min-height:52px; }
  .workspace-help { font-size:12px; }
  .page-heading .dashboard-tagline { font-size:clamp(27px,7.3vw,42px); }
  .dashboard-heading .welcome { font-size:13px; margin-bottom:14px; }
  .landscape-hint { font-size:12px; margin:14px 0 0; padding:10px 12px; border-radius:7px; }
  .panel,.macro-card { padding:18px; border-radius:10px; }
  .section-heading { align-items:flex-start; }
  .section-heading p { font-size:12px; }
  .section-symbol { display:none; }
  .pcs-panel .live-status { margin-bottom:6px; }
  .device-row { gap:16px; }
  .share-actions { gap:8px; }
  .macro-card-body { grid-template-columns:1fr; gap:20px; }
  .macro-card>.section-heading { gap:12px; flex-wrap:nowrap; }
  .macro-card .section-heading>.button { width:auto; }
  .actions-pane .recovery-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .macro-run-stats dd { font-size:23px; }
  .macro-card .section-heading p { overflow-wrap:anywhere; }
  .hero { padding-top:18px; gap:30px; }
  .hero h1.brand-tagline { font-size:clamp(30px,7.5vw,44px); }
  .hero-copy>p { font-size:15px; }
  .hero-actions { align-items:center; }
  .hero-actions .button.primary { width:auto; }
  .public-header { padding:18px 16px; gap:12px; }
  .public-header .brand { font-size:18px; gap:8px; }
  .public-header .brand-mark { width:35px; height:35px; }
  .public-header nav>a:not(.button) { display:none; }
  .scene-label { padding:16px 16px 0; }
  .scene-footer { padding:14px 16px; }
  .intro-strip { grid-template-columns:1fr; }
  .intro-title,.release-step:last-child { grid-column:auto; }
  .release-step { padding:0; border:0; }
}
@media(max-width:1100px) {
  .dashboard-heading { flex-direction:column; align-items:flex-start; gap:14px; }
  .dashboard-heading .dashboard-intro { display:block; text-align:left; max-width:36ch; margin:0; }
}

/* Feedback stays on interactive controls; video input targets never shift. */
.button,.sidebar nav a,.privacy-link,.signout,.profile-link,.public-header nav a,summary { transition:background-color 160ms ease,border-color 160ms ease,color 160ms ease,box-shadow 160ms ease; }
.button:focus-visible { outline:3px solid var(--ink); outline-offset:4px; }
.button.discord-signin { box-shadow:none; }
.button.discord-signin:focus-visible { outline-color:#aeb5ff; }
.button.secondary:hover:not(:disabled) { background:#343c44; border-color:#b4bec8; }
.button.text:hover:not(:disabled) { background:var(--control-bg); }
.public-header nav a:not(.button):hover { color:var(--accent); }
.inline-link:hover,.workspace-help:hover,.public-footer a:hover { color:var(--accent); text-decoration:underline; text-underline-offset:4px; }
.guide-questions summary:hover,.input-help summary:hover { color:var(--accent); }
.sidebar nav a:active,.profile-link:active { background:var(--control-hover); }
@media(prefers-reduced-motion:reduce) { .button,.sidebar nav a,.privacy-link,.signout,.profile-link,.public-header nav a,summary { transition:none; } }

#pairing-help[hidden],.macro-card-body[hidden],.macro-log[hidden],.command-result[hidden] { display:none!important; }
#pair-next { color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:28px; max-width:660px; width:calc(100% - 32px); }
#pair-next::backdrop { background:#000b; }
#pair-next p { margin:16px 0; line-height:1.7; }
#pair-next img { display:block; width:100%; height:auto; margin:20px 0; }
#pair-next form { display:flex; justify-content:flex-end; }
