:root {
  --bg: #fff8ec;
  --panel: #fffdf7;
  --panel-soft: #f7ead7;
  --text: #101015;
  --muted: rgba(16, 16, 21, 0.66);
  --line: rgba(16, 16, 21, 0.16);
  --brand: #087e86;
  --brand-dark: #065f66;
  --accent: #ef4f3e;
  --cobalt: #2948d8;
  --lilac: #cbb8ff;
  --gold: #f3b84b;
  --danger: #b91c1c;
  --request-new-bg: #9f3028;
  --request-new-border: #f7aaa1;
  --request-new-text: #fff8ec;
  --request-progress-bg: #8a5a10;
  --request-progress-border: #ffd98a;
  --request-progress-text: #fff8ec;
  --request-approved-bg: rgba(22, 163, 74, 0.12);
  --request-approved-border: rgba(22, 163, 74, 0.3);
  --request-approved-text: #166534;
  --shadow: 0 14px 36px rgba(16, 16, 21, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(81, 119, 143, 0.86), rgba(166, 194, 211, 0.9) 46%, rgba(232, 240, 245, 0.94)),
    #7fa7be;
  color: var(--text);
}

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

button {
  border: 0;
  cursor: pointer;
}

button {
  outline: 0 solid transparent;
  outline-offset: 0;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, outline-color 160ms ease, outline-width 160ms ease, transform 160ms ease;
}

button:hover:not(:disabled) {
  outline: 3px solid rgba(8, 126, 134, 0.42);
  outline-offset: 2px;
}

.app-shell[data-tone="medium"] button:hover:not(:disabled),
.app-shell[data-tone="dark"] button:hover:not(:disabled) {
  outline-color: rgba(255, 248, 236, 0.46);
}

