/* Saywork Developers: only what the web app's stylesheets do not already have. Tokens only, no new colours or fonts. */
.d-devtag { margin-inline-start: auto; }
.w-nav .row .d-ext { width: 14px !important; height: 14px !important; margin-inline-start: auto; opacity: .6; }

.d-wait { display: flex; align-items: center; gap: 12px; padding: 24px 4px; color: var(--stone); font-size: 14px; }
.d-err { display: flex; align-items: center; gap: 10px; padding: 16px 18px; color: var(--danger); font-size: 14px; }
.d-err svg.i { width: 18px; height: 18px; flex: none; }
.d-pad { padding: 18px 20px; }
.d-list { padding: 4px 14px; }

.d-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 8px; }
.d-stats .card { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.d-stats small { font-size: 12px; color: var(--stone); font-weight: 600; }
.d-stats b { font: 800 28px/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.d-stats span { font-size: 12px; color: var(--stone); }

.d-proj { color: inherit; text-decoration: none; border-radius: var(--r-sm); }
.d-proj:hover { background: color-mix(in srgb, var(--chalk) 60%, transparent); }
.d-proj .tx { flex: 1; min-width: 0; }
.d-proj .tx b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-proj .tx small { font-size: 12px; color: var(--stone); }
.d-proj .d-chev { width: 16px; height: 16px; color: var(--stone); flex: none; }
.d-num { display: flex; flex-direction: column; align-items: flex-end; min-width: 92px; }
.d-num b { font-variant-numeric: tabular-nums; }
.d-num small { font-size: 12px; color: var(--stone); }
.w-li.on { background: var(--chalk); border-radius: var(--r-sm); }

/* Sparkline and bars: one series, one hue (green, which the dark theme turns to mint). */
.d-spark { width: 96px; height: 28px; flex: none; overflow: visible; }
.d-spark polyline { fill: none; stroke: var(--green); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.d-chart { width: 100%; }
.d-plot { display: flex; align-items: flex-end; height: 160px; box-shadow: inset 0 -1px 0 var(--line); }
.d-bar { height: 100%; display: flex; align-items: flex-end; padding: 0 1px; cursor: default; }
.d-bar i { display: block; width: 100%; background: var(--green); border-radius: 4px 4px 0 0; }
.d-bar:hover i { opacity: .75; }
.d-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--stone); font-variant-numeric: tabular-nums; }
.d-tip { position: fixed; z-index: 95; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: var(--r-sm); background: #1D2023; color: #EEF0EA; font-size: 12px; font-weight: 600; pointer-events: none; white-space: nowrap; box-shadow: var(--s2, 0 6px 18px rgba(0,0,0,.2)); }

.d-table { margin-top: 12px; font-size: 14px; }
.d-table summary { cursor: pointer; color: var(--stone); font-weight: 600; }
.d-table table, .d-grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.d-table table { margin-top: 8px; }
.d-grid th, .d-table th { text-align: start; font-size: 12px; font-weight: 600; color: var(--stone); padding: 8px 10px 8px 0; }
.d-grid td, .d-table td { padding: 10px 10px 10px 0; box-shadow: inset 0 1px 0 var(--chalk); vertical-align: top; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.d-grid code { font-size: 13px; background: var(--chalk); padding: 2px 6px; border-radius: 6px; }
.d-share { display: flex; align-items: center; gap: 10px; }
.d-share .meter { width: 120px; flex: none; }
.d-share span:last-child { font-size: 12px; color: var(--stone); }

.d-crumb { margin-bottom: 10px; }
.d-crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--stone); font-size: 14px; font-weight: 600; text-decoration: none; }
.d-crumb svg.i { width: 16px; height: 16px; }
.tabs2 { flex-wrap: wrap; }
.tabs2 svg.i { width: 16px; height: 16px; }

.d-gate { display: flex; align-items: center; gap: 16px; }
.d-gate > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.d-gate span { font-size: 14px; color: var(--stone); }
.d-gate > svg.i { width: 22px; height: 22px; color: var(--stone); }
.d-connect { display: flex; flex-direction: column; gap: 6px; }
.d-row { display: flex; gap: 8px; margin-top: 8px; }
.d-input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: var(--chalk); color: var(--graphite); font: inherit; font-size: 14px; border: 0; outline: none; }
.d-input:focus { box-shadow: 0 0 0 2px var(--graphite); }
.d-domhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.d-domhead > div:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-acts { display: flex; gap: 6px; }
.d-dns { margin-top: 10px; }

