:root { color-scheme: light; font-family: Inter, system-ui, "Microsoft YaHei", sans-serif; font-size: 14px; --ink: #23282f; --muted: #737b85; --line: #e1e5e9; --canvas: #f7f8fa; --accent: #177d67; --accent-soft: #eaf5f0; color: var(--ink); background: var(--canvas); }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); line-height: 1.4; cursor: pointer; }
button:hover:not(:disabled) { background: #f0f3f5; border-color: #bfc8d0; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover:not(:disabled) { background: #116653; border-color: #116653; }
button.danger { color: #b33c3c; }
button.danger:hover:not(:disabled) { background: #fff0ef; border-color: #e7b5b0; }
button.selected { color: #12634e; background: var(--accent-soft); border-color: #9ac9b7; }
.icon-button { width: 40px; height: 40px; padding: 9px; flex-shrink: 0; }
.lucide { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.8; }
input, select { min-width: 0; max-width: 100%; width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cdd4da; border-radius: 6px; background: #fff; color: var(--ink); }
input:hover, select:hover { border-color: #a4b3b9; }
input::placeholder { color: #9199a2; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
:focus-visible { outline: 2px solid #479e8a; outline-offset: 3px; }
label { display: grid; gap: 7px; font-size: 13px; color: #535d68; min-width: 0; }
fieldset { margin: 0; min-width: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1 { font-size: 24px; font-weight: 650; line-height: 1.4; margin: 0 0 24px; }
h2 { font-size: 16px; font-weight: 650; line-height: 1.5; margin: 0 0 16px; }
h3 { font-size: 15px; margin: 0 0 6px; }
p { line-height: 1.7; }
.muted, .meta { color: var(--muted); }
.meta { display: block; font-size: 12px; line-height: 1.7; margin: 5px 0; overflow-wrap: anywhere; }
.error { color: #b13d38; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 30; background: #fff; padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.stack { display: grid; gap: 18px; max-width: 560px; }
.stack button { justify-self: start; }
.actions, .line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.actions { margin-top: 16px; }
.form-row { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.form-row label { flex: 1; min-width: min(180px,100%); }
.form-row button { flex-shrink: 0; }
.checkbox, .profile-toggle { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; white-space: nowrap; }
a.brand { color: var(--ink); text-decoration: none; }
.brand > .lucide { width: 28px; height: 28px; color: var(--accent); }
.brand span { border-left: 1px solid var(--line); padding-left: 10px; color: var(--muted); font-size: 12px; font-weight: 400; }
.login-view { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.login-panel { width: min(100%,400px); padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.login-panel .brand { margin-bottom: 32px; }
.login-title h2 { font-size: 21px; margin-bottom: 24px; }
.login-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 24px; background: #f0f2f4; border-radius: 6px; }
.login-tabs button { flex: 1; border: 0; background: transparent; }
.login-tabs button.selected { background: #fff; color: var(--accent); }
.login-panel .primary { width: 100%; margin-top: 6px; }
.console-home-link { margin: 22px 0 0; text-align: center; font-size: 12px; }
.console-home-link a { color: var(--muted); text-underline-offset: 4px; }
.topbar { position: sticky; top: 0; z-index: 6; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.top-actions { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); }
#identity { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.live { display: flex; align-items: center; gap: 7px; white-space: nowrap; color: #9b701e; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live.online { color: #167553; }
.workspace { display: grid; grid-template-columns: 210px minmax(0,1fr); min-height: calc(100vh - 60px); }
#nav { display: flex; flex-direction: column; gap: 5px; position: sticky; top: 60px; height: calc(100vh - 60px); padding: 18px 12px; background: #fff; border-right: 1px solid var(--line); }
.nav-label { padding: 12px 12px 7px; color: #929ba5; font-size: 11px; }
#nav button { width: 100%; justify-content: flex-start; gap: 11px; padding: 11px 12px; background: transparent; border-color: transparent; color: #57616d; }
#nav button.selected { background: var(--accent-soft); color: #12634e; font-weight: 600; }
#nav button[data-tab="settings"] { margin-top: auto; }
#mobile-more { display: none !important; }
main { min-width: 0; width: min(100%,1420px); margin: 0 auto; padding: 28px 32px 70px; }
.page-heading, .section-heading, .library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-heading { margin-bottom: 24px; }
.page-heading h1, .section-heading h2 { margin: 0; }
.page-actions { display: flex; gap: 8px; }
.section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; min-width: 0; }
.section-heading { margin-bottom: 18px; }
.eyebrow { display: none; }
.overview-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 22px; }
.overview-summary > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.overview-summary strong { overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.metric { position: relative; padding: 17px; min-height: 110px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.metric > span { display: block; padding-right: 24px; color: var(--muted); font-size: 12px; }
.metric > .lucide { position: absolute; right: 17px; top: 17px; color: #2868b4; }
.metric:nth-child(2) > .lucide { color: #a57422; }
.metric:nth-child(3) > .lucide { color: #177d67; }
.metric:nth-child(4) > .lucide { color: #777e89; }
.metric strong { display: block; margin-top: 15px; font-size: 25px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.item-list, .library-list { display: grid; gap: 14px; }
.library-list { grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); margin-top: 22px; }
.item { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 20px; min-width: 0; }
.item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.item .form-row { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.item .form-row button { align-self: end; }
.badge { display: inline-flex; align-items: center; border: 1px solid #c6e3d5; border-radius: 4px; background: #edf8f1; color: #24734e; padding: 3px 7px; font-size: 11px; line-height: 1.45; }
.badge.busy { color: #8c661f; border-color: #e8d7ad; background: #fff8e8; }
.badge.failed { color: #a5413c; border-color: #efcfcc; background: #fff1ef; }
.badge.neutral { color: #737b85; border-color: var(--line); background: #f4f5f6; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #f0f2f4; }
.segmented button { background: transparent; border-color: transparent; min-height: 36px; padding: 7px 12px; }
.segmented button.selected { background: #fff; color: var(--accent); border-color: #d4dedd; }
.radio-segments { width: fit-content; }
.radio-segments label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 7px 14px; border-radius: 4px; cursor: pointer; border: 1px solid transparent; }
.radio-segments label.selected { background: #fff; color: var(--accent); border-color: #d4dedd; }
.radio-segments input { position: absolute; opacity: 0; width: 1px; }
.radio-segments label:has(input:focus-visible) { outline: 2px solid #479e8a; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); padding: 36px 12px; text-align: center; }
.empty-state .lucide { width: 28px; height: 28px; color: #a3acb6; }
.draft-banner, .return-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; margin-bottom: 16px; border-bottom: 1px solid var(--line); color: #80601f; }
.return-banner { color: #206b55; }
.task-form { display: grid; gap: 22px; }
.task-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
.task-step { min-width: 0; }
.task-step-final { border-top: 1px solid var(--line); padding-top: 20px; }
.task-accounts { border: 0; padding: 0; display: grid; gap: 9px; }
.task-account { display: flex; align-items: flex-start; gap: 11px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.task-account:has(input:checked) { border-color: #75b7a1; background: #f2faf6; }
.task-account input { margin-top: 2px; }
.task-account strong { color: var(--ink); font-size: 14px; }
.task-account .badge { margin-top: 2px; }
.task-config { display: grid; gap: 16px; }
.task-config .actions { margin: 0; }
.account-bindings { display: grid; gap: 17px; }
.account-binding { display: grid; gap: 9px; padding-top: 13px; border-top: 1px solid var(--line); }
.account-binding .meta { margin: 3px 0; }
.inline-fields { display: flex; align-items: center; gap: 6px; min-width: 0; }
.inline-fields select { flex: 1; width: 0; }
.quote-empty { display: flex; align-items: center; gap: 10px; min-height: 45px; color: var(--muted); }
.quote-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.quote-summary strong { font-size: 17px; }
.task-quote.quote-blocked { border-left: 3px solid #bf4f44; padding-left: 14px; }
.billing-note { margin-top: 14px; font-size: 12px; color: var(--muted); }
summary { cursor: pointer; }
.task-submit-actions { justify-content: flex-end; margin-top: 18px; }
.task-receipt { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-left: 3px solid var(--accent); padding: 13px; margin-top: 24px; background: var(--accent-soft); color: #216b51; font-size: 13px; }
.job-row { display: grid; grid-template-columns: minmax(150px,1fr) 100px minmax(180px,1.4fr) auto; gap: 16px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.job-identity, .job-result { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.job-identity .meta, .job-result .meta { margin: 0; }
.job-result { font-size: 13px; }
.job-status { display: grid; justify-items: start; gap: 3px; }
.job-actions { display: flex; gap: 5px; }
.table-wrap { max-width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #ecedef; vertical-align: middle; overflow-wrap: anywhere; }
th { background: #f2f4f6; color: #737b85; font-weight: 550; white-space: nowrap; }
td { max-width: 320px; }
tr:last-child td { border-bottom: 0; }
.editor-view { min-width: 0; }
.editor-header { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.editor-header h1 { font-size: 22px; margin: 0; }
.editor-header .meta { margin: 3px 0 0; }
.editor-header > div { min-width: 0; }
.profile-workspace { display: grid; grid-template-columns: minmax(255px,.36fr) minmax(0,.64fr); gap: 28px; }
.profile-step-list { border-right: 1px solid var(--line); padding-right: 22px; min-width: 0; }
.profile-step { display: flex; align-items: center; gap: 4px; padding: 7px 0 7px 9px; margin: 6px 0; border-left: 3px solid transparent; border-radius: 4px; }
.profile-step.active { border-left-color: var(--accent); background: #eaf5f0; }
.task-enable { padding: 9px 3px; }
.profile-step-title { border: 0; background: transparent; justify-content: flex-start; padding: 7px 5px; flex: 1; min-width: 0; text-align: left; font-size: 13px; }
.profile-step-title > span:not(.step-index) { flex: 1; min-width: 0; }
.profile-step-title > .lucide { display: none; }
.step-index { color: #8a929b; font-size: 11px; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 15px; text-align: center; }
.order-actions { display: flex; gap: 1px; flex-shrink: 0; }
.order-actions .icon-button { width: 31px; height: 36px; min-height: 36px; padding: 6px; border-color: transparent; background: transparent; }
.profile-detail { min-width: 0; }
.detail-heading { display: flex; align-items: center; gap: 8px; }
.detail-heading > .icon-button { display: none; }
.profile-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 20px; }
.profile-field { min-width: 0; }
.profile-field > label { display: grid; gap: 7px; }
.profile-field .profile-toggle { display: flex; }
.profile-field:has(.profile-options) { grid-column: 1/-1; }
.profile-options { display: flex; gap: 15px; flex-wrap: wrap; border: 0; padding: 0; }
.profile-options legend { margin-bottom: 12px; color: #535d68; font-size: 13px; }
.profile-options label { display: flex; align-items: center; gap: 8px; }
.strategy-picker { display: flex; gap: 7px; align-items: end; min-width: 0; }
.strategy-picker label { flex: 1; min-width: 0; }
.profile-field small { font-size: 11px; line-height: 1.6; }
.weekly-settings { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.day-tabs { display: flex; width: 100%; flex-wrap: nowrap; gap: 0; margin-bottom: 20px; }
.day-tabs button { flex: 1; min-width: 0; padding: 6px 4px; font-size: 12px; }
.editor-footer { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 9px; padding: 17px 0; margin-top: 28px; background: var(--canvas); border-top: 1px solid var(--line); }
.editor-save-state { margin-right: auto; font-size: 12px; color: var(--muted); min-width: 0; }
.pathing-tabs { display: none; }
.pathing-workspace { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 28px; }
.route-browser { min-width: 0; border-right: 1px solid var(--line); padding-right: 24px; }
.search-form { display: flex; gap: 7px; }
.search-form input { flex: 1; min-width: 0; }
.repository-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 16px; font-size: 12px; }
.repository-breadcrumb button { border: 0; background: transparent; color: #23755e; padding: 5px; min-height: 30px; font-size: 12px; overflow-wrap: anywhere; }
.repository-categories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 14px 0; }
.repository-category { justify-content: flex-start; text-align: left; padding: 10px; min-width: 0; }
.repository-category > span { flex: 1; overflow-wrap: anywhere; min-width: 0; }
.repository-category small { color: var(--muted); font-variant-numeric: tabular-nums; }
.browser-count { margin: 16px 0 9px; font-size: 12px; }
.browser-count button { font-size: 12px; }
.repository-routes { max-height: 470px; overflow-y: auto; }
.repository-route { display: flex; align-items: flex-start; gap: 11px; border-top: 1px solid var(--line); padding: 14px 4px; cursor: pointer; }
.repository-route input { margin-top: 2px; }
.repository-route > span { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.repository-route .meta { margin: 0; }
.repository-route strong { font-size: 13px; color: var(--ink); }
.repository-route:has(input:checked) { background: var(--accent-soft); }
.repository-route.unsupported { opacity: .65; cursor: not-allowed; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 12px; margin: 16px 0; }
.pathing-selection { min-width: 0; }
.selected-route-list { margin: 0; padding: 0; list-style: none; max-height: 470px; overflow-y: auto; }
.selected-route { display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 6px 10px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: center; }
.selected-route-name { min-width: 0; overflow-wrap: anywhere; }
.selected-route-name strong { font-size: 13px; }
.selected-route-name .meta { margin: 3px 0; font-size: 11px; }
.selected-route .repeat-control { grid-column: 2; }
.selected-route .order-actions { grid-column: 2; justify-self: end; margin-top: -40px; }
.repeat-control { display: flex; align-items: center; gap: 2px; width: fit-content; }
.repeat-control .icon-button { width: 31px; height: 36px; min-height: 36px; padding: 6px; }
.repeat-control input { width: 45px; min-height: 36px; text-align: center; padding: 5px; -moz-appearance: textfield; }
.repeat-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pathing-settings { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.pathing-settings .stack { grid-template-columns: 1fr 1fr; gap: 16px; }
.pathing-settings .meta { grid-column: 1/-1; }
.notice { position: fixed; right: 20px; bottom: 20px; z-index: 15; max-width: min(450px,calc(100vw - 40px)); padding: 13px 18px; border-radius: 6px; background: #26372f; color: #fff; box-shadow: 0 5px 20px #0002; line-height: 1.6; }
.notice.error { background: #a93f38; }
dialog { position: relative; border: 1px solid var(--line); border-radius: 8px; width: min(94vw,760px); padding: 28px; max-height: 90dvh; overflow: auto; box-shadow: 0 20px 65px #18261f30; }
dialog::backdrop { background: #111b1880; }
.modal-close { position: absolute; top: 14px; right: 14px; border: 0; }
#modal-content > h2 { padding-right: 38px; font-size: 20px; }
dialog img { display: block; max-width: 100%; max-height: 65vh; margin: 16px auto; object-fit: contain; }
.strategy-content { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60vh; overflow-y: auto; font-size: 12px; line-height: 1.7; padding: 15px; background: #f3f5f6; border-radius: 6px; }
.more-menu { display: grid; gap: 6px; }
.more-menu button { justify-content: flex-start; }
.more-menu button > .lucide:last-child { margin-left: auto; }
.detail-list { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px 22px; font-size: 13px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.code { overflow-wrap: anywhere; }
@media (max-width: 1120px) {
  main { padding: 24px; }
  .workspace { grid-template-columns: 190px minmax(0,1fr); }
  .profile-workspace { grid-template-columns: 270px minmax(0,1fr); gap: 20px; }
  .profile-step-list { padding-right: 15px; }
  .profile-fields { grid-template-columns: 1fr; }
  .pathing-workspace { gap: 20px; }
  .repository-categories { grid-template-columns: 1fr; }
  .pathing-settings .stack { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .workspace { display: block; }
  .topbar { height: 56px; padding: 0 16px; }
  main { padding: 22px 16px 104px; }
  #nav { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; min-height: 70px; z-index: 8; flex-direction: row; padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); gap: 0; }
  #nav .nav-label, #nav .extra-nav { display: none; }
  #nav button, #mobile-more { display: flex !important; flex: 1; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; width: 0; min-height: 56px; padding: 5px 2px; font-size: 11px; text-align: center; line-height: 1.4; border-radius: 6px; }
  #nav button.extra-nav { display: none !important; }
  #nav button .lucide { width: 20px; height: 20px; }
  .top-actions { gap: 10px; }
  .brand { font-size: 17px; }
  .brand span, #identity { display: none; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .metric strong { font-size: 22px; }
  .overview-summary { align-items: flex-start; }
  .overview-summary > div { display: grid; gap: 5px; }
  .task-columns { grid-template-columns: 1fr; gap: 26px; }
  .task-step + .task-step { border-top: 1px solid var(--line); padding-top: 22px; }
  .page-heading h1 { font-size: 22px; }
  .page-actions .primary { display: none; }
  .library-toolbar { flex-wrap: wrap; }
  .library-toolbar > .segmented { flex: 1; }
  .library-toolbar > .segmented button { flex: 1; padding: 7px 8px; }
  .library-list { grid-template-columns: 1fr; }
  .job-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .job-status { grid-column: 2; grid-row: 1; justify-items: end; }
  .job-result { grid-column: 1; }
  .job-actions { grid-column: 2; grid-row: 2; justify-content: flex-end; }
  .editor-open #nav, .editor-open .topbar { display: none; }
  .editor-open main { padding: 0 16px 106px; }
  .editor-header { position: sticky; top: 0; z-index: 6; background: var(--canvas); padding: 16px 0; margin-bottom: 20px; gap: 10px; }
  .editor-header h1 { font-size: 18px; }
  .editor-header .icon-button { width: 36px; height: 40px; }
  .profile-workspace { display: block; }
  .profile-step-list { border: 0; padding: 0; }
  .profile-step { padding: 9px; }
  .profile-step-title { font-size: 14px; min-height: 44px; }
  .profile-step-title > .lucide { display: block; }
  .order-actions .icon-button { width: 34px; height: 40px; }
  .profile-step .order-actions { gap: 3px; }
  .profile-editor:not(.is-details) .profile-detail, .profile-editor.is-details .profile-step-list { display: none; }
  .detail-heading > .icon-button { display: flex; }
  .profile-fields { grid-template-columns: 1fr; gap: 20px; }
  .editor-footer { position: fixed; bottom: 0; left: 0; right: 0; padding: 13px 16px calc(13px + env(safe-area-inset-bottom)); margin: 0; background: #fff; z-index: 7; flex-wrap: wrap; }
  .editor-save-state { width: 100%; flex-basis: 100%; font-size: 11px; }
  .editor-footer > .primary { margin-left: auto; flex: 1; }
  .pathing-tabs { display: flex; margin-bottom: 20px; }
  .pathing-tabs button { flex: 1; }
  .pathing-workspace { display: block; }
  .route-browser { border: 0; padding: 0; }
  .repository-categories { grid-template-columns: 1fr 1fr; }
  .repository-routes, .selected-route-list { max-height: none; }
  .pathing-editor[data-panel="browse"] .pathing-selection { display: none; }
  .pathing-editor[data-panel="selected"] .route-browser, .pathing-editor[data-panel="selected"] .pathing-settings { display: none; }
  .pathing-editor[data-panel="settings"] .route-browser, .pathing-editor[data-panel="settings"] .selected-routes { display: none; }
  .pathing-settings { border: 0; padding: 0; margin: 0; }
  .selected-route .order-actions { margin-top: -38px; }
  .notice { bottom: calc(84px + env(safe-area-inset-bottom)); left: 16px; right: 16px; max-width: none; }
  .editor-open .notice { bottom: calc(102px + env(safe-area-inset-bottom)); }
  dialog { width: calc(100vw - 24px); padding: 24px; }
}
@media (max-width: 380px) {
  .library-toolbar > .primary { width: 100%; }
  .library-toolbar > .segmented { width: 100%; }
  .repository-categories { grid-template-columns: 1fr; }
  .inline-fields { flex-wrap: wrap; }
  .inline-fields select { width: 100%; flex-basis: 100%; }
  .task-submit-actions > button { flex: 1; padding: 9px; }
  .order-actions .icon-button { width: 30px; }
  .profile-step { padding-left: 4px; padding-right: 2px; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
