/* Generated by scripts/build-styles.js. Edit files in styles/ instead. */
/* Source: styles/user.css */
:where(.workbench-app) .pwa-update-banner {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 36px);
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(91, 56, 30, 0.5);
  border-radius: 6px;
  background: rgba(255, 246, 217, 0.98);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  font-size: 13px;
  font-weight: 700;
}

:where(.workbench-app) .pwa-update-banner button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(105, 42, 31, 0.56);
  border-radius: 4px;
  background: #a33e2f;
  color: #fff8e2;
  cursor: pointer;
  font-weight: 800;
}

:where(.workbench-app) .pwa-update-banner button:disabled {
  cursor: default;
  opacity: 0.7;
}

:where(.workbench-app) .courtyard-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

:where(.workbench-app) .bamboo-grove {
  position: absolute;
  bottom: -30px;
  width: 170px;
  height: 92vh;
  opacity: 0.26;
}

:where(.workbench-app) .bamboo-grove::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 20px, var(--bamboo) 21px 26px, transparent 27px),
    linear-gradient(90deg, transparent 58px, #264b30 59px 64px, transparent 65px),
    linear-gradient(90deg, transparent 104px, var(--bamboo) 105px 110px, transparent 111px),
    radial-gradient(ellipse at 32px 18%, rgba(141, 165, 108, 0.9) 0 24px, transparent 25px),
    radial-gradient(ellipse at 70px 34%, rgba(95, 132, 74, 0.88) 0 26px, transparent 27px),
    radial-gradient(ellipse at 116px 24%, rgba(141, 165, 108, 0.84) 0 24px, transparent 25px),
    radial-gradient(ellipse at 132px 52%, rgba(95, 132, 74, 0.78) 0 30px, transparent 31px);
  background-repeat: no-repeat;
}

:where(.workbench-app) .app-shell {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(320px, 1fr) minmax(620px, 2fr);
  gap: 18px;
}

:where(.workbench-app) .sidebar {
  position: relative;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 10px 8px 10px 10px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(62, 37, 22, 0.4), transparent 18%, transparent 82%, rgba(62, 37, 22, 0.28)),
    repeating-linear-gradient(90deg, #9b6b3d 0 18px, #b7864b 18px 35px, #7e542f 35px 37px);
  box-shadow: inset 0 0 0 1px rgba(48, 29, 16, 0.38), 0 20px 38px rgba(0, 0, 0, 0.28);
}

:where(.workbench-app) .sidebar::before {
  content: "";
  position: sticky;
  top: 0;
  flex: 0 0 8px;
  margin: -10px -8px 0 -10px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #2e1d14, #6a4428, #2e1d14);
  z-index: 2;
}

:where(.workbench-app) .profile-strip {
  position: relative;
  grid-template-columns: 40px 48px 1fr auto;
  min-height: 70px;
}

:where(.workbench-app) .profile-strip::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 10px;
  width: 34px;
  height: 24px;
  opacity: 0.22;
  background:
    linear-gradient(var(--ink) 0 0) 0 12px / 34px 3px,
    linear-gradient(var(--ink) 0 0) 8px 5px / 18px 3px,
    linear-gradient(var(--ink) 0 0) 15px 0 / 4px 18px;
  background-repeat: no-repeat;
}

:where(.workbench-app) .icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f3ddb1;
  cursor: pointer;
}

:where(.workbench-app) .copy-id-button {
  position: relative;
  z-index: 3;
  border-radius: 999px;
  color: #352217;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

:where(.workbench-app) .profile-actions {
  position: relative;
  z-index: 3;
}

:where(.workbench-app) .install-app-button:disabled {
  cursor: default;
  opacity: 0.62;
}

:where(.workbench-app) .notice-event-settings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 6px;
  border-top: 1px solid rgba(78, 48, 24, 0.18);
}

:where(.workbench-app) .notice-event-settings label {
  min-width: 0;
  font-size: 11px;
  white-space: nowrap;
}

:where(.workbench-app) .avatar {
  display: grid;
  place-items: center;
  color: #fff9e8;
  font-weight: 800;
}

:where(.workbench-app) .desk-tools {
  display: grid;
  grid-template-columns: 1fr 64px 84px;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 10px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(33, 24, 18, 0.18), transparent 22%, rgba(255, 236, 184, 0.28)),
    rgba(66, 42, 26, 0.44);
  box-shadow: inset 0 0 0 1px rgba(255, 232, 175, 0.12);
}

:where(.workbench-app) .brush {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #211511 0 10%, #d1a34f 10% 14%, #402719 14% 86%, #a33e2f 86% 100%);
  transform: rotate(-4deg);
}

:where(.workbench-app) .brush::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -6px;
  width: 24px;
  height: 20px;
  background: linear-gradient(90deg, #20140f, #5a3927);
  clip-path: polygon(0 28%, 76% 0, 100% 50%, 76% 100%, 0 72%);
}

:where(.workbench-app) .inkstone {
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #101312 0 34%, #303435 36% 58%, #0c0e0e 60%);
  box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.12), 0 4px 8px rgba(0, 0, 0, 0.26);
}

:where(.workbench-app) .paperweight {
  height: 20px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.32) 13% 15%, transparent 16%),
    linear-gradient(180deg, #0f6456, #073b36);
  border: 1px solid rgba(9, 42, 35, 0.8);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.28), 0 4px 9px rgba(0, 0, 0, 0.22);
}

:where(.workbench-app) .profile-name {
  font-weight: 800;
  line-height: 1.3;
}

:where(.workbench-app) .profile-id,
:where(.workbench-app) .letter-meter,
:where(.workbench-app) .letter-hint,
:where(.workbench-app) .speed-note,
:where(.workbench-app) .coords {
  color: var(--muted);
  font-size: 12px;
}

:where(.workbench-app) .sender-cylinder {
  position: relative;
  color: #ffe9bc;
}

:where(.workbench-app) .cylinder-cap {
  position: absolute;
  left: 10px;
  top: 12px;
  width: 56px;
  height: calc(100% - 24px);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #a97750 0 34%, #5a321f 36% 64%, #2b1912 66%);
  border: 1px solid rgba(0, 0, 0, 0.42);
}

:where(.workbench-app) .sender-cylinder label {
  display: block;
  margin-bottom: 6px;
}

:where(.workbench-app) .sender-cylinder input {
  width: 100%;
  outline: 0;
  font-weight: 800;
}

:where(.workbench-app) .compose-panel {
  position: relative;
  overflow: hidden;
}

:where(.workbench-app) .compose-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background:
    linear-gradient(90deg, rgba(58, 91, 47, 0.75), rgba(141, 165, 108, 0.35)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(35, 71, 40, 0.5) 22px 24px);
}

:where(.workbench-app) .letter-panel::after,
:where(.workbench-app) .pigeon-panel::after,
:where(.workbench-app) .status-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.16;
}

:where(.workbench-app) .letter-panel::after {
  right: 10px;
  top: 12px;
  width: 70px;
  height: 44px;
  background:
    repeating-linear-gradient(90deg, #5f3c22 0 5px, #c39a58 5px 11px, #5f3c22 11px 12px),
    linear-gradient(#5f3c22 0 0) 0 21px / 70px 3px;
  background-repeat: no-repeat;
  border-radius: 5px;
}

:where(.workbench-app) .pigeon-panel::after {
  right: 14px;
  top: 12px;
  width: 72px;
  height: 44px;
  background:
    linear-gradient(var(--ink) 0 0) 20px 21px / 34px 5px,
    linear-gradient(var(--ink) 0 0) 30px 12px / 18px 5px,
    linear-gradient(var(--ink) 0 0) 48px 17px / 7px 4px,
    linear-gradient(var(--ink) 0 0) 8px 26px / 18px 4px,
    linear-gradient(var(--ink) 0 0) 3px 14px / 23px 5px;
  background-repeat: no-repeat;
  clip-path: polygon(0 12%, 100% 0, 88% 100%, 10% 90%);
}

:where(.workbench-app) .status-panel::after {
  left: 50%;
  bottom: 48px;
  width: 118px;
  height: 14px;
  border-radius: 4px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, 0.28) 11% 13%, transparent 14%),
    linear-gradient(180deg, #0f6456, #073b36);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.28), 0 4px 8px rgba(0, 0, 0, 0.18);
}

:where(.workbench-app) .paper-preview {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  margin-top: 10px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(80, 48, 25, 0.24);
  border-radius: 6px;
  background: #f4dfae;
}

:where(.workbench-app) .paper-preview::before,
:where(.workbench-app) .letter-input,
:where(.workbench-app) .letter-card {
  background-blend-mode: multiply, normal;
}

:where(.workbench-app) .paper-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}

:where(.workbench-app) .paper-ornament {
  position: relative;
  width: 58px;
  height: 46px;
  border: 1px solid rgba(69, 43, 25, 0.32);
  box-shadow: inset 0 0 0 2px rgba(255, 250, 228, 0.2);
}

:where(.workbench-app) .paper-ornament::before,
:where(.workbench-app) .paper-ornament::after {
  content: "";
  position: absolute;
}

:where(.workbench-app) .paper-preview strong,
:where(.workbench-app) .paper-preview span {
  position: relative;
  display: block;
}

:where(.workbench-app) .paper-preview strong {
  margin-bottom: 4px;
  font-size: 15px;
}

:where(.workbench-app) .paper-preview span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

:where(.workbench-app) .paper-bamboo {
  --paper-base: #c99b5f;
  --paper-edge: #6d4728;
  --paper-ink: #4e301c;
  --paper-accent: #8b6238;
}

:where(.workbench-app) .paper-cotton {
  --paper-base: #f2deb2;
  --paper-edge: #b94a37;
  --paper-ink: #4b3324;
  --paper-accent: #b7342c;
}

:where(.workbench-app) .paper-xuan {
  --paper-base: #f5ecd2;
  --paper-edge: #2f5f73;
  --paper-ink: #31404a;
  --paper-accent: #b6382f;
}

:where(.workbench-app) .paper-silk {
  --paper-base: #fff6d8;
  --paper-edge: #d9a834;
  --paper-ink: #3b2a16;
  --paper-accent: #0d8b74;
}