.d-split { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 12px; align-items: start; }
.d-rows { overflow-x: auto; }

.d-prompt { display: flex; flex-direction: column; gap: 12px; }
.d-pre { margin: 0; max-height: 360px; overflow: auto; padding: 14px 16px; border-radius: var(--r-md); background: var(--chalk); font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.d-ais { display: flex; flex-wrap: wrap; gap: 8px; }
.d-ais .lgo { width: 18px; height: 18px; border-radius: 4px; }

/* Narrow screens: the sidebar becomes a bar on top, the way the web app's pages stack on a phone. */
@media (max-width: 760px) {
  #app .w-app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  #app .w-side { border: 0; }
  #app .w-side-in { flex-direction: row; align-items: center; gap: 4px; padding: 8px 10px; overflow-x: auto; height: auto; }
  #app .w-brand { padding: 0 6px 0 0; }
  #app .w-brand .wm, #app .d-devtag, #app .w-nav .row .nm, #app .w-nav .sep2, #app .w-acct .n { display: none; }
  #app .w-nav { display: flex; flex-direction: row; gap: 2px; }
  #app .w-foot { margin: 0 0 0 auto; padding: 0; box-shadow: none; }
  #app .d-split { grid-template-columns: 1fr; }
  #app .d-proj .d-spark, #app .d-proj .d-chev { display: none; }
  #app .page-in { padding-inline: 16px; }
}
.d-env { flex-wrap: wrap; }
.d-env .d-input { flex: 1 1 200px; }

/* ---------------------------------------------------------------- the landing page (signed out) */
#app .d-land { height: 100%; overflow-y: auto; background: var(--paper); }
.d-lhead { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 12px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); }
.d-lhead .grow { flex: 1; }
.d-lbrand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font: 800 20px var(--display); letter-spacing: -.03em; }
.d-lbrand svg.mk { width: 26px; height: 24px; }
.d-hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 110px) 20px clamp(40px, 7vw, 80px); text-align: center; }
.d-hero .swf-glow { position: absolute; inset: 0; pointer-events: none; }
.d-hero-in { position: relative; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.d-hero h1 { font: 800 clamp(36px, 6vw, 64px)/1.02 var(--display); letter-spacing: -.04em; }
.d-hero p { font-size: clamp(16px, 2vw, 19px); color: var(--stone); max-width: 62ch; }
.d-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.d-cta .btn { height: 44px; padding: 0 22px; font-size: 15px; }
.d-free { font-size: 13px; color: var(--stone); }
.d-lsec { max-width: 1080px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px); }
.d-lsec h2 { font: 800 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -.03em; margin-bottom: 16px; }
.d-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.d-feats.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.d-feat { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.d-feat svg.i { width: 24px; height: 24px; color: var(--green); margin-bottom: 4px; }
.d-feat b { font-size: 16px; }
.d-feat span { font-size: 14px; color: var(--stone); }
.d-lsign { display: flex; justify-content: center; }
.d-signin .swf-card { position: relative; margin: 0 auto; }
.d-lfoot { display: flex; gap: 16px; justify-content: center; padding: 30px 20px 40px; font-size: 13px; color: var(--stone); }
.d-lfoot a { color: inherit; }

/* ---------------------------------------------------------------- hosting */
.d-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 36px 20px; border: 2px dashed var(--line); border-radius: var(--r-lg); text-align: center; cursor: pointer; transition: background var(--t-quick), border-color var(--t-quick); }
.d-drop:hover, .d-drop.over { border-color: var(--green); background: var(--mint-tint); }
.d-drop svg.i { width: 28px; height: 28px; color: var(--green); }
.d-drop span { font-size: 14px; color: var(--stone); }
.d-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--stone); }
.d-progress { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.d-progress small { font-size: 12px; color: var(--stone); font-variant-numeric: tabular-nums; }
.d-indef i { width: 35%; animation: d-slide 1.2s ease-in-out infinite; }
@keyframes d-slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.d-keyshown { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; border: 2px solid var(--green); }
.d-keyshown code { font-size: 14px; padding: 10px 12px; background: var(--chalk); border-radius: var(--r-sm); overflow-wrap: anywhere; }
.d-limit { margin-bottom: 12px; }
.tabs2 button[aria-selected="true"] { background: var(--chalk); color: var(--graphite); }
