.ws-body #organic, .ws-body .eye { display: none; }
/* Duskmoth workspace pages: developers, request, security, activity */
.ws { display: block; }
.ws a:focus-visible, .ws input:focus-visible, .ws select:focus-visible, .ws button:focus-visible, .ws summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.ws input[type="text"], .ws input[type="search"], .ws select {
  width: 100%; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03); color: var(--ink); font: inherit; font-size: 14px;
}
.ws select option { background: #111; color: var(--ink); }
.ws .mono, .ws code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }
.ws-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .ws-grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
/* A request uses two columns only when both the form and result are visible. */
.ws-grid.two:has(#req-to):has(> [aria-live]:empty),
.ws-grid.two:has(#req-to):has(> [hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; }
.ws-grid.two:has(#req-to) > [aria-live]:empty { display: none; }
.ws-in { padding: 20px; display: grid; gap: 16px; min-width: 0; }
.ws-field { display: grid; gap: 4px; }
.ws-field .hint { margin: 2px 0 0; }
.ws-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .ws-row.split { grid-template-columns: 120px minmax(0, 1fr); } }
.ws-err { margin: 0; color: var(--danger); font-size: 13.5px; }
.ws-ok { color: var(--ok); }
.ws-msg { padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255,100,100,.4); background: rgba(255,100,100,.06); font-size: 14px; display: grid; gap: 10px; justify-items: start; }
.ws-msg p { margin: 0; }
.ws-warn { list-style: none; margin: 0; padding: 12px 16px; border-left: 3px solid #ff7a4a; background: rgba(255,122,74,.07); border-radius: 0 12px 12px 0; display: grid; gap: 6px; font-size: 14px; }
.ws-dl { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.ws-dl > div { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .ws-dl > div { grid-template-columns: 150px minmax(0, 1fr); gap: 14px; } }
.ws-dl dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ws-dl dd { margin: 0; overflow-wrap: anywhere; }
.ws-amount { font-family: var(--display); font-size: clamp(34px, 6vw, 54px); line-height: 1; }
.ws-amount small { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; color: var(--amber); margin-left: 6px; }
.ws-addr { font-size: 13px; user-select: all; overflow-wrap: anywhere; }
.ws-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ws-copy input { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px !important; }
.ws-qr { display: grid; justify-items: center; gap: 10px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(233,196,106,.04); }
.ws-qr img { width: min(240px, 100%); height: auto; border-radius: 12px; background: #f2efe8; padding: 10px; image-rendering: pixelated; }
.ws-qr p { margin: 0; font-size: 13px; color: var(--ink-2); text-align: center; max-width: 34ch; }
.ws-empty { padding: 34px 20px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.ws-empty .glyph { font-family: var(--display); font-style: italic; font-size: 44px; color: var(--amber); line-height: 1; opacity: .8; }
.ws-empty p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.ws-reveal { animation: wsIn .6s var(--ease) both; }
@keyframes wsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reduced .ws-reveal { animation: none; }
@media (prefers-reduced-motion: reduce) { .ws-reveal { animation: none; } .sk { animation: none; } }

/* developers */
.ws-res { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .ws-res { grid-template-columns: 1fr 1fr; } .ws-res li:nth-child(even) { border-left: 1px solid var(--line); } }
.ws-res li { border-bottom: 1px solid var(--line); }
.ws-res a { display: grid; gap: 2px; padding: 16px 18px; text-decoration: none; transition: background .3s; min-height: 44px; }
.ws-res a:hover { background: rgba(233,196,106,.06); }
.ws-res b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ws-res small { color: var(--mute); font-size: 12px; overflow-wrap: anywhere; }
.ws-cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 10px 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.4); }
.ws-cmd code { font-size: 13px; overflow-x: auto; white-space: nowrap; }
.ws-cmd .btn { min-height: 36px; }
.ws-version { font-family: var(--display); font-style: italic; font-size: 40px; color: var(--amber); line-height: 1; }

/* security */
.ws-sec { list-style: none; margin: 0; padding: 0; counter-reset: sec; display: grid; }
.ws-sec li { counter-increment: sec; display: grid; gap: 6px; padding: 20px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .ws-sec li { grid-template-columns: 70px minmax(0, .9fr) minmax(0, 1.4fr); gap: 20px; align-items: baseline; } }
.ws-sec li::before { content: counter(sec, upper-roman); font-family: var(--display); font-style: italic; color: var(--amber); font-size: 24px; }
.ws-sec h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.ws-sec p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* activity */
.ws-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.ws-consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--amber); }
.ws-consent label { font-weight: 600; cursor: pointer; }
.ws-filters { display: grid; gap: 10px; }
@media (min-width: 720px) { .ws-filters { grid-template-columns: 1fr 1fr 2fr; } }
.ws-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ws-recs { list-style: none; margin: 0; padding: 0; display: grid; }
.ws-rec { display: grid; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .ws-rec { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; } }
.ws-rec .amt { font-family: var(--display); font-size: 22px; }
.ws-rec .meta { font-size: 12.5px; color: var(--mute); overflow-wrap: anywhere; }
.ws-rec .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-rec .btn { min-height: 38px; font-size: 12px; }
.ws-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.ws-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mute); }
.ws-status.ok::before { background: var(--ok); }
.ws-status.bad::before { background: var(--danger); }
.ws-status.wait::before { background: var(--amber); }
.ws-file { position: relative; }
.ws-file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.ws-file:focus-within .btn { outline: 2px solid var(--amber); outline-offset: 3px; }