:where(.workbench-app) .paper-preview.paper-bamboo {
  background:
    radial-gradient(circle at 16% 24%, rgba(82, 49, 25, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 70%, rgba(82, 49, 25, 0.18) 0 3px, transparent 4px),
    repeating-linear-gradient(12deg, rgba(83, 52, 27, 0.16) 0 1px, transparent 1px 9px),
    #cfa66a;
}

:where(.workbench-app) .paper-bamboo .paper-ornament {
  background:
    linear-gradient(90deg, rgba(92, 58, 31, 0.4) 0 4px, transparent 4px),
    repeating-linear-gradient(0deg, rgba(81, 54, 32, 0.22) 0 2px, transparent 2px 8px),
    #d6ad70;
  clip-path: polygon(4% 8%, 96% 0, 92% 18%, 98% 39%, 91% 58%, 97% 92%, 5% 97%, 0 78%, 7% 56%, 1% 33%);
}

:where(.workbench-app) .paper-bamboo .paper-ornament::before {
  left: 6px;
  right: 6px;
  top: 20px;
  height: 4px;
  background: #6e4a2c;
  box-shadow: 0 -9px 0 rgba(110, 74, 44, 0.42), 0 9px 0 rgba(110, 74, 44, 0.32);
}

:where(.workbench-app) .paper-preview.paper-cotton {
  background:
    radial-gradient(circle at 66% 36%, rgba(183, 52, 44, 0.16) 0 10px, transparent 11px),
    linear-gradient(90deg, transparent 0 47%, rgba(160, 38, 31, 0.7) 48% 51%, transparent 52%),
    repeating-linear-gradient(30deg, rgba(100, 71, 45, 0.06) 0 1px, transparent 1px 7px),
    #f0deb9;
}

:where(.workbench-app) .paper-cotton .paper-ornament {
  border-color: rgba(179, 52, 44, 0.72);
  background:
    radial-gradient(circle at 70% 48%, #b7342c 0 8px, #7f251f 9px 11px, transparent 12px),
    linear-gradient(90deg, transparent 0 48%, #b7342c 49% 52%, transparent 53%),
    #f3dfb8;
}

:where(.workbench-app) .paper-cotton .paper-ornament::before {
  right: 5px;
  bottom: 5px;
  width: 16px;
  height: 12px;
  border-right: 2px solid #b7342c;
  border-bottom: 2px solid #b7342c;
}

:where(.workbench-app) .paper-preview.paper-xuan {
  background:
    radial-gradient(ellipse at 34% 58%, rgba(49, 64, 74, 0.16), transparent 38%),
    linear-gradient(90deg, rgba(47, 95, 115, 0.18), transparent 18%, transparent 82%, rgba(182, 56, 47, 0.12)),
    repeating-linear-gradient(0deg, rgba(72, 62, 49, 0.05) 0 1px, transparent 1px 10px),
    #f5ecd2;
}

:where(.workbench-app) .paper-xuan .paper-ornament {
  border-color: rgba(47, 95, 115, 0.56);
  background:
    radial-gradient(ellipse at 36% 56%, rgba(49, 64, 74, 0.28), transparent 34%),
    radial-gradient(circle at 78% 72%, #b6382f 0 7px, transparent 8px),
    linear-gradient(#d9a834 0 0) 4px 4px / 50px 1px,
    linear-gradient(#d9a834 0 0) 4px 41px / 50px 1px,
    #f6edd5;
  background-repeat: no-repeat;
}

:where(.workbench-app) .paper-xuan .paper-ornament::before {
  left: 11px;
  top: 24px;
  width: 28px;
  height: 9px;
  border-top: 2px solid rgba(49, 64, 74, 0.58);
  border-radius: 50%;
}

:where(.workbench-app) .paper-preview.paper-silk {
  background:
    radial-gradient(circle at 72% 44%, rgba(13, 139, 116, 0.28) 0 9px, transparent 10px),
    radial-gradient(circle at 84% 58%, rgba(217, 168, 52, 0.34) 0 5px, transparent 6px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.65), transparent 28%, rgba(217, 168, 52, 0.34) 68%, transparent),
    repeating-linear-gradient(90deg, rgba(217, 168, 52, 0.12) 0 2px, transparent 2px 9px),
    #fff0c4;
  box-shadow: inset 0 0 0 1px rgba(217, 168, 52, 0.45), 0 0 18px rgba(217, 168, 52, 0.28);
}

:where(.workbench-app) .paper-silk .paper-ornament {
  border-color: rgba(217, 168, 52, 0.86);
  background:
    radial-gradient(circle at 72% 42%, #17a083 0 7px, #075e51 8px 10px, transparent 11px),
    linear-gradient(90deg, #d9a834 0 3px, transparent 3px 55px, #d9a834 55px),
    linear-gradient(0deg, #d9a834 0 3px, transparent 3px 43px, #d9a834 43px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 229, 150, 0.54)),
    #fff7da;
}

:where(.workbench-app) .paper-silk .paper-ornament::before {
  left: 8px;
  top: 18px;
  width: 35px;
  height: 13px;
  border-top: 2px solid rgba(217, 168, 52, 0.8);
  border-bottom: 2px solid rgba(217, 168, 52, 0.6);
  border-radius: 50%;
}

:where(.workbench-app) .paper-silk .paper-ornament::after {
  right: 7px;
  bottom: -5px;
  width: 3px;
  height: 18px;
  background: #0d8b74;
  box-shadow: 5px 2px 0 #d9a834, 10px 0 0 #0d8b74;
}

:where(.workbench-app) .letter-meter {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

:where(.workbench-app) .capacity-track {
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
}

:where(.workbench-app) #capacityFill {
  height: 100%;
  width: 0%;
  transition: width 0.2s ease, background 0.2s ease;
}

:where(.workbench-app) #capacityFill.near-full {
  background: linear-gradient(90deg, #bd8b3f, var(--cinnabar));
}

:where(.workbench-app) .letter-structure {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(78, 49, 30, 0.14);
  border-radius: 6px;
  background: rgba(255, 249, 230, 0.42);
}

:where(.workbench-app) .letter-structure.is-good {
  border-color: rgba(57, 105, 87, 0.32);
  background: rgba(230, 244, 224, 0.42);
}

:where(.workbench-app) .letter-structure.is-warn {
  border-color: rgba(141, 44, 37, 0.34);
  background: rgba(255, 235, 209, 0.52);
}

:where(.workbench-app) .structure-summary {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

:where(.workbench-app) .structure-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

:where(.workbench-app) .structure-checks span {
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid rgba(78, 49, 30, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  font-size: 12px;
  font-weight: 800;
}

:where(.workbench-app) .structure-checks .ok {
  color: #2d604a;
}

:where(.workbench-app) .structure-checks .todo {
  color: var(--seal);
}

:where(.workbench-app) .letter-structure small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

:where(.workbench-app) .letter-hint,
:where(.workbench-app) .speed-note {
  margin-top: 7px;
  line-height: 1.45;
}

:where(.workbench-app) .stat-grid {
  grid-template-columns: 1fr 1fr;
  margin: 10px 0;
}

:where(.workbench-app) .stat-grid div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 249, 230, 0.5);
}

:where(.workbench-app) .stat-grid span {
  display: block;
}

:where(.workbench-app) .route-picks {
  grid-template-columns: 1fr 1fr;
}

:where(.workbench-app) .route-picks .secondary.is-active {
  border-color: #8d2c25;
  color: #fff8e6;
  background: #8d2c25;
  box-shadow: 0 4px 10px rgba(107, 39, 29, 0.22);
}

:where(.workbench-app) .route-search {
  display: grid;
  gap: 8px;
  border-radius: 8px;
}

:where(.workbench-app) .route-search label {
  margin: 0;
}

:where(.workbench-app) .search-row input {
  min-width: 0;
}

:where(.workbench-app) .search-row button {
  min-height: 36px;
  padding-inline: 8px;
  font-weight: 800;
}

:where(.workbench-app) .search-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

:where(.workbench-app) .recipient-status,
:where(.workbench-app) .settings-intro,
:where(.workbench-app) .account-state {
  padding: 8px 10px;
  border: 1px solid rgba(78, 49, 30, 0.14);
  border-radius: 6px;
  background: rgba(255, 249, 230, 0.52);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

:where(.workbench-app) .recipient-status.ok {
  border-color: rgba(47, 122, 98, 0.34);
  background: rgba(230, 246, 224, 0.7);
  color: #2f6f55;
}

:where(.workbench-app) .recipient-status.error {
  border-color: rgba(132, 45, 34, 0.36);
  background: rgba(250, 226, 214, 0.72);
}

:where(.workbench-app) .recipient-status.checking {
  color: #6d5736;
}

:where(.workbench-app) .compact {
  width: auto;
  min-width: 92px;
}

:where(.workbench-app) .status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

:where(.workbench-app) .progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

:where(.workbench-app) .progress-head strong {
  color: var(--ink);
}

:where(.workbench-app) .progress-track {
  margin: 6px 0 12px;
  border-radius: 999px;
  overflow: hidden;
}

:where(.workbench-app) #progressFill {
  height: 100%;
  width: 0%;
  transition: width 0.25s linear;
}

:where(.workbench-app) .log-panel {
  min-height: 130px;
}

:where(.workbench-app) .inbox-panel {
  min-height: 132px;
}

:where(.workbench-app) .ad-panel {
  display: grid;
  gap: 8px;
  min-height: 96px;
  border-style: dashed;
}

:where(.workbench-app) .ad-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

:where(.workbench-app) .ad-title strong {
  padding: 2px 7px;
  border: 1px solid rgba(91, 59, 34, 0.28);
  border-radius: 999px;
  background: rgba(255, 249, 230, 0.62);
  color: var(--muted);
  font-size: 11px;
}

:where(.workbench-app) .ad-panel p {
  margin: 0;
  color: #5f4026;
  font-size: 13px;
  line-height: 1.55;
}

:where(.workbench-app) #adCopy {
  display: grid;
  gap: 6px;
}

:where(.workbench-app) #adCopy strong,
:where(.workbench-app) #adCopy span,
:where(.workbench-app) #adCopy small {
  display: block;
}

:where(.workbench-app) #adCopy strong {
  color: var(--ink);
  font-size: 14px;
}

:where(.workbench-app) #adCopy span {
  color: var(--muted);
  line-height: 1.45;
}

:where(.workbench-app) #adCopy small {
  color: rgba(70, 48, 32, 0.62);
  font-size: 11px;
}

:where(.workbench-app) .ad-cta {
  justify-self: start;
  min-height: 30px;
}

:where(.workbench-app) .ad-panel.minor-safe {
  border-color: rgba(47, 122, 98, 0.42);
}

:where(.workbench-app) .inbox-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

:where(.workbench-app) .inbox-title strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  background: #7f2d24;
  color: #fff9e8;
  font-size: 13px;
}

:where(.workbench-app) .inbox-list {
  display: grid;
  gap: 8px;
  max-height: 178px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.workbench-app) .inbox-item button {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 56px;
  padding: 8px;
  border: 1px solid rgba(72, 43, 25, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 248, 224, 0.92), rgba(225, 190, 124, 0.86));
  text-align: left;
}

:where(.workbench-app) .seal {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

:where(.workbench-app) .inbox-copy {
  min-width: 0;
}

:where(.workbench-app) .inbox-copy strong,
:where(.workbench-app) .inbox-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:where(.workbench-app) .switch-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(78, 49, 30, 0.16);
  border-radius: 8px;
  background: rgba(255, 249, 230, 0.44);
}

:where(.workbench-app) .switch-row span {
  min-width: 0;
}

:where(.workbench-app) .switch-row strong,
:where(.workbench-app) .switch-row small {
  display: block;
}

:where(.workbench-app) .switch-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

:where(.workbench-app) .switch-row input {
  width: 42px;
  height: 24px;
  accent-color: var(--jade);
}

:where(.workbench-app) .weight-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(78, 49, 30, 0.14);
  border-radius: 6px;
  background: rgba(255, 249, 230, 0.36);
}

:where(.workbench-app) .weight-row span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

:where(.workbench-app) .weight-row input {
  width: 100%;
  accent-color: var(--seal);
}

:where(.workbench-app) .allowlist-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

:where(.workbench-app) .compact-list {
  max-height: 148px;
  overflow: auto;
}

:where(.workbench-app) .allowlist-item .mini-copy small {
  display: block;
}

:where(.workbench-app) .letter-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

:where(.workbench-app) .map-compliance {
  line-height: 1.45;
}

