#borPrototype {
    color-scheme: light dark;
    --bor-bg: light-dark(#eef4fb, #050f25);
    --bor-rail: light-dark(#e4edf8, #07142d);
    --bor-panel: light-dark(#ffffff, #0d2247);
    --bor-panel-2: light-dark(#f5f8fd, #102a55);
    --bor-line: light-dark(#b9cce3, #284c79);
    --bor-text: light-dark(#10213d, #edf4ff);
    --bor-muted: light-dark(#526985, #aebdd4);
    --bor-gold: light-dark(#9a6d00, #e0b41f);
    --bor-gold-ink: light-dark(#ffffff, #211900);
    --bor-blue: light-dark(#176a9d, #67c9ff);
    --bor-teal: light-dark(#087d75, #5fe0cf);
    --bor-orange: light-dark(#ad5b18, #ffae67);
    --bor-green: light-dark(#207740, #74df95);
    --bor-danger: light-dark(#a83939, #ff8888);
    --bor-shadow: light-dark(0 20px 55px rgba(32, 61, 94, .13), 0 24px 70px rgba(0, 0, 0, .28));
    color: var(--bor-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--font-size-base, 16px);
    width: 100%;
  }

  #borPrototype * { box-sizing: border-box; }
  #borPrototype button,
  #borPrototype input,
  #borPrototype select,
  #borPrototype textarea { font: inherit; }

  #borPrototype button { color: inherit; }

  #borPrototype .bor-app {
    width: 100%;
    overflow: hidden;
    background: var(--bor-bg);
    border: 1px solid var(--bor-line);
    border-radius: 22px;
    box-shadow: var(--bor-shadow);
  }

  #borPrototype .bor-topbar {
    display: grid;
    grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px 18px;
    background: var(--bor-rail);
    border-bottom: 1px solid var(--bor-line);
  }

  #borPrototype .bor-brand,
  #borPrototype .bor-top-actions,
  #borPrototype .bor-inline,
  #borPrototype .bor-control-row,
  #borPrototype .bor-lenses,
  #borPrototype .bor-actions,
  #borPrototype .bor-meta,
  #borPrototype .bor-channel-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  #borPrototype .bor-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--bor-line);
    border-radius: 50%;
    color: var(--bor-gold);
  }

  #borPrototype .bor-wordmark {
    letter-spacing: .22em;
    font-weight: 500;
  }

  #borPrototype .bor-wordmark small {
    color: var(--bor-muted);
    font-size: .72em;
    letter-spacing: .14em;
  }

  #borPrototype .bor-crumb {
    color: var(--bor-muted);
    min-width: 0;
  }

  #borPrototype .bor-crumb strong { color: var(--bor-text); }

  #borPrototype .bor-shell {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
  }

  #borPrototype .bor-sidebar {
    background: var(--bor-rail);
    border-right: 1px solid var(--bor-line);
    padding: 16px 12px 22px;
  }

  #borPrototype .bor-weather {
    padding: 12px;
    margin-bottom: 18px;
    background: var(--bor-panel);
    border: 1px solid var(--bor-line);
    border-radius: 14px;
  }

  #borPrototype .bor-weather strong,
  #borPrototype .bor-weather span { display: block; }
  #borPrototype .bor-weather span { margin-top: 4px; color: var(--bor-muted); }

  #borPrototype .bor-menu-label,
  #borPrototype .bor-kicker {
    color: var(--bor-gold);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  #borPrototype .bor-menu-label { margin: 20px 10px 7px; color: var(--bor-muted); }

  #borPrototype .bor-menu-button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    text-align: left;
  }

  #borPrototype .bor-menu-button:hover { background: var(--bor-panel-2); }
  #borPrototype .bor-menu-button[aria-current="page"] {
    background: var(--bor-panel);
    border-color: var(--bor-line);
    color: var(--bor-gold);
  }

  #borPrototype .bor-main { min-width: 0; padding: 22px; }

  #borPrototype .bor-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
  }

  #borPrototype h1,
  #borPrototype h2,
  #borPrototype h3,
  #borPrototype p { margin-top: 0; }

  #borPrototype h1 { margin-bottom: 7px; font-size: 2rem; font-weight: 500; }
  #borPrototype h2 { margin-bottom: 6px; font-size: 1.28rem; font-weight: 500; }
  #borPrototype h3 { margin-bottom: 5px; font-size: 1rem; font-weight: 500; }
  #borPrototype p { color: var(--bor-muted); line-height: 1.55; }

  #borPrototype .bor-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    padding: 8px 11px;
    border: 1px solid color-mix(in srgb, var(--bor-teal) 55%, var(--bor-line));
    border-radius: 999px;
    color: var(--bor-teal);
  }

  #borPrototype .bor-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bor-teal);
  }

  #borPrototype .bor-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    background: var(--bor-panel);
    border: 1px solid var(--bor-line);
    border-radius: 14px;
  }

  #borPrototype .bor-tab {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    color: var(--bor-muted);
  }

  #borPrototype .bor-tab[aria-selected="true"] {
    background: var(--bor-gold);
    color: var(--bor-gold-ink);
  }

  #borPrototype .bor-section,
  #borPrototype .bor-panel,
  #borPrototype .bor-detail,
  #borPrototype .bor-setting {
    background: var(--bor-panel);
    border: 1px solid var(--bor-line);
    border-radius: 15px;
  }

  #borPrototype .bor-section { overflow: hidden; margin-bottom: 16px; }
  #borPrototype .bor-section-head { padding: 16px; border-bottom: 1px solid var(--bor-line); }
  #borPrototype .bor-section-body { padding: 16px; }
  #borPrototype .bor-section-head p { margin-bottom: 0; }

  #borPrototype .bor-calendar-head {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 16px;
    align-items: center;
  }

  #borPrototype .bor-segment {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72px, 1fr);
    padding: 3px;
    background: var(--bor-bg);
    border: 1px solid var(--bor-line);
    border-radius: 12px;
  }

  #borPrototype .bor-segment button,
  #borPrototype .bor-lens,
  #borPrototype .bor-chip,
  #borPrototype .bor-button {
    min-height: 40px;
    border-radius: 9px;
    cursor: pointer;
  }

  #borPrototype .bor-segment button {
    border: 0;
    background: transparent;
    color: var(--bor-muted);
  }

  #borPrototype .bor-segment button[aria-pressed="true"] {
    background: var(--bor-gold);
    color: var(--bor-gold-ink);
  }

  #borPrototype .bor-button {
    padding: 9px 14px;
    border: 1px solid var(--bor-line);
    background: var(--bor-panel-2);
  }

  #borPrototype .bor-button.is-primary {
    border-color: var(--bor-gold);
    background: var(--bor-gold);
    color: var(--bor-gold-ink);
  }

  #borPrototype .bor-button.is-teal {
    border-color: var(--bor-teal);
    background: color-mix(in srgb, var(--bor-teal) 12%, var(--bor-panel));
    color: var(--bor-teal);
  }

  #borPrototype .bor-button.is-small { min-height: 34px; padding: 6px 10px; }
  #borPrototype .bor-button.is-block { width: 100%; }

  #borPrototype .bor-lenses { padding: 12px 16px; border-bottom: 1px solid var(--bor-line); }

  #borPrototype .bor-lens,
  #borPrototype .bor-chip {
    padding: 7px 11px;
    border: 1px solid var(--bor-line);
    background: transparent;
    color: var(--bor-muted);
  }

  #borPrototype .bor-lens[aria-pressed="true"],
  #borPrototype .bor-chip[aria-pressed="true"] {
    border-color: var(--bor-gold);
    color: var(--bor-gold);
    background: color-mix(in srgb, var(--bor-gold) 10%, var(--bor-panel));
  }

  #borPrototype .bor-calendar {
    display: grid;
    grid-template-columns: 62px repeat(7, minmax(100px, 1fr));
    min-width: 762px;
  }

  #borPrototype .bor-calendar-wrap { overflow-x: auto; }

  #borPrototype .bor-cal-cell {
    min-height: 94px;
    padding: 8px;
    border-right: 1px solid var(--bor-line);
    border-bottom: 1px solid var(--bor-line);
  }

  #borPrototype .bor-cal-cell.is-head {
    min-height: 72px;
    text-align: center;
    color: var(--bor-muted);
    background: var(--bor-panel-2);
    border-top: 1px solid var(--bor-line);
  }

  #borPrototype .bor-cal-cell.is-head.is-current {
    color: var(--bor-gold);
    background: color-mix(in srgb, var(--bor-gold) 8%, var(--bor-panel-2));
    box-shadow: inset 0 3px 0 var(--bor-gold);
  }

  #borPrototype .bor-cal-cell.is-head strong { display: block; margin-top: 4px; color: var(--bor-text); font-size: 1.25rem; }
  #borPrototype .bor-cal-cell.is-time { color: var(--bor-muted); font-size: .85rem; }

  #borPrototype .bor-cal-item {
    width: 100%;
    min-height: 76px;
    padding: 9px;
    border: 1px solid var(--bor-line);
    border-left: 4px solid var(--bor-blue);
    border-radius: 10px;
    background: var(--bor-panel-2);
    cursor: pointer;
    text-align: left;
  }

  #borPrototype .bor-cal-item strong,
  #borPrototype .bor-cal-item span { display: block; }
  #borPrototype .bor-cal-item span { margin-top: 5px; color: var(--bor-muted); font-size: .82rem; line-height: 1.35; }
  #borPrototype .bor-cal-item[data-kind="demand"] { border-left-color: var(--bor-gold); }
  #borPrototype .bor-cal-item[data-kind="event"] { border-left-color: var(--bor-orange); }
  #borPrototype .bor-cal-item[data-kind="opportunity"] { border-left-color: var(--bor-teal); }
  #borPrototype .bor-cal-item[data-kind="campaign"] { border-left-color: var(--bor-green); }
  #borPrototype .bor-cal-item.is-selected { outline: 2px solid var(--bor-gold); outline-offset: 2px; }
  #borPrototype .bor-empty { display: grid; place-items: center; min-height: 76px; color: var(--bor-muted); border: 1px dashed var(--bor-line); border-radius: 10px; }

  #borPrototype .bor-month {
    display: grid;
    grid-template-columns: repeat(7, minmax(86px, 1fr));
    min-width: 650px;
  }

  #borPrototype .bor-month-day {
    min-height: 88px;
    padding: 9px;
    border: 0;
    border-right: 1px solid var(--bor-line);
    border-bottom: 1px solid var(--bor-line);
    background: transparent;
    cursor: pointer;
    text-align: left;
  }

  #borPrototype .bor-month-day span { display: block; margin-top: 8px; color: var(--bor-blue); font-size: .78rem; }
  #borPrototype .bor-month-day.is-outside { opacity: .28; }
  #borPrototype .bor-month-label { padding: 8px; text-align: center; color: var(--bor-muted); border-bottom: 1px solid var(--bor-line); }

  #borPrototype .bor-detail { padding: 17px; margin-bottom: 16px; }
  #borPrototype .bor-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .7fr); gap: 18px; }
  #borPrototype .bor-reason { padding: 12px; background: var(--bor-panel-2); border-left: 3px solid var(--bor-teal); }
  #borPrototype .bor-reason p { margin-bottom: 0; }

  #borPrototype .bor-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 8px;
    border: 1px solid var(--bor-line);
    border-radius: 999px;
    color: var(--bor-teal);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
  }

  #borPrototype .bor-grid-2,
  #borPrototype .bor-grid-3,
  #borPrototype .bor-grid-4 {
    display: grid;
    gap: 14px;
  }

  #borPrototype .bor-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #borPrototype .bor-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #borPrototype .bor-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #borPrototype .bor-panel { padding: 15px; }
  #borPrototype .bor-panel p:last-child { margin-bottom: 0; }

  #borPrototype button.bor-panel[data-create-mode] {
    cursor: pointer;
    text-align: left;
  }

  #borPrototype button.bor-panel[data-create-mode][aria-pressed="true"] {
    border-color: var(--bor-gold);
    outline: 2px solid var(--bor-gold);
    outline-offset: 2px;
    background: color-mix(in srgb, var(--bor-gold) 12%, var(--bor-panel));
  }

  #borPrototype button.bor-panel[data-create-mode][aria-pressed="true"] h3 {
    color: var(--bor-gold);
  }

  #borPrototype .bor-schedule-card.is-highlighted {
    border-color: var(--bor-gold);
    outline: 2px solid var(--bor-gold);
    outline-offset: 2px;
    background: color-mix(in srgb, var(--bor-gold) 8%, var(--bor-panel));
  }

  #borPrototype .bor-schedule-card .bor-actions { margin-top: 13px; }

  #borPrototype .bor-schedule-meta {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bor-line);
  }

  #borPrototype .bor-schedule-meta span { color: var(--bor-muted); }
  #borPrototype .bor-schedule-meta strong { color: var(--bor-text); font-weight: 500; }

  #borPrototype .bor-form-message {
    margin: 0;
    color: var(--bor-danger);
  }

  #borPrototype .bor-metric strong { display: block; margin: 6px 0; font-size: 1.45rem; font-weight: 500; }

  #borPrototype .bor-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  #borPrototype .bor-field { display: grid; gap: 6px; }
  #borPrototype .bor-field.is-wide { grid-column: 1 / -1; }
  #borPrototype .bor-field label { color: var(--bor-muted); font-size: .86rem; }

  #borPrototype .bor-input {
    width: 100%;
    min-height: 43px;
    padding: 10px 11px;
    border: 1px solid var(--bor-line);
    border-radius: 9px;
    background: var(--bor-bg);
    color: var(--bor-text);
  }

  #borPrototype textarea.bor-input { min-height: 108px; resize: vertical; }

  #borPrototype .bor-table-wrap { overflow-x: auto; }
  #borPrototype .bor-table { width: 100%; border-collapse: collapse; min-width: 720px; }
  #borPrototype .bor-table th,
  #borPrototype .bor-table td { padding: 11px; border-bottom: 1px solid var(--bor-line); text-align: left; vertical-align: top; }
  #borPrototype .bor-table th { color: var(--bor-muted); font-weight: 500; }
  #borPrototype .bor-table td small { display: block; margin-top: 4px; color: var(--bor-muted); }

  #borPrototype .bor-main-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
  }

  #borPrototype .bor-main-switch button {
    min-height: 58px;
    padding: 10px 13px;
    border: 1px solid var(--bor-line);
    border-radius: 12px;
    background: var(--bor-panel);
    cursor: pointer;
    text-align: left;
  }

  #borPrototype .bor-main-switch button[aria-pressed="true"] {
    border-color: var(--bor-gold);
    outline: 2px solid var(--bor-gold);
    outline-offset: 2px;
    color: var(--bor-gold);
    background: color-mix(in srgb, var(--bor-gold) 8%, var(--bor-panel));
  }
  #borPrototype .bor-main-switch span { display: block; margin-top: 3px; color: var(--bor-muted); font-size: .8rem; }

  #borPrototype .bor-virality {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 16px;
  }

  #borPrototype .bor-goal-toggle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 4px;
    margin-bottom: 14px;
    background: var(--bor-bg);
    border: 1px solid var(--bor-line);
    border-radius: 12px;
  }

  #borPrototype .bor-goal-toggle button {
    min-height: 48px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
  }

  #borPrototype .bor-goal-toggle button[aria-pressed="true"] { background: var(--bor-gold); color: var(--bor-gold-ink); }

  #borPrototype .bor-plan-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bor-line);
  }

  #borPrototype .bor-plan-row:last-child { border-bottom: 0; }
  #borPrototype .bor-plan-row span:first-child { color: var(--bor-muted); }

  #borPrototype .bor-opportunity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--bor-line);
  }

  #borPrototype .bor-opportunity:last-child { border-bottom: 0; }
  #borPrototype .bor-opportunity p { margin-bottom: 0; }

  #borPrototype .bor-setting {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
  }

  #borPrototype .bor-setting-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--bor-panel-2); }
  #borPrototype .bor-setting p { margin-bottom: 0; }
  #borPrototype .bor-setting.is-active {
    border-color: var(--bor-gold);
    outline: 2px solid var(--bor-gold);
    outline-offset: 2px;
  }

  #borPrototype .bor-channel-profile {
    margin-bottom: 16px;
    background: var(--bor-panel);
    border: 1px solid var(--bor-gold);
    border-radius: 15px;
    overflow: hidden;
  }

  #borPrototype .bor-profile-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 18px;
    background: color-mix(in srgb, var(--bor-gold) 8%, var(--bor-panel));
    border-bottom: 1px solid var(--bor-line);
  }

  #borPrototype .bor-profile-head p { margin-bottom: 0; }
  #borPrototype .bor-profile-body { padding: 18px; }

  #borPrototype .bor-profile-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: var(--bor-green);
    border: 1px solid color-mix(in srgb, var(--bor-green) 55%, var(--bor-line));
    border-radius: 999px;
    white-space: nowrap;
  }

  #borPrototype .bor-profile-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
  }

  #borPrototype .bor-profile-status.is-offline { color: var(--bor-gold); }

  #borPrototype .bor-profile-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
  }

  #borPrototype .bor-profile-summary div {
    padding: 11px;
    background: var(--bor-panel-2);
    border-top: 3px solid var(--bor-teal);
  }

  #borPrototype .bor-profile-summary span {
    display: block;
    margin-top: 4px;
    color: var(--bor-muted);
    font-size: .8rem;
  }

  #borPrototype .bor-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  #borPrototype .bor-profile-box {
    padding: 15px;
    background: var(--bor-panel-2);
    border: 1px solid var(--bor-line);
    border-radius: 12px;
  }

  #borPrototype .bor-profile-box.is-wide { grid-column: 1 / -1; }
  #borPrototype .bor-profile-box h2 { margin-bottom: 4px; }
  #borPrototype .bor-profile-box > p { margin-bottom: 14px; }

  #borPrototype .bor-rule-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #borPrototype .bor-rule-list li {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--bor-line);
  }

  #borPrototype .bor-rule-list li:last-child { padding-bottom: 0; border-bottom: 0; }
  #borPrototype .bor-rule-list span:first-child { color: var(--bor-muted); }

  #borPrototype .bor-adaptation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  #borPrototype .bor-adaptation-step {
    min-height: 116px;
    padding: 12px;
    background: var(--bor-bg);
    border-top: 3px solid var(--bor-blue);
  }

  #borPrototype .bor-adaptation-step strong,
  #borPrototype .bor-adaptation-step span { display: block; }
  #borPrototype .bor-adaptation-step span { margin-top: 6px; color: var(--bor-muted); }
  #borPrototype .bor-adaptation-step.is-channel { border-top-color: var(--bor-gold); }
  #borPrototype .bor-adaptation-step.is-result { border-top-color: var(--bor-teal); }

  #borPrototype .bor-channel-example {
    margin: 0;
    white-space: pre-wrap;
    color: var(--bor-text);
    font-family: inherit;
  }

  #borPrototype .bor-note {
    padding: 12px;
    color: var(--bor-muted);
    background: color-mix(in srgb, var(--bor-blue) 8%, var(--bor-panel));
    border-left: 3px solid var(--bor-blue);
  }

  #borPrototype .bor-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  #borPrototype .bor-flow div { padding: 12px; border-top: 3px solid var(--bor-teal); background: var(--bor-panel-2); }
  #borPrototype .bor-flow span { display: block; margin-top: 4px; color: var(--bor-muted); font-size: .8rem; }

  #borPrototype .bor-toast {
    margin: 0 22px 20px;
    padding: 11px 14px;
    color: var(--bor-gold);
    background: var(--bor-panel);
    border: 1px solid var(--bor-gold);
    border-radius: 10px;
  }

  #borPrototype .bor-compact .bor-guidance { display: none; }
  #borPrototype [hidden] { display: none !important; }

  @media (max-width: 900px) {
    #borPrototype .bor-topbar { grid-template-columns: 1fr auto; }
    #borPrototype .bor-crumb { grid-column: 1 / -1; grid-row: 2; }
    #borPrototype .bor-shell { grid-template-columns: 1fr; }
    #borPrototype .bor-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; border-right: 0; border-bottom: 1px solid var(--bor-line); }
    #borPrototype .bor-weather,
    #borPrototype .bor-menu-label,
    #borPrototype .bor-menu-button:not([data-main-target]) { display: none; }
    #borPrototype .bor-main { padding: 16px; }
    #borPrototype .bor-calendar-head,
    #borPrototype .bor-detail-grid,
    #borPrototype .bor-virality { grid-template-columns: 1fr; }
    #borPrototype .bor-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #borPrototype .bor-profile-summary,
    #borPrototype .bor-adaptation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 680px) {
    #borPrototype .bor-topbar { padding: 12px; }
    #borPrototype .bor-wordmark small { display: none; }
    #borPrototype .bor-main { padding: 12px; }
    #borPrototype .bor-heading { display: block; }
    #borPrototype .bor-heading .bor-live { margin-top: 10px; }
    #borPrototype .bor-tabs { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #borPrototype .bor-main-switch,
    #borPrototype .bor-grid-2,
    #borPrototype .bor-grid-3,
    #borPrototype .bor-grid-4,
    #borPrototype .bor-form-grid { grid-template-columns: 1fr; }
    #borPrototype .bor-profile-grid,
    #borPrototype .bor-profile-summary,
    #borPrototype .bor-adaptation { grid-template-columns: 1fr; }
    #borPrototype .bor-field.is-wide { grid-column: auto; }
    #borPrototype .bor-profile-box.is-wide { grid-column: auto; }
    #borPrototype .bor-control-row { align-items: stretch; }
    #borPrototype .bor-control-row > * { width: 100%; }
    #borPrototype .bor-segment { width: 100%; }
    #borPrototype .bor-flow { grid-template-columns: 1fr; }
    #borPrototype .bor-setting { grid-template-columns: 38px minmax(0, 1fr); }
    #borPrototype .bor-setting .bor-button { grid-column: 1 / -1; }
    #borPrototype .bor-profile-head { grid-template-columns: 1fr; }
    #borPrototype .bor-rule-list li { grid-template-columns: 1fr; }
  }

  @media (pointer: coarse) {
    #borPrototype button,
    #borPrototype .bor-segment button,
    #borPrototype .bor-button,
    #borPrototype .bor-lens,
    #borPrototype .bor-chip { min-height: 44px; }
  }
