:root {
  --paper: #eee9de;
  --paper-deep: #e3ddd1;
  --paper-light: #f8f5ed;
  --ink: #171918;
  --ink-soft: #4f524f;
  --ink-faint: #777a76;
  --rule: rgba(23, 25, 24, 0.2);
  --rule-strong: rgba(23, 25, 24, 0.42);
  --blue: #244ce6;
  --blue-dark: #1939b3;
  --amber: #d98419;
  --amber-pale: #f2d29e;
  --green: #1d8054;
  --red: #b23b2b;
  --graphite: #151817;
  --graphite-2: #1c201e;
  --graphite-3: #242927;
  --graphite-rule: rgba(255, 255, 255, 0.14);
  --white: #f7f6f1;
  --shadow-sm: 0 10px 24px rgba(23, 25, 24, 0.08);
  --shadow-md: 0 24px 70px rgba(23, 25, 24, 0.2);
  --shell: min(1380px, calc(100vw - 64px));
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.workspace-open {
  overflow: hidden;
  background: var(--graphite);
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
label[for],
input[type="file"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
textarea:disabled {
  cursor: wait;
  opacity: 0.58;
}

a {
  color: inherit;
}

::selection {
  color: var(--white);
  background: var(--blue);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.public-desk {
  min-height: 100vh;
  overflow: clip;
  background:
    linear-gradient(rgba(23, 25, 24, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 24, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--rule-strong);
}

.wordmark {
  display: inline-flex;
  width: max-content;
  align-items: baseline;
  color: var(--ink);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.075em;
  line-height: 1;
  text-decoration: none;
}

.wordmark i {
  color: var(--blue);
  font-style: normal;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 128, 84, 0.12);
}

.command-button {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 15px;
  min-height: 39px;
  padding: 7px 8px 7px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

kbd {
  min-width: 23px;
  padding: 3px 6px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.command-button:hover {
  color: var(--paper-light);
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(50px, 8vw, 140px);
  align-items: center;
  min-height: min(780px, calc(100vh - 86px));
  padding-block: 86px 100px;
}

.section-index {
  display: flex;
  width: min(100%, 520px);
  align-items: center;
  justify-content: space-between;
  margin: 0 0 32px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.section-index b {
  color: var(--blue);
  font-weight: 600;
}

.hero h1 {
  max-width: 810px;
  margin: 0;
  font-size: clamp(54px, 6.5vw, 104px);
  font-weight: 650;
  letter-spacing: -0.067em;
  line-height: 0.9;
}

.hero h1 em {
  display: block;
  margin-top: 14px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86em;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.hero-intro {
  max-width: 570px;
  margin: 38px 0 27px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  color: var(--blue);
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.hero-object {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 0.88;
  justify-self: end;
}

.paper-stack,
.field-card {
  position: absolute;
  inset: 4% 3% 4% 3%;
  border: 1px solid var(--rule-strong);
  background: var(--paper-light);
  box-shadow: var(--shadow-sm);
}

.paper-back {
  transform: rotate(5deg) translate(4%, 1%);
  background: var(--amber-pale);
}

.paper-middle {
  transform: rotate(-3deg) translate(-3%, 1%);
  background: #d9d3c7;
}

.field-card {
  display: flex;
  flex-direction: column;
  padding: clamp(25px, 4vw, 50px);
  transform: rotate(0.7deg);
  overflow: hidden;
}

.field-card::after {
  position: absolute;
  content: "";
  right: -30%;
  bottom: -25%;
  width: 80%;
  aspect-ratio: 1;
  border: 80px solid rgba(36, 76, 230, 0.07);
  border-radius: 50%;
}

.field-card-head,
.field-card-foot {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.field-card p {
  position: relative;
  z-index: 1;
  margin: auto 0;
  color: var(--ink);
  font-size: clamp(32px, 4.5vw, 65px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.field-card p::first-line {
  color: var(--blue);
}

.field-stamp {
  position: absolute;
  z-index: 2;
  right: 9%;
  bottom: 19%;
  padding: 13px 17px;
  border: 3px solid var(--amber);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-8deg);
}

.field-card-foot {
  padding: 13px 0 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 0;
  font-size: 9px;
}

.registration-mark {
  position: absolute;
  color: var(--blue);
  font: 20px/1 var(--mono);
}

.mark-one { top: 21%; right: 9%; }
.mark-two { bottom: 25%; left: 8%; }

.field-rule {
  position: absolute;
  z-index: 0;
  width: 2px;
  height: 16%;
  background: var(--ink);
}

.rule-a { top: 24%; left: 14%; }
.rule-b { top: 24%; left: 17%; height: 8%; background: var(--amber); }
.rule-c { right: 13%; bottom: 31%; height: 11%; background: var(--blue); }

.tools-section {
  padding-block: 100px 130px;
  border-top: 1px solid var(--rule-strong);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 80px;
  align-items: end;
  margin-bottom: 55px;
}

.section-heading .section-index {
  margin-bottom: 24px;
}

.section-heading h2,
.method-layout h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 640;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.tool-card {
  position: relative;
  grid-column: span 4;
  min-width: 0;
  min-height: 600px;
  padding: 34px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(248, 245, 237, 0.62);
}

.tool-number {
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(23, 25, 24, 0.11);
  font-family: var(--mono);
  font-size: 74px;
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 1;
}

.tool-title-row {
  display: flex;
  position: relative;
  z-index: 1;
  min-height: 85px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.tool-kicker,
.workroom-kicker,
.sidebar-label,
.credential-kicker,
.confirm-kicker {
  margin: 0 0 9px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.tool-card h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.tool-symbol {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--blue);
  font-size: 20px;
}

.tool-description {
  min-height: 76px;
  margin: 13px 0 27px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.tool-form label {
  display: block;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.input-action-row {
  display: flex;
}

input,
textarea {
  border-radius: 0;
}

.input-action-row input,
.tool-text textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ink);
  background: var(--paper-light);
}

.input-action-row input {
  height: 48px;
  padding: 0 13px;
  border-right: 0;
  font-size: 13px;
}

.primary-button {
  min-width: 76px;
  border: 1px solid var(--blue);
  color: var(--white);
  background: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.primary-button:hover {
  background: var(--blue-dark);
}

.field-message {
  margin: 9px 0 0;
  font-size: 12px;
}

.error-message,
.route-error {
  color: var(--red);
}

.result-panel {
  margin-top: 19px;
  padding: 17px;
  border: 1px solid var(--rule-strong);
  background: rgba(255, 255, 255, 0.5);
}

.result-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mono-output {
  display: block;
  max-height: 105px;
  overflow: auto;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
}

.quiet-button {
  margin-top: 13px;
  padding: 8px 0 5px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiet-button:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.tool-text textarea {
  display: block;
  min-height: 170px;
  padding: 15px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.6;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}

.metric-grid div {
  min-width: 0;
  padding: 10px 8px;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  text-overflow: ellipsis;
}

.metric-grid span {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hash-dropzone {
  display: flex;
  min-height: 188px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed var(--rule-strong);
  background: rgba(255, 255, 255, 0.25);
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.hash-dropzone:hover,
.hash-dropzone.is-over {
  border-color: var(--blue);
  background: rgba(36, 76, 230, 0.06);
}

.hash-dropzone.is-over {
  transform: scale(0.99);
}

.hash-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hash-dropzone:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.dropzone-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-size: 23px;
  line-height: 1;
}

.hash-dropzone strong {
  font-size: 14px;
}

.hash-dropzone small {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 11px;
}

.hash-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
}

.spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid rgba(23, 25, 24, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

.spinner.light {
  border-color: rgba(255, 255, 255, 0.17);
  border-top-color: var(--amber);
}

@keyframes spin { to { transform: rotate(360deg); } }

.hash-output {
  word-break: break-all;
}

.method-section {
  padding-block: 110px;
  border-top: 1px solid var(--rule-strong);
}

.method-section > .section-index {
  width: 100%;
  max-width: none;
}

.method-layout {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.67fr);
  gap: 120px;
  align-items: start;
}

.method-layout h2 {
  max-width: 760px;
}

.method-notes {
  border-top: 1px solid var(--ink);
}

.method-notes p {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  margin: 0;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  font-size: 14px;
}

.method-notes span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  align-items: end;
  padding-block: 70px 34px;
  border-top: 1px solid var(--ink);
}

.footer-wordmark {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: clamp(74px, 13vw, 190px);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.75;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.footer-command {
  justify-self: center;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-command kbd {
  margin-left: 7px;
}

.copyright {
  justify-self: end;
  font-family: var(--mono);
}

/* Dialog system */
dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
}

dialog::backdrop {
  background: rgba(13, 15, 14, 0.65);
  backdrop-filter: blur(9px);
}

dialog[open] {
  animation: dialog-in 180ms ease-out both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.command-dialog {
  width: min(650px, calc(100vw - 30px));
  margin-top: max(11vh, 54px);
}

.command-surface {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: var(--graphite-2);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.command-input-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 17px 18px;
  border-bottom: 1px solid var(--graphite-rule);
}

.command-input-row > span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 25px;
}

.command-input-row input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  font-size: 18px;
}

.command-input-row input::placeholder {
  color: rgba(247, 246, 241, 0.42);
}

.command-input-row kbd {
  color: rgba(247, 246, 241, 0.48);
}

.command-label {
  margin: 0;
  padding: 18px 18px 8px;
  color: rgba(247, 246, 241, 0.4);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.suggestion-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border: 0;
  color: rgba(247, 246, 241, 0.78);
  background: transparent;
  text-align: left;
}

.suggestion-button:hover,
.suggestion-button:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.suggestion-button kbd {
  border: 0;
  color: rgba(247, 246, 241, 0.35);
}

.command-thinking {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.command-thinking span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  animation: thinking 900ms ease-in-out infinite alternate;
}

.command-thinking span:nth-child(2) { animation-delay: 150ms; }
.command-thinking span:nth-child(3) { animation-delay: 300ms; }

.command-thinking em {
  margin-left: 7px;
  color: rgba(247, 246, 241, 0.45);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes thinking { to { opacity: 0.2; transform: translateY(-3px); } }

.command-message {
  min-height: 70px;
  margin: 0;
  padding: 22px 18px;
  color: rgba(247, 246, 241, 0.62);
  font-size: 13px;
}

.route-dialog {
  width: min(790px, calc(100vw - 26px));
}

.route-surface {
  position: relative;
  padding: clamp(25px, 5vw, 55px);
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.dialog-close {
  position: absolute;
  z-index: 20;
  top: 13px;
  right: 13px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--rule-strong);
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.dialog-close:hover {
  color: var(--paper);
  background: var(--ink);
}

.route-heading p {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.route-heading h2 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.route-heading > span {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.routing-desk {
  position: relative;
  height: 330px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background:
    linear-gradient(rgba(23, 25, 24, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 24, 0.04) 1px, transparent 1px),
    var(--paper-deep);
  background-size: 20px 20px;
  touch-action: none;
}

.routing-slip {
  position: absolute;
  z-index: 4;
  top: 56px;
  left: 52px;
  width: 210px;
  min-height: 177px;
  padding: 15px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: 4px 7px 0 rgba(23, 25, 24, 0.15);
  text-align: left;
  user-select: none;
  touch-action: none;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.routing-slip:hover,
.routing-slip:focus-visible {
  box-shadow: 7px 11px 0 rgba(23, 25, 24, 0.17);
}

.routing-slip.is-dragging {
  cursor: grabbing;
  box-shadow: 12px 18px 22px rgba(23, 25, 24, 0.22);
  transition: none;
}

.routing-slip.is-routing {
  pointer-events: none;
  animation: file-slip 420ms ease-in forwards;
}

@keyframes file-slip {
  75% { opacity: 1; transform: scale(0.88) rotate(3deg); }
  to { opacity: 0; transform: scale(0.6) rotate(5deg); }
}

.slip-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 8px;
}

.slip-top i {
  color: var(--blue);
  font-style: normal;
}

.routing-slip > strong {
  display: block;
  margin-top: 18px;
  font-size: 19px;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.slip-lines {
  display: block;
  height: 28px;
  margin-block: 15px 9px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.routing-slip small {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.in-tray {
  position: absolute;
  right: 42px;
  bottom: 46px;
  display: flex;
  width: 260px;
  height: 120px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 21px;
  border: 2px solid var(--blue);
  color: var(--blue);
  background: rgba(36, 76, 230, 0.05);
  pointer-events: none;
}

.in-tray::before,
.in-tray::after {
  position: absolute;
  content: "";
  top: -13px;
  width: 2px;
  height: 13px;
  background: var(--blue);
}

.in-tray::before { left: -2px; }
.in-tray::after { right: -2px; }

.in-tray.is-ready {
  color: var(--white);
  background: var(--blue);
}

.in-tray span {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.in-tray small {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.route-instructions {
  position: absolute;
  left: 20px;
  bottom: 10px;
  margin: 0;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-error {
  margin: 13px 0 0;
  font-size: 12px;
}

.credential-dialog {
  width: min(560px, calc(100vw - 26px));
}

.credential-sheet {
  position: relative;
  padding: clamp(32px, 6vw, 60px);
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: var(--shadow-md);
}

.credential-sheet::before {
  position: absolute;
  content: "";
  inset: 9px;
  border: 1px solid var(--rule);
  pointer-events: none;
}

.credential-meta {
  display: flex;
  position: relative;
  justify-content: space-between;
  margin-bottom: 60px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.credential-sheet h2 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 51px);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1;
}

.credential-sheet > p:not(.credential-kicker):not(.field-message) {
  position: relative;
  margin: 0 0 32px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.credential-sheet label,
.note-sheet > label {
  display: block;
  position: relative;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.password-field {
  display: grid;
  position: relative;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--ink);
}

.password-field input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
}

.password-field button {
  padding-inline: 13px;
  border: 0;
  border-left: 1px solid var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.password-field button:hover {
  color: var(--white);
  background: var(--ink);
}

.credential-submit {
  display: flex;
  position: relative;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 15px 17px;
  border: 0;
  color: var(--white);
  background: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-submit:hover {
  background: var(--blue-dark);
}

.credential-foot {
  display: flex;
  position: relative;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 11px;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.09em;
}

.access-sheet {
  max-height: min(820px, calc(100vh - 28px));
  overflow-y: auto;
}

.access-sheet .credential-meta {
  margin-bottom: 36px;
}

.access-sheet h2 {
  font-size: clamp(31px, 5vw, 44px);
}

.access-sheet .password-field {
  margin-bottom: 18px;
}

.access-sheet .credential-foot {
  margin-top: 34px;
}

/* Private workroom */
.workroom {
  position: fixed;
  z-index: 80;
  inset: 0;
  overflow: auto;
  color: var(--white);
  background: var(--graphite);
}

.workroom-header {
  display: flex;
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(20px, 3.5vw, 56px);
  border-bottom: 1px solid var(--graphite-rule);
  background: rgba(21, 24, 23, 0.94);
  backdrop-filter: blur(16px);
}

.workroom-brand,
.workroom-actions {
  display: flex;
  align-items: center;
}

.workroom-brand {
  gap: 16px;
  color: rgba(247, 246, 241, 0.55);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.wordmark.inverse {
  color: var(--white);
  font-family: var(--sans);
  font-size: 21px;
}

.workroom-divider {
  width: 1px;
  height: 19px;
  background: var(--graphite-rule);
}

.workroom-actions {
  gap: 18px;
}

.session-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 246, 241, 0.57);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.session-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4fd197;
}

.dark-button,
.workroom-button {
  border: 1px solid var(--graphite-rule);
  color: var(--white);
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dark-button {
  min-height: 36px;
  padding-inline: 13px;
}

.dark-button:hover,
.workroom-button:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.workroom-shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: calc(100vh - 74px);
}

.workroom-sidebar {
  display: flex;
  position: sticky;
  top: 74px;
  height: calc(100vh - 74px);
  justify-content: space-between;
  flex-direction: column;
  padding: 48px 28px 30px;
  border-right: 1px solid var(--graphite-rule);
  background: var(--graphite-2);
}

.sidebar-label {
  margin: 0 10px 15px;
  color: rgba(247, 246, 241, 0.35);
}

.filter-nav {
  display: grid;
  gap: 4px;
}

.filter-button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 0;
  color: rgba(247, 246, 241, 0.54);
  background: transparent;
  font-size: 13px;
  text-align: left;
}

.filter-button b {
  min-width: 24px;
  padding: 2px 5px;
  border: 1px solid var(--graphite-rule);
  color: rgba(247, 246, 241, 0.45);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  text-align: center;
}

.filter-button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.filter-button.is-active {
  color: var(--white);
  background: var(--blue);
}

.filter-button.is-active b {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.storage-card {
  padding: 14px;
  border: 1px solid var(--graphite-rule);
}

.storage-heading {
  display: flex;
  justify-content: space-between;
  color: rgba(247, 246, 241, 0.48);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.storage-track {
  height: 3px;
  margin-block: 12px 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.storage-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--amber);
  transition: width 240ms ease;
}

.storage-card p {
  margin: 0;
  color: rgba(247, 246, 241, 0.38);
  font-size: 9px;
}

.storage-card strong {
  color: rgba(247, 246, 241, 0.7);
  font-weight: 500;
}

.workroom-main {
  min-width: 0;
  padding: clamp(34px, 5vw, 78px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.017) 1px, transparent 1px),
    var(--graphite);
  background-size: 24px 24px;
}

.workroom-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--graphite-rule);
}

.workroom-kicker {
  color: var(--amber);
}

.workroom-title-row h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 620;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.create-actions {
  display: flex;
  gap: 8px;
}

.workroom-button {
  min-height: 42px;
  padding-inline: 14px;
}

.workroom-button span {
  margin-right: 5px;
  color: var(--amber);
  font-size: 14px;
}

.workroom-button.accent {
  border-color: var(--amber);
  color: var(--graphite);
  background: var(--amber);
}

.workroom-button.accent span {
  color: var(--graphite);
}

.workroom-button.accent:hover {
  border-color: #e69a37;
  background: #e69a37;
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 21px;
}

.workspace-search {
  display: grid;
  width: min(100%, 470px);
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 43px;
  padding-inline: 12px;
  border: 1px solid var(--graphite-rule);
  background: var(--graphite-2);
}

.workspace-search > span {
  color: rgba(247, 246, 241, 0.4);
  font-size: 17px;
}

.workspace-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  font-size: 13px;
}

.workspace-search input::placeholder {
  color: rgba(247, 246, 241, 0.33);
}

.workspace-search kbd {
  color: rgba(247, 246, 241, 0.3);
}

.workspace-toolbar > p {
  margin: 0;
  color: rgba(247, 246, 241, 0.36);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-dropzone {
  display: none;
  position: fixed;
  z-index: 50;
  inset: 74px 0 0 235px;
  place-items: center;
  border: 3px dashed var(--amber);
  background: rgba(21, 24, 23, 0.92);
  backdrop-filter: blur(10px);
}

.workspace-dropzone.is-visible {
  display: grid;
}

.workspace-dropzone div {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 35px;
  border: 1px solid var(--amber);
  background: var(--graphite-2);
}

.workspace-dropzone div > span {
  color: var(--amber);
  font-size: 42px;
}

.workspace-dropzone p {
  margin: 0;
}

.workspace-dropzone small {
  color: rgba(247, 246, 241, 0.45);
}

.workspace-loading,
.workspace-empty {
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--graphite-rule);
  color: rgba(247, 246, 241, 0.48);
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}

.workspace-loading p {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-empty h2 {
  margin: 22px 0 7px;
  color: var(--white);
  font-size: 27px;
  letter-spacing: -0.04em;
}

.workspace-empty p {
  max-width: 360px;
  margin: 0;
  font-size: 13px;
}

.empty-glyph {
  position: relative;
  width: 90px;
  height: 72px;
}

.empty-glyph span {
  position: absolute;
  inset: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  background: var(--graphite-2);
}

.empty-glyph span:nth-child(1) { transform: rotate(-7deg); }
.empty-glyph span:nth-child(2) { transform: rotate(5deg); }
.empty-glyph span:nth-child(3) { transform: none; border-color: var(--amber); }

.workspace-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 13px;
}

.item-card {
  display: flex;
  min-width: 0;
  min-height: 235px;
  justify-content: space-between;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--graphite-rule);
  background: var(--graphite-2);
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.item-card:hover,
.item-card:focus-within {
  border-color: rgba(255, 255, 255, 0.34);
  background: var(--graphite-3);
  transform: translateY(-2px);
}

.item-card.is-deleted {
  opacity: 0.68;
  border-style: dashed;
}

.item-topline,
.item-card-foot,
.file-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.item-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.item-type i {
  display: block;
  width: 6px;
  height: 6px;
  background: currentColor;
}

.item-date {
  color: rgba(247, 246, 241, 0.28);
  font-family: var(--mono);
  font-size: 8px;
}

.item-card h2 {
  display: -webkit-box;
  margin: 23px 0 7px;
  overflow: hidden;
  color: var(--white);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.17;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.item-preview {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(247, 246, 241, 0.43);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.file-icon {
  position: relative;
  width: 50px;
  height: 62px;
  margin-top: 23px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.file-icon::before {
  position: absolute;
  content: "";
  top: -1px;
  right: -1px;
  width: 15px;
  height: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  background: var(--graphite-2);
}

.file-icon span {
  position: absolute;
  left: 7px;
  bottom: 6px;
  max-width: 36px;
  overflow: hidden;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.file-facts {
  justify-content: flex-start;
  margin-top: 9px;
  color: rgba(247, 246, 241, 0.34);
  font-family: var(--mono);
  font-size: 8px;
}

.item-card-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--graphite-rule);
}

.item-primary-action,
.item-menu-button {
  border: 0;
  color: rgba(247, 246, 241, 0.66);
  background: transparent;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.item-primary-action {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.item-primary-action:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.item-menu-wrap {
  position: relative;
}

.item-menu-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--graphite-rule);
  font-size: 14px;
}

.item-menu-button:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.item-menu {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 36px;
  width: 170px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #292e2b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.item-menu button {
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  color: rgba(247, 246, 241, 0.7);
  background: transparent;
  font-size: 11px;
  text-align: left;
}

.item-menu button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.item-menu .menu-danger {
  color: #ef8b7e;
}

/* Note and confirmation dialogs */
.note-dialog {
  width: min(760px, calc(100vw - 24px));
}

.note-sheet {
  position: relative;
  padding: clamp(25px, 5vw, 50px);
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: var(--shadow-md);
}

.note-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 35px;
  padding-bottom: 17px;
  border-bottom: 2px solid var(--ink);
}

.note-sheet-head p {
  margin: 0 0 5px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.note-sheet-head h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.045em;
}

.dialog-close.dark-close {
  position: static;
  flex: 0 0 34px;
}

.note-sheet > input,
.note-sheet > textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--ink);
  background: transparent;
}

.note-sheet > input {
  height: 48px;
  margin-bottom: 23px;
  padding: 0 13px;
  font-weight: 650;
}

.note-sheet > textarea {
  min-height: 265px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

.note-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
}

.note-form-foot > span {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
}

.note-form-foot > div,
.confirm-actions {
  display: flex;
  gap: 8px;
}

.cancel-button,
.save-button,
.danger-button {
  min-height: 39px;
  padding-inline: 15px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cancel-button {
  background: transparent;
}

.cancel-button:hover {
  background: rgba(23, 25, 24, 0.07);
}

.save-button {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.save-button:hover {
  background: var(--blue-dark);
}

.confirm-dialog {
  width: min(440px, calc(100vw - 24px));
}

.confirm-sheet {
  padding: 34px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: var(--shadow-md);
}

.confirm-kicker {
  color: var(--red);
}

.confirm-sheet h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.confirm-sheet > p:not(.confirm-kicker) {
  margin: 11px 0 27px;
  color: var(--ink-soft);
  font-size: 13px;
}

.confirm-actions {
  justify-content: flex-end;
}

.danger-button {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.danger-button:hover {
  background: #932f23;
}

/* Transfers and notices */
.upload-shelf {
  position: fixed;
  z-index: 120;
  right: 18px;
  bottom: 18px;
  width: min(390px, calc(100vw - 36px));
  border: 1px solid rgba(255, 255, 255, 0.23);
  color: var(--white);
  background: var(--graphite-2);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.upload-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding-inline: 14px 9px;
  border-bottom: 1px solid var(--graphite-rule);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-shelf-head button {
  width: 28px;
  height: 28px;
  border: 0;
  color: rgba(247, 246, 241, 0.55);
  background: transparent;
  font-size: 18px;
}

.upload-row {
  padding: 12px 14px;
  border-bottom: 1px solid var(--graphite-rule);
}

.upload-row:last-child {
  border-bottom: 0;
}

.upload-row-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 8px;
  font-size: 11px;
}

.upload-row-line strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-row-line span {
  flex: 0 0 auto;
  color: rgba(247, 246, 241, 0.4);
  font-family: var(--mono);
  font-size: 8px;
}

.upload-row.is-error .upload-row-line span {
  color: #ef8b7e;
}

.upload-track {
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.upload-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--amber);
  transition: width 150ms linear;
}

.upload-row.is-complete .upload-track span {
  background: #4fd197;
}

.toast-region {
  position: fixed;
  z-index: 200;
  top: 18px;
  right: 18px;
  display: grid;
  width: min(350px, calc(100vw - 36px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 5px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  background: var(--graphite-2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  animation: toast-in 180ms ease-out both;
}

.toast::before {
  display: block;
  width: 5px;
  height: 100%;
  content: "";
  background: var(--blue);
}

.toast.is-error::before { background: #ef8b7e; }
.toast.is-success::before { background: #4fd197; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(12px); }
}

/* Responsive layout */
@media (max-width: 1100px) {
  :root { --shell: min(100% - 40px, 960px); }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
    gap: 50px;
  }

  .tool-card {
    grid-column: span 6;
  }

  .tool-file {
    grid-column: span 12;
    min-height: 470px;
  }

  .tool-file .hash-dropzone {
    min-height: 160px;
  }

  .method-layout {
    gap: 60px;
  }

  .workroom-shell {
    grid-template-columns: 205px 1fr;
  }

  .workspace-dropzone {
    left: 205px;
  }

  .workroom-sidebar {
    padding-inline: 20px;
  }
}

@media (max-width: 780px) {
  :root { --shell: calc(100% - 30px); }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
  }

  .header-meta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 68px 74px;
  }

  .hero-object {
    width: min(92%, 480px);
    justify-self: center;
  }

  .section-heading,
  .method-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tools-section {
    padding-block: 75px 90px;
  }

  .tool-card,
  .tool-file {
    grid-column: span 12;
    min-height: 0;
  }

  .method-section {
    padding-block: 80px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p:first-of-type {
    grid-column: 1 / -1;
  }

  .footer-command {
    justify-self: start;
  }

  .footer-wordmark {
    font-size: 20vw;
  }

  .routing-desk {
    height: 390px;
  }

  .routing-slip {
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
  }

  .routing-slip.is-dragging {
    transform: none;
  }

  .in-tray {
    right: 50%;
    bottom: 42px;
    width: min(260px, calc(100% - 40px));
    transform: translateX(50%);
  }

  .workroom {
    position: fixed;
  }

  .workroom-header {
    min-height: 65px;
    padding-inline: 15px;
  }

  .workroom-actions {
    gap: 6px;
  }

  .workroom-actions .dark-button {
    min-height: 34px;
    padding-inline: 9px;
    font-size: 8px;
  }

  .workroom-brand > span:last-child,
  .workroom-divider,
  .session-status {
    display: none;
  }

  .workroom-shell {
    display: block;
  }

  .workroom-sidebar {
    display: block;
    position: sticky;
    z-index: 9;
    top: 65px;
    width: 100%;
    height: auto;
    padding: 9px 15px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--graphite-rule);
  }

  .workroom-sidebar .sidebar-label,
  .storage-card {
    display: none;
  }

  .filter-nav {
    display: flex;
    min-width: max-content;
    gap: 5px;
  }

  .filter-button {
    width: auto;
    gap: 8px;
    min-height: 36px;
  }

  .workroom-main {
    padding: 30px 15px 60px;
  }

  .workroom-title-row {
    display: block;
  }

  .create-actions {
    margin-top: 24px;
  }

  .workspace-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-search {
    width: 100%;
  }

  .workspace-dropzone {
    inset: 65px 0 0;
  }

  .workspace-items {
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  }
}

@media (max-width: 480px) {
  .command-button span {
    display: none;
  }

  .command-button {
    gap: 0;
    padding: 6px;
  }

  .hero h1 {
    font-size: 15vw;
  }

  .hero-object {
    width: 100%;
  }

  .tool-card {
    padding: 25px 20px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .copyright {
    justify-self: start;
  }

  .route-surface {
    padding: 25px 15px 15px;
  }

  .route-heading {
    padding-right: 34px;
  }

  .routing-slip {
    width: 190px;
    min-height: 163px;
  }

  .credential-sheet {
    padding: 42px 25px 28px;
  }

  .credential-meta {
    margin-bottom: 40px;
  }

  .workroom-title-row h1 {
    font-size: 46px;
  }

  .create-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .workroom-button {
    padding-inline: 8px;
  }

  .workspace-items {
    grid-template-columns: 1fr;
  }

  .note-form-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .note-form-foot > div {
    width: 100%;
  }

  .note-form-foot button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --rule: rgba(23, 25, 24, 0.42);
    --rule-strong: rgba(23, 25, 24, 0.72);
    --graphite-rule: rgba(255, 255, 255, 0.35);
  }
}

@media print {
  .site-header,
  .hero-object,
  .command-button,
  .footer-command,
  dialog,
  .workroom,
  .upload-shelf,
  .toast-region {
    display: none !important;
  }

  .public-desk {
    background: white;
  }

  .hero {
    min-height: auto;
  }
}