:where(.workbench-app) .filing-info {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

:where(.workbench-app) .filing-info a {
  color: #5f4026;
  font-weight: 800;
  text-decoration: none;
}

:where(.workbench-app) .filing-info a:hover {
  text-decoration: underline;
}

:where(.workbench-app) .legal-footer {
  z-index: 1;
  color: rgba(61, 42, 29, 0.72);
  font-size: 12px;
}

:where(.workbench-app) .legal-footer-inner {
  display: grid;
  gap: 8px;
}

:where(.workbench-app) .legal-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

:where(.workbench-app) .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

:where(.workbench-app) .legal-links button {
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

:where(.workbench-app) .legal-links button:hover {
  text-decoration: underline;
}

:where(.workbench-app) .minor-footer-switch {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

:where(.workbench-app) #eventLog {
  max-height: 168px;
  overflow: auto;
  margin: 0;
  padding-left: 22px;
  line-height: 1.45;
  font-size: 13px;
}

:where(.workbench-app) .map-scroll {
  min-width: 0;
}

:where(.workbench-app) .map-scroll::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 22px;
  height: 48px;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 18px, var(--tile) 19px 25px, transparent 26px) 0 0 / 52px 28px repeat-x,
    linear-gradient(45deg, transparent 0 18px, var(--tile) 19px 25px, transparent 26px) 26px 0 / 52px 28px repeat-x,
    linear-gradient(180deg, #101516, #303839 62%, rgba(240, 234, 216, 0.9) 63% 100%);
  clip-path: polygon(0 38%, 7% 10%, 50% 28%, 93% 10%, 100% 38%, 98% 62%, 2% 62%);
  opacity: 0.95;
}

:where(.workbench-app) .map-scroll::after {
  content: "";
  position: absolute;
  right: 42px;
  bottom: 72px;
  width: 156px;
  height: 180px;
  z-index: 410;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(90deg, transparent 20px, rgba(47, 111, 63, 0.9) 21px 25px, transparent 26px),
    linear-gradient(90deg, transparent 64px, rgba(47, 111, 63, 0.78) 65px 69px, transparent 70px),
    linear-gradient(90deg, transparent 112px, rgba(47, 111, 63, 0.82) 113px 117px, transparent 118px),
    radial-gradient(ellipse at 38px 24px, rgba(86, 128, 70, 0.86) 0 22px, transparent 23px),
    radial-gradient(ellipse at 72px 62px, rgba(119, 148, 79, 0.72) 0 24px, transparent 25px),
    radial-gradient(ellipse at 120px 34px, rgba(86, 128, 70, 0.8) 0 22px, transparent 23px);
  background-repeat: no-repeat;
}

:where(.workbench-app) .scroll-top,
:where(.workbench-app) .scroll-bottom {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 28px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 10% center, #714324 0 18px, transparent 19px),
    radial-gradient(ellipse at 90% center, #714324 0 18px, transparent 19px),
    repeating-linear-gradient(90deg, rgba(44, 26, 16, 0.24) 0 7px, transparent 7px 18px),
    linear-gradient(180deg, #b47843, #5c351f);
  box-shadow: inset 0 4px 8px rgba(255, 235, 175, 0.22), inset 0 -8px 14px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

:where(.workbench-app) .scroll-top {
  top: 9px;
}

:where(.workbench-app) .scroll-bottom {
  bottom: 9px;
}

:where(.workbench-app) .map-toolbar {
  left: 52px;
  right: 52px;
  top: 62px;
  z-index: 500;
  pointer-events: none;
}

:where(.workbench-app) .map-toolbar>* {
  pointer-events: auto;
}

:where(.workbench-app) .map-toolbar div {
  padding: 9px 12px;
  border: 1px solid rgba(68, 44, 25, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(47, 95, 115, 0.12), transparent 24%, rgba(182, 56, 47, 0.1)),
    rgba(255, 246, 214, 0.94);
  box-shadow: 0 8px 18px rgba(66, 35, 17, 0.16);
}

:where(.workbench-app) #map {
  background: #d4c391;
  overflow: hidden;
}

:where(.workbench-app) #map.map-picking,
:where(.workbench-app) #map.map-picking .leaflet-interactive,
:where(.workbench-app) #map.map-picking .leaflet-grab {
  cursor: crosshair;
}

:where(.workbench-app) .map-point-popup .leaflet-popup-content-wrapper {
  border: 1px solid rgba(80, 48, 27, 0.28);
  border-radius: 6px;
  background: rgba(255, 247, 219, 0.97);
  box-shadow: 0 8px 18px rgba(49, 30, 17, 0.2);
}

:where(.workbench-app) .map-point-popup .leaflet-popup-content {
  margin: 10px 12px;
}

:where(.workbench-app) .map-point-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 174px;
  color: var(--ink);
}

:where(.workbench-app) .map-point-menu strong,
:where(.workbench-app) .map-point-menu span {
  grid-column: 1 / -1;
}

:where(.workbench-app) .map-point-menu strong {
  font-size: 12px;
}

:where(.workbench-app) .map-point-menu span {
  color: var(--muted);
  font-size: 11px;
}

:where(.workbench-app) .map-point-menu button {
  min-height: 30px;
  border: 1px solid rgba(75, 47, 27, 0.34);
  border-radius: 4px;
  color: #fff8e6;
  background: #2f5f73;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

:where(.workbench-app) .map-point-menu button:last-child {
  background: #8d2c25;
}

:where(.workbench-app) .leaflet-container {
  font-family: inherit;
  background: #cdbf91;
}

:where(.workbench-app) .leaflet-control-attribution {
  padding: 2px 5px;
  line-height: 1.35;
}

:where(.workbench-app) .leaflet-tile {
  filter: sepia(0.42) saturate(0.72) contrast(0.94);
}

:where(.workbench-app) .map-legend {
  right: 50px;
  bottom: 68px;
  z-index: 500;
  pointer-events: none;
}

:where(.workbench-app) .map-legend i {
  display: inline-block;
  width: 28px;
  height: 0;
  margin-right: 5px;
  vertical-align: middle;
  border-top: 3px solid #2f7a62;
}

:where(.workbench-app) .map-legend .dash-line {
  border-top-style: dashed;
  border-top-color: #894032;
}

:where(.workbench-app) .map-legend .supply-dot {
  width: 10px;
  height: 10px;
  border: 2px solid #7c4f2d;
  border-radius: 50%;
  background: #f2d58f;
}

:where(.workbench-app) .pigeon-wrap {
  --body: #d4d5db;
  --body-dark: #747984;
  --wing: #a0a5b0;
  --wing-hi: #eef0f3;
  --accent: #9b714c;
  --spark: rgba(150, 150, 150, 0.75);
  --glow: rgba(255, 255, 255, 0);
  position: relative;
  transform-origin: center;
  image-rendering: pixelated;
}

:where(.workbench-app) .pigeon-trail {
  position: absolute;
  left: 0;
  top: 18px;
  width: 28px;
  height: 18px;
}

:where(.workbench-app) .pigeon-trail i {
  position: absolute;
  display: block;
  image-rendering: pixelated;
}

:where(.workbench-app) .pigeon-trail i {
  right: 0;
}

:where(.workbench-app) .pigeon-trail i:nth-child(1) {
  top: 1px;
}

:where(.workbench-app) .pigeon-trail i:nth-child(2) {
  top: 7px;
  width: 24px;
  opacity: 0.72;
  animation-delay: 0.12s;
}

:where(.workbench-app) .pigeon-trail i:nth-child(3) {
  top: 13px;
  width: 12px;
  opacity: 0.46;
  animation-delay: 0.24s;
}

:where(.workbench-app) .rank-young {
  --body: #bfc2c9;
  --body-hi: #dfe1e5;
  --body-dark: #666b76;
  --wing: #8c929d;
  --wing-hi: #cfd2d8;
  --accent: #9b714c;
  --spark: rgba(102, 107, 118, 0.45);
}

:where(.workbench-app) .rank-young .pigeon-trail i:nth-child(2),
:where(.workbench-app) .rank-young .pigeon-trail i:nth-child(3) {
  display: none;
}

:where(.workbench-app) .rank-post {
  --body: #ece8df;
  --body-hi: #fff8ea;
  --body-dark: #6f7887;
  --wing: #aeb5c0;
  --wing-hi: #f8f6ee;
  --accent: #b3342c;
  --spark: rgba(178, 61, 45, 0.65);
  --throat: #4aa58e;
}

:where(.workbench-app) .rank-royal {
  --body: #f3f4f2;
  --body-hi: #ffffff;
  --body-dark: #174f9b;
  --wing: #2f6fc1;
  --wing-hi: #ffffff;
  --wing-dark: #0f3771;
  --accent: #d8a12d;
  --spark: rgba(54, 122, 218, 0.78);
  --glow: rgba(57, 130, 224, 0.22);
  --throat: #2765ad;
}

:where(.workbench-app) .rank-legend {
  --body: #fffaf0;
  --body-hi: #ffffff;
  --body-dark: #d39b24;
  --wing: #f0c24b;
  --wing-hi: #ffffff;
  --wing-dark: #c48717;
  --accent: #0d917a;
  --spark: rgba(244, 196, 72, 0.9);
  --glow: rgba(244, 196, 72, 0.36);
  --throat: #0b8f7a;
}

:where(.workbench-app) .rank-legend .pigeon-trail i {
  box-shadow: 0 0 8px rgba(244, 196, 72, 0.72);
}

:where(.workbench-app) .no-tile-map {
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(106, 77, 45, 0.08) 32px 33px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(106, 77, 45, 0.075) 48px 49px),
    radial-gradient(circle at 31% 39%, rgba(90, 131, 111, 0.2) 0 4%, transparent 4.5%),
    radial-gradient(circle at 62% 44%, rgba(90, 131, 111, 0.18) 0 7%, transparent 7.5%),
    radial-gradient(circle at 77% 56%, rgba(90, 131, 111, 0.16) 0 5%, transparent 5.5%),
    linear-gradient(135deg, rgba(246, 233, 191, 0.96), rgba(223, 203, 151, 0.92));
}

:where(.workbench-app) .no-tile-map::after {
  content: "路线沙盘 · 合规底图待加载";
  position: absolute;
  left: 50%;
  bottom: 52px;
  z-index: 420;
  transform: translateX(-50%);
  box-sizing: border-box;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border: 1px solid rgba(95, 61, 35, 0.28);
  border-radius: 999px;
  background: rgba(255, 248, 224, 0.86);
  color: #684327;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
}

:where(.workbench-app) .tile-request-failed::after {
  content: "路线沙盘 · 地图 Key 待核验";
}

:where(.workbench-app) .no-map-key::after {
  content: "路线沙盘 · 尚未配置合规底图";
}

:where(.workbench-app) .pigeon-wrap {
  --pigeon-asset: url("./assets/pigeon-young-flight-v2.png");
  --wing-speed: 0.82s;
  --trail-color: rgba(91, 79, 67, 0.5);
  --aura-color: rgba(126, 112, 90, 0.16);
  --feather-color: rgba(244, 230, 196, 0.22);
  position: relative;
  transform-origin: center;
  isolation: isolate;
  pointer-events: none;
}

:where(.workbench-app) .pigeon-sticker {
  position: absolute;
  z-index: 3;
  background: var(--pigeon-asset) center / contain no-repeat;
  transform-origin: 58% 54%;
}

:where(.workbench-app) .pigeon-sticker::after {
  content: "";
  position: absolute;
  inset: 13% 12%;
  border-radius: 48% 52% 48% 52%;
  background:
    radial-gradient(ellipse at 62% 42%, rgba(255, 253, 235, 0.22), transparent 45%),
    radial-gradient(ellipse at 40% 55%, var(--feather-color), transparent 58%);
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
}

:where(.workbench-app) .rank-young .pigeon-sticker {
  filter: saturate(0.88) contrast(1.02) drop-shadow(0 4px 5px rgba(45, 31, 22, 0.32));
}

:where(.workbench-app) .rank-post .pigeon-sticker {
  filter: saturate(1.02) contrast(1.04) drop-shadow(0 5px 7px rgba(113, 42, 25, 0.32));
}

:where(.workbench-app) .rank-royal .pigeon-sticker {
  filter: saturate(1.08) contrast(1.06) drop-shadow(0 0 9px rgba(49, 93, 164, 0.45));
}

:where(.workbench-app) .rank-legend .pigeon-sticker {
  filter: saturate(1.14) contrast(1.06) drop-shadow(0 0 11px rgba(212, 169, 72, 0.56));
}

:where(.workbench-app) .rank-young {
  --pigeon-asset: url("./assets/pigeon-young-flight-v2.png");
  --pigeon-size: 0.88;
  --wing-speed: 0.86s;
  --trail-color: rgba(100, 91, 79, 0.42);
  --aura-color: rgba(128, 112, 91, 0.13);
  --feather-color: rgba(207, 204, 197, 0.2);
}

:where(.workbench-app) .rank-post {
  --pigeon-asset: url("./assets/pigeon-post-flight-v2.png");
  --pigeon-size: 0.98;
  --wing-speed: 0.68s;
  --trail-color: rgba(164, 58, 38, 0.6);
  --aura-color: rgba(174, 64, 42, 0.2);
  --feather-color: rgba(232, 144, 111, 0.25);
}

:where(.workbench-app) .rank-royal {
  --pigeon-asset: url("./assets/pigeon-royal-flight-v2.png");
  --pigeon-size: 1.08;
  --wing-speed: 0.5s;
  --trail-color: rgba(40, 98, 165, 0.68);
  --aura-color: rgba(49, 106, 179, 0.26);
  --feather-color: rgba(124, 183, 222, 0.28);
}

:where(.workbench-app) .rank-legend {
  --pigeon-asset: url("./assets/pigeon-legend-flight-v2.png");
  --pigeon-size: 1.18;
  --wing-speed: 0.42s;
  --trail-color: rgba(205, 157, 53, 0.74);
  --aura-color: rgba(220, 180, 81, 0.34);
  --feather-color: rgba(255, 231, 158, 0.38);
}

:where(.workbench-app) .pigeon-trail {
  z-index: 1;
  left: -12px;
  top: 38px;
  width: 62px;
  height: 26px;
}

:where(.workbench-app) .pigeon-trail i {
  right: auto;
  left: 0;
}

:where(.workbench-app) .pigeon-trail i:nth-child(1) { top: 4px; width: 48px; }
:where(.workbench-app) .pigeon-trail i:nth-child(2) { top: 12px; width: 36px; animation-delay: 0.18s; }
:where(.workbench-app) .pigeon-trail i:nth-child(3) { top: 20px; width: 26px; animation-delay: 0.36s; }

:where(.workbench-app) .rank-young .pigeon-trail i:nth-child(2),
:where(.workbench-app) .rank-young .pigeon-trail i:nth-child(3) {
  display: none;
}

:where(.workbench-app) .pigeon-feather-wash {
  position: absolute;
  z-index: 2;
  left: 27px;
  top: 5px;
  width: 57px;
  height: 46px;
  opacity: 0;
  pointer-events: none;
}

:where(.workbench-app) .pigeon-feather-wash i {
  position: absolute;
  width: 34px;
  height: 13px;
  border-top: 1px solid var(--feather-color);
  border-radius: 50%;
  filter: blur(0.25px);
  animation: featherSweep var(--wing-speed) ease-in-out infinite;
}

:where(.workbench-app) .pigeon-feather-wash i:first-child { left: 2px; top: 4px; }
:where(.workbench-app) .pigeon-feather-wash i:last-child { right: 0; bottom: 5px; animation-delay: calc(var(--wing-speed) / -2); }

:where(.workbench-app) .is-waiting .pigeon-sticker {
  animation-duration: 1.45s;
  filter: saturate(0.94) contrast(1.02) drop-shadow(0 3px 5px rgba(45, 31, 22, 0.3));
}

:where(.workbench-app) .is-waiting .pigeon-trail,
:where(.workbench-app) .is-waiting .pigeon-feather-wash {
  display: none;
}

:where(.workbench-app) .is-supplying .pigeon-sticker {
  filter: saturate(0.86) contrast(0.98) drop-shadow(0 3px 4px rgba(45, 31, 22, 0.28));
}

:where(.workbench-app) .is-supplying .pigeon-trail {
  opacity: 0.16;
  animation-play-state: paused;
}

:where(.workbench-app) .is-supplying .pigeon-feather-wash {
  opacity: 0.42;
  animation: supplyBreath 1.5s ease-in-out infinite alternate;
}

:where(.workbench-app) .rank-royal .pigeon-feather-wash,
:where(.workbench-app) .rank-legend .pigeon-feather-wash {
  opacity: 0.62;
}

:where(.workbench-app) .supply-marker {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #654024;
  background: #f2d58f;
  color: #4b2d19;
  font-size: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
}

:where(.workbench-app) .settings-card {
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

:where(.workbench-app) .letter-card {
  width: min(620px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 28px));
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
}

:where(.workbench-app) .letter-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(79, 48, 27, 0.22);
  padding-bottom: 12px;
}

