:root {
  color-scheme: light;
  --ink: #142b30;
  --ink-2: #294349;
  --kelp: #24756a;
  --kelp-dark: #18584f;
  --foam: #f6f3eb;
  --paper: #fffefa;
  --mist: #dce9e5;
  --line: #cbd9d5;
  --coral: #ef6b4d;
  --sand: #e6d6af;
  --shadow: 0 14px 34px rgba(20, 43, 48, .11), 0 2px 7px rgba(20, 43, 48, .08);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body { background: var(--foam); color: var(--ink); overflow-x: hidden; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(239, 107, 77, .34); outline-offset: 2px; }
button:active:not(:disabled) { transform: scale(.97); }

.dl-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.dl-rail { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 236px; padding: 26px 18px 22px; color: #eef6f2; background: var(--ink); }
.dl-rail::before { position: absolute; inset: 0; content: ""; pointer-events: none; opacity: .23; background: radial-gradient(ellipse at 20% 14%, transparent 0 24%, #6e9389 24.5% 25%, transparent 25.5% 34%, #6e9389 34.5% 35%, transparent 35.5%), radial-gradient(ellipse at 90% 85%, transparent 0 28%, #6e9389 28.5% 29%, transparent 29.5%); }
.dl-brand { position: relative; display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; letter-spacing: .12em; }
.dl-brand span { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #73958d; border-radius: 50%; color: var(--coral); font-family: Georgia, serif; font-size: 22px; font-style: italic; }
.dl-brand strong { font-size: 14px; }
.dl-eyebrow { position: relative; margin: 11px 0 31px 47px; color: #93aea7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.dl-nav { position: relative; display: grid; gap: 5px; }
.dl-nav button { display: flex; align-items: center; gap: 13px; width: 100%; border: 0; border-radius: 9px; padding: 10px 12px; color: #a9c0ba; background: transparent; text-align: left; transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out), transform 150ms var(--ease-out); }
.dl-nav button span { width: 22px; color: #789c93; font-size: 19px; text-align: center; }
.dl-nav button[data-active="true"] { color: #fff; background: rgba(220, 233, 229, .11); }
.dl-nav button[data-active="true"] span { color: var(--coral); }
.dl-rail-rule { position: relative; height: 1px; margin: 26px 10px 22px; background: rgba(220, 233, 229, .13); }
.dl-filter-label { position: relative; display: block; margin: 14px 8px 6px; color: #789c93; font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.dl-rail select { position: relative; width: 100%; border: 1px solid rgba(220, 233, 229, .16); border-radius: 7px; padding: 8px 10px; color: #d8e5e1; background: #1c373c; font-size: 12px; text-transform: capitalize; }
.dl-text-button { position: relative; margin: 11px 8px; border: 0; padding: 0; color: #8aaaa2; background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.dl-shortcuts { position: absolute; right: 18px; bottom: 22px; left: 18px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 8px; color: #789c93; font-size: 9px; }
.dl-shortcuts span { border: 1px solid rgba(220, 233, 229, .18); border-radius: 4px; padding: 3px 5px; color: #bfd0cb; background: rgba(255,255,255,.04); font-family: ui-monospace, monospace; text-align: center; }

.dl-main { grid-column: 2; min-width: 0; }
.dl-topbar { position: sticky; top: 0; z-index: 8; display: grid; grid-template-columns: minmax(270px, 1fr) minmax(250px, 390px) auto; align-items: center; gap: 22px; min-height: 88px; border-bottom: 1px solid var(--line); padding: 14px 24px 12px 28px; background: rgba(246, 243, 235, .95); backdrop-filter: blur(16px); }
.dl-heading p, .dl-view-heading p, .dl-focus-copy > p { margin: 0 0 3px; color: var(--kelp); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.dl-heading h1 { display: inline; margin: 0 10px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.dl-heading > span { color: #72878a; font-size: 11px; white-space: nowrap; }
.dl-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; background: rgba(255,255,255,.56); box-shadow: 0 1px 0 rgba(255,255,255,.8); }
.dl-search span { color: var(--kelp); font-size: 21px; line-height: 1; }
.dl-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.dl-tools { display: flex; align-items: center; gap: 6px; }
.dl-icon-button, .dl-tool-button { border: 1px solid var(--line); border-radius: 8px; height: 34px; padding: 0 11px; background: rgba(255,255,255,.62); font-size: 11px; font-weight: 700; transition: background-color 140ms var(--ease-out), transform 140ms var(--ease-out); }
.dl-icon-button { width: 34px; padding: 0; font-size: 17px; }
.dl-icon-button:disabled { cursor: default; opacity: .34; }
.dl-export { border-color: var(--kelp); color: white; background: var(--kelp); }
.dl-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dl-status { display: flex; justify-content: space-between; padding: 10px 29px 0; color: #72878a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .04em; }
.dl-view { min-height: calc(100vh - 118px); padding: 15px 24px 34px 28px; }

.dl-board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 12px; min-width: 980px; align-items: start; }
.dl-column { min-height: calc(100vh - 150px); border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(220, 233, 229, .35); transition: background-color 150ms var(--ease-out); }
.dl-column[data-drop-target="true"] { background: rgba(36, 117, 106, .13); }
.dl-column > header { display: flex; justify-content: space-between; align-items: flex-start; padding: 2px 3px 12px; }
.dl-column > header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 600; }
.dl-column > header p { margin: 3px 0 0; color: #75888a; font-size: 9px; }
.dl-column > header > span { display: inline-grid; min-width: 28px; height: 20px; place-items: center; border-radius: 20px; color: var(--kelp-dark); background: #d5e5e0; font-family: ui-monospace, monospace; font-size: 9px; }
.dl-card-stack { display: grid; gap: 8px; }
.dl-card { position: relative; z-index: 1; border: 1px solid #d1ddd9; border-radius: 9px; padding: 11px 11px 9px; background: var(--paper); box-shadow: 0 1px 2px rgba(20, 43, 48, .06); cursor: grab; touch-action: none; transition: box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out); will-change: transform; }
.dl-card:active { cursor: grabbing; }
.dl-card[data-drop-before="true"]::before { position: absolute; right: 0; top: -5px; left: 0; height: 2px; content: ""; background: var(--coral); }
.dl-card.is-dragging { z-index: 99; border-color: rgba(36, 117, 106, .45); box-shadow: 0 24px 58px rgba(20, 43, 48, .23), 0 5px 14px rgba(20, 43, 48, .15); cursor: grabbing; transition: none; }
.dl-card.is-landing { z-index: 3; transition: none; will-change: transform; }
.dl-card-placeholder { border: 1px dashed #91aaa4; border-radius: 9px; background: rgba(255,255,255,.27); }
.dl-card-top { display: flex; justify-content: space-between; align-items: center; }
.dl-priority { font-family: ui-monospace, monospace; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dl-priority::before { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; content: ""; background: currentColor; }
.dl-priority-high { color: #d34f36; }
.dl-priority-medium { color: #8b6b22; }
.dl-priority-low { color: #56827a; }
.dl-drag { color: #9dafaa; font-size: 13px; }
.dl-card h3 { min-height: 34px; margin: 9px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.22; }
.dl-labels { display: flex; flex-wrap: wrap; gap: 4px; }
.dl-labels span { border-radius: 4px; padding: 3px 5px; color: #416761; background: #e4efec; font-size: 8px; text-transform: capitalize; }
.dl-progress { height: 3px; margin: 10px 0 8px; overflow: hidden; border-radius: 3px; background: #e7ece9; }
.dl-progress i { display: block; width: var(--progress); height: 100%; background: var(--kelp); }
.dl-card footer { display: flex; align-items: center; gap: 8px; color: #738587; font-family: ui-monospace, monospace; font-size: 8px; }
.dl-card footer > span:nth-child(2)::before { content: "✓ "; }
.dl-crew { display: flex; margin-left: auto; }
.dl-crew b { display: grid; width: 21px; height: 21px; margin-left: -4px; place-items: center; border: 1px solid var(--paper); border-radius: 50%; color: white; background: var(--ink-2); font-size: 7px; }
.dl-add { width: 100%; margin-top: 9px; border: 1px dashed transparent; border-radius: 8px; padding: 9px; color: #617a78; background: transparent; font-size: 10px; text-align: left; transition: border-color 140ms var(--ease-out), background-color 140ms var(--ease-out), transform 140ms var(--ease-out); }
.dl-add span { margin-right: 6px; color: var(--coral); font-size: 15px; }
.dl-composer { display: grid; gap: 7px; margin-top: 9px; border: 1px solid #9eb6b0; border-radius: 9px; padding: 9px; background: var(--paper); box-shadow: var(--shadow); }
.dl-composer input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 9px; background: white; font-size: 11px; }
.dl-composer button, .dl-primary { border: 0; border-radius: 7px; padding: 9px 12px; color: white; background: var(--kelp); font-size: 10px; font-weight: 800; }
.dl-composer small { color: #81928f; font-size: 8px; }

.dl-panel { min-height: calc(100vh - 156px); border: 1px solid var(--line); border-radius: 13px; padding: 26px; background: rgba(255, 254, 250, .74); }
.dl-view-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.dl-view-heading p { grid-column: 1 / -1; }
.dl-view-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.dl-view-heading span { color: #75888a; font-size: 10px; }
.dl-timeline { max-width: 800px; margin: 29px auto; }
.dl-timeline article { display: grid; grid-template-columns: 98px 15px minmax(0,1fr); gap: 14px; position: relative; min-height: 89px; }
.dl-timeline time { padding-top: 11px; color: #647b79; font-family: ui-monospace, monospace; font-size: 9px; text-align: right; text-transform: uppercase; }
.dl-timeline article > i { z-index: 1; width: 11px; height: 11px; margin-top: 10px; border: 3px solid var(--foam); border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.dl-timeline article > b { position: absolute; top: 22px; bottom: -10px; left: 117px; width: 1px; background: var(--line); }
.dl-timeline-card { display: grid; gap: 4px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; background: var(--paper); text-align: left; transition: border-color 140ms var(--ease-out), transform 140ms var(--ease-out); }
.dl-timeline-card span, .dl-timeline-card small { color: #75888a; font-size: 8px; text-transform: uppercase; }
.dl-timeline-card strong { font-family: Georgia, serif; font-size: 14px; }
.dl-table-wrap { margin-top: 20px; overflow-x: auto; }
.dl-table-wrap table { border-collapse: collapse; width: 100%; }
.dl-table-wrap th, .dl-table-wrap td { border-bottom: 1px solid #dce5e2; padding: 12px 10px; color: #5e7373; font-size: 10px; text-align: left; }
.dl-table-wrap th { color: #7c8f8e; font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.dl-table-wrap td:first-child { width: 38%; }
.dl-table-wrap td button { display: flex; gap: 8px; align-items: center; border: 0; padding: 0; background: transparent; color: var(--ink); font-family: Georgia, serif; font-size: 13px; text-align: left; }
.dl-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.dl-focus { min-height: calc(100vh - 156px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.dl-focus-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(42px, 7vw, 90px); }
.dl-focus-copy h2 { max-width: 650px; margin: 8px 0 20px; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 62px); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.dl-focus-copy blockquote { max-width: 620px; margin: 0; color: #58706f; font-family: Georgia, serif; font-size: 15px; line-height: 1.55; }
.dl-focus-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 27px 0; }
.dl-focus-meta span { border: 1px solid var(--line); border-radius: 20px; padding: 7px 10px; color: #506b68; font-size: 9px; text-transform: uppercase; }
.dl-focus-map { position: relative; min-height: 460px; overflow: hidden; color: #d8e8e3; background: var(--ink-2); }
.dl-focus-map::before, .dl-focus-map::after { position: absolute; width: 580px; height: 580px; border: 1px solid #5b7a73; border-radius: 44% 56% 62% 38%; content: ""; transform: rotate(21deg); }
.dl-focus-map::before { right: -270px; top: -220px; box-shadow: 0 0 0 36px transparent, 0 0 0 37px #5b7a73, 0 0 0 78px transparent, 0 0 0 79px #5b7a73; }
.dl-focus-map::after { bottom: -400px; left: -160px; }
.dl-focus-map > span { position: absolute; top: 28px; left: 28px; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .12em; }
.dl-focus-map > i { position: absolute; top: 43%; left: 47%; width: 13px; height: 13px; border: 3px solid var(--ink-2); border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 1px var(--coral), 0 0 0 14px rgba(239,107,77,.13); }
.dl-focus-map > b { position: absolute; right: 29px; bottom: 29px; font-family: Georgia, serif; font-size: 22px; font-weight: 400; text-align: right; }
.dl-focus-map > em { position: absolute; top: calc(43% + 24px); left: calc(47% + 24px); font-family: Georgia, serif; font-size: 41px; font-style: normal; }
.dl-focus-map > em small { display: block; font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.dl-empty { display: grid; min-height: 260px; place-content: center; justify-items: center; gap: 8px; color: #738987; }
.dl-empty i { color: var(--coral); font-family: Georgia, serif; font-size: 34px; }
.dl-empty button { border: 0; color: var(--kelp); background: transparent; font-size: 10px; text-decoration: underline; }

.dl-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(20,43,48,.31); backdrop-filter: blur(2px); animation: dl-fade 180ms var(--ease-out); }
.dl-drawer { position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; width: min(470px, 92vw); overflow-y: auto; border-left: 1px solid var(--line); background: var(--paper); box-shadow: -28px 0 70px rgba(20,43,48,.14); animation: dl-drawer-in 260ms var(--ease-out); }
.dl-drawer > header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 22px 24px; color: #67807d; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .11em; }
.dl-drawer > header button { border: 0; padding: 0 4px; color: var(--ink); background: transparent; font-size: 25px; }
.dl-drawer form { display: grid; gap: 22px; padding: 28px 24px; }
.dl-drawer label { display: grid; gap: 8px; color: #657b79; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.dl-drawer input, .dl-drawer textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; color: var(--ink); background: white; font-size: 13px; letter-spacing: normal; line-height: 1.45; text-transform: none; resize: vertical; }
.dl-drawer input { font-family: Georgia, serif; font-size: 21px; }
.dl-drawer-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.dl-drawer-facts div { display: grid; gap: 5px; padding: 12px; background: var(--foam); }
.dl-drawer-facts small { color: #81918e; font-size: 8px; text-transform: uppercase; }
.dl-drawer-facts strong { font-family: Georgia, serif; font-size: 12px; font-weight: 500; }
.dl-weather { justify-self: start; border: 1px solid var(--sand); border-radius: 7px; padding: 9px 11px; color: #765d28; background: #f7f0df; font-size: 9px; font-weight: 700; }
.dl-editor-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 19px; }
.dl-editor-actions > span { margin-right: auto; color: #7b8c89; font-size: 8px; }
.dl-secondary { border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; background: white; font-size: 9px; font-weight: 700; }
.dl-live { position: fixed; z-index: 50; right: 18px; bottom: 16px; margin: 0; border-radius: 7px; padding: 7px 10px; color: #dbe9e5; background: rgba(20,43,48,.91); font-family: ui-monospace, monospace; font-size: 8px; pointer-events: none; }
.dl-live:empty { display: none; }
.dl-sr { position: absolute; overflow: hidden; width: 1px; height: 1px; margin: -1px; clip: rect(0,0,0,0); white-space: nowrap; }

@keyframes dl-fade { from { opacity: 0; } }
@keyframes dl-drawer-in { from { transform: translate3d(100%,0,0); } }

@media (hover: hover) {
  .dl-nav button:hover { color: white; background: rgba(220, 233, 229, .07); }
  .dl-icon-button:hover:not(:disabled), .dl-tool-button:hover { background-color: white; }
  .dl-export:hover { background-color: var(--kelp-dark); }
  .dl-card:hover { border-color: #a9c0ba; box-shadow: 0 9px 22px rgba(20,43,48,.11); transform: translateY(-2px); }
  .dl-add:hover { border-color: #a9bdb8; background: rgba(255,255,255,.35); }
  .dl-timeline-card:hover { border-color: #96aea8; transform: translateX(3px); }
}

@media (max-width: 900px) {
  .dl-shell { grid-template-columns: 72px minmax(0,1fr); }
  .dl-rail { width: 72px; padding: 22px 10px; }
  .dl-brand { justify-content: center; }
  .dl-brand strong, .dl-eyebrow, .dl-nav button:not([data-active="true"])::after, .dl-nav button { font-size: 0; }
  .dl-nav button { justify-content: center; padding: 10px; }
  .dl-nav button span { font-size: 19px; }
  .dl-rail-rule, .dl-filter-label, .dl-rail select, .dl-text-button, .dl-shortcuts { display: none; }
  .dl-main { grid-column: 2; }
  .dl-topbar { grid-template-columns: 1fr auto; gap: 9px; padding: 10px 14px; }
  .dl-search { grid-column: 1 / -1; grid-row: 2; }
  .dl-heading > span { display: none; }
  .dl-board { min-width: 900px; }
  .dl-view { overflow-x: auto; padding: 13px; }
  .dl-status { padding: 9px 14px 0; }
  .dl-focus { grid-template-columns: 1fr; }
  .dl-focus-map { min-height: 300px; }
}

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