/* System type, a quiet canvas and four distinct sharing regions. No remote assets. */
:root {
  --brand: #0071e3;
  --brand-hover: #0062c5;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #dedee3;
  --canvas: #f5f5f7;
  --white: #fff;
  --danger: #c22c32;
  --shadow: 0 2px 6px #1d1d1f04, 0 12px 28px #1d1d1f05;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .42; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button svg { flex-shrink: 0; }
[hidden] { display: none !important; }

button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

textarea, input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfcfd6;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
}
textarea { resize: vertical; min-height: 88px; max-height: 360px; line-height: 1.6; }
textarea::placeholder, input::placeholder { color: var(--muted); opacity: 1; }
textarea:focus, input:focus { border-color: var(--brand); }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--white);
  z-index: 1000;
}
.skip-link:focus { top: 12px; }

/* The toolbar stays secondary to the page title and sharing cards. */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px max(32px, calc((100vw - 1536px) / 2));
  border-bottom: 1px solid #e5e5e9;
  background: #ffffffed;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand > span { display: flex; align-items: center; gap: 16px; }
.brand strong { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.brand-divider { height: 20px; width: 1px; background: var(--line); }
.brand-product { color: #515155; font-size: 15px; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.connection { display: flex; align-items: center; gap: 8px; margin-right: 12px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #929298; }
.connection[data-state=online] .connection-dot { background: #24834a; }
.connection[data-state=offline] .connection-dot { background: #bb6200; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background .16s, border-color .16s, color .16s;
}
.button-outlined { border-color: var(--line); background: var(--white); }
.button-outlined:hover { border-color: #b9b9c1; background: #f7f7f9; }
.button-subtle { color: #515155; }
.button-subtle:hover { background: #ededf1; color: var(--ink); }
.button-primary { background: var(--brand); color: var(--white); }
.button-primary:hover { background: var(--brand-hover); }
.button-danger { background: var(--danger); color: var(--white); }
.button-danger:hover { background: #a71f25; }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
}
.icon-button:hover { background: #ededf1; color: var(--ink); }

.page-shell { max-width: 1600px; margin: 0 auto; padding: 40px 32px 28px; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
h1 { font-size: 48px; font-weight: 750; line-height: 1.15; letter-spacing: -1.8px; }
.intro-description { margin-top: 12px; color: #626267; font-size: 17px; letter-spacing: .1px; }
.expiry-note {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffffa6;
}
.expiry-note > .icon { width: 28px; height: 28px; color: #515155; stroke-width: 1.6; }
.expiry-note strong { display: block; font-size: 19px; font-weight: 650; line-height: 1.35; font-variant-numeric: tabular-nums; }
.expiry-note span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.workspace-heading h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 650; letter-spacing: -.4px; }
.workspace-heading h2 span { padding: 4px 10px; border-radius: 20px; background: #e8e8ed; color: #626267; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.workspace-hint { color: var(--muted); font-size: 14px; }
.workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: stretch; }
.slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-content: start; }

/* Color always accompanies a region name and number. Each header has AA white text. */
.slot {
  --accent: #0866d9;
  --accent-hover: #0056bd;
  --accent-border: #c6dcf7;
  --tint: #f0f6ff;
  --accent-soft: #e2eeff;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  background: var(--tint);
  box-shadow: var(--shadow);
}
.slot-2 { --accent: #087a47; --accent-hover: #00643a; --accent-border: #c5e4d3; --tint: #f0f9f4; --accent-soft: #dff1e7; }
.slot-3 { --accent: #b95000; --accent-hover: #9e4200; --accent-border: #efd5bc; --tint: #fff7ee; --accent-soft: #ffead5; }
.slot-4 { --accent: #7944cb; --accent-hover: #6534b0; --accent-border: #decff2; --tint: #f7f2fd; --accent-soft: #ede3fa; }
.slot:focus-within { border-color: var(--accent); }
.slot :focus-visible { outline-color: var(--accent); }
.slot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--accent); color: var(--white); }
.slot-head h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 650; letter-spacing: -.3px; }
.slot-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #ffffff38; border-radius: 11px; background: #0000000f; font-size: 14px; font-weight: 600; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.item-count { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; height: 25px; padding: 0 6px; border-radius: 20px; background: #0000000f; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot-head .clear-button { color: var(--white); }
.slot-head .clear-button:hover { background: #ffffff24; }
.slot-head .clear-button:focus-visible { outline-color: var(--white); outline-offset: 0; }
.slot-body { flex: 1; min-height: 136px; max-height: 420px; padding: 0 16px 14px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--accent-border) transparent; }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; min-height: 136px; padding: 22px 6px 12px; text-align: center; }
.empty-state .empty-icon { width: 48px; height: 48px; margin-bottom: 5px; padding: 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); stroke-width: 1.6; }
.empty-state strong { color: #49494f; font-size: 15px; font-weight: 600; }
.empty-state > span { color: #6b6b70; font-size: 13px; line-height: 1.6; }
.composer { padding: 16px; border-top: 1px solid var(--accent-border); background: var(--white); }
.text-input { display: block; min-height: 68px; max-height: 180px; padding: 10px 12px; border: 1px solid #d8d8df; border-radius: 12px; background: #fafafa; font-size: 16px; }
.text-input:focus { border-color: var(--accent); background: var(--white); }
.composer-toolbar { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.button-upload { min-height: 44px; padding: 10px 8px; color: #515155; font-size: 14px; font-weight: 500; }
.button-upload > .icon { width: 18px; height: 18px; }
.button-upload:hover { background: var(--tint); color: var(--accent); }
.keyboard-hint { color: var(--muted); font-size: 11px; white-space: nowrap; }
.composer .keyboard-hint { margin-left: auto; }
.send-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-left: auto; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--accent); color: var(--white); font-size: 15px; font-weight: 600; line-height: 1.4; }
.send-button:hover { background: var(--accent-hover); }
.send-button .icon { width: 18px; height: 18px; }
.drop-indicator { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; border: 3px dashed var(--accent); border-radius: 19px; background: var(--tint); color: var(--accent); opacity: 0; pointer-events: none; }
.drop-indicator > .icon { width: 40px; height: 40px; }
.drop-indicator strong { font-size: 19px; font-weight: 650; }
.slot.dragover .drop-indicator { opacity: 1; }
.upload-status { padding-top: 12px; color: var(--muted); font-size: 13px; }
.upload-message { display: block; overflow-wrap: anywhere; }
progress { display: block; width: 100%; height: 5px; margin-top: 8px; border: 0; border-radius: 4px; accent-color: var(--accent, var(--brand)); }
progress::-webkit-progress-bar { border-radius: 4px; background: #ededf1; }
progress::-webkit-progress-value { border-radius: 4px; background: var(--accent, var(--brand)); }

/* Shared entries retain readable text, visible actions and accurate expiry feedback. */
.item { overflow: hidden; margin-top: 14px; padding: 14px; border: 1px solid var(--accent-border); border-radius: 14px; background: var(--white); }
.item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.item-type { display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; font-weight: 600; }
.item-type > .icon { width: 15px; height: 15px; }
.item-timer { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-timer.urgent { color: var(--danger); }
.text-content { max-height: 180px; overflow: auto; font-size: 16px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; }
.item-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.item-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 10px; border: 0; border-radius: 9px; background: #f5f5f7; color: #515155; font-size: 13px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.item-action > .icon { width: 16px; height: 16px; }
.item-action:hover { background: var(--accent-soft, #e5eef8); color: var(--accent, var(--brand)); }
.item-action.delete { margin-left: auto; background: transparent; color: var(--muted); }
.item-action.delete:hover { background: #fff0f0; color: var(--danger); }
.life-track { height: 3px; margin: 12px -14px -14px; overflow: hidden; background: var(--accent-soft); }
.life-bar { width: 100%; height: 100%; background: var(--accent); }
.file-info { display: flex; align-items: center; gap: 12px; }
.file-info > .icon { width: 36px; height: 36px; color: var(--accent); stroke-width: 1.4; }
.file-details { min-width: 0; }
.file-name { display: block; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.file-size { color: var(--muted); font-size: 13px; }
.image-button { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: zoom-in; }
.image-button img { display: block; width: auto; max-width: 100%; max-height: 200px; margin: 0 auto; border-radius: 10px; object-fit: contain; }

/* Permanent text is a neutral companion, visually separate from temporary regions. */
.pin-panel { display: flex; flex-direction: column; min-width: 0; min-height: 764px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.pin-heading { display: flex; align-items: center; gap: 12px; padding: 22px 18px; border-bottom: 1px solid #ededf1; }
.pin-heading-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; background: #f0f0f3; color: #515155; }
.pin-heading h2 { font-size: 20px; font-weight: 650; letter-spacing: -.4px; }
.pin-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.pin-count { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pin-list { flex: 1; max-height: 650px; padding: 0 16px 16px; overflow: auto; scrollbar-width: thin; }
.pin-empty { min-height: 260px; padding: 40px 4px; }
.pin-empty > span { max-width: 210px; }
.pin-empty > .empty-icon { background: #f0f0f3; color: #77777e; }
.pin-item { margin-top: 14px; padding: 14px; border: 1px solid #e5e5eb; border-radius: 14px; background: #fafafa; }
.pin-text { max-height: 200px; overflow: auto; font-size: 16px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; }
.pin-date { margin-top: 10px; color: var(--muted); font-size: 12px; }
.pin-actions { display: flex; align-items: center; gap: 2px; margin-top: 8px; }
.pin-actions .item-action { padding-inline: 8px; background: transparent; }
.pin-actions .item-action:last-child { margin-left: auto; }
.pin-form { padding: 18px 16px; border-top: 1px solid #ededf1; }
.pin-form > label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; }
.pin-form textarea { min-height: 100px; background: #fafafa; }
.pin-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pin-form .button { padding-inline: 12px; font-size: 13px; }
.pin-form .button > .icon { width: 17px; height: 17px; }
.pin-footer { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 10px; border-top: 1px solid #ededf1; background: #fafafa; color: var(--muted); font-size: 12px; }
.pin-footer > .icon { width: 14px; height: 14px; }
.pin-limit { margin-top: 10px; color: #9e4d00; font-size: 13px; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.shared-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 24px; color: var(--muted); font-size: 12px; text-align: center; }
.shared-note .icon { width: 15px; height: 15px; }
.notice { margin-bottom: 24px; padding: 14px 18px; border: 1px solid #ebd3ad; border-radius: 14px; background: #fff6e7; color: #805217; font-size: 15px; }

/* Modal surfaces use opaque content for contrast and a restrained backdrop. */
.toast-container { position: fixed; bottom: 24px; left: 50%; z-index: 500; display: flex; align-items: center; flex-direction: column; gap: 8px; width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid #e1e1e6; border-radius: 14px; background: var(--white); color: var(--ink); font-size: 14px; box-shadow: 0 8px 35px #1d1d1f24; animation: toast-in .18s ease-out; overflow-wrap: anywhere; }
.toast > .icon { width: 18px; height: 18px; color: #24834a; }
.toast.error { border-color: #efced0; background: #fff6f6; color: #ac292f; }
.toast.error > .icon { color: inherit; }
.dialog { width: calc(100% - 32px); max-width: 480px; padding: 28px; border: 1px solid #dedee3; border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: 0 24px 80px #0003; }
.dialog::backdrop, .image-dialog::backdrop { background: #17171a80; backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog h2 { font-size: 22px; font-weight: 650; line-height: 1.35; letter-spacing: -.5px; }
.dialog-description { color: var(--muted); font-size: 15px; line-height: 1.7; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.full-width { width: 100%; }
.qrcode { display: flex; align-items: center; justify-content: center; width: 190px; height: 190px; margin: 28px auto; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.qrcode canvas, .qrcode img { width: 158px !important; height: 158px !important; }
.qrcode img { object-fit: contain; }
.share-url { margin-bottom: 12px; background: #f5f5f7; color: #515155; font-size: 14px; }
.dialog-footnote { margin-top: 16px; color: var(--muted); font-size: 12px; text-align: center; }
.form-error { min-height: 1.6em; margin: 10px 0; color: var(--danger); font-size: 14px; }
.dialog textarea { min-height: 160px; margin-top: 10px; font-size: 16px; }
.unlock-dialog { padding: 36px 32px; text-align: center; }
.unlock-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 22px; border-radius: 18px; background: #eaf2fe; color: var(--brand); }
.unlock-icon > .icon { width: 28px; height: 28px; }
.unlock-dialog .dialog-description { margin-top: 10px; }
.unlock-dialog form { margin-top: 24px; text-align: left; }
.unlock-dialog label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.image-dialog { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 16px; border: 0; border-radius: 20px; background: #1d1d1f; color: var(--white); }
.image-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 12px; }
.image-dialog h2 { min-width: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.image-dialog .icon-button { color: var(--white); }
.image-dialog .icon-button:hover { background: #ffffff20; }
.image-dialog > img { display: block; max-width: calc(100vw - 64px); max-height: calc(100dvh - 120px); object-fit: contain; }
.noscript { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--white); color: var(--ink); }
.busy .icon { animation: spin 1s linear infinite; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1240px) {
  .workspace-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
  .slot-grid { gap: 20px; }
  .slot-head { padding-inline: 16px; }
  .composer .keyboard-hint { display: none; }
  .pin-heading { padding-inline: 16px; gap: 10px; }
  .pin-heading-icon { width: 32px; height: 36px; }
}

@media (max-width: 1100px) {
  .workspace-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .slot-grid { gap: 24px; }
  .pin-panel { min-height: auto; }
  .pin-heading { padding: 20px; }
  .pin-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; min-height: 130px; max-height: 450px; padding: 16px 20px; }
  .pin-empty { grid-column: 1 / -1; min-height: 150px; padding: 12px; }
  .pin-item { margin-top: 0; }
  .pin-form { padding: 20px; }
  .pin-form textarea { min-height: 88px; }
  .pin-form-bottom { justify-content: flex-end; gap: 16px; }
}

@media (max-width: 820px) {
  .topbar { padding-inline: 24px; }
  .page-shell { padding: 32px 24px 24px; }
  .brand-product, .brand-divider { display: none; }
  .connection { margin-right: 4px; }
  .intro { gap: 24px; }
  h1 { font-size: 44px; letter-spacing: -1.4px; }
  .intro-description { font-size: 16px; }
  .expiry-note { gap: 10px; padding: 12px 14px; }
  .expiry-note > .icon { width: 24px; height: 24px; }
  .expiry-note strong { font-size: 17px; }
  .expiry-note span { font-size: 12px; }
  .workspace-hint { font-size: 13px; }
  .slot-grid { gap: 18px; }
  .slot-head { padding: 12px 14px; }
  .slot-head h3 { gap: 9px; font-size: 20px; }
  .slot-number { width: 32px; height: 32px; font-size: 13px; }
  .item-count { min-width: 22px; height: 22px; font-size: 12px; }
  .slot-body, .composer { padding-inline: 14px; }
}

@media (max-width: 620px) {
  .topbar { flex-wrap: wrap; gap: 10px; min-height: 72px; padding: 12px 16px; }
  .brand { gap: 9px; }
  .brand strong { font-size: 18px; letter-spacing: .5px; }
  .brand img { width: 34px; height: 34px; }
  .header-actions { gap: 4px; }
  .header-actions .button { padding-inline: 11px; font-size: 13px; }
  .header-actions .button-subtle { width: 44px; padding-inline: 0; }
  .header-actions .button .icon { width: 19px; height: 19px; }
  .desktop-label, #logout-button span, .connection { display: none; }
  .page-shell { padding: 28px 16px 24px; }
  .intro { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
  h1 { font-size: 36px; letter-spacing: -1px; }
  .intro-description { margin-top: 10px; font-size: 16px; }
  .expiry-note { width: 100%; padding: 12px 14px; border-radius: 14px; }
  .expiry-note > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
  .expiry-note > .icon { width: 22px; height: 22px; }
  .expiry-note strong { font-size: 15px; }
  .expiry-note span { margin-top: 0; font-size: 13px; }
  .workspace-heading { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .workspace-heading h2 { gap: 10px; font-size: 22px; }
  .workspace-heading h2 span { padding: 4px 9px; font-size: 12px; }
  .workspace-hint { width: 100%; font-size: 13px; }
  .workspace-layout, .slot-grid { gap: 20px; }
  .slot-grid { grid-template-columns: minmax(0, 1fr); }
  .slot { min-height: 370px; border-radius: 18px; }
  .slot-head { padding: 12px 16px; }
  .slot-head h3 { gap: 12px; font-size: 22px; }
  .slot-number { width: 34px; height: 34px; font-size: 14px; }
  .item-count { min-width: 25px; height: 25px; font-size: 13px; }
  .slot-body { min-height: 140px; max-height: 400px; padding-inline: 16px; }
  .slot-body > .empty-state { min-height: 140px; }
  .composer { padding: 16px; }
  .text-input, textarea, input, .pin-form textarea, .dialog textarea, .share-url { font-size: 16px; }
  .button-upload { padding-left: 6px; }
  .pin-panel { border-radius: 18px; }
  .pin-heading { padding: 20px 16px; }
  .pin-heading-icon { width: 38px; height: 38px; }
  .pin-list { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .pin-empty { min-height: 170px; }
  .pin-form { padding: 18px 16px; }
  .pin-text { font-size: 16px; }
  .page-footer { flex-direction: column; gap: 6px; margin-top: 22px; font-size: 12px; }
  .shared-note { align-items: flex-start; gap: 8px; max-width: 340px; margin: 24px auto 0; text-align: left; }
  .shared-note > .icon { margin-top: 2px; }
  .notice { padding: 14px; font-size: 14px; }
  .dialog { padding: 24px 20px; border-radius: 22px; }
  .dialog h2 { font-size: 20px; }
  .unlock-dialog { padding: 32px 24px; }
  .toast-container { bottom: 20px; }
  .toast { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