:where(.workbench-app) .letter-card header span {
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 900;
}

:where(.workbench-app) .letter-card h2 {
  margin: 5px 0 0;
  font-size: 28px;
}

:where(.workbench-app) .letter-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0 18px;
}

:where(.workbench-app) .letter-meta div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(78, 49, 30, 0.16);
  border-radius: 6px;
  background: rgba(255, 249, 230, 0.44);
}

:where(.workbench-app) .letter-meta dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

:where(.workbench-app) .letter-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

:where(.workbench-app) .letter-body {
  min-height: 220px;
  padding: 18px;
  border-radius: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

:where(.workbench-app) .letter-actions {
  margin-top: 14px;
}

:where(.workbench-app) .policy-card {
  width: min(420px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 28px));
  overflow: auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

:where(.workbench-app) .policy-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(79, 48, 27, 0.2);
  padding-bottom: 10px;
}

:where(.workbench-app) .policy-card h2 {
  margin: 0;
  font-size: 24px;
}

:where(.workbench-app) .policy-card p {
  margin: 0 0 12px;
  line-height: 1.75;
}

:where(.workbench-app) .writer-card {
  width: min(620px, calc(100vw - 24px));
  max-height: min(820px, calc(100vh - 24px));
  display: grid;
  grid-template-rows: auto minmax(340px, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(80, 51, 30, 0.3);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

:where(.workbench-app) .writer-card header,
:where(.workbench-app) .writer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

:where(.workbench-app) .writer-card header span {
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 900;
}

:where(.workbench-app) .writer-card h2 {
  margin: 2px 0 0;
  font-size: 24px;
}

:where(.workbench-app) #writerText {
  min-height: 340px;
  resize: vertical;
  line-height: 1.85;
}

:where(.workbench-app) .writer-footer {
  flex-wrap: wrap;
}

:where(.workbench-app) .delivery-card {
  width: min(390px, calc(100vw - 28px));
  padding: 16px;
  border-radius: 8px;
}

:where(.workbench-app) .delivery-stage {
  position: relative;
  overflow: hidden;
}

:where(.workbench-app) .delivery-moon {
  position: absolute;
  left: 28px;
  top: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7cf, #d4aa5f);
  box-shadow: 0 0 24px rgba(255, 236, 170, 0.72);
}

:where(.workbench-app) .delivery-courtyard {
  position: absolute;
  inset: auto 0 0;
  height: 82px;
  background:
    linear-gradient(135deg, transparent 0 20px, rgba(36, 48, 46, 0.86) 21px 28px, transparent 29px) 0 0 / 58px 36px repeat-x,
    linear-gradient(45deg, transparent 0 20px, rgba(36, 48, 46, 0.86) 21px 28px, transparent 29px) 29px 0 / 58px 36px repeat-x,
    linear-gradient(180deg, transparent 28px, rgba(92, 61, 35, 0.62) 29px 100%);
}

:where(.workbench-app) .delivery-weather {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.68;
}

:where(.workbench-app) .delivery-rank-aura,
:where(.workbench-app) .delivery-bell {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

:where(.workbench-app) .delivery-rank-aura i {
  position: absolute;
  display: block;
  border-radius: 999px;
}

:where(.workbench-app) .delivery-bell {
  left: 50%;
  top: 48px;
  width: 26px;
  height: 30px;
  border-radius: 14px 14px 10px 10px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 82%, #6d4320 0 3px, transparent 4px),
    linear-gradient(180deg, #fff4bb, #d1982d);
  box-shadow: 0 0 18px rgba(229, 176, 59, 0.52);
}

:where(.workbench-app) .delivery-flight-trace {
  position: absolute;
  left: 18px;
  right: 22px;
  top: 78px;
  height: 62px;
  pointer-events: none;
  opacity: 0;
}

:where(.workbench-app) .delivery-flight-trace i {
  position: absolute;
  display: block;
  width: 34%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 247, 200, 0.9), transparent);
  transform: rotate(-9deg);
}

:where(.workbench-app) .delivery-flight-trace i:nth-child(1) {
  left: 0;
  top: 8px;
}

:where(.workbench-app) .delivery-flight-trace i:nth-child(2) {
  left: 32%;
  top: 28px;
  width: 42%;
}

:where(.workbench-app) .delivery-flight-trace i:nth-child(3) {
  right: 0;
  top: 48px;
  width: 28%;
}

:where(.workbench-app) .delivery-pigeon {
  position: absolute;
  left: -94px;
  top: 62px;
}

:where(.workbench-app) .delivery-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 42px;
  height: 18px;
  transform: translateX(-50%) scaleX(0.12);
  transform-origin: center;
  opacity: 0;
}

:where(.workbench-app) .delivery-scroll span {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 8px;
  border-top: 2px solid rgba(115, 75, 43, 0.42);
}

:where(.workbench-app) .delivery-seal {
  position: absolute;
  left: calc(50% + 44px);
  bottom: 41px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff5d4;
  font-weight: 900;
  opacity: 0;
  transform: scale(1.8) rotate(-16deg);
}

:where(.workbench-app) .delivery-rank-mark,
:where(.workbench-app) .delivery-distance-mark {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 52, 34, 0.38);
  font-weight: 900;
  opacity: 0;
}

:where(.workbench-app) .delivery-rank-mark {
  right: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

:where(.workbench-app) .delivery-distance-mark {
  left: 16px;
  bottom: 18px;
  min-width: 58px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
}

:where(.workbench-app) .delivery-copy {
  padding: 14px 2px 12px;
  text-align: center;
}

:where(.workbench-app) .delivery-copy span {
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 900;
}

:where(.workbench-app) .delivery-copy h2 {
  margin: 4px 0 8px;
}

:where(.workbench-app) .delivery-copy p {
  margin: 0;
}

:where(.workbench-app) .delivery-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

:where(.workbench-app) .delivery-meta span {
  padding: 5px 8px;
  border: 1px solid rgba(104, 63, 37, 0.24);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

:where(.workbench-app) .delivery-scenes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

:where(.workbench-app) .scene-chip {
  position: relative;
  min-height: 54px;
  padding: 8px 8px 8px 36px;
  border: 1px solid rgba(104, 63, 37, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(126, 83, 43, 0.12), transparent 38%),
    rgba(255, 247, 221, 0.64);
  text-align: left;
  overflow: hidden;
}

:where(.workbench-app) .scene-chip b {
  position: absolute;
  left: 8px;
  top: 9px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(127, 45, 36, 0.14);
  color: #7f2d24;
  font-size: 11px;
}

:where(.workbench-app) .scene-chip em,
:where(.workbench-app) .scene-chip small {
  display: block;
  font-style: normal;
}

:where(.workbench-app) .scene-chip em {
  color: #3d281a;
  font-size: 12px;
  font-weight: 900;
}

:where(.workbench-app) .scene-chip small {
  margin-top: 3px;
  color: rgba(57, 36, 24, 0.72);
  font-size: 11px;
  line-height: 1.35;
}

:where(.workbench-app) .scene-legend {
  border-color: rgba(216, 161, 45, 0.38);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 230, 120, 0.34), transparent 34px),
    linear-gradient(135deg, rgba(255, 248, 217, 0.9), rgba(216, 161, 45, 0.28));
  box-shadow: inset 0 0 0 1px rgba(255, 243, 190, 0.36);
}