.app-shell {
  background:
    var(--custom-bg-image, none),
    var(--surface-bg, linear-gradient(135deg, #6e9ab4 0%, #b8d0de 48%, #edf3f6 100%));
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  min-height: 100vh;
}

.app-shell[data-bg="bluegray"] {
  --surface-bg: linear-gradient(135deg, #5f8aa5 0%, #a9c6d6 48%, #e5eef3 100%);
}

.app-shell[data-bg="mist"] {
  --surface-bg: linear-gradient(135deg, #82aec8 0%, #c4dce8 52%, #eff6f8 100%);
}

.app-shell[data-bg="paper"] {
  --surface-bg: linear-gradient(120deg, rgba(203, 184, 255, 0.18), rgba(8, 126, 134, 0.1) 46%, rgba(239, 79, 62, 0.1)), #fff8ec;
}

.app-shell[data-bg="cream"] {
  --surface-bg: linear-gradient(145deg, rgba(239, 79, 62, 0.13), rgba(203, 184, 255, 0.28) 46%, rgba(8, 126, 134, 0.12)), #f7ead7;
}

.app-shell[data-bg="teal"] {
  --surface-bg: linear-gradient(135deg, rgba(8, 126, 134, 0.28), rgba(255, 248, 236, 0.88) 48%, rgba(203, 184, 255, 0.24)), #fff8ec;
}

.app-shell[data-bg="lilac"] {
  --surface-bg: linear-gradient(135deg, rgba(203, 184, 255, 0.42), rgba(255, 248, 236, 0.88) 52%, rgba(243, 184, 75, 0.18)), #fff8ec;
}

.app-shell[data-bg="cobalt"] {
  --surface-bg: linear-gradient(135deg, rgba(41, 72, 216, 0.2), rgba(255, 248, 236, 0.9) 50%, rgba(8, 126, 134, 0.16)), #fff8ec;
}

.app-shell[data-bg="charcoal"] {
  --surface-bg: linear-gradient(135deg, rgba(16, 16, 21, 0.96), rgba(39, 48, 56, 0.92) 50%, rgba(8, 126, 134, 0.8));
}

.app-shell[data-bg="midnight"] {
  --surface-bg: linear-gradient(135deg, #0f172a 0%, #1f3b57 46%, #6b8faa 100%);
}

.app-shell[data-bg="deepteal"] {
  --surface-bg: linear-gradient(135deg, #043c42 0%, #087e86 48%, #c7dfec 100%);
}

.app-shell[data-bg="slate"] {
  --surface-bg: linear-gradient(135deg, #34424f 0%, #8096a5 48%, #e8f0f5 100%);
}

.app-shell[data-bg="sage"] {
  --surface-bg: linear-gradient(135deg, #cdded0 0%, #eef2e8 52%, #fff8ec 100%);
}

.app-shell[data-bg="storm"] {
  --surface-bg: linear-gradient(135deg, #435f73 0%, #7f9caf 50%, #d6e4eb 100%);
}

.app-shell[data-bg^="photo-"] {
  --surface-bg:
    linear-gradient(rgba(232, 240, 245, 0.78), rgba(255, 248, 236, 0.84)),
    radial-gradient(circle at 14% 18%, rgba(255, 248, 236, 0.82) 0 42px, transparent 43px),
    radial-gradient(circle at 78% 22%, rgba(203, 184, 255, 0.44) 0 82px, transparent 83px),
    linear-gradient(135deg, rgba(8, 126, 134, 0.28), rgba(41, 72, 216, 0.15) 44%, rgba(239, 79, 62, 0.12));
}

.app-shell[data-bg="photo-paper"] {
  --surface-bg:
    linear-gradient(rgba(255, 248, 236, 0.82), rgba(232, 240, 245, 0.78)),
    repeating-linear-gradient(8deg, rgba(16, 16, 21, 0.04) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, rgba(247, 234, 215, 0.96), rgba(199, 223, 236, 0.8));
}

.app-shell[data-bg="photo-softdesk"] {
  --surface-bg:
    linear-gradient(rgba(232, 240, 245, 0.76), rgba(255, 253, 247, 0.86)),
    radial-gradient(ellipse at 18% 72%, rgba(239, 79, 62, 0.14), transparent 34%),
    radial-gradient(ellipse at 82% 18%, rgba(8, 126, 134, 0.22), transparent 30%),
    linear-gradient(135deg, #bdd6e5, #fff8ec);
}

.app-shell[data-bg="nature-clouds"] { --surface-bg: linear-gradient(rgba(232, 240, 245, 0.72), rgba(255, 248, 236, 0.82)), radial-gradient(circle at 24% 22%, #f7fbff 0 70px, transparent 72px), radial-gradient(circle at 68% 34%, #d8eef8 0 96px, transparent 98px), linear-gradient(135deg, #7fb3d5, #edf7fb 58%, #fff8ec); }
.app-shell[data-bg="nature-forest"] { --surface-bg: linear-gradient(rgba(232, 240, 245, 0.68), rgba(255, 248, 236, 0.82)), radial-gradient(ellipse at 18% 80%, rgba(20, 90, 54, 0.54), transparent 36%), linear-gradient(135deg, #2f6f4f, #9bc4a0 52%, #eaf2dd); }
.app-shell[data-bg="nature-meadow"] { --surface-bg: linear-gradient(rgba(235, 244, 235, 0.72), rgba(255, 248, 236, 0.84)), radial-gradient(ellipse at 50% 92%, rgba(55, 127, 72, 0.42), transparent 42%), linear-gradient(135deg, #b9d7c0, #e7f0d8 48%, #f7ead7); }
.app-shell[data-bg="nature-lake"] { --surface-bg: linear-gradient(rgba(225, 239, 246, 0.74), rgba(255, 248, 236, 0.82)), linear-gradient(180deg, #98c3db 0 45%, #6ea0b8 46% 58%, #dbe9ef 59%); }
.app-shell[data-bg="nature-coast"] { --surface-bg: linear-gradient(rgba(232, 240, 245, 0.72), rgba(255, 248, 236, 0.86)), linear-gradient(135deg, #7fa9bf, #d8e7ef 44%, #f7ead7 70%, #e9d4b8); }
.app-shell[data-bg="nature-hills"] { --surface-bg: linear-gradient(rgba(238, 242, 232, 0.72), rgba(255, 248, 236, 0.82)), radial-gradient(ellipse at 24% 82%, #73936f 0 110px, transparent 112px), radial-gradient(ellipse at 72% 86%, #a5b98d 0 150px, transparent 152px), linear-gradient(135deg, #b8d2de, #f2efd8); }
.app-shell[data-bg="nature-sky"] { --surface-bg: linear-gradient(rgba(225, 239, 246, 0.66), rgba(255, 248, 236, 0.82)), radial-gradient(circle at 72% 22%, #fff8ec 0 42px, transparent 43px), linear-gradient(135deg, #69a9d3, #dff3fb 62%, #fff8ec); }
.app-shell[data-bg="nature-aurora"] { --surface-bg: linear-gradient(rgba(9, 16, 24, 0.54), rgba(9, 16, 24, 0.62)), radial-gradient(ellipse at 50% 18%, rgba(123, 255, 192, 0.42), transparent 34%), linear-gradient(135deg, #07111f, #123050 48%, #244d69); }
.app-shell[data-bg="nature-space"] { --surface-bg: linear-gradient(rgba(6, 10, 18, 0.56), rgba(6, 10, 18, 0.66)), radial-gradient(circle at 18% 28%, rgba(203, 184, 255, 0.54), transparent 16%), radial-gradient(circle at 72% 18%, rgba(255, 248, 236, 0.36), transparent 10%), linear-gradient(135deg, #050816, #16264d 54%, #513d79); }
.app-shell[data-bg="nature-rain"] { --surface-bg: linear-gradient(rgba(220, 232, 240, 0.72), rgba(255, 248, 236, 0.82)), repeating-linear-gradient(110deg, rgba(255,255,255,.2) 0 2px, transparent 2px 22px), linear-gradient(135deg, #5f7484, #a7bdca 54%, #e8f0f5); }
.app-shell[data-bg="nature-leaves"] { --surface-bg: linear-gradient(rgba(232, 240, 232, 0.72), rgba(255, 248, 236, 0.84)), radial-gradient(ellipse at 18% 28%, rgba(42, 113, 72, 0.44), transparent 24%), radial-gradient(ellipse at 78% 72%, rgba(141, 176, 97, 0.42), transparent 28%), linear-gradient(135deg, #527a5b, #d6e4cb); }
.app-shell[data-bg="studio-desk"] { --surface-bg: linear-gradient(rgba(232, 240, 245, 0.72), rgba(255, 248, 236, 0.84)), linear-gradient(135deg, #c8d7df, #fff8ec 50%, #d8c3a8); }
.app-shell[data-bg="studio-window"] { --surface-bg: linear-gradient(rgba(232, 240, 245, 0.72), rgba(255, 248, 236, 0.84)), linear-gradient(90deg, rgba(255,255,255,.38) 0 12%, transparent 12% 18%, rgba(255,255,255,.28) 18% 30%, transparent 31%), linear-gradient(135deg, #8fb6cc, #f6efe1); }
.app-shell[data-bg="studio-sketch"] { --surface-bg: linear-gradient(rgba(245, 239, 226, 0.8), rgba(232, 240, 245, 0.78)), repeating-linear-gradient(12deg, rgba(16,16,21,.05) 0 1px, transparent 1px 18px), #f7ead7; }
.app-shell[data-bg="studio-laptop"] { --surface-bg: linear-gradient(rgba(225, 236, 244, 0.74), rgba(255, 248, 236, 0.84)), radial-gradient(ellipse at 65% 35%, rgba(41,72,216,.18), transparent 28%), linear-gradient(135deg, #778d9a, #e9eef0); }
.app-shell[data-bg="studio-paper"] { --surface-bg: linear-gradient(rgba(255, 248, 236, 0.78), rgba(232, 240, 245, 0.78)), repeating-linear-gradient(0deg, rgba(16,16,21,.04) 0 1px, transparent 1px 24px), #f7ead7; }
.app-shell[data-bg="studio-shelves"] { --surface-bg: linear-gradient(rgba(31, 42, 52, 0.52), rgba(31, 42, 52, 0.58)), repeating-linear-gradient(0deg, rgba(255,248,236,.12) 0 2px, transparent 2px 58px), linear-gradient(135deg, #2d3d49, #8aa0ac); }
.app-shell[data-bg="studio-calm"] { --surface-bg: linear-gradient(rgba(232, 240, 245, 0.72), rgba(255, 248, 236, 0.86)), radial-gradient(ellipse at 22% 70%, rgba(8,126,134,.14), transparent 30%), linear-gradient(135deg, #d6e3ea, #fff8ec); }
.app-shell[data-bg="studio-darkdesk"] { --surface-bg: linear-gradient(rgba(14, 20, 26, 0.58), rgba(14, 20, 26, 0.64)), radial-gradient(ellipse at 75% 28%, rgba(8,126,134,.28), transparent 30%), linear-gradient(135deg, #101820, #263845); }
.app-shell[data-bg="studio-blueprint"] { --surface-bg: linear-gradient(rgba(31, 59, 87, 0.48), rgba(31, 59, 87, 0.58)), repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 42px), repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 1px, transparent 1px 42px), #1f3b57; }
.app-shell[data-bg="studio-cork"] { --surface-bg: linear-gradient(rgba(255, 248, 236, 0.74), rgba(232, 240, 245, 0.78)), radial-gradient(circle at 22% 22%, rgba(239,79,62,.18), transparent 18%), linear-gradient(135deg, #cfae7b, #f4e1bd 58%, #d5e1e8); }
.app-shell[data-bg="studio-night"] { --surface-bg: linear-gradient(rgba(11, 18, 26, 0.58), rgba(11, 18, 26, 0.68)), radial-gradient(circle at 72% 24%, rgba(243,184,75,.22), transparent 16%), linear-gradient(135deg, #0b121a, #1f3447 58%, #4f6f88); }

.app-shell.has-custom-bg {
  --custom-bg-image: linear-gradient(rgba(218, 233, 242, 0.78), rgba(255, 248, 236, 0.82)), var(--uploaded-bg);
  background-image:
    linear-gradient(rgba(218, 233, 242, 0.78), rgba(255, 248, 236, 0.82)),
    var(--uploaded-bg),
    var(--surface-bg, linear-gradient(135deg, #6e9ab4 0%, #b8d0de 48%, #edf3f6 100%));
  background-position: center;
  background-size: cover;
}

.app-shell[data-tone="medium"],
.app-shell[data-tone="dark"] {
  --panel: rgba(20, 31, 40, 0.78);
  --panel-soft: rgba(255, 248, 236, 0.12);
  --text: #fff8ec;
  --muted: rgba(255, 248, 236, 0.76);
  --line: rgba(255, 248, 236, 0.18);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.app-shell[data-tone="medium"] .topbar,
.app-shell[data-tone="dark"] .topbar {
  background: rgba(16, 24, 32, 0.78);
  color: #fff8ec;
}

.app-shell[data-tone="medium"] .request-panel,
.app-shell[data-tone="medium"] .workspace-card,
.app-shell[data-tone="medium"] .column,
.app-shell[data-tone="medium"] .card,
.app-shell[data-tone="dark"] .request-panel,
.app-shell[data-tone="dark"] .workspace-card,
.app-shell[data-tone="dark"] .column,
.app-shell[data-tone="dark"] .card {
  background: rgba(18, 28, 36, 0.64);
  border-color: rgba(255, 248, 236, 0.16);
  color: #fff8ec;
}

.app-shell[data-tone="medium"] .card:hover,
.app-shell[data-tone="dark"] .card:hover {
  background: rgba(28, 42, 52, 0.78);
  border-color: rgba(199, 223, 236, 0.54);
}

.app-shell[data-tone="medium"] .btn.secondary,
.app-shell[data-tone="medium"] .icon-btn,
.app-shell[data-tone="medium"] .share-pill,
.app-shell[data-tone="dark"] .btn.secondary,
.app-shell[data-tone="dark"] .icon-btn,
.app-shell[data-tone="dark"] .share-pill {
  background: rgba(255, 248, 236, 0.12);
  border-color: rgba(255, 248, 236, 0.22);
  color: #fff8ec;
}

.app-shell[data-tone="medium"] .muted,
.app-shell[data-tone="medium"] .meta-row,
.app-shell[data-tone="medium"] .card p,
.app-shell[data-tone="medium"] .count,
.app-shell[data-tone="dark"] .muted,
.app-shell[data-tone="dark"] .meta-row,
.app-shell[data-tone="dark"] .card p,
.app-shell[data-tone="dark"] .count {
  color: rgba(255, 248, 236, 0.76);
}

.app-shell[data-tone="medium"] .settings-menu,
.app-shell[data-tone="dark"] .settings-menu {
  background: rgba(16, 24, 32, 0.96);
  border-color: rgba(255, 248, 236, 0.18);
}

.app-shell[data-tone="medium"] .menu-icon,
.app-shell[data-tone="dark"] .menu-icon,
.app-shell[data-tone="medium"] .account-menu-icon,
.app-shell[data-tone="dark"] .account-menu-icon,
.app-shell[data-tone="medium"] .person-share-icon,
.app-shell[data-tone="dark"] .person-share-icon {
  background: #ffffff !important;
  border-color: rgba(16, 24, 32, 0.14) !important;
  color: #101820 !important;
}

.app-shell[data-tone="medium"] .menu-icon::before,
.app-shell[data-tone="medium"] .menu-icon::after,
.app-shell[data-tone="dark"] .menu-icon::before,
.app-shell[data-tone="dark"] .menu-icon::after,
.app-shell[data-tone="medium"] .account-menu-icon::before,
.app-shell[data-tone="medium"] .account-menu-icon::after,
.app-shell[data-tone="dark"] .account-menu-icon::before,
.app-shell[data-tone="dark"] .account-menu-icon::after {
  color: #101820 !important;
}

.topbar {
  align-items: center;
  background: rgba(255, 248, 236, 0.82);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px max(28px, calc((100vw - 1520px) / 2 + 28px));
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  display: grid;
  height: 42px;
  place-items: center;
  padding: 0;
  width: 42px;
}

.brand-mark img {
  display: block;
  height: 42px;
  width: 42px;
}

.brand h1 {
  font-size: 21px;
  font-weight: 850;
  line-height: 1.2;
  margin: 0;
}

.brand p,
.muted {
  color: var(--muted);
  margin: 0;
}

.container {
  margin: 0 auto;
  max-width: min(1520px, calc(100vw - 40px));
  padding: 28px;
}

.login-wrap {
  align-content: center;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.32), rgba(16, 24, 32, 0.62)),
    linear-gradient(90deg, rgba(8, 126, 134, 0.18), rgba(255, 248, 236, 0.14)),
    url("assets/login-hero.png") center / cover no-repeat;
  color: #fff8ec;
  display: grid;
  gap: 22px;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 44px 28px 22px;
  position: relative;
}

.login-hero {
  color: #fff8ec;
  text-align: center;
}

.login-hero h1 {
  font-size: clamp(56px, 8.8vw, 104px);
  line-height: 0.95;
  margin: 0;
  text-shadow: 0 18px 52px rgba(16, 24, 32, 0.36);
}

.login-hero p {
  color: rgba(255, 248, 236, 0.92);
  font-size: 18px;
  font-weight: 700;
  margin: 14px 0 0;
  text-shadow: 0 10px 28px rgba(16, 24, 32, 0.38);
}

.login-panel {
  background: rgba(16, 24, 32, 0.62);
  border: 1px solid rgba(255, 248, 236, 0.24);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color: #fff8ec;
  margin: 0 auto;
  max-height: min(640px, calc(100vh - 245px));
  max-width: 420px;
  overflow: auto;
  padding: 28px;
  text-align: center;
  width: 100%;
  backdrop-filter: blur(18px);
}

.login-brand {
  flex-direction: column;
  justify-content: center;
  margin-bottom: 18px;
  text-align: center;
}

.login-brand .brand-mark,
.login-brand .brand-mark img {
  height: 86px;
  width: 86px;
}

.login-panel .field label {
  color: #fff8ec;
  text-align: center;
}

.login-panel .input {
  background: rgba(255, 248, 236, 0.1);
  border-color: rgba(255, 248, 236, 0.32);
  color: #fff8ec;
  text-align: center;
}

.login-panel .input::placeholder {
  color: rgba(255, 248, 236, 0.48);
}

.login-panel .btn.full {
  background: #fff8ec;
  border-color: #fff8ec;
  color: #101015;
}

.login-options {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 3px 0 18px;
}

.remember-option {
  align-items: center;
  color: #fff8ec;
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
  white-space: nowrap;
}

.link-button {
  background: transparent;
  border: 0;
  color: #fff8ec;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  width: auto;
}

.login-credit {
  color: rgba(255, 248, 236, 0.9);
  font-size: 13px;
  font-weight: 750;
  margin: 0;
  text-shadow: 0 8px 22px rgba(16, 24, 32, 0.5);
}

.login-panel h1,
.page-title h2,
.section-title {
  margin: 0;
}

.login-panel h1 {
  font-size: 24px;
}

.login-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.field label {
  color: rgba(16, 16, 21, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.input,
.textarea,
.select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  outline: none;
  padding: 11px 12px;
  width: 100%;
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(8, 126, 134, 0.14);
}

.btn {
  align-items: center;
  background: var(--brand);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 750;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn.save-needs-attention,
.btn.is-dirty {
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  border: 1px solid rgba(255, 88, 88, 0.94);
  box-shadow: 0 0 0 3px rgba(255, 66, 66, 0.34), 0 0 24px rgba(220, 38, 38, 0.5);
  color: #fffaf1;
  outline: 3px solid rgba(255, 248, 236, 0.62);
  outline-offset: 1px;
  transform-origin: center;
}

.btn.save-needs-attention {
  animation: save-needs-attention-pulse 1.6s ease-in-out infinite;
}

@keyframes save-needs-attention-pulse {
  0%, 100% {
    background: linear-gradient(135deg, #f59e0b, #c2410c);
    box-shadow: 0 0 0 2px rgba(255, 76, 76, 0.26), 0 0 18px rgba(220, 38, 38, 0.34);
    transform: translateY(0) scale(1);
  }
  50% {
    background: linear-gradient(135deg, #f7b733, #d45b18);
    box-shadow: 0 0 0 10px rgba(255, 76, 76, 0.16), 0 0 34px rgba(220, 38, 38, 0.56);
    transform: translateY(-1px) scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn.save-needs-attention {
    animation: none;
    background: linear-gradient(135deg, #f59e0b, #c2410c);
    box-shadow: 0 0 0 4px rgba(255, 66, 66, 0.48), 0 0 18px rgba(220, 38, 38, 0.4);
    transform: none;
  }
}

.confirm-backdrop {
  background: rgba(9, 12, 18, 0.62);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1200;
}

.confirm-dialog {
  background: #fff8ec;
  border: 1px solid rgba(16, 16, 21, 0.14);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(16, 16, 21, 0.28);
  color: #17181c;
  max-width: 420px;
  padding: 22px 22px 18px;
  position: relative;
  top: -6vh;
  width: min(100%, 420px);
}

@media (max-height: 700px) {
  .confirm-dialog {
    top: -3vh;
  }
}

.confirm-dialog h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.confirm-dialog p {
  line-height: 1.5;
  margin: 0 0 18px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn.secondary {
  background: rgba(255, 248, 236, 0.78);
  border: 1px solid rgba(16, 16, 21, 0.16);
  color: var(--text);
}

.btn.secondary:hover {
  background: #fff8ec;
}

.icon-btn {
  align-items: center;
  background: rgba(255, 248, 236, 0.84);
  border: 1px solid rgba(16, 16, 21, 0.16);
  border-radius: 6px;
  color: var(--text);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.topbar-menu-btn {
  font-size: 0;
  height: 40px;
  min-height: 40px;
  position: relative;
  width: 46px;
}

.topbar-menu-btn::before {
  content: "...";
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 3px;
  line-height: 1;
  margin-left: 3px;
}

.icon-btn:hover {
  background: #fff8ec;
  border-color: rgba(8, 126, 134, 0.42);
}

.settings-wrap {
  position: relative;
}

.account-wrap {
  position: relative;
}

.account-trigger {
  align-items: center;
  background: rgba(255, 248, 236, 0.12);
  border: 1px solid rgba(255, 248, 236, 0.2);
  border-radius: 8px;
  color: #fff8ec;
  display: inline-flex;
  gap: 10px;
  min-height: 42px;
  padding: 4px 9px 4px 4px;
}

.account-trigger:hover,
.account-wrap.is-open .account-trigger {
  background: rgba(255, 248, 236, 0.18);
  border-color: rgba(255, 248, 236, 0.38);
}

.account-trigger:focus-visible,
.account-menu-item:focus-visible,
.account-target:focus-visible {
  outline: 3px solid rgba(8, 126, 134, 0.16);
  outline-offset: 2px;
}

.account-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  width: 34px;
}

.account-avatar.large {
  font-size: 16px;
  height: 44px;
  width: 44px;
}

.account-trigger-text {
  display: grid;
  gap: 1px;
  text-align: left;
}

.account-trigger-text strong {
  font-size: 13px;
  line-height: 1.1;
}

.account-trigger-text span,
.account-chevron {
  color: rgba(255, 248, 236, 0.82);
  font-size: 12px;
}

.account-wrap.is-open .account-chevron {
  transform: rotate(180deg);
}

.account-menu-panel {
  background: rgba(16, 24, 32, 0.98);
  border: 1px solid rgba(255, 248, 236, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  min-width: 330px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
}

.account-wrap.is-open .account-menu-panel {
  display: grid;
}

.account-menu-head {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 10px;
}

.account-menu-head strong,
.profile-summary strong {
  display: block;
  font-size: 15px;
}

.account-menu-head span,
.profile-summary p {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin: 2px 0 0;
}

.account-menu-head em {
  background: rgba(8, 126, 134, 0.12);
  border: 1px solid rgba(8, 126, 134, 0.2);
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  margin-top: 8px;
  max-width: 100%;
  padding: 3px 8px;
}

.account-menu-group {
  border-top: 1px solid rgba(255, 248, 236, 0.16);
  display: grid;
  gap: 2px;
  padding: 8px 0;
}

.account-menu-title {
  color: rgba(255, 248, 236, 0.68);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 4px 10px 6px;
  text-transform: uppercase;
}

.account-menu-item,
.account-target {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #fff8ec;
  display: flex;
  font: inherit;
  gap: 12px;
  min-height: 42px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.account-menu-item:hover,
.account-target:hover {
  background: rgba(255, 248, 236, 0.1);
}

.account-menu-item:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.account-menu-item:disabled:hover {
  background: transparent;
}

.account-menu-item.danger:hover {
  background: rgba(239, 79, 62, 0.1);
  color: #ffd6d0;
}

.account-menu-icon {
  align-items: center;
  background: #fff8ec;
  border: 1px solid rgba(255, 248, 236, 0.32);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 32, 0.08);
  color: #101820;
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
  position: relative;
  width: 28px;
}

.account-menu-icon::before,
.account-menu-icon::after {
  content: "";
  position: absolute;
}

.account-menu-icon.account::before {
  border: 1.8px solid currentColor;
  border-radius: 999px;
  height: 7px;
  top: 6px;
  width: 7px;
}

.account-menu-icon.account::after {
  border: 1.8px solid currentColor;
  border-radius: 999px 999px 4px 4px;
  border-top: 0;
  height: 8px;
  top: 15px;
  width: 14px;
}

.account-menu-icon.workspace::before,
.account-menu-icon.register::before {
  border: 1.8px solid currentColor;
  border-radius: 2px;
  height: 12px;
  width: 14px;
}

.account-menu-icon.workspace::after,
.account-menu-icon.register::after {
  border-left: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
  height: 10px;
  top: 7px;
  transform: rotate(45deg);
  width: 10px;
}

.account-menu-icon.activity::before {
  border: 1.8px solid currentColor;
  border-left-color: transparent;
  border-radius: 999px;
  height: 14px;
  width: 14px;
}

.account-menu-icon.activity::after {
  border-right: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
  height: 5px;
  right: 7px;
  top: 8px;
  transform: rotate(28deg);
  width: 5px;
}

.account-menu-icon.settings::before {
  border: 1.8px solid currentColor;
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

.account-menu-icon.settings::after {
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
  height: 3px;
  transform: rotate(45deg);
  width: 16px;
}

.account-menu-icon.subscription::before {
  border: 1.8px solid currentColor;
  border-radius: 4px;
  height: 13px;
  width: 17px;
}

.account-menu-icon.subscription::after {
  background: currentColor;
  height: 2px;
  top: 10px;
  width: 17px;
}

.account-menu-icon.help::before {
  border: 1.8px solid currentColor;
  border-radius: 999px;
  content: "?";
  font-size: 15px;
  font-weight: 900;
  height: 18px;
  line-height: 16px;
  text-align: center;
  width: 18px;
}

.account-menu-icon.logout::before {
  border: 1.8px solid currentColor;
  border-right: 0;
  height: 14px;
  left: 7px;
  width: 8px;
}

.account-menu-icon.logout::after {
  border-right: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
  height: 7px;
  right: 7px;
  transform: rotate(45deg);
  width: 7px;
}

.account-list,
.settings-preview,
.activity-list {
  display: grid;
  gap: 10px;
}

.account-target {
  background: rgba(255, 253, 247, 0.74);
  border: 1px solid var(--line);
  color: var(--text);
  justify-content: space-between;
}

.account-target span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.account-target small,
.activity-item span,
.settings-preview p {
  color: var(--muted);
  font-size: 13px;
}

.account-target em {
  color: var(--brand-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.profile-summary {
  align-items: center;
  background: rgba(255, 253, 247, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 44px 1fr;
  margin-bottom: 12px;
  padding: 14px;
}

.activity-item,
.settings-preview article {
  background: rgba(255, 253, 247, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.settings-menu {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  min-width: 250px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
}

.settings-menu-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 6px 10px 8px;
  text-transform: uppercase;
}

.settings-wrap.is-open .settings-menu {
  display: grid;
}

.menu-item {
  align-items: center;
  background: transparent;
  border-radius: 6px;
  color: #fff8ec;
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  text-align: left;
}

.menu-item:hover {
  background: rgba(255, 248, 236, 0.1);
}

.menu-item-copy {
  display: grid;
  gap: 2px;
  line-height: 1.25;
}

.menu-item-copy strong {
  font-size: 14px;
  font-weight: 760;
}

.menu-item-copy small {
  color: rgba(255, 248, 236, 0.72);
  font-size: 12px;
}

.settings-menu-divider {
  background: var(--line);
  height: 1px;
  margin: 6px 8px;
}

.menu-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 22px;
  height: 22px;
  justify-content: center;
  position: relative;
  width: 22px;
}

.menu-icon.bg {
  background: linear-gradient(135deg, #c7dfec, #087e86);
  border-radius: 5px;
}

.menu-icon.copy::before,
.menu-icon.copy::after {
  border: 2px solid currentColor;
  border-radius: 2px;
  content: "";
  height: 9px;
  position: absolute;
  width: 9px;
}

.menu-icon.copy::before {
  left: 5px;
  top: 5px;
}

.menu-icon.copy::after {
  left: 9px;
  top: 9px;
}

.menu-icon.share::before {
  content: "⌯";
  font-size: 23px;
  line-height: 1;
  transform: rotate(-24deg);
}

.menu-icon.print::before {
  content: "▣";
  font-size: 18px;
}

.menu-icon.export::before {
  content: "↧";
  font-size: 21px;
}

.menu-icon.star::before {
  content: "*";
  font-size: 22px;
}

.menu-icon.settings::before {
  content: "⚙";
  font-size: 17px;
}

.menu-icon.activity::before {
  content: "↺";
  font-size: 20px;
}

.menu-icon.archive::before {
  content: "▤";
  font-size: 18px;
}

.menu-icon.permissions::before {
  content: "◉";
  font-size: 18px;
}

.menu-icon.clientspace::before {
  content: "⌂";
  font-size: 18px;
}

.menu-icon {
  background: #fff8ec;
  border: 1px solid rgba(255, 248, 236, 0.32);
  border-radius: 999px;
  color: #101820;
  flex-basis: 30px;
  height: 30px;
  width: 30px;
}

.menu-icon::before,
.menu-icon::after {
  color: #101820;
  content: "";
  position: absolute;
}

.menu-icon.bg {
  background: #fff8ec;
}

.menu-icon.bg::before {
  border: 1.8px solid currentColor;
  border-radius: 3px;
  height: 15px;
  width: 15px;
}

.menu-icon.bg::after {
  background: currentColor;
  border-radius: 999px;
  height: 4px;
  right: 8px;
  top: 8px;
  width: 4px;
}

.menu-icon.share::before {
  background: currentColor;
  border-radius: 999px;
  box-shadow: 10px -6px 0 currentColor, 10px 6px 0 currentColor;
  font-size: 0;
  height: 4px;
  left: 7px;
  top: 13px;
  transform: none;
  width: 4px;
}

.menu-icon.share::after {
  border-right: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
  height: 12px;
  left: 11px;
  top: 8px;
  transform: skewY(-31deg);
  width: 10px;
}

.menu-icon.print::before {
  border: 1.8px solid currentColor;
  border-radius: 2px;
  font-size: 0;
  height: 10px;
  top: 11px;
  width: 16px;
}

.menu-icon.print::after {
  border: 1.8px solid currentColor;
  border-bottom: 0;
  height: 7px;
  top: 6px;
  width: 12px;
}

.menu-icon.export::before {
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  font-size: 0;
  height: 8px;
  top: 7px;
  transform: rotate(45deg);
  width: 8px;
}

.menu-icon.export::after {
  background: currentColor;
  border-radius: 999px;
  height: 14px;
  top: 9px;
  width: 2px;
}

.menu-icon.star::before {
  background: currentColor;
  clip-path: polygon(50% 0, 62% 35%, 99% 35%, 69% 57%, 80% 94%, 50% 72%, 20% 94%, 31% 57%, 1% 35%, 38% 35%);
  font-size: 0;
  height: 18px;
  width: 18px;
}

.menu-icon.settings::before {
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 0;
  height: 10px;
  width: 10px;
}

.menu-icon.settings::after {
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
  height: 4px;
  transform: rotate(45deg);
  width: 18px;
}

.menu-icon.activity::before {
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 999px;
  font-size: 0;
  height: 15px;
  width: 15px;
}

.menu-icon.activity::after {
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  height: 6px;
  right: 7px;
  top: 8px;
  transform: rotate(30deg);
  width: 6px;
}

.menu-icon.archive::before {
  border: 1.8px solid currentColor;
  border-radius: 2px;
  font-size: 0;
  height: 13px;
  top: 10px;
  width: 17px;
}

.menu-icon.archive::after {
  border-top: 1.8px solid currentColor;
  height: 1px;
  top: 15px;
  width: 8px;
}

.menu-icon.permissions::before {
  border: 1.8px solid currentColor;
  border-radius: 999px 999px 8px 8px;
  font-size: 0;
  height: 16px;
  top: 7px;
  width: 13px;
}

.menu-icon.permissions::after {
  background: currentColor;
  border-radius: 999px;
  height: 5px;
  top: 14px;
  width: 5px;
}

.menu-icon.clientspace::before {
  border: 1.8px solid currentColor;
  border-radius: 2px;
  font-size: 0;
  height: 13px;
  top: 10px;
  width: 16px;
}

.menu-icon.clientspace::after {
  border-left: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
  height: 12px;
  top: 7px;
  transform: rotate(45deg);
  width: 12px;
}

.person-share-icon {
  display: inline-block;
  flex: 0 0 18px;
  height: 18px;
  position: relative;
  width: 18px;
}

.person-share-icon::before {
  border: 1.8px solid currentColor;
  border-radius: 999px;
  content: "";
  height: 5px;
  left: 3px;
  position: absolute;
  top: 1px;
  width: 5px;
}

.person-share-icon::after {
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  content: "+";
  font-size: 11px;
  font-weight: 800;
  height: 8px;
  left: 0;
  line-height: 6px;
  position: absolute;
  text-align: right;
  top: 10px;
  width: 16px;
}

/* Family 4 icon integration */
.menu-icon,
.account-menu-icon,
.person-share-icon {
  background-color: #ffffff !important;
  border: 1px solid rgba(16, 24, 32, 0.14) !important;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 32, 0.04);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}

.menu-icon.share,
.person-share-icon.share {
  background-image: url("assets/icons/family4/share.svg");
}

.menu-icon.print {
  background-image: url("assets/icons/family4/print.svg");
}

.menu-icon.export {
  background-image: url("assets/icons/family4/export.svg");
}

.menu-icon.copy {
  background-image: url("assets/icons/family4/copy.svg");
}

.menu-icon.background {
  background-image: url("assets/icons/family4/background.svg");
}

.menu-icon.settings {
  background-image: url("assets/icons/family4/settings.svg");
}

.menu-icon.permissions {
  background-image: url("assets/icons/family4/permissions.svg");
}

.menu-icon.client-workspaces {
  background-image: url("assets/icons/family4/client-workspaces.svg");
}

.menu-icon.activity {
  background-image: url("assets/icons/family4/activity.svg");
}

.menu-icon.archived-items {
  background-image: url("assets/icons/family4/archived-items.svg");
}

.menu-icon.share::before,
.menu-icon.share::after,
.menu-icon.print::before,
.menu-icon.print::after,
.menu-icon.export::before,
.menu-icon.export::after,
.menu-icon.copy::before,
.menu-icon.copy::after,
.menu-icon.background::before,
.menu-icon.background::after,
.menu-icon.settings::before,
.menu-icon.settings::after,
.menu-icon.permissions::before,
.menu-icon.permissions::after,
.menu-icon.client-workspaces::before,
.menu-icon.client-workspaces::after,
.menu-icon.activity::before,
.menu-icon.activity::after,
.menu-icon.archived-items::before,
.menu-icon.archived-items::after,
.person-share-icon.share::before,
.person-share-icon.share::after {
  content: none !important;
}

.account-menu-icon.switch-account {
  background-image: url("assets/icons/family4/switch-account.svg");
}

.account-menu-icon.manage-account {
  background-image: url("assets/icons/family4/manage-account.svg");
}

.account-menu-icon.subscription {
  background-image: url("assets/icons/family4/subscription.svg");
}

.account-menu-icon.client-register {
  background-image: url("assets/icons/family4/client-register.svg");
}

.account-menu-icon.client-workspaces {
  background-image: url("assets/icons/family4/client-workspaces.svg");
}

.account-menu-icon.activity {
  background-image: url("assets/icons/family4/activity.svg");
}

.account-menu-icon.settings {
  background-image: url("assets/icons/family4/settings.svg");
}

.account-menu-icon.help {
  background-image: url("assets/icons/family4/help.svg");
}

.account-menu-icon.logout {
  background-image: url("assets/icons/family4/logout.svg");
}

.account-menu-icon.switch-account::before,
.account-menu-icon.switch-account::after,
.account-menu-icon.manage-account::before,
.account-menu-icon.manage-account::after,
.account-menu-icon.subscription::before,
.account-menu-icon.subscription::after,
.account-menu-icon.client-register::before,
.account-menu-icon.client-register::after,
.account-menu-icon.client-workspaces::before,
.account-menu-icon.client-workspaces::after,
.account-menu-icon.activity::before,
.account-menu-icon.activity::after,
.account-menu-icon.settings::before,
.account-menu-icon.settings::after,
.account-menu-icon.help::before,
.account-menu-icon.help::after,
.account-menu-icon.logout::before,
.account-menu-icon.logout::after {
  content: none !important;
}

.share-pill {
  align-items: center;
  background: rgba(255, 248, 236, 0.84);
  border: 1px solid rgba(16, 16, 21, 0.16);
  border-radius: 6px;
  color: var(--text);
  display: inline-flex;
  font-weight: 750;
  gap: 8px;
  min-height: 40px;
  padding: 10px 12px;
}

.share-pill.icon-only {
  height: 38px;
  min-height: 38px;
  padding: 0;
  width: 38px;
  justify-content: center;
}

.share-pill:hover {
  background: #fff8ec;
  border-color: rgba(8, 126, 134, 0.36);
}

.btn.danger {
  background: var(--danger);
}

.btn.full {
  width: 100%;
}

.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-users {
  background: transparent;
  border-radius: 6px;
  color: rgba(255, 248, 236, 0.9);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 18px;
  padding: 0;
  text-align: center;
}

.demo-toggle {
  background: rgba(255, 248, 236, 0.12);
  border: 1px solid rgba(255, 248, 236, 0.18);
  border-radius: 6px;
  color: rgba(255, 248, 236, 0.94);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 46px;
  width: 100%;
}

.demo-toggle::after {
  content: " openen";
  font-weight: 700;
  opacity: 0.7;
}

.demo-toggle[aria-expanded="true"]::after {
  content: " sluiten";
}

.demo-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  max-height: 188px;
  overflow: auto;
  padding-right: 3px;
}

.demo-list[hidden] {
  display: none;
}

.demo-account {
  background: rgba(255, 248, 236, 0.08);
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: 6px;
  color: rgba(255, 248, 236, 0.92);
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: auto;
  padding: 7px 9px;
  text-align: center;
  width: 100%;
}

.demo-account code {
  color: rgba(255, 248, 236, 0.78);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  white-space: normal;
}

.page-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-title {
  display: grid;
  gap: 6px;
}

.page-title h2 {
  font-size: 28px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 1180px) {
  .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.request-panel {
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(20, 33, 42, 0.05);
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
}

.request-panel h3 {
  margin: 0 0 4px;
}

.request-list {
  display: grid;
  gap: 10px;
}

.request-item {
  align-items: center;
  background: var(--request-new-bg);
  border: 1px solid var(--request-new-border);
  border-radius: 7px;
  color: var(--text);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  text-align: left;
}

.request-open {
  background: transparent;
  color: inherit;
  display: grid;
  gap: 4px;
  justify-items: start;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.queue-check {
  align-items: center;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  position: relative;
  width: 26px;
}

.queue-check input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.queue-check span {
  background: rgba(255, 248, 236, 0.16);
  border: 1.8px solid rgba(255, 248, 236, 0.72);
  border-radius: 5px;
  height: 22px;
  position: relative;
  width: 22px;
}

.queue-check input:checked + span {
  background: #f3b84b;
  border-color: #ffd88c;
}

.queue-check input:checked + span::after {
  border: solid #3b2704;
  border-width: 0 2px 2px 0;
  content: "";
  height: 10px;
  left: 7px;
  position: absolute;
  top: 3px;
  transform: rotate(45deg);
  width: 5px;
}

.queue-state {
  color: var(--request-new-text);
  font-size: 13px;
  font-weight: 750;
}

.request-item small {
  color: var(--request-new-text);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.request-item.request-new {
  background: var(--request-new-bg);
  border-color: var(--request-new-border);
}

.request-item.request-updated {
  background: rgba(181, 83, 25, 0.24);
  border-color: rgba(255, 191, 138, 0.46);
}

.request-item.request-in-progress {
  background: var(--request-progress-bg);
  border-color: var(--request-progress-border);
}

.request-item.request-ready-for-review {
  background: rgba(53, 112, 184, 0.18);
  border-color: rgba(125, 186, 255, 0.44);
}

.request-item.request-in-progress .queue-state,
.request-item.request-in-progress small {
  color: var(--request-progress-text);
}

.request-item.request-updated .queue-state,
.request-item.request-updated small {
  color: #fff2df;
}

.request-item.request-ready-for-review .queue-state,
.request-item.request-ready-for-review small {
  color: #eaf4ff;
}

.request-item.request-approved {
  background: var(--request-approved-bg);
  border-color: var(--request-approved-border);
}

.request-item.request-approved .queue-state,
.request-item.request-approved small {
  color: var(--request-approved-text);
}

.request-item .queue-state,
.request-item small,
.request-item.request-in-progress .queue-state,
.request-item.request-in-progress small,
.request-item.request-updated .queue-state,
.request-item.request-updated small,
.request-item.request-ready-for-review .queue-state,
.request-item.request-ready-for-review small,
.request-item.request-approved .queue-state,
.request-item.request-approved small {
  color: #101820;
}

.workspace-card {
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.96), rgba(247, 234, 215, 0.88)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(20, 33, 42, 0.07);
  display: grid;
  gap: 14px;
  padding: 20px;
  position: relative;
}

.workspace-card.read-complete {
  background:
    linear-gradient(145deg, rgba(255, 248, 236, 0.96), rgba(247, 234, 215, 0.88)),
    var(--panel);
  border-color: var(--line);
}

.workspace-card-menu {
  position: absolute;
  right: 12px;
  top: 12px;
}

.workspace-card .settings-menu {
  right: 0;
}

.workspace-card h3 {
  margin: 0;
  padding-right: 52px;
}

.presence-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 850;
  margin-top: 8px;
  padding: 4px 8px;
  width: fit-content;
}

.presence-badge.online {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.34);
  color: #166534;
}

.presence-badge.offline {
  background: rgba(16, 24, 32, 0.08);
  border: 1px solid rgba(16, 24, 32, 0.14);
  color: rgba(16, 24, 32, 0.62);
}

.meta-row {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px;
}

.read-progress-pill {
  background: rgba(255, 248, 236, 0.74);
  border: 1px solid rgba(16, 24, 32, 0.14);
  border-radius: 999px;
  color: #101820;
  display: inline-flex;
  font-weight: 850;
  padding: 4px 9px;
  position: absolute;
  right: 18px;
  top: 18px;
}

.read-progress-pill.complete {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(22, 163, 74, 0.38);
  color: #166534;
}

.badge {
  background: rgba(8, 126, 134, 0.14);
  border-radius: 999px;
  color: #065f66;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.badge.status-active {
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(22, 163, 74, 0.32);
  color: #166534;
}

.badge.status-danger,
.badge.planned,
.badge.paused-red {
  background: #fee2e2;
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #991b1b;
}

.badge.status-neutral {
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(100, 116, 139, 0.24);
  color: #475569;
}

.app-shell[data-tone="medium"] .badge.status-active,
.app-shell[data-tone="dark"] .badge.status-active {
  background: rgba(34, 197, 94, 0.24);
  border-color: rgba(134, 239, 172, 0.46);
  color: #bbf7d0;
}

.app-shell[data-tone="medium"] .badge.status-danger,
.app-shell[data-tone="dark"] .badge.status-danger {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(252, 165, 165, 0.4);
  color: #fecaca;
}

.app-shell[data-tone="medium"] .badge.status-neutral,
.app-shell[data-tone="dark"] .badge.status-neutral {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(226, 232, 240, 0.3);
  color: #e2e8f0;
}

.board-wrap {
  height: calc(100vh - 86px);
  overflow: hidden;
}

.board-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
}

.board-subscription-row {
  padding: 0 28px 14px;
}

.capacity-control {
  align-items: flex-start;
  display: grid;
  gap: 4px;
  min-width: 146px;
}

.capacity-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.capacity-control select {
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid rgba(16, 16, 21, 0.16);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  min-height: 38px;
  padding: 8px 12px;
}

.app-shell[data-tone="medium"] .capacity-control select,
.app-shell[data-tone="dark"] .capacity-control select {
  background: rgba(255, 248, 236, 0.12);
  border-color: rgba(255, 248, 236, 0.22);
  color: #fff8ec;
}

.capacity-notice {
  align-items: start;
  background: rgba(255, 248, 236, 0.92);
  border: 1px solid rgba(181, 83, 25, 0.28);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 28px 14px;
  padding: 12px 14px;
}

.capacity-notice p {
  margin: 0;
}

.capacity-notice-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  display: inline-flex;
  font-size: 22px;
  justify-content: center;
  min-height: 28px;
  min-width: 28px;
  padding: 0;
}

.app-shell[data-tone="medium"] .capacity-notice,
.app-shell[data-tone="dark"] .capacity-notice {
  background: rgba(36, 28, 23, 0.88);
  border-color: rgba(251, 191, 36, 0.34);
  color: #fff8ec;
}

.subscription-rows {
  display: grid;
  gap: 10px;
  margin-top: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 100%;
  width: 100%;
}

.subscription-row {
  align-items: flex-start;
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid rgba(16, 16, 21, 0.12);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100%;
  padding: 10px 14px;
}

.subscription-row-main {
  display: grid;
  gap: 6px;
}

.subscription-row-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subscription-row-text {
  display: grid;
  gap: 1px;
}

.subscription-row-text strong {
  font-size: 13px;
}

.subscription-row-text span {
  color: var(--muted);
  font-size: 13px;
}

.subscription-row-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: auto;
  min-height: 36px;
}

.subscription-row-actions .btn {
  width: 100%;
}

.subscription-admin-toggle {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
}

.subscription-admin-toggle input {
  accent-color: #0f766e;
  block-size: 16px;
  inline-size: 16px;
}

.subscription-row.admin-readable .subscription-row-text strong,
.subscription-row.admin-readable .subscription-row-text span,
.subscription-row.admin-readable .subscription-admin-toggle,
.subscription-row.admin-readable .subscription-admin-toggle span {
  color: #101820;
}

.subscription-empty {
  color: var(--muted);
  margin: 0;
}

.app-shell[data-tone="medium"] .subscription-row,
.app-shell[data-tone="dark"] .subscription-row {
  background: rgba(255, 248, 236, 0.08);
  border-color: rgba(255, 248, 236, 0.14);
}

.app-shell[data-tone="medium"] .subscription-row-text span,
.app-shell[data-tone="dark"] .subscription-row-text span,
.app-shell[data-tone="medium"] .subscription-empty,
.app-shell[data-tone="dark"] .subscription-empty,
.app-shell[data-tone="medium"] .subscription-admin-toggle,
.app-shell[data-tone="dark"] .subscription-admin-toggle {
  color: #fff8ec;
}

.app-shell[data-tone="medium"] .subscription-row.admin-readable .subscription-row-text strong,
.app-shell[data-tone="dark"] .subscription-row.admin-readable .subscription-row-text strong,
.app-shell[data-tone="medium"] .subscription-row.admin-readable .subscription-row-text span,
.app-shell[data-tone="dark"] .subscription-row.admin-readable .subscription-row-text span,
.app-shell[data-tone="medium"] .subscription-row.admin-readable .subscription-admin-toggle,
.app-shell[data-tone="dark"] .subscription-row.admin-readable .subscription-admin-toggle,
.app-shell[data-tone="medium"] .subscription-row.admin-readable .subscription-admin-toggle span,
.app-shell[data-tone="dark"] .subscription-row.admin-readable .subscription-admin-toggle span {
  color: #101820;
}

@media (max-width: 1180px) {
  .subscription-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.workspace-private {
  color: rgba(255, 248, 236, 0.92);
  font-size: 15px;
  font-weight: 760;
  margin: 4px 0 2px;
}

.board {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  height: calc(100% - 80px);
  overflow-x: auto;
  padding: 0 28px 28px;
}

.column {
  background: rgba(247, 234, 215, 0.82);
  border: 1px solid rgba(16, 16, 21, 0.14);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  min-width: 250px;
}

.column.start-complete {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.26), rgba(209, 250, 229, 0.88));
  border-color: rgba(22, 163, 74, 0.48);
}

.app-shell[data-tone="medium"] .column.start-complete,
.app-shell[data-tone="dark"] .column.start-complete {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.18), rgba(18, 28, 36, 0.66));
  border-color: rgba(134, 239, 172, 0.34);
}

.column-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
}

.column-title {
  font-size: 14px;
  font-weight: 850;
  margin: 0;
}

.count {
  color: var(--muted);
  font-size: 12px;
}

.cards {
  display: grid;
  gap: 10px;
  min-height: 120px;
  padding: 0 10px 10px;
}

.add-card-btn {
  align-items: center;
  background: transparent;
  border: 1px dashed transparent;
  border-radius: 7px;
  color: var(--muted);
  display: flex;
  font-weight: 750;
  gap: 8px;
  justify-content: flex-start;
  min-height: 42px;
  padding: 10px 8px;
  text-align: left;
  width: 100%;
}

.add-card-btn:hover {
  background: rgba(255, 248, 236, 0.66);
  border-color: rgba(16, 16, 21, 0.12);
  color: var(--text);
}

.add-card-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.app-shell[data-tone="medium"] .add-card-btn:hover,
.app-shell[data-tone="dark"] .add-card-btn:hover {
  background: rgba(255, 248, 236, 0.1);
  border-color: rgba(255, 248, 236, 0.18);
  color: #fff8ec;
}

.cards.drag-over {
  background: rgba(8, 126, 134, 0.1);
  border-radius: 6px;
}

.card {
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 6px 16px rgba(20, 33, 42, 0.08);
  display: grid;
  gap: 10px;
  padding: 14px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.card:hover {
  background: #fff8ec;
  border-color: rgba(8, 126, 134, 0.36);
  box-shadow: 0 10px 24px rgba(20, 33, 42, 0.11);
  transform: translateY(-1px);
}

.card.read-card {
  background: linear-gradient(145deg, rgba(22, 118, 73, 0.92), rgba(14, 98, 62, 0.9));
  border-color: rgba(134, 239, 172, 0.58);
}

.column.start-complete .card.read-card:nth-child(1) h4,
.column.start-complete .card.read-card:nth-child(1) p {
  color: #fff8ec;
}

.column.start-complete .card.read-card:nth-child(2) h4,
.column.start-complete .card.read-card:nth-child(2) p {
  color: rgba(255, 248, 236, 0.88);
}

.column.start-complete .card.read-card:nth-child(3) h4,
.column.start-complete .card.read-card:nth-child(3) p {
  color: rgba(255, 248, 236, 0.72);
}

.column.start-complete .card.read-card:nth-child(4) h4,
.column.start-complete .card.read-card:nth-child(4) p {
  color: rgba(16, 24, 32, 0.82);
}

.column.start-complete .card.read-card h4,
.column.start-complete .card.read-card p,
.column.start-complete .card.read-card .count,
.column.start-complete .card.read-card .read-mark,
.card.read-card h4,
.card.read-card p,
.card.read-card .count,
.card.read-card .read-mark {
  color: #fff8ec;
}

.card.active-request-card {
  background: var(--request-new-bg);
  border-color: var(--request-new-border);
  color: #fff8ec;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.2), 0 10px 24px rgba(143, 36, 29, 0.2);
}

.card.request-new {
  background: var(--request-new-bg);
  border-color: var(--request-new-border);
  color: #fff8ec;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.2), 0 10px 24px rgba(143, 36, 29, 0.2);
}

.card.request-updated {
  background: rgba(181, 83, 25, 0.24);
  border-color: rgba(255, 191, 138, 0.46);
  color: #fff2df;
  box-shadow: inset 0 0 0 1px rgba(255, 242, 223, 0.18), 0 10px 24px rgba(138, 66, 24, 0.22);
}

.card.request-in-progress {
  background: var(--request-progress-bg);
  border-color: var(--request-progress-border);
  color: #fff8ec;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.22), 0 10px 24px rgba(111, 59, 5, 0.18);
}

.card.request-ready-for-review {
  background: rgba(53, 112, 184, 0.18);
  border-color: rgba(125, 186, 255, 0.44);
  color: #eaf4ff;
  box-shadow: inset 0 0 0 1px rgba(234, 244, 255, 0.18), 0 10px 24px rgba(34, 82, 143, 0.16);
}

.app-shell[data-tone="medium"] .card.request-new,
.app-shell[data-tone="dark"] .card.request-new {
  background: var(--request-new-bg);
  border-color: var(--request-new-border);
  color: #fff8ec;
}

.app-shell[data-tone="medium"] .card.request-updated,
.app-shell[data-tone="dark"] .card.request-updated {
  background: rgba(181, 83, 25, 0.32);
  border-color: rgba(255, 191, 138, 0.52);
  color: #fff2df;
}

.app-shell[data-tone="medium"] .card.request-in-progress,
.app-shell[data-tone="dark"] .card.request-in-progress {
  background: var(--request-progress-bg);
  border-color: var(--request-progress-border);
  color: #fff8ec;
}

.app-shell[data-tone="medium"] .card.request-ready-for-review,
.app-shell[data-tone="dark"] .card.request-ready-for-review {
  background: rgba(53, 112, 184, 0.24);
  border-color: rgba(125, 186, 255, 0.52);
  color: #eaf4ff;
}

.card.active-request-card h4,
.card.active-request-card p,
.card.active-request-card .count,
.card.request-new h4,
.card.request-new p,
.card.request-new .count,
.card.request-updated h4,
.card.request-updated p,
.card.request-updated .count,
.card.request-in-progress h4,
.card.request-in-progress p,
.card.request-in-progress .count,
.card.request-ready-for-review h4,
.card.request-ready-for-review p,
.card.request-ready-for-review .count,
.app-shell[data-tone="medium"] .card.request-new p,
.app-shell[data-tone="medium"] .card.request-new .count,
.app-shell[data-tone="dark"] .card.request-new p,
.app-shell[data-tone="dark"] .card.request-new .count,
.app-shell[data-tone="medium"] .card.request-updated p,
.app-shell[data-tone="medium"] .card.request-updated .count,
.app-shell[data-tone="dark"] .card.request-updated p,
.app-shell[data-tone="dark"] .card.request-updated .count,
.app-shell[data-tone="medium"] .card.request-in-progress p,
.app-shell[data-tone="medium"] .card.request-in-progress .count,
.app-shell[data-tone="dark"] .card.request-in-progress p,
.app-shell[data-tone="dark"] .card.request-in-progress .count,
.app-shell[data-tone="medium"] .card.request-ready-for-review p,
.app-shell[data-tone="medium"] .card.request-ready-for-review .count,
.app-shell[data-tone="dark"] .card.request-ready-for-review p,
.app-shell[data-tone="dark"] .card.request-ready-for-review .count {
  color: #fff8ec;
}

.card.media-card {
  min-height: 300px;
}

.card.request-approved {
  background: var(--request-approved-bg);
  border-color: var(--request-approved-border);
}

.request-chip {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 850;
  padding: 4px 7px;
}

.request-chip.request-new {
  background: rgba(255, 248, 236, 0.22);
  color: #fff8ec;
}

.request-chip.request-updated {
  background: rgba(255, 242, 223, 0.22);
  color: #fff2df;
}

.request-chip.request-in-progress {
  background: rgba(255, 248, 236, 0.24);
  color: #fff8ec;
}

.request-chip.request-ready-for-review {
  background: rgba(234, 244, 255, 0.2);
  color: #eaf4ff;
}

.request-chip.request-approved {
  background: rgba(22, 163, 74, 0.16);
  color: var(--request-approved-text);
}

.card[draggable="true"] {
  cursor: grab;
}

.card.dragging {
  opacity: 0.55;
}

.card h4 {
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}

.card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.card.read-card h4,
.card.read-card p {
  color: #fff8ec;
}

.column.start-complete .card.read-card h4,
.column.start-complete .card.read-card p,
.column.start-complete .card.read-card strong,
.column.start-complete .card.read-card small,
.column.start-complete .card.read-card .count,
.column.start-complete .card.read-card .read-mark,
.column.start-complete .card.read-card .pin,
.card.read-card h4,
.card.read-card p,
.card.read-card strong,
.card.read-card small,
.card.read-card .count,
.card.read-card .read-mark,
.card.read-card .pin {
  color: #fff8ec;
}

.card.read-card .card-footer:last-of-type .count:first-child {
  display: none;
}

.column.start-complete .card.read-card:nth-child(n) h4,
.column.start-complete .card.read-card:nth-child(n) p,
.column.start-complete .card.read-card:nth-child(n) strong,
.column.start-complete .card.read-card:nth-child(n) small,
.column.start-complete .card.read-card:nth-child(n) .count,
.column.start-complete .card.read-card:nth-child(n) .read-mark,
.column.start-complete .card.read-card:nth-child(n) .pin {
  color: #fff8ec;
}

.app-shell[data-tone="medium"] .card.read-card h4,
.app-shell[data-tone="medium"] .card.read-card p,
.app-shell[data-tone="dark"] .card.read-card h4,
.app-shell[data-tone="dark"] .card.read-card p,
.app-shell[data-tone="medium"] .column.start-complete .card.read-card h4,
.app-shell[data-tone="medium"] .column.start-complete .card.read-card p,
.app-shell[data-tone="dark"] .column.start-complete .card.read-card h4,
.app-shell[data-tone="dark"] .column.start-complete .card.read-card p {
  color: #fff8ec;
}

.card-cover {
  border-radius: 6px;
  display: block;
  max-height: 150px;
  object-fit: cover;
  width: 100%;
}

.card-footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.subscription-slot-badge {
  background: rgba(8, 126, 134, 0.14);
  border: 1px solid rgba(8, 126, 134, 0.24);
  border-radius: 999px;
  color: #065f67;
  font-size: 11px;
  font-weight: 850;
  padding: 4px 8px;
  white-space: nowrap;
}

.subscription-slot-badge-standalone {
  padding: 5px 9px;
}

.app-shell[data-tone="medium"] .subscription-slot-badge,
.app-shell[data-tone="dark"] .subscription-slot-badge {
  background: rgba(125, 211, 252, 0.12);
  border-color: rgba(125, 211, 252, 0.26);
  color: #e0f2fe;
}

.pin {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.read-mark {
  color: #087e86;
  font-size: 12px;
  font-weight: 850;
  margin-left: 6px;
}

.upload-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.upload-btn {
  cursor: pointer;
}

.modal .btn.secondary,
.comments .btn.secondary,
.upload-row .btn.secondary,
#addAttachmentBtn {
  background: linear-gradient(135deg, #087e86, #065f66);
  border-color: rgba(6, 95, 102, 0.32);
  color: #fff8ec;
}

.modal .btn.secondary:hover,
.comments .btn.secondary:hover,
.upload-row .btn.secondary:hover,
#addAttachmentBtn:hover {
  filter: brightness(1.06);
}

.attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.attachment-item {
  align-items: center;
  background: rgba(255, 248, 236, 0.72);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 8px;
  text-decoration: none;
}

.attachment-item a {
  align-items: center;
  color: inherit;
  display: flex;
  flex: 1;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.attachment-item img {
  border-radius: 5px;
  height: 42px;
  object-fit: cover;
  width: 56px;
}

.attachment-item span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.attachment-item small {
  color: var(--muted);
  font-size: 12px;
}

.attachment-file-icon,
.attachment-link-icon {
  background: rgba(8, 126, 134, 0.14);
  border: 1px solid rgba(8, 126, 134, 0.24);
  border-radius: 6px;
  flex: 0 0 34px;
  height: 34px;
  position: relative;
}

.attachment-file-icon::before {
  border: 2px solid #087e86;
  border-radius: 2px;
  content: "";
  height: 18px;
  left: 10px;
  position: absolute;
  top: 7px;
  width: 14px;
}

.attachment-link-icon::before {
  border: 2px solid #087e86;
  border-radius: 999px;
  content: "";
  height: 10px;
  left: 8px;
  position: absolute;
  top: 10px;
  transform: rotate(-35deg);
  width: 18px;
}

.attachment-remove {
  align-items: center;
  background: #fff8ec;
  border: 1px solid rgba(16, 24, 32, 0.18);
  border-radius: 999px;
  color: #101820;
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 14px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.modal-backdrop {
  align-items: center;
  background: rgba(13, 21, 28, 0.48);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 50;
}

.modal {
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(13, 21, 28, 0.28);
  max-height: 92vh;
  max-width: 760px;
  overflow: auto;
  padding: 22px;
  width: 100%;
}

.modal.small {
  max-width: 760px;
}

.modal.wide {
  max-width: min(1320px, 96vw);
}

.modal-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.modal-head h2 {
  margin: 0;
}

.close {
  background: var(--panel-soft);
  border-radius: 6px;
  color: var(--text);
  height: 36px;
  width: 36px;
}

.comments {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
}

.modal-actions .btn.secondary {
  background: linear-gradient(135deg, #2f5be8, #087e86);
  border-color: rgba(255, 248, 236, 0.22);
  color: #fff8ec;
}

.save-status {
  background: rgba(16, 24, 32, 0.9);
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 999px;
  bottom: 18px;
  color: #fff8ec;
  font-size: 12px;
  font-weight: 850;
  opacity: 0;
  padding: 8px 12px;
  pointer-events: none;
  position: fixed;
  right: 18px;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 80;
}

.save-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.save-status.error {
  background: rgba(127, 29, 29, 0.94);
  border-color: rgba(252, 165, 165, 0.42);
}

.comment {
  background: rgba(247, 234, 215, 0.68);
  border-radius: 7px;
  padding: 10px;
}

.comment strong {
  display: block;
  font-size: 13px;
}

.comment p {
  color: rgba(16, 16, 21, 0.72);
  margin: 4px 0 0;
}

.activity {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.workspace-timer {
  color: rgba(16, 16, 21, 0.76);
  font-size: 13px;
  font-weight: 750;
  margin: 0;
}

.read-description {
  color: rgba(16, 16, 21, 0.82);
  line-height: 1.55;
  margin-top: 18px;
}

.read-description p {
  margin: 0 0 10px;
}

.read-check {
  align-items: center;
  background: var(--panel-soft);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
}

.empty {
  border: 1px dashed #b9c7ce;
  border-radius: 8px;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.empty.compact {
  padding: 14px;
}

.archive-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.archive-item {
  align-items: center;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
}

.background-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  margin: 16px 0;
}

.background-options.compact {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  margin: 10px 0 18px;
}

.background-tabs {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
  padding-bottom: 10px;
}

.background-tab {
  background: transparent;
  border-bottom: 3px solid transparent;
  color: rgba(16, 16, 21, 0.72);
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 0 0 8px;
}

.background-tab.is-active {
  border-color: var(--brand);
  color: var(--text);
}

.background-tab-preview {
  border-radius: 8px;
  display: block;
  height: 64px;
  width: 100%;
}

.background-tab-preview.studio {
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.45), transparent),
    radial-gradient(circle at 18% 28%, rgba(8, 126, 134, 0.18) 0 20px, transparent 21px),
    radial-gradient(circle at 64% 62%, rgba(243, 184, 75, 0.24) 0 34px, transparent 35px),
    linear-gradient(135deg, #8ca7ba, #fff8ec 48%, #d8c3a8);
}

.background-tab-preview.colors {
  background:
    linear-gradient(180deg, #d56fd9 0 42%, transparent 43%),
    linear-gradient(180deg, transparent 0 54%, #ef4f3e 55%),
    #183d63;
  border: 16px solid #183d63;
}

.background-tab-panel {
  display: none;
}

.background-tab-panel.is-active {
  display: block;
}

.background-option {
  background: var(--panel);
  border: 2px solid rgba(16, 16, 21, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.background-option:hover {
  border-color: rgba(8, 126, 134, 0.32);
  box-shadow: 0 8px 20px rgba(20, 33, 42, 0.08);
  transform: translateY(-1px);
}

.background-option.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(8, 126, 134, 0.14);
}

.background-swatch {
  border-radius: 6px;
  height: 58px;
}

.background-swatch.paper {
  background: linear-gradient(120deg, rgba(203, 184, 255, 0.18), rgba(8, 126, 134, 0.1) 46%, rgba(239, 79, 62, 0.1)), #fff8ec;
}

.background-swatch.bluegray {
  background: linear-gradient(135deg, #5f8aa5 0%, #a9c6d6 48%, #e5eef3 100%);
}

.background-swatch.mist {
  background: linear-gradient(135deg, #82aec8 0%, #c4dce8 52%, #eff6f8 100%);
}

.background-swatch.cream {
  background: linear-gradient(145deg, rgba(239, 79, 62, 0.13), rgba(203, 184, 255, 0.28) 46%, rgba(8, 126, 134, 0.12)), #f7ead7;
}

.background-swatch.teal {
  background: linear-gradient(135deg, rgba(8, 126, 134, 0.28), rgba(255, 248, 236, 0.88) 48%, rgba(203, 184, 255, 0.24)), #fff8ec;
}

.background-swatch.lilac {
  background: linear-gradient(135deg, rgba(203, 184, 255, 0.42), rgba(255, 248, 236, 0.88) 52%, rgba(243, 184, 75, 0.18)), #fff8ec;
}

.background-swatch.cobalt {
  background: linear-gradient(135deg, rgba(41, 72, 216, 0.2), rgba(255, 248, 236, 0.9) 50%, rgba(8, 126, 134, 0.16)), #fff8ec;
}

.background-swatch.charcoal {
  background: linear-gradient(135deg, #101015 0%, #273038 50%, #087e86 100%);
}

.background-swatch.midnight {
  background: linear-gradient(135deg, #0f172a 0%, #1f3b57 46%, #6b8faa 100%);
}

.background-swatch.deepteal {
  background: linear-gradient(135deg, #043c42 0%, #087e86 48%, #c7dfec 100%);
}

.background-swatch.slate {
  background: linear-gradient(135deg, #34424f 0%, #8096a5 48%, #e8f0f5 100%);
}

.background-swatch.sage { background: linear-gradient(135deg, #cdded0 0%, #eef2e8 52%, #fff8ec 100%); }
.background-swatch.storm { background: linear-gradient(135deg, #435f73 0%, #7f9caf 50%, #d6e4eb 100%); }
.background-swatch.nature-clouds { background: radial-gradient(circle at 24% 22%, #f7fbff 0 18px, transparent 19px), radial-gradient(circle at 68% 34%, #d8eef8 0 28px, transparent 29px), linear-gradient(135deg, #7fb3d5, #edf7fb 58%, #fff8ec); }
.background-swatch.nature-forest { background: radial-gradient(ellipse at 18% 80%, rgba(20, 90, 54, 0.54), transparent 36%), linear-gradient(135deg, #2f6f4f, #9bc4a0 52%, #eaf2dd); }
.background-swatch.nature-meadow { background: radial-gradient(ellipse at 50% 92%, rgba(55, 127, 72, 0.42), transparent 42%), linear-gradient(135deg, #b9d7c0, #e7f0d8 48%, #f7ead7); }
.background-swatch.nature-lake { background: linear-gradient(180deg, #98c3db 0 45%, #6ea0b8 46% 58%, #dbe9ef 59%); }
.background-swatch.nature-coast { background: linear-gradient(135deg, #7fa9bf, #d8e7ef 44%, #f7ead7 70%, #e9d4b8); }
.background-swatch.nature-hills { background: radial-gradient(ellipse at 24% 82%, #73936f 0 42px, transparent 43px), radial-gradient(ellipse at 72% 86%, #a5b98d 0 54px, transparent 55px), linear-gradient(135deg, #b8d2de, #f2efd8); }
.background-swatch.nature-sky { background: radial-gradient(circle at 72% 22%, #fff8ec 0 16px, transparent 17px), linear-gradient(135deg, #69a9d3, #dff3fb 62%, #fff8ec); }
.background-swatch.nature-aurora { background: radial-gradient(ellipse at 50% 18%, rgba(123, 255, 192, 0.42), transparent 34%), linear-gradient(135deg, #07111f, #123050 48%, #244d69); }
.background-swatch.nature-space { background: radial-gradient(circle at 18% 28%, rgba(203, 184, 255, 0.54), transparent 16%), radial-gradient(circle at 72% 18%, rgba(255, 248, 236, 0.36), transparent 10%), linear-gradient(135deg, #050816, #16264d 54%, #513d79); }
.background-swatch.nature-rain { background: repeating-linear-gradient(110deg, rgba(255,255,255,.22) 0 2px, transparent 2px 14px), linear-gradient(135deg, #5f7484, #a7bdca 54%, #e8f0f5); }
.background-swatch.nature-leaves { background: radial-gradient(ellipse at 18% 28%, rgba(42, 113, 72, 0.44), transparent 24%), radial-gradient(ellipse at 78% 72%, rgba(141, 176, 97, 0.42), transparent 28%), linear-gradient(135deg, #527a5b, #d6e4cb); }
.background-swatch.studio-desk { background: linear-gradient(135deg, #c8d7df, #fff8ec 50%, #d8c3a8); }
.background-swatch.studio-window { background: linear-gradient(90deg, rgba(255,255,255,.38) 0 12%, transparent 12% 18%, rgba(255,255,255,.28) 18% 30%, transparent 31%), linear-gradient(135deg, #8fb6cc, #f6efe1); }
.background-swatch.studio-sketch { background: repeating-linear-gradient(12deg, rgba(16,16,21,.05) 0 1px, transparent 1px 12px), #f7ead7; }
.background-swatch.studio-laptop { background: radial-gradient(ellipse at 65% 35%, rgba(41,72,216,.18), transparent 28%), linear-gradient(135deg, #778d9a, #e9eef0); }
.background-swatch.studio-paper { background: repeating-linear-gradient(0deg, rgba(16,16,21,.04) 0 1px, transparent 1px 16px), #f7ead7; }
.background-swatch.studio-shelves { background: repeating-linear-gradient(0deg, rgba(255,248,236,.12) 0 2px, transparent 2px 28px), linear-gradient(135deg, #2d3d49, #8aa0ac); }
.background-swatch.studio-calm { background: radial-gradient(ellipse at 22% 70%, rgba(8,126,134,.14), transparent 30%), linear-gradient(135deg, #d6e3ea, #fff8ec); }
.background-swatch.studio-darkdesk { background: radial-gradient(ellipse at 75% 28%, rgba(8,126,134,.28), transparent 30%), linear-gradient(135deg, #101820, #263845); }
.background-swatch.studio-blueprint { background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 18px), repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 1px, transparent 1px 18px), #1f3b57; }
.background-swatch.studio-cork { background: radial-gradient(circle at 22% 22%, rgba(239,79,62,.18), transparent 18%), linear-gradient(135deg, #cfae7b, #f4e1bd 58%, #d5e1e8); }
.background-swatch.studio-night { background: radial-gradient(circle at 72% 24%, rgba(243,184,75,.22), transparent 16%), linear-gradient(135deg, #0b121a, #1f3447 58%, #4f6f88); }

.background-swatch.photo-studio {
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 248, 236, 0.9) 0 18px, transparent 19px),
    radial-gradient(circle at 76% 26%, rgba(203, 184, 255, 0.58) 0 34px, transparent 35px),
    linear-gradient(135deg, #8ca7ba, #fff8ec 48%, #087e86);
}

.background-swatch.photo-paper {
  background:
    repeating-linear-gradient(8deg, rgba(16, 16, 21, 0.08) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #f7ead7, #c7dfec);
}

.background-swatch.photo-softdesk {
  background:
    radial-gradient(ellipse at 18% 72%, rgba(239, 79, 62, 0.22), transparent 34%),
    radial-gradient(ellipse at 82% 18%, rgba(8, 126, 134, 0.28), transparent 30%),
    linear-gradient(135deg, #bdd6e5, #fff8ec);
}

.upload-box {
  align-items: center;
  background: rgba(255, 253, 247, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  padding: 12px;
}

.background-custom-title {
  margin: 16px 0 8px;
}

.custom-upload-tile {
  align-items: center;
  background: #eef0f2;
  border-radius: 8px;
  color: rgba(16, 16, 21, 0.72);
  cursor: pointer;
  display: inline-flex;
  font-size: 36px;
  height: 92px;
  justify-content: center;
  width: 176px;
}

.custom-upload-tile:hover {
  background: #e2ebf1;
}

.background-upload-feedback {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.background-upload-feedback.error {
  color: #b42318;
  font-weight: 700;
}

.background-preview {
  align-items: stretch;
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  overflow: hidden;
  padding: 0;
  width: 176px;
}

.background-preview.is-visible {
  display: flex;
}

.background-preview img {
  border-radius: 6px;
  display: block;
  height: 92px;
  object-fit: cover;
  width: 176px;
}

.background-preview span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px 10px;
}

.share-panel {
  display: grid;
  gap: 10px;
}

.share-action {
  align-items: center;
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 3px 12px;
  grid-template-columns: 26px 1fr;
  padding: 12px;
  text-align: left;
}

.share-action .muted {
  grid-column: 2;
}

.share-action:hover {
  background: var(--panel-soft);
}

.share-link-box {
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 12px;
}

.share-link-box p {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.register-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  margin-top: 16px;
  overflow: auto;
}

.register-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 170px 230px 110px 120px 190px 105px 95px 115px 170px;
  min-width: 1320px;
  padding: 11px 12px;
  text-align: left;
}

.register-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.register-row:nth-child(even) {
  background: #f7fafb;
}

.register-head {
  background: #e7eef1;
  color: #344250;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.card.approved-card {
  background: #effaf3;
  border-color: #86efac;
}

.card.approved-card h4 {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

@media (max-width: 780px) {
  .topbar,
  .page-head,
  .board-header {
    align-items: stretch;
    flex-direction: column;
  }

  .container,
  .board-header,
  .board-subscription-row,
  .board {
    padding-left: 16px;
    padding-right: 16px;
  }

  .board-wrap {
    height: auto;
    min-height: 100vh;
  }

  .board {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .subscription-rows {
    grid-template-columns: 1fr;
  }

  .topbar .button-row {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .account-trigger {
    min-height: 44px;
    padding: 4px;
  }

  .account-trigger-text,
  .account-chevron {
    display: none;
  }

  .account-avatar {
    height: 36px;
    width: 36px;
  }

  .account-menu-panel {
    bottom: 12px;
    left: 12px;
    max-height: calc(100vh - 24px);
    min-width: 0;
    overflow: auto;
    position: fixed;
    right: 12px;
    top: auto;
  }

  .account-menu-item,
  .account-target {
    min-height: 46px;
  }
}