.ws-foot-nav { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .ws-foot-nav { grid-template-columns: repeat(4, 1fr); } }
.ws-foot-nav a { display: grid; padding: 16px 18px; text-decoration: none; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-left: 1px solid var(--line); transition: background .3s; }
.ws-foot-nav a:nth-child(odd) { border-left: 0; }
@media (min-width: 760px) { .ws-foot-nav a:nth-child(odd) { border-left: 1px solid var(--line); } .ws-foot-nav a:first-child { border-left: 0; } }
.ws-foot-nav a:hover, .ws-foot-nav a[aria-current] { background: rgba(233,196,106,.06); }
.ws-foot-nav span { font-family: var(--display); font-style: italic; color: var(--amber); font-size: 22px; text-transform: none; }

/* ---------- layout repair: forms, fields, rows, heads ---------- */
/* Forms had no internal spacing, so helpers touched the action row. */
.ws form { display: grid; gap: 18px; min-width: 0; }
/* Stretched grid cells shared spare height across auto rows, inflating the select beside a field with a helper. */
.ws-field { align-content: start; min-width: 0; gap: 6px; }
.ws .ws-field .field-lab { margin: 0; }
.ws-field .hint { margin: 0; line-height: 1.45; }
.ws-row { align-items: start; min-width: 0; }
.ws-row > * { min-width: 0; }
@media (min-width: 560px) { .ws-row.split { grid-template-columns: minmax(110px, 140px) minmax(0, 1fr); } }
.ws input[type="text"], .ws input[type="search"], .ws select { height: 44px; line-height: 1.2; color-scheme: dark; }
.ws select {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.ws input::placeholder { color: var(--mute); opacity: 1; }
.ws input:focus-visible, .ws select:focus-visible { border-color: var(--amber); }
.ws-err:empty { display: none; }
.ws .row-actions { align-items: center; }
.ws .row-actions > .hint { flex-basis: 100%; margin: 0; }
.ws-in > .hint { margin: 0; }
.ws-copy { align-items: center; min-width: 0; }
.ws-copy input { min-width: 0; }
.ws .panel-head { flex-wrap: wrap; row-gap: 10px; }
.ws .panel-head h2 { min-width: 0; }
.ws-tools .btn, .ws-rec .btn { min-height: 40px; }
.ws-rec > * { min-width: 0; }
.ws-cmd { min-width: 0; }
.ws-cmd code { min-width: 0; }
.ws-res a, .ws-foot-nav a { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 559px) {
  .ws-copy { grid-template-columns: minmax(0, 1fr); }
  .ws .panel-head .ws-tools { width: 100%; }
  .ws .panel-head .ws-tools > * { flex: 1 1 auto; }
  .ws-in { padding: 16px; }
}
.ws-grid > *, .ws-in > *, .ws form > *, .ws-field > *, .ws-dl > div > * { min-width: 0; }