:where(.workbench-app) .scene-legend b {
  background: radial-gradient(circle at 35% 28%, #fff7c8, #d8a12d);
  color: #684018;
}

:where(.workbench-app) .scene-royal {
  border-color: rgba(50, 106, 182, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 248, 217, 0.86), rgba(77, 138, 211, 0.18));
}

:where(.workbench-app) .scene-royal b {
  background: linear-gradient(135deg, #f6df9b, #4f8bd0);
  color: #193d70;
}

:where(.workbench-app) .scene-danger {
  border-color: rgba(127, 45, 36, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 239, 214, 0.72), rgba(127, 45, 36, 0.14));
}

:where(.workbench-app) .scene-danger b {
  background: linear-gradient(135deg, #ab4d3d, #4a3028);
  color: #fff5d4;
}

:where(.workbench-app) .scene-warning,
:where(.workbench-app) .scene-mist {
  background:
    linear-gradient(135deg, rgba(255, 248, 224, 0.76), rgba(90, 78, 65, 0.12));
}

:where(.workbench-app) .ritual-play .delivery-scroll {
  animation: scrollDrop 1.4s 1.05s ease-out both;
}

:where(.workbench-app) .ritual-play .delivery-seal {
  animation: sealStamp 0.5s 2.05s cubic-bezier(0.2, 1.3, 0.3, 1) both;
}

:where(.workbench-app) .ritual-play .delivery-flight-trace {
  animation: traceReveal 1.35s 0.16s ease-out both;
}

:where(.workbench-app) .ritual-play .delivery-rank-mark {
  animation: markDrop 0.52s 1.72s cubic-bezier(0.2, 1.26, 0.24, 1) both;
}

:where(.workbench-app) .ritual-play .delivery-distance-mark {
  animation: markDrop 0.48s 1.92s cubic-bezier(0.2, 1.26, 0.24, 1) both;
}

:where(.workbench-app) .ritual-rank-royal.ritual-play .delivery-bell,
:where(.workbench-app) .ritual-rank-legend.ritual-play .delivery-bell {
  animation: bellRing 1.1s 0.36s ease-out both;
}

:where(.workbench-app) .ritual-rank-royal.ritual-play .delivery-rank-aura,
:where(.workbench-app) .ritual-rank-legend.ritual-play .delivery-rank-aura {
  animation: auraReveal 1.8s 0.18s ease-out both;
}

:where(.workbench-app) .ritual-rank-royal .delivery-pigeon,
:where(.workbench-app) .ritual-rank-legend .delivery-pigeon {
  border-color: rgba(255, 241, 171, 0.95);
  box-shadow: 0 0 24px rgba(224, 177, 65, 0.5);
}

:where(.workbench-app) .ritual-rank-royal .delivery-flight-trace i {
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(72, 142, 234, 0.88), rgba(255, 224, 128, 0.9), transparent);
}

:where(.workbench-app) .ritual-rank-royal .delivery-rank-aura i:nth-child(1) {
  left: 42px;
  top: 52px;
  width: 230px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(65, 139, 226, 0.86), rgba(245, 206, 92, 0.9), transparent);
  transform: rotate(-8deg);
}

:where(.workbench-app) .ritual-rank-royal .delivery-rank-aura i:nth-child(2) {
  right: 42px;
  top: 100px;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 239, 162, 0.9), transparent);
  transform: rotate(12deg);
}

:where(.workbench-app) .ritual-rank-royal .delivery-rank-aura i:nth-child(3) {
  left: 160px;
  top: 132px;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(69, 142, 222, 0.48);
  box-shadow: 0 0 18px rgba(239, 195, 83, 0.42);
}

:where(.workbench-app) .ritual-rank-royal .delivery-rank-mark {
  border-color: rgba(50, 106, 182, 0.46);
  background: linear-gradient(135deg, rgba(255, 248, 217, 0.92), rgba(101, 157, 220, 0.44));
  color: #1e58a7;
}

:where(.workbench-app) .ritual-rank-legend .delivery-stage {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 230, 143, 0.42), transparent 82px),
    linear-gradient(180deg, rgba(42, 35, 49, 0.26), transparent 48%),
    linear-gradient(180deg, #efe0b1, #d6ac66);
}

:where(.workbench-app) .ritual-rank-legend .delivery-pigeon {
  filter: drop-shadow(0 0 16px rgba(255, 221, 120, 0.88)) drop-shadow(0 9px 14px rgba(45, 31, 22, 0.28));
}

:where(.workbench-app) .ritual-rank-legend .delivery-flight-trace {
  height: 84px;
}

:where(.workbench-app) .ritual-rank-legend .delivery-flight-trace i {
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(255, 232, 120, 0.95), rgba(255, 255, 246, 0.95), transparent);
  box-shadow: 0 0 16px rgba(255, 222, 108, 0.76);
}

:where(.workbench-app) .ritual-rank-legend .delivery-rank-aura i:nth-child(1) {
  left: 58px;
  top: 76px;
  width: 230px;
  height: 88px;
  border: 2px solid rgba(255, 225, 117, 0.58);
  box-shadow: 0 0 26px rgba(255, 220, 92, 0.46), inset 0 0 18px rgba(255, 247, 180, 0.34);
  transform: rotate(-7deg);
}

