
@font-face { font-family: "Disket Mono"; src: url("/fonts/disket-mono-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("/fonts/fragment-mono-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fragment Mono"; src: url("/fonts/fragment-mono-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --crow-light: #ECECEA;
  --crow-mid: #8C8C89;
  --crow-dark: #232322;
  --crow-sea: #9CCAEE;
  --font-body: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-head: "Disket Mono", "Fragment Mono", ui-monospace, Menlo, monospace;
  /* Shared by every component so corners, surfaces and spacing match everywhere. */
  --surface: #FFFFFF;
  --radius: 10px;
  --radius-sm: 6px;
  --border: 2px solid var(--crow-dark);
  --hairline: 1px solid var(--crow-light);
  --focus: 0 0 0 3px var(--crow-sea);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Back from Stripe Checkout (140 BILL-21): centered, above everything, fades out. */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 24px 32px 20px; background: var(--crow-dark); color: var(--crow-light); border: 2px solid var(--crow-sea); border-radius: var(--radius); font-family: var(--font-head); font-size: 24px; text-transform: uppercase; letter-spacing: .04em; text-align: center; animation: toast-in .25s ease-out; transition: opacity .4s; }
.toast.out { opacity: 0; }
/* The crow flaps: two wing drawings swapped in hard steps, like a two-frame sprite, while the bird bobs. */
.toast-crow { width: 4rem; height: 4rem; animation: crow-bob .36s steps(1, end) infinite; }
.toast-crow .wing-up { animation: wing-up .36s steps(1, end) infinite; }
.toast-crow .wing-down { animation: wing-down .36s steps(1, end) infinite; }
@keyframes wing-up { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes wing-down { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes crow-bob { 0% { transform: translateY(-3px); } 50% { transform: translateY(2px); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -40%); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast-crow, .toast-crow .wing-up { animation: none; transition: none; } .toast-crow .wing-down { animation: none; opacity: 0; } }
body { margin: 0; background: var(--crow-light); color: var(--crow-dark); font: 15px/1.55 var(--font-body); overflow-wrap: break-word; }
[hidden] { display: none !important; }

/* Type */
h1, h2, h3, nav a, .label, legend, th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
h1 { font-size: 22px; line-height: 1.2; margin: 0; }
h2 { font-size: 15px; line-height: 1.3; margin: 28px 0 10px; }
h3 { font-size: 13px; line-height: 1.3; margin: 20px 0 8px; }
p { margin: 0 0 10px; }
a { color: var(--crow-dark); text-decoration-color: var(--crow-sea); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--crow-dark); }
strong { font-weight: 700; }
.muted { color: var(--crow-mid); font-size: 13px; }
p.muted, div.muted { margin: 0 0 8px; }
code, .mono { font-family: var(--font-body); font-size: .92em; background: var(--crow-light); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
pre { overflow-x: auto; max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--focus); }

/* Header and navigation. On a phone the tabs scroll sideways inside their own strip, so the page never does. */
header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 16px; background: var(--crow-light); border-bottom: var(--border); }
/* Same wordmark as the landing page: pixel crow at 1.7x the text, 12px gap, Disket, tight tracking. */
header .brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; color: var(--crow-dark); margin-right: auto; text-decoration: none; }
header .brand .crow { width: 1.7em; height: 1.7em; image-rendering: pixelated; margin-left: -0.15em; flex: none; }
nav { display: flex; gap: 4px 18px; min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { flex: none; font-size: 13px; white-space: nowrap; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
nav a:hover { border-bottom-color: var(--crow-mid); }
nav a[aria-current="page"] { border-bottom-color: var(--crow-sea); }
/* Pushed right with an auto margin, not justify-content: flex-end, which would hide the first tabs off the left edge when the strip scrolls. */
header nav { flex: 1 1 auto; }
header nav > :first-child { margin-left: auto; }
/* Who is signed in (DSH-17): its own row under the tabs, right-aligned, in the sea blue. A long email is cut short; the whole address is in its title. */
.who { position: relative; display: flex; justify-content: flex-end; flex: 1 0 100%; min-width: 0; margin-top: -6px; }
.who[hidden] { display: none; }
button.who-email { display: block; min-height: 0; min-width: 0; max-width: 100%; padding: 2px 0; background: none; border: 0; border-radius: 0; color: var(--crow-sea); font-family: var(--font-body); font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
button.who-email:hover { text-decoration: underline; background: none; color: var(--crow-sea); }
.who-menu { position: absolute; top: 100%; right: 0; z-index: 20; margin-top: 4px; padding: 4px; background: var(--surface); border: var(--border); border-radius: var(--radius-sm); }
.who-menu[hidden] { display: none; }
.who-menu button { display: block; width: 100%; min-height: 0; padding: 6px 14px; background: none; color: var(--crow-dark); border: 0; text-align: left; font-size: 13px; white-space: nowrap; }
.who-menu button:hover { background: var(--crow-light); color: var(--crow-dark); }
/* The grey rule is an inset shadow, so each tab's underline is drawn over it inside the strip, not clipped by the scroll box. */
nav.subnav { gap: 0 22px; margin: 0 0 20px; box-shadow: inset 0 -2px 0 var(--crow-mid); }
nav.subnav a { padding: 8px 0; }
/* Founder bar (060 DSH-10): its own dark strip under the header, never mixed with everyone's tabs. */
.staffbar { display: flex; align-items: center; gap: 4px 18px; padding: 6px 16px; background: var(--crow-dark); }
.staffbar[hidden] { display: none; }
.staffbar a { color: var(--crow-light); }
.staffbar .label { flex: none; color: var(--crow-sea); font-size: 12px; margin-right: 4px; }

/* Page */
main { max-width: 860px; margin: 0 auto; padding: 20px 16px 48px; }
main > :first-child { margin-top: 0; }
main.wide { max-width: 75rem; }
.filters { margin-top: 12px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; margin: 0 0 20px; }
.page-head > div { flex: 1 1 16rem; min-width: 0; }
.page-head .lead { margin: 6px 0 0; }
.page-head + nav.subnav { margin-top: -6px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; }

/* Surfaces */
.panel { background: var(--surface); border: var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px; min-width: 0; }
.panel > :first-child, .panel > .panel-head:first-child > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel .panel { border-width: 1px; border-color: var(--crow-mid); }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 12px; }
.panel-head h2 { margin: 0; }
.panel.danger-zone { border-style: dashed; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: var(--border); padding: 14px 16px; text-decoration: none; min-width: 0; border-radius: var(--radius); transition: transform .08s, box-shadow .08s; }
.card:hover { box-shadow: 4px 4px 0 var(--crow-sea); transform: translate(-2px, -2px); }
.with-icon { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.app-icon { border-radius: 4px; flex: none; object-fit: contain; }
/* The organization's apps as a launcher (150): big icons, the description on hover, the rest behind the dots. */
.app-grid { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 28px 16px; }
.app-tile { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.app-tile-link { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; padding: 12px 8px 8px; text-decoration: none; border-radius: var(--radius); }
.app-tile-link .app-icon { width: 6rem; height: 6rem; border: var(--border); border-radius: 1.4rem; background: var(--surface); transition: transform .08s, box-shadow .08s; }
.app-tile-link:hover .app-icon, .app-tile-link:focus-visible .app-icon { box-shadow: 4px 4px 0 var(--crow-sea); transform: translate(-2px, -2px); }
.app-tile-link:focus-visible { box-shadow: none; }
.app-tile-link:focus-visible .app-tile-name { text-decoration: underline; text-decoration-color: var(--crow-sea); text-decoration-thickness: 2px; }
.app-tile-name { max-width: 100%; text-align: center; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.app-tile.off .app-icon { filter: grayscale(1); opacity: .5; }
.app-tile.off .app-tile-name { color: var(--crow-mid); }
.app-tip { position: absolute; bottom: calc(100% - 4px); left: 50%; transform: translateX(-50%); z-index: 10; width: max-content; max-width: min(18rem, 80vw); padding: 8px 12px; background: var(--crow-dark); color: var(--crow-light); border-radius: var(--radius-sm); font-size: 12px; line-height: 1.45; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s; }
.app-tile:hover .app-tip, .app-tile-link:focus-visible + .app-tip { opacity: 1; visibility: visible; }
.app-tile.menu-open .app-tip { display: none; }
button.app-more { position: absolute; top: 2px; right: 4px; min-height: 0; width: 2rem; height: 2rem; padding: 0; background: var(--surface); color: var(--crow-dark); border: 1.5px solid var(--crow-dark); border-radius: 999px; font-size: 16px; font-weight: 700; letter-spacing: -1px; line-height: 1; opacity: 0; transition: opacity .1s; }
.app-tile:hover button.app-more, button.app-more:focus-visible, .app-tile.menu-open button.app-more { opacity: 1; }
button.app-more:hover, .app-tile.menu-open button.app-more { background: var(--crow-sea); color: var(--crow-dark); }
@media (hover: none) { button.app-more { opacity: 1; } }
.app-menu { position: absolute; top: 2.4rem; right: 4px; z-index: 20; width: 15rem; max-width: 80vw; padding: 12px 14px; background: var(--surface); border: var(--border); border-radius: var(--radius-sm); box-shadow: 4px 4px 0 var(--crow-sea); }
.app-menu[hidden] { display: none; }
.app-menu dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.app-menu dt { font-family: var(--font-head); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--crow-mid); align-self: center; }
.app-menu dd { margin: 0; min-width: 0; overflow-wrap: break-word; }
.app-menu button { width: 100%; margin-top: 12px; }
.card h3 { margin: 0; font-size: 14px; }
.card .muted { margin: 0; }
.card .host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: var(--border); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.tile .label { font-size: 11px; color: var(--crow-mid); }
.tile .big { font-family: var(--font-head); font-size: 26px; line-height: 1.2; margin: 2px 0; }
.tile .muted { margin: 0; font-size: 12px; }
.empty { border: 2px dashed var(--crow-mid); border-radius: var(--radius); padding: 18px 20px; color: var(--crow-mid); font-size: 13px; margin: 0 0 16px; }
.empty > :last-child { margin-bottom: 0; }

/* Lists: one thing per row, details on the left and its buttons on the right; they stack on a phone. */
.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-top: var(--hairline); }
.item:first-child { border-top: 0; padding-top: 4px; }
.item:last-child { padding-bottom: 0; }
.item-main { flex: 1 1 14rem; min-width: 0; }
.item-main .muted { margin: 2px 0 0; }
.item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.list + *, .scroll + * { margin-top: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: var(--hairline); }
.row:first-child { border-top: 0; }

/* Badges */
.pill { display: inline-block; border: 1.5px solid var(--crow-dark); border-radius: 999px; padding: 1px 9px; font-family: var(--font-head); font-size: 11px; letter-spacing: .04em; line-height: 1.6; text-transform: uppercase; white-space: nowrap; vertical-align: middle; background: var(--surface); }
.pill.warn { background: var(--crow-sea); }
.pill.dark { background: var(--crow-dark); color: var(--crow-light); }
.price { font-family: var(--font-head); font-size: 15px; }

/* Buttons: primary (dark), secondary (outline), danger (dashed outline that fills on hover). */
button, .button { font: inherit; font-size: 14px; line-height: 1.2; min-height: 2.75rem; background: var(--crow-dark); color: var(--crow-light); border: var(--border); padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--radius); max-width: 100%; text-align: center; transition: background .1s, color .1s; }
button:hover, .button:hover { background: var(--crow-light); color: var(--crow-dark); }
button.secondary, .button.secondary { background: var(--surface); color: var(--crow-dark); }
button.secondary:hover, .button.secondary:hover { background: var(--crow-sea); }
button.danger, .button.danger { background: var(--surface); color: var(--crow-dark); border-style: dashed; }
button.danger:hover, .button.danger:hover { background: var(--crow-dark); color: var(--crow-light); border-style: solid; }
button.small, .button.small { min-height: 2.25rem; padding: 6px 12px; font-size: 13px; }
button:disabled, button:disabled:hover { opacity: .45; cursor: not-allowed; background: var(--crow-dark); color: var(--crow-light); }
button.secondary:disabled, button.danger:disabled { background: var(--surface); color: var(--crow-dark); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.actions:first-child { margin-top: 0; }

/* Forms. Every text-like input gets the same box, whatever its type. */
input:not([type]), input[type=text], input[type=search], input[type=password], input[type=email], input[type=url], input[type=number], textarea {
  font: inherit; width: 100%; max-width: 100%; min-height: 2.75rem; padding: 9px 12px; border: var(--border); background: var(--surface); color: inherit; border-radius: var(--radius); }
input::placeholder, textarea::placeholder { color: var(--crow-mid); opacity: 1; }
input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input[type=checkbox], input[type=radio] { width: 1.1em; height: 1.1em; margin: 0; accent-color: var(--crow-dark); flex: none; cursor: pointer; }
select { font: inherit; padding: 0 34px 0 10px; min-height: 2.75rem; border: var(--border); color: inherit; border-radius: var(--radius); max-width: 100%; cursor: pointer; appearance: none; -webkit-appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23232322' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
select:hover, input:hover, textarea:hover { border-color: var(--crow-dark); }
label { display: block; margin: 14px 0 6px; font-size: 13px; }
/* :where keeps this at element specificity, so component classes like .choice override it. */
:where(label:has(> input[type=checkbox]), label:has(> input[type=radio])) { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 15px; cursor: pointer; }
label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; max-width: 100%; font-size: 13px; }
/* A select is as wide as its longest option; let it shrink so a filter row still fits at 375 px. */
label.inline select { min-width: 0; }
.field { margin: 0 0 14px; }
.field > label { margin: 0 0 6px; }
.field .hint { margin: 6px 0 0; }
.field:last-child { margin-bottom: 0; }
.field select, .form-grid select { width: 100%; }
.results:not(:empty) { margin-top: 14px; }
.results .list { border-top: var(--hairline); }
.results .item:first-child { padding-top: 12px; }
/* An input and its button on one line, which wrap under each other when there is no room. */
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.inline-form > input, .inline-form > select { flex: 1 1 12rem; width: auto; min-width: 0; }
.inline-form > button { flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 14px; }
fieldset { border: var(--border); border-radius: var(--radius); margin: 0 0 14px; padding: 6px 16px 10px; min-width: 0; }
legend { padding: 0 6px; font-size: 13px; }
.choice { display: flex; align-items: flex-start; gap: 12px; border: var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 10px; cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { box-shadow: inset 0 0 0 1px var(--crow-dark); background: color-mix(in srgb, var(--crow-sea) 30%, var(--surface)); }
.choice input { margin-top: .25em; }
.choice .muted { margin: 2px 0 0; }
.choice strong { display: block; }
.current-plan { margin: 0 0 14px; }
.current-plan strong { font-family: var(--font-head); font-size: 18px; display: block; margin-bottom: 4px; }

/* Messages */
.notice { border: var(--border); border-left-width: 6px; border-color: var(--crow-sea); border-left-color: var(--crow-sea); background: var(--surface); border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0; }
.notice.error { border-color: var(--crow-dark); border-left-color: var(--crow-dark); }
.notice > :last-child { margin-bottom: 0; }
.secret-once { display: block; margin: 8px 0 0; padding: 10px 12px; background: var(--crow-dark); color: var(--crow-light); border-radius: var(--radius-sm); white-space: pre-wrap; word-break: break-all; }

/* Charts */
.chart { display: block; width: 100%; height: 110px; margin: 8px 0; border-bottom: var(--border); }
.chart .bar { fill: var(--crow-sea); stroke: var(--crow-dark); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .bar:hover { fill: var(--crow-dark); }

/* Logs */
.logs { background: var(--crow-dark); color: var(--crow-light); border-radius: var(--radius-sm); padding: 10px 12px; margin: 10px 0 0; overflow-x: auto; }
.logs .muted { color: var(--crow-mid); margin: 0; }
.log { margin: 0; padding: 2px 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.log-error { color: var(--crow-sea); }

/* Tables: inside a bordered, rounded box that scrolls sideways on its own when it doesn't fit. */
.scroll { overflow-x: auto; max-width: 100%; border: var(--border); border-radius: var(--radius); background: var(--surface); margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
/* Cells wrap only at spaces, never inside a word; a table that still doesn't fit scrolls sideways in its .scroll box. */
th, td { text-align: left; padding: 10px 12px; border-top: var(--hairline); overflow-wrap: normal; vertical-align: middle; }
th { font-size: 11px; color: var(--crow-dark); background: var(--crow-light); border-top: 0; border-bottom: var(--border); white-space: nowrap; }
tbody tr:hover td { background: color-mix(in srgb, var(--crow-sea) 18%, var(--surface)); }
td .muted { margin: 0; }
td button, td .button { min-height: 2.25rem; padding: 6px 12px; font-size: 13px; }
td .actions { margin: 0; }
.panel .scroll { margin-bottom: 8px; }

@media (min-width: 600px) {
  main { padding: 32px 24px 64px; }
  h1 { font-size: 28px; }
  header { padding: 14px 24px; }
  .staffbar { padding: 6px 24px; }
}