:where(.workbench-app) .ritual-rank-legend .delivery-rank-aura i:nth-child(2),
:where(.workbench-app) .ritual-rank-legend .delivery-rank-aura i:nth-child(3) {
  width: 8px;
  height: 18px;
  border-radius: 9px 9px 3px 9px;
  background: linear-gradient(180deg, #fff8cf, #db9c2f);
  box-shadow: 0 0 14px rgba(255, 225, 104, 0.68);
}

:where(.workbench-app) .ritual-rank-legend .delivery-rank-aura i:nth-child(2) {
  left: 118px;
  top: 26px;
  transform: rotate(24deg);
}

:where(.workbench-app) .ritual-rank-legend .delivery-rank-aura i:nth-child(3) {
  right: 92px;
  top: 42px;
  transform: rotate(-16deg);
}

:where(.workbench-app) .ritual-rank-legend .delivery-rank-mark {
  border-color: rgba(216, 161, 45, 0.62);
  background: radial-gradient(circle at 35% 28%, #fff9d7, #d8a12d);
  color: #6b3e17;
  box-shadow: 0 0 22px rgba(225, 176, 64, 0.6);
}

:where(.workbench-app) .ritual-failed .delivery-rank-aura,
:where(.workbench-app) .ritual-failed .delivery-bell {
  filter: grayscale(0.9);
  opacity: 0.18;
}

:where(.workbench-app) .ritual-weather-rain .delivery-stage {
  background:
    repeating-linear-gradient(105deg, rgba(72, 92, 100, 0.26) 0 2px, transparent 2px 13px),
    linear-gradient(180deg, rgba(43, 58, 64, 0.3), transparent 54%),
    linear-gradient(180deg, #d9c89c, #b88c58);
}

:where(.workbench-app) .ritual-weather-rain .delivery-weather {
  background: repeating-linear-gradient(108deg, rgba(65, 78, 84, 0.52) 0 2px, transparent 2px 12px);
  animation: weatherSweep 1.15s linear infinite;
}

:where(.workbench-app) .ritual-weather-mist .delivery-stage {
  background:
    radial-gradient(ellipse at 38% 42%, rgba(255, 255, 242, 0.48), transparent 116px),
    linear-gradient(180deg, rgba(148, 161, 143, 0.34), transparent 58%),
    linear-gradient(180deg, #ece2bd, #cda46b);
}

:where(.workbench-app) .ritual-weather-mist .delivery-weather {
  background:
    radial-gradient(ellipse at 20% 42%, rgba(255, 255, 242, 0.42), transparent 86px),
    radial-gradient(ellipse at 76% 58%, rgba(255, 255, 242, 0.36), transparent 100px);
  animation: mistDrift 3.2s ease-in-out infinite alternate;
}

:where(.workbench-app) .ritual-weather-wind .delivery-stage {
  background:
    repeating-linear-gradient(165deg, transparent 0 18px, rgba(255, 248, 218, 0.34) 19px 21px, transparent 22px 46px),
    linear-gradient(180deg, rgba(77, 91, 82, 0.22), transparent 48%),
    linear-gradient(180deg, #ead9aa, #c9975d);
}

:where(.workbench-app) .ritual-weather-wind .delivery-weather {
  background: repeating-linear-gradient(165deg, transparent 0 18px, rgba(255, 248, 218, 0.54) 19px 21px, transparent 22px 44px);
  animation: weatherSweep 1.4s linear infinite;
}

:where(.workbench-app) .ritual-weather-snow .delivery-stage {
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.75) 0 2px, transparent 3px),
    linear-gradient(180deg, rgba(206, 222, 224, 0.34), transparent 54%),
    linear-gradient(180deg, #efe5c4, #caa06a);
}

:where(.workbench-app) .ritual-weather-snow .delivery-weather {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3px);
  animation: snowFall 2.1s linear infinite;
}

:where(.workbench-app) .ritual-distance-far .delivery-distance-mark,
:where(.workbench-app) .ritual-distance-world .delivery-distance-mark {
  background: linear-gradient(135deg, rgba(255, 246, 218, 0.84), rgba(139, 91, 49, 0.28));
}

:where(.workbench-app) .ritual-distance-world .delivery-stage {
  box-shadow: inset 0 0 0 2px rgba(139, 91, 49, 0.08), inset 0 -34px 70px rgba(69, 93, 119, 0.18);
}

:where(.workbench-app) .ritual-city-changan .delivery-stage {
  background:
    radial-gradient(circle at 18% 20%, rgba(217, 168, 52, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(84, 45, 30, 0.42), rgba(36, 80, 70, 0.3)),
    var(--tex-bamboo);
}

:where(.workbench-app) .ritual-city-yanjing .delivery-stage {
  background:
    linear-gradient(180deg, rgba(98, 52, 44, 0.32), rgba(33, 66, 69, 0.28)),
    var(--tex-xuan);
}

:where(.workbench-app) .ritual-city-linan .delivery-stage,
:where(.workbench-app) .ritual-city-haishang .delivery-stage {
  background:
    radial-gradient(ellipse at 74% 62%, rgba(47, 95, 115, 0.32), transparent 38%),
    linear-gradient(135deg, rgba(232, 241, 217, 0.22), rgba(30, 92, 87, 0.28)),
    var(--tex-paper);
}

:where(.workbench-app) .ritual-city-silk_road .delivery-stage {
  background:
    linear-gradient(120deg, rgba(191, 135, 63, 0.34), rgba(86, 58, 39, 0.28)),
    var(--tex-bamboo);
}

:where(.workbench-app) .ritual-city-world_ocean .delivery-stage {
  background:
    radial-gradient(circle at 78% 28%, rgba(217, 168, 52, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(28, 74, 94, 0.38), rgba(38, 82, 76, 0.24)),
    var(--tex-xuan);
}

:where(.workbench-app) .ritual-failed {
  filter: saturate(0.76);
}

:where(.workbench-app) .ritual-failed .delivery-stage {
  background:
    linear-gradient(180deg, rgba(44, 38, 34, 0.28), transparent 54%),
    linear-gradient(180deg, #d8c59a, #9d744f);
}

:where(.workbench-app) .ritual-failed .delivery-seal {
  background: radial-gradient(circle at 35% 30%, #60615c, #352f2b);
}

:where(.workbench-app) .ritual-failed .delivery-seal::before {
  content: "失";
  color: #fff5d4;
}

:where(.workbench-app) .ritual-failed .delivery-seal {
  color: transparent;
}

:where(.workbench-app) .ritual-failed .delivery-rank-mark {
  color: #fff4d2;
  border-color: rgba(63, 49, 42, 0.62);
  background: linear-gradient(135deg, #6a5f55, #2f2925);
}

:where(.workbench-app) .ritual-failure-predator .delivery-weather {
  background:
    radial-gradient(ellipse at 70% 28%, rgba(74, 32, 28, 0.36), transparent 64px),
    linear-gradient(145deg, transparent 0 52%, rgba(52, 36, 28, 0.44) 53% 56%, transparent 57%);
}

:where(.workbench-app) .ritual-failure-lost .delivery-scroll {
  transform-origin: left center;
}

:where(.workbench-app) .ritual-failure-rain .delivery-stage {
  background:
    repeating-linear-gradient(108deg, rgba(61, 73, 78, 0.3) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, #c8b98f, #8f6849);
}

:where(.workbench-app) .ritual-failure-fog .delivery-stage {
  background:
    radial-gradient(ellipse at 45% 48%, rgba(236, 230, 201, 0.56), transparent 132px),
    linear-gradient(180deg, #cfc39a, #917251);
}

:where(.workbench-app) .ritual-failed.ritual-play .delivery-pigeon {
  animation: pigeonLost 1.6s ease-in both;
}

:where(.workbench-app) .ritual-failed.ritual-play .delivery-scroll {
  animation: scrollDrop 1.2s 0.9s ease-out both;
  filter: grayscale(0.5);
}

:where(.workbench-app) .ritual-paper-silk .delivery-scroll {
  height: 22px;
  background:
    linear-gradient(90deg, #6b3e28 0 8px, transparent 9px calc(100% - 9px), #6b3e28 calc(100% - 8px)),
    linear-gradient(180deg, #fff9df, #e7c576 54%, #c79847);
  box-shadow: 0 0 18px rgba(210, 165, 72, 0.5);
}

:where(.workbench-app) .ritual-paper-xuan .delivery-scroll {
  background:
    linear-gradient(90deg, #5f4a34 0 8px, transparent 9px calc(100% - 9px), #5f4a34 calc(100% - 8px)),
    radial-gradient(circle at 24% 46%, rgba(42, 35, 30, 0.2) 0 2px, transparent 3px),
    linear-gradient(180deg, #fff9df, #e4d4ab);
}

:where(.workbench-app) .ritual-paper-cotton .delivery-scroll {
  background:
    linear-gradient(90deg, #8f4b36 0 8px, transparent 9px calc(100% - 9px), #8f4b36 calc(100% - 8px)),
    linear-gradient(180deg, #fff0c6, #d7b16d);
}

:where(.workbench-app) .ritual-paper-bamboo .delivery-scroll {
  background:
    linear-gradient(90deg, #6f4b2e 0 8px, transparent 9px calc(100% - 9px), #6f4b2e calc(100% - 8px)),
    linear-gradient(180deg, #d4b074, #b48349);
}

:where(.workbench-app) .ritual-rank-legend.ritual-play .delivery-pigeon {
  animation-duration: 1.35s;
}

:where(.workbench-app) .ritual-rank-royal.ritual-play .delivery-pigeon {
  animation-name: pigeonArriveRoyal;
  animation-duration: 1.45s;
}

:where(.workbench-app) .ritual-rank-legend.ritual-play .delivery-pigeon {
  animation-name: pigeonArriveLegend;
}

:where(.workbench-app) .friend-request-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

:where(.workbench-app) .social-profile-card {
  margin: 8px 0;
}

:where(.workbench-app) .social-profile-inner {
  border-color: rgba(47, 95, 82, 0.28);
  background:
    linear-gradient(90deg, rgba(48, 99, 82, 0.08), rgba(255, 250, 232, 0.82)),
    var(--tex-paper);
}

:where(.workbench-app) .social-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

:where(.workbench-app) .compose-actions,
:where(.workbench-app) .tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

:where(.workbench-app) .reply-quote-card {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
  padding: 8px;
  border: 1px solid rgba(128, 74, 43, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 247, 220, 0.82), rgba(235, 208, 154, 0.54)),
    var(--tex-paper);
  box-shadow: inset 3px 0 0 rgba(138, 43, 33, 0.32);
}

:where(.workbench-app) .reply-quote-card[hidden] {
  display: none;
}

:where(.workbench-app) .reply-quote-seal {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #8f3f2f;
  color: #fff7dc;
  font-weight: 800;
}

:where(.workbench-app) .reply-quote-copy {
  min-width: 0;
}

:where(.workbench-app) .reply-quote-copy strong,
:where(.workbench-app) .reply-quote-copy small {
  display: block;
}

:where(.workbench-app) .reply-quote-copy small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

:where(.workbench-app) .tab-row .active {
  box-shadow: inset 0 -3px 0 rgba(127, 45, 36, 0.55);
}

:where(.workbench-app) .full-width {
  width: 100%;
  margin-bottom: 8px;
}

:where(.workbench-app) .mini-list-title {
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

:where(.workbench-app) .mini-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.workbench-app) .mini-item,
:where(.workbench-app) .mini-empty {
  min-width: 0;
  border: 1px solid rgba(78, 49, 30, 0.16);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(47, 95, 115, 0.045), rgba(255, 249, 226, 0.68) 24%, rgba(255, 249, 226, 0.68) 76%, rgba(182, 56, 47, 0.045)),
    var(--tex-paper);
  background-size: auto, cover;
  background-position: center;
}

:where(.workbench-app) .mini-empty {
  padding: 9px;
  color: var(--muted);
  font-size: 13px;
}

:where(.workbench-app) .mini-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
}

:where(.workbench-app) .mini-avatar,
:where(.workbench-app) .reward-seal {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 900;
}

:where(.workbench-app) .mini-avatar.is-pinned {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 210, 0.72), rgba(193, 58, 45, 0.92)),
    var(--tex-cinnabar);
  color: #fff8dd;
  box-shadow: 0 5px 14px rgba(130, 42, 32, 0.26);
}

:where(.workbench-app) .mini-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

:where(.workbench-app) .mini-copy strong,
:where(.workbench-app) .mini-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:where(.workbench-app) .mini-copy small {
  color: var(--muted);
  font-size: 12px;
}

:where(.workbench-app) .mini-copy .friend-stats {
  color: #315f4e;
  font-weight: 800;
}

:where(.workbench-app) .mini-copy .friend-stage-copy {
  color: #8a4d2d;
  font-weight: 800;
}

:where(.workbench-app) .mini-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

:where(.workbench-app) .mini-actions button {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 5px;
}

:where(.workbench-app) .social-panel .mini-actions {
  max-width: 174px;
}

:where(.workbench-app) .social-panel .mini-actions button {
  min-width: 50px;
  padding: 0 6px;
}

:where(.workbench-app) .campaign-panel .mini-actions {
  max-width: 126px;
}

:where(.workbench-app) .campaign-condition {
  max-width: 126px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

:where(.workbench-app) .retention-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

:where(.workbench-app) .retention-stats div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(78, 49, 30, 0.16);
  border-radius: 6px;
  background: rgba(255, 249, 230, 0.46);
  text-align: center;
}

:where(.workbench-app) .retention-stats strong {
  display: block;
  font-size: 20px;
}

:where(.workbench-app) .retention-stats small {
  color: var(--muted);
  font-size: 12px;
}

:where(.workbench-app) .reward-list {
  margin-top: 10px;
}

:where(.workbench-app) .quest-list {
  margin-top: 8px;
  margin-bottom: 10px;
}

:where(.workbench-app) .quest-item {
  align-items: stretch;
}

:where(.workbench-app) .quest-item.is-complete {
  background: rgba(255, 242, 197, 0.58);
  box-shadow: inset 3px 0 0 rgba(141, 44, 37, 0.42);
}

:where(.workbench-app) .quest-item.is-claimed {
  opacity: 0.72;
}

:where(.workbench-app) .quest-bar {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid rgba(78, 49, 30, 0.18);
  border-radius: 999px;
  background: rgba(96, 68, 39, 0.12);
}

:where(.workbench-app) .quest-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

:where(.workbench-app) .quest-progress-text,
:where(.workbench-app) .quest-claimed {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0 6px;
  border: 1px solid rgba(78, 49, 30, 0.18);
  border-radius: 5px;
  background: rgba(255, 249, 230, 0.58);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

:where(.workbench-app) .notice-list {
  margin-top: 10px;
}

:where(.workbench-app) .notice-item.is-read {
  opacity: 0.64;
}

:where(.workbench-app) .notice-item.is-unread {
  box-shadow: inset 4px 0 0 rgba(127, 45, 36, 0.52);
}

:where(.workbench-app) .aviary-tabs,
:where(.workbench-app) .notice-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

:where(.workbench-app) .notice-settings label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}

:where(.workbench-app) .notice-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-bottom: 10px;
}

:where(.workbench-app) .notice-contact input {
  min-height: 34px;
  border: 1px solid rgba(78, 49, 30, 0.2);
  background: rgba(255, 249, 230, 0.58);
}

:where(.workbench-app) .notice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

:where(.workbench-app) .aviary-item.locked {
  opacity: 0.5;
  filter: grayscale(0.55);
}

:where(.workbench-app) .collection-summary {
  border-color: rgba(135, 73, 38, 0.35);
  background:
    linear-gradient(135deg, rgba(255, 248, 222, 0.92), rgba(232, 210, 159, 0.64)),
    var(--tex-paper);
}

:where(.workbench-app) .collection-roadmap {
  align-items: start;
}

:where(.workbench-app) .roadmap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 8px;
}

:where(.workbench-app) .roadmap-goal {
  display: grid;
  gap: 3px;
  padding: 8px;
}

:where(.workbench-app) .roadmap-goal.is-claimable {
  border-color: rgba(141, 44, 37, 0.28);
  background:
    linear-gradient(90deg, rgba(141, 44, 37, 0.12), rgba(255, 249, 230, 0.68) 34%),
    var(--tex-paper);
}

:where(.workbench-app) .roadmap-goal b,
:where(.workbench-app) .roadmap-goal em,
:where(.workbench-app) .roadmap-goal small {
  display: block;
  min-width: 0;
}

:where(.workbench-app) .roadmap-goal b {
  color: #7f2d24;
  font-size: 11px;
}

:where(.workbench-app) .roadmap-goal em {
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

:where(.workbench-app) .roadmap-goal small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

:where(.workbench-app) .aviary-medal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5), transparent 28px),
    linear-gradient(135deg, #8b5a32, #e2bb6d 54%, #6f3c27);
  color: #fff7d7;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(54, 31, 18, 0.22);
}

:where(.workbench-app) .aviary-exp {
  display: block;
  height: 5px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
}

:where(.workbench-app) .aviary-exp b {
  display: block;
  height: 100%;
  border-radius: inherit;
}

:where(.workbench-app) .aviary-meter {
  display: grid;
  grid-template-columns: 34px 1fr 44px;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

:where(.workbench-app) .aviary-meter .aviary-exp {
  margin-top: 0;
}

:where(.workbench-app) .letter-status-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

:where(.workbench-app) .letter-status-detail span {
  padding: 5px 8px;
  border: 1px solid rgba(94, 57, 32, 0.16);
  border-radius: 6px;
  background: rgba(255, 248, 226, 0.56);
  color: var(--muted);
  font-size: 12px;
}

:where(.workbench-app) .letter-thread {
  margin-top: 12px;
}

:where(.workbench-app) .thread-item.is-current {
  border-color: rgba(182, 56, 47, 0.42);
  background:
    linear-gradient(90deg, rgba(182, 56, 47, 0.1), rgba(255, 249, 226, 0.82) 30%, rgba(255, 249, 226, 0.82)),
    var(--tex-paper);
}

:where(.workbench-app) .thread-item.is-current .reward-seal {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.45), transparent 20%),
    var(--tex-cinnabar);
  background-size: auto, 220% auto;
}

:where(.workbench-app) .letter-input.paper-bamboo {
  border-color: rgba(91, 57, 31, 0.46);
  background:
    radial-gradient(circle at 12% 24%, rgba(84, 51, 27, 0.18) 0 2px, transparent 3px),
    repeating-linear-gradient(12deg, rgba(86, 53, 28, 0.12) 0 1px, transparent 1px 9px),
    #d0a66c;
}

:where(.workbench-app) .letter-input.paper-cotton {
  border-color: rgba(183, 52, 44, 0.32);
  background:
    linear-gradient(90deg, transparent 0 92%, rgba(183, 52, 44, 0.18) 93% 94%, transparent 95%),
    repeating-linear-gradient(30deg, rgba(100, 71, 45, 0.05) 0 1px, transparent 1px 7px),
    #f4e1bd;
}

:where(.workbench-app) .letter-input.paper-xuan {
  border-color: rgba(47, 95, 115, 0.34);
  background:
    radial-gradient(ellipse at 18% 78%, rgba(49, 64, 74, 0.1), transparent 34%),
    linear-gradient(90deg, rgba(47, 95, 115, 0.08), transparent 22%, transparent 82%, rgba(182, 56, 47, 0.08)),
    #f7efd8;
}

:where(.workbench-app) .letter-input.paper-silk {
  border-color: rgba(217, 168, 52, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), transparent 32%, rgba(217, 168, 52, 0.2) 68%, transparent),
    repeating-linear-gradient(90deg, rgba(217, 168, 52, 0.08) 0 2px, transparent 2px 10px),
    #fff5d2;
  box-shadow: 0 0 0 1px rgba(217, 168, 52, 0.12), 0 0 14px rgba(217, 168, 52, 0.16);
}

:where(.workbench-app) .letter-card.paper-bamboo {
  background:
    radial-gradient(circle at 12% 22%, rgba(74, 45, 24, 0.16) 0 3px, transparent 4px),
    repeating-linear-gradient(12deg, rgba(84, 51, 27, 0.1) 0 1px, transparent 1px 10px),
    #d4aa70;
}

:where(.workbench-app) .letter-card.paper-cotton {
  background:
    radial-gradient(circle at 90% 14%, rgba(183, 52, 44, 0.12) 0 26px, transparent 27px),
    linear-gradient(90deg, transparent 0 92%, rgba(183, 52, 44, 0.16) 93% 94%, transparent 95%),
    #f2dfb7;
}

:where(.workbench-app) .letter-card.paper-xuan {
  background:
    radial-gradient(ellipse at 22% 74%, rgba(49, 64, 74, 0.13), transparent 35%),
    linear-gradient(90deg, rgba(47, 95, 115, 0.12), transparent 15%, transparent 85%, rgba(182, 56, 47, 0.1)),
    repeating-linear-gradient(0deg, rgba(72, 62, 49, 0.04) 0 1px, transparent 1px 32px),
    #f5ecd2;
}

:where(.workbench-app) .letter-card.paper-silk {
  background:
    radial-gradient(circle at 86% 16%, rgba(13, 139, 116, 0.22) 0 30px, transparent 31px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), transparent 28%, rgba(217, 168, 52, 0.22) 66%, transparent),
    repeating-linear-gradient(90deg, rgba(217, 168, 52, 0.08) 0 2px, transparent 2px 12px),
    #fff5d0;
  box-shadow: inset 0 0 0 2px rgba(217, 168, 52, 0.28), 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 28px rgba(217, 168, 52, 0.2);
}

:where(.workbench-app) .seal.paper-bamboo {
  background: radial-gradient(circle at 35% 28%, #9a6f43, #5b3920);
}

:where(.workbench-app) .seal.paper-cotton {
  background: radial-gradient(circle at 35% 28%, #cf4c39, #7a251d);
}

:where(.workbench-app) .seal.paper-xuan {
  background: radial-gradient(circle at 35% 28%, #c13f32, #8b2c24);
  box-shadow: 0 0 0 2px rgba(47, 95, 115, 0.18);
}

:where(.workbench-app) .seal.paper-silk {
  background: radial-gradient(circle at 35% 28%, #18a487, #076052);
  box-shadow: 0 0 0 2px rgba(217, 168, 52, 0.42), 0 0 16px rgba(217, 168, 52, 0.28);
}

:where(.workbench-app) .settings-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

:where(.workbench-app) .settings-intro {
  margin: -4px 0 12px;
}

:where(.workbench-app) .account-state {
  margin-top: 10px;
}

:where(.workbench-app) .dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
:where(.workbench-app) .app-shell {
  grid-template-columns: minmax(340px, 0.9fr) minmax(640px, 2.1fr);
  gap: 20px;
}

:where(.workbench-app) .sidebar {
  border: 1px solid rgba(33, 20, 12, 0.68);
  background:
    linear-gradient(180deg, rgba(41, 25, 16, 0.18), transparent 80%),
    repeating-linear-gradient(90deg, #8e5d34 0 16px, #c59354 16px 31px, #6f4528 31px 34px);
}

:where(.workbench-app) .sidebar::after {
  content: "";
  position: sticky;
  bottom: 0;
  flex: 0 0 10px;
  margin: 0 -8px -10px -10px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #23160f, #80522f, #23160f);
  z-index: 2;
}

:where(.workbench-app) .icon-button {
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #fff1c6, #c44b35 58%, #7b251f 100%);
  color: #fff8df;
  font-weight: 900;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.26), 0 4px 10px rgba(70, 34, 18, 0.22);
}

:where(.workbench-app) .desk-tools {
  grid-template-columns: 1fr 58px 74px;
  min-height: 58px;
  border: 1px solid rgba(33, 20, 12, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 232, 173, 0.2), rgba(21, 13, 9, 0.22)),
    linear-gradient(90deg, #4a2e1d, #8e6038 38%, #3a2418);
}

:where(.workbench-app) .compose-panel::before {
  width: 11px;
  background:
    linear-gradient(90deg, rgba(36, 22, 15, 0.28), transparent),
    repeating-linear-gradient(0deg, #6f4528 0 18px, #c09251 18px 36px, #442817 36px 38px);
}

:where(.workbench-app) .paper-preview,
:where(.workbench-app) .stat-grid div,
:where(.workbench-app) .inbox-item button,
:where(.workbench-app) .letter-meta div,
:where(.workbench-app) .letter-body {
  border-radius: 4px;
}

:where(.workbench-app) .paper-preview {
  border-color: rgba(89, 55, 30, 0.38);
  box-shadow: inset 0 0 0 2px rgba(255, 250, 226, 0.22), 0 8px 16px rgba(70, 42, 22, 0.12);
}

:where(.workbench-app) .pigeon-panel .stat-grid div {
  background:
    radial-gradient(circle at 82% 20%, rgba(47, 122, 98, 0.18), transparent 26px),
    linear-gradient(180deg, rgba(255, 250, 230, 0.72), rgba(221, 185, 120, 0.52));
}

:where(.workbench-app) .route-picks .secondary {
  min-height: 42px;
  border-color: rgba(70, 42, 23, 0.42);
  background:
    linear-gradient(90deg, #6f4528 0 8px, transparent 9px),
    linear-gradient(180deg, #d3a45d, #9c6738);
  color: #24160f;
  font-weight: 800;
}

:where(.workbench-app) .secondary.compact {
  border-radius: 5px;
  background:
    linear-gradient(90deg, #4c2d1c 0 8px, transparent 9px),
    linear-gradient(180deg, #d6b06d, #9f6c3d);
}

:where(.workbench-app) .status-panel {
  padding-bottom: 18px;
}

:where(.workbench-app) .progress-track {
  position: relative;
}

:where(.workbench-app) .progress-track::after {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(var(--progress-x, 0%) - 14px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.62), transparent 20%),
    radial-gradient(circle at center, #9bc7ad, #2f7a62 58%, #0f473f 100%);
  border: 2px solid rgba(221, 179, 87, 0.78);
  box-shadow: 0 5px 12px rgba(32, 25, 17, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

:where(.workbench-app) .map-scroll::before {
  top: 24px;
  left: 34px;
  right: 34px;
  opacity: 1;
}

:where(.workbench-app) .scroll-top,
:where(.workbench-app) .scroll-bottom {
  height: 36px;
  left: 20px;
  right: 20px;
}

:where(.workbench-app) .scroll-top {
  top: 10px;
}

:where(.workbench-app) .scroll-bottom {
  bottom: 10px;
}

:where(.workbench-app) #map {
  outline: 1px solid rgba(53, 33, 20, 0.42);
}

:where(.workbench-app) .map-toolbar div,
:where(.workbench-app) .map-legend {
  border: 1px solid rgba(75, 48, 27, 0.34);
  background:
    linear-gradient(90deg, rgba(47, 95, 115, 0.12), transparent 25%, rgba(182, 56, 47, 0.09)),
    rgba(255, 247, 218, 0.95);
}

:where(.workbench-app) .inbox-item button {
  background:
    linear-gradient(90deg, rgba(124, 84, 40, 0.14), transparent 12%),
    linear-gradient(135deg, rgba(255, 248, 224, 0.94), rgba(225, 190, 124, 0.9));
}

:where(.workbench-app) .app-shell {
  grid-template-columns: minmax(340px, 0.82fr) minmax(660px, 2.18fr);
  gap: 20px;
}

:where(.workbench-app) .sidebar {
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(34, 22, 14, 0.62);
  background:
    linear-gradient(90deg, rgba(48, 30, 18, 0.78), rgba(93, 60, 34, 0.86) 10px, rgba(250, 226, 175, 0.78) 11px, rgba(250, 226, 175, 0.78) calc(100% - 11px), rgba(93, 60, 34, 0.86) calc(100% - 10px), rgba(48, 30, 18, 0.78)),
    linear-gradient(180deg, rgba(255, 240, 199, 0.92), rgba(194, 145, 82, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 238, 184, 0.22), 0 18px 36px rgba(0, 0, 0, 0.32);
}

:where(.workbench-app) .sidebar::before,
:where(.workbench-app) .sidebar::after {
  display: none;
}

:where(.workbench-app) .profile-strip {
  min-height: 62px;
}

:where(.workbench-app) .profile-strip::after {
  opacity: 0.12;
}

:where(.workbench-app) .desk-tools {
  min-height: 36px;
  padding: 5px 9px;
  border-color: rgba(42, 27, 17, 0.28);
  background:
    linear-gradient(90deg, rgba(42, 27, 17, 0.22), rgba(255, 235, 185, 0.18)),
    rgba(89, 58, 34, 0.5);
}

:where(.workbench-app) .brush {
  height: 6px;
}

:where(.workbench-app) .inkstone {
  height: 24px;
}

:where(.workbench-app) .paperweight {
  height: 16px;
}

:where(.workbench-app) .cylinder-cap {
  width: 48px;
}

:where(.workbench-app) .compose-panel {
  overflow: hidden;
}

:where(.workbench-app) .compose-panel::before {
  width: 5px;
  background: linear-gradient(180deg, rgba(48, 106, 67, 0.7), rgba(141, 165, 108, 0.58));
}

:where(.workbench-app) .letter-panel::after,
:where(.workbench-app) .pigeon-panel::after {
  opacity: 0.08;
  transform: scale(0.82);
  transform-origin: top right;
}

:where(.workbench-app) .status-panel::after {
  display: none;
}

:where(.workbench-app) .stat-grid div {
  padding: 8px;
}

:where(.workbench-app) .route-picks .secondary,
:where(.workbench-app) .secondary.compact {
  min-height: 38px;
  background:
    linear-gradient(180deg, #e6c381, #b98148);
}

:where(.workbench-app) .progress-track {
  overflow: visible;
}

:where(.workbench-app) .progress-track::after {
  top: -7px;
  width: 28px;
  height: 28px;
}

:where(.workbench-app) .map-scroll::before {
  height: 30px;
  top: 18px;
  opacity: 0.72;
  clip-path: polygon(0 42%, 8% 18%, 50% 30%, 92% 18%, 100% 42%, 98% 58%, 2% 58%);
}

:where(.workbench-app) .scroll-top,
:where(.workbench-app) .scroll-bottom {
  height: 24px;
  left: 18px;
  right: 18px;
}

:where(.workbench-app) .map-toolbar {
  top: 52px;
}

:where(.workbench-app) .map-toolbar div,
:where(.workbench-app) .map-legend {
  background: rgba(255, 247, 218, 0.94);
  box-shadow: 0 6px 14px rgba(66, 35, 17, 0.14);
}

:where(.workbench-app) .profile-strip,
:where(.workbench-app) .desk-tools,
:where(.workbench-app) .sender-cylinder,
:where(.workbench-app) .compose-panel {
  flex: 0 0 auto;
}

:where(.workbench-app) .sidebar {
  background:
    linear-gradient(90deg, rgba(48, 30, 18, 0.76), rgba(93, 60, 34, 0.6) 12px, rgba(250, 226, 175, 0.44) 13px, rgba(250, 226, 175, 0.44) calc(100% - 13px), rgba(93, 60, 34, 0.6) calc(100% - 12px), rgba(48, 30, 18, 0.76)),
    var(--tex-bamboo) center / cover,
    #b9874b;
}

:where(.workbench-app) .profile-strip,
:where(.workbench-app) .compose-panel,
:where(.workbench-app) .map-scroll,
:where(.workbench-app) .map-toolbar div,
:where(.workbench-app) .map-legend,
:where(.workbench-app) .settings-card,
:where(.workbench-app) .letter-card,
:where(.workbench-app) .policy-card,
:where(.workbench-app) .writer-card {
  background-image:
    linear-gradient(180deg, rgba(255, 248, 224, 0.72), rgba(230, 194, 126, 0.58)),
    var(--tex-paper);
  background-size: auto, cover;
  background-position: center;
}

:where(.workbench-app) .desk-tools,
:where(.workbench-app) .route-picks .secondary,
:where(.workbench-app) .secondary.compact,
:where(.workbench-app) .scroll-top,
:where(.workbench-app) .scroll-bottom {
  background-image:
    linear-gradient(180deg, rgba(255, 232, 174, 0.26), rgba(46, 27, 15, 0.24)),
    var(--tex-bamboo);
  background-size: auto, cover;
  background-position: center;
}

:where(.workbench-app) .paper-preview,
:where(.workbench-app) .inbox-item button,
:where(.workbench-app) .letter-body,
:where(.workbench-app) .letter-meta div {
  background-image:
    linear-gradient(90deg, rgba(47, 95, 115, 0.045), rgba(255, 249, 226, 0.68) 24%, rgba(255, 249, 226, 0.68) 76%, rgba(182, 56, 47, 0.045)),
    var(--tex-paper);
  background-size: auto, cover;
  background-position: center;
}

:where(.workbench-app) .icon-button,
:where(.workbench-app) .avatar,
:where(.workbench-app) .seal,
:where(.workbench-app) .progress-track::after,
:where(.workbench-app) .paperweight {
  background-image:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.45), transparent 20%),
    var(--tex-jade);
  background-size: auto, 240% auto;
  background-position: center;
}

:where(.workbench-app) .icon-button,
:where(.workbench-app) .avatar,
:where(.workbench-app) .seal {
  background-position: center, 88% 12%;
}

:where(.workbench-app) .app-shell {
  grid-template-columns: 1fr;
  grid-template-areas:
    "map"
    "controls";
  gap: 12px;
}

:where(.workbench-app) .map-scroll {
  grid-area: map;
}

:where(.workbench-app) .sidebar {
  grid-area: controls;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  overflow: visible;
  padding: 10px;
}

:where(.workbench-app) .profile-strip,
:where(.workbench-app) .desk-tools,
:where(.workbench-app) .sender-cylinder,
:where(.workbench-app) .letter-panel,
:where(.workbench-app) .status-panel,
:where(.workbench-app) .ad-panel,
:where(.workbench-app) .campaign-panel,
:where(.workbench-app) .social-panel,
:where(.workbench-app) .retention-panel,
:where(.workbench-app) .drafts-panel,
:where(.workbench-app) .notice-panel,
:where(.workbench-app) .appeal-panel,
:where(.workbench-app) .support-panel,
:where(.workbench-app) .inbox-panel,
:where(.workbench-app) .log-panel {
  grid-column: 1 / -1;
}

:where(.workbench-app) .pigeon-panel {
  grid-column: 1 / -1;
}

:where(.workbench-app) .profile-strip {
  grid-template-columns: 40px 48px 1fr auto;
}

:where(.workbench-app) .desk-tools {
  order: 1;
}

:where(.workbench-app) .sender-cylinder {
  order: 2;
}

:where(.workbench-app) .letter-panel {
  order: 3;
}

:where(.workbench-app) .pigeon-panel {
  order: 4;
}

:where(.workbench-app) .status-panel {
  order: 5;
}

:where(.workbench-app) .ad-panel {
  order: 6;
}

:where(.workbench-app) .campaign-panel {
  order: 7;
}

:where(.workbench-app) .social-panel {
  order: 8;
}

:where(.workbench-app) .retention-panel {
  order: 9;
}

:where(.workbench-app) .notice-panel {
  order: 11;
}

:where(.workbench-app) .drafts-panel {
  order: 10;
}

:where(.workbench-app) .appeal-panel {
  order: 12;
}

:where(.workbench-app) .support-panel {
  order: 13;
}

:where(.workbench-app) .inbox-panel {
  order: 14;
}

:where(.workbench-app) .log-panel {
  order: 15;
}

:where(.workbench-app) .map-toolbar {
  left: 28px;
  right: 28px;
  top: 44px;
}

:where(.workbench-app) .map-toolbar div {
  min-width: 0;
}

:where(.workbench-app) .map-toolbar span {
  display: block;
}

:where(.workbench-app) .map-legend {
  right: 26px;
  bottom: 68px;
}

:where(.workbench-app) .scroll-top {
  top: 8px;
}

:where(.workbench-app) .scroll-bottom {
  bottom: 8px;
}
:where(.workbench-app) .utility-panel .collapsible-panel-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin-bottom: 12px;
}

:where(.workbench-app) .utility-panel .collapsible-panel-title>span {
  min-width: 0;
}

:where(.workbench-app) .utility-panel .collapsible-panel-title>strong {
  margin-right: 6px;
}

:where(.workbench-app) .panel-collapse {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 4px;
  color: #2b1a11;
  cursor: pointer;
}

:where(.workbench-app) .panel-collapse:hover {
  background: rgba(255, 249, 225, 0.7);
}

:where(.workbench-app) .panel-collapse:focus-visible {
  outline: 2px solid #2f7a62;
  outline-offset: 2px;
}

:where(.workbench-app) .panel-collapse span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(2px) rotate(225deg);
  transition: transform 160ms ease;
}

:where(.workbench-app) .utility-panel.is-collapsed>:not(.panel-title) {
  display: none !important;
}

:where(.workbench-app) .utility-panel.is-collapsed .collapsible-panel-title {
  margin-bottom: 0;
}

:where(.workbench-app) .utility-panel.is-collapsed .panel-collapse span {
  transform: translateY(-2px) rotate(45deg);
}

:where(.workbench-app) .letter-panel,
:where(.workbench-app) .pigeon-panel,
:where(.workbench-app) .status-panel {
  border-color: rgba(49, 93, 61, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 220, 0.52), 0 10px 20px rgba(50, 48, 24, 0.2);
}

/* Source: styles/user-responsive.css */
@media (max-width: 520px) {
  :where(.workbench-app) .pwa-update-banner {
    position: sticky;
    top: 8px;
    right: auto;
    bottom: auto;
    justify-content: space-between;
    width: calc(100% - 20px);
    max-width: none;
    margin: 8px 10px 0;
  }
}

@media (max-width: 920px) {

  :where(.workbench-app) .app-shell {
    grid-template-columns: 1fr;
  }

  :where(.workbench-app) .letter-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {

  :where(.workbench-app) .map-toolbar {
    left: 24px;
    right: 24px;
  }

  :where(.workbench-app) .map-toolbar div {
    max-width: 68%;
  }

  :where(.workbench-app) .letter-meta {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 680px) {
  :where(.workbench-app) .sidebar {
    grid-template-columns: 1fr;
  }

  :where(.workbench-app) .profile-strip,
:where(.workbench-app) .desk-tools,
:where(.workbench-app) .sender-cylinder,
:where(.workbench-app) .letter-panel,
:where(.workbench-app) .pigeon-panel,
:where(.workbench-app) .status-panel,
:where(.workbench-app) .ad-panel,
:where(.workbench-app) .campaign-panel,
:where(.workbench-app) .social-panel,
:where(.workbench-app) .retention-panel,
:where(.workbench-app) .aviary-panel,
:where(.workbench-app) .drafts-panel,
:where(.workbench-app) .notice-panel,
:where(.workbench-app) .inbox-panel,
:where(.workbench-app) .log-panel,
:where(.workbench-app) .appeal-panel,
:where(.workbench-app) .support-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  :where(.workbench-app) .app-shell {
    gap: 8px;
  }

  :where(.workbench-app) .sidebar {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  :where(.workbench-app) .map-toolbar {
    left: 18px;
    right: 18px;
    top: 38px;
  }

  :where(.workbench-app) .map-toolbar div {
    max-width: calc(100% - 94px);
    padding: 7px 9px;
  }

  :where(.workbench-app) .compact {
    min-width: 82px;
  }

  :where(.workbench-app) .map-legend {
    left: 18px;
    right: 18px;
    bottom: 66px;
  }

  :where(.workbench-app) .map-legend i {
    width: 20px;
    margin-right: 3px;
  }
  :where(.workbench-app) .no-tile-map::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.workbench-app) .panel-collapse span {
    transition: none;
  }
}
