body[data-entry-design] {
  --concept-edge: #3b272d;
  --concept-panel: #161518;
  --concept-bright: #eb6a73;
  background: #0c0b0e;
  padding: clamp(16px,3vw,44px);
  overflow-x: clip;
}
[data-theme="light"] body[data-entry-design] {
  --concept-edge: #d7bec2;
  --concept-panel: #fbf7f5;
  --concept-bright: #992b43;
  background: #f1ebe8;
}
.entry-stage {
  display: grid;
  align-items: stretch;
  width: min(100%, 73rem);
  margin: auto;
  min-width: 0;
}
.entry-stage .entry-card { width: 100%; max-width: none; min-width: 0; }
.entry-stage .entry-card h1 { font-size: clamp(1.75rem,4vw,2.45rem); }
.entry-art { min-width: 0; position: relative; overflow: clip; isolation: isolate; }
.entry-art canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }

[data-entry-chart] .entry-stage .entry-card h1 { font-size: clamp(1.7rem, 3vw, 2.21rem); }
[data-entry-chart] .entry-art {
  --chart-field: #151217;
  --chart-line: #392a33;
  --chart-soft: #b7a9b3;
  --chart-ob: #ad667c;
  --chart-fvg: #a6a1b5;
  --chart-sweep: #f191a1;
  display: grid;
  align-content: center;
  gap: 17px;
  padding: clamp(17px, 2.65vw, 40px);
  background: radial-gradient(ellipse at 35% 12%, #70293b2e, transparent 70%), var(--chart-field);
}
[data-theme="light"] [data-entry-chart] .entry-art {
  --chart-field: #f8edf0;
  --chart-line: #d7c1ca;
  --chart-soft: #63535f;
  --chart-ob: #a94c67;
  --chart-fvg: #625775;
  --chart-sweep: #9c2f47;
}
.entry-plot { position: relative; min-width: 0; letter-spacing: .015em; }
.entry-plot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--chart-line);
}
.entry-plot-head strong { display: block; color: var(--text); font-size: clamp(1.1rem, 2vw, 1.55rem); line-height: 1.18; letter-spacing: -.025em; }
.entry-plot-head strong span { color: var(--chart-soft); font-weight: 550; }
.entry-plot-head small, .entry-plot-head time, .entry-plot-key {
  color: var(--chart-soft);
  font-size: .71rem;
}
.entry-plot-head time { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0; }
.entry-candles { position: relative; height: clamp(235px, 27vw, 398px); }
.entry-plot-key {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  padding-top: 10px;
  border-top: 1px solid var(--chart-line);
}
.entry-plot-key span { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.entry-plot-key i { width: 8px; height: 8px; background: var(--chart-ob); border-radius: 1.5px; }
.entry-plot-key span:nth-child(2) i { background: var(--chart-fvg); }
.entry-plot-key span:nth-child(3) i { background: transparent; border: 1px solid var(--chart-sweep); border-radius: 50%; }
.entry-plot-key .entry-plot-clock { margin-inline-start: auto; }

[data-entry-unified] .entry-stage {
  grid-template-columns: minmax(0, 1.62fr) minmax(23rem, 27rem);
  border: 1px solid var(--concept-edge);
  border-radius: 25px;
  overflow: clip;
  box-shadow: 0 30px 88px #0006;
}
[data-entry-unified] .entry-art {
  border-inline-end: 1px solid var(--concept-edge);
  background: radial-gradient(ellipse at 60% 30%, #97374b37, transparent 70%), var(--chart-field);
}
[data-entry-unified] .entry-card {
  border: 0;
  border-radius: 0;
  padding: clamp(24px, 3vw, 44px);
  background: var(--concept-panel);
  box-shadow: none;
}
[data-entry-unified] .entry-modes button[aria-pressed="true"] { box-shadow: inset 0 -2px var(--concept-bright); }

[data-entry-design="graphite"] .entry-stage {
  --concept-edge: #39373c;
  background: #29272d;
  padding: 1px;
  border-radius: 22px;
  box-shadow: 0 1px 0 #ffffff0f inset, 0 30px 85px #0007;
}
[data-entry-design="graphite"] .entry-art {
  --chart-field: #131317;
  --chart-line: #343138;
  background: linear-gradient(158deg,#232127,var(--chart-field) 70%);
  border-radius: 20px 0 0 20px;
}
[data-entry-design="graphite"] .entry-card {
  background: linear-gradient(155deg,#1c1b20,#151419);
  border-radius: 0 20px 20px 0;
}
[data-theme="light"] [data-entry-design="graphite"] .entry-stage { --concept-edge: #d4cad0; background: #e1d8dc; }
[data-theme="light"] [data-entry-design="graphite"] .entry-art { background: linear-gradient(158deg,#f5ecee,#fcf8fb 70%); }
[data-theme="light"] [data-entry-design="graphite"] .entry-card { background: var(--concept-panel); }

@media (max-width: 780px) {
  [data-entry-design] .entry-stage { display: block; }
}

@media (max-width: 780px) {
  body[data-entry-design="graphite"] {
    --mobile-paper: #101014;
    --mobile-card: #17171ce4;
    --mobile-border: #49434c;
    --mobile-shadow: #0007;
    isolation: isolate;
    position: relative;
    overflow: clip;
    padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
      max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: var(--mobile-paper);
  }
  [data-theme="light"] body[data-entry-design="graphite"] {
    --mobile-paper: #f1ecee;
    --mobile-card: #fffafbdf;
    --mobile-border: #d6c8cf;
    --mobile-shadow: #41263721;
  }
  [data-entry-design="graphite"] .entry-stage {
    width: min(100%, 20.25rem);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  [data-entry-design="graphite"] .entry-art {
    position: absolute;
    inset: 0;
    z-index: -1;
    align-items: center;
    justify-items: center;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(ellipse at 18% 9%, #6c465022, transparent 54%),
      radial-gradient(ellipse at 91% 84%, #8f2b4540, transparent 65%);
    overflow: clip;
    pointer-events: none;
  }
  [data-entry-design="graphite"] .entry-plot {
    width: 100%;
    transform: translateY(-3.5%);
    filter: blur(1.35px);
    opacity: .74;
    mask-image: linear-gradient(black 91%, transparent);
  }
  [data-entry-design="graphite"] .entry-candles { height: clamp(520px, 105svh, 940px); }
  [data-entry-design="graphite"] .entry-plot-head,
  [data-entry-design="graphite"] .entry-plot-key,
  [data-entry-design="graphite"][data-entry-mobile-art="plain"] .entry-art { display: none; }
  [data-entry-design="graphite"] .entry-card {
    padding: 13px clamp(14px, 4vw, 19px);
    border: 1px solid var(--mobile-border);
    border-radius: 18px;
    background: var(--mobile-card);
    box-shadow: 0 16px 42px var(--mobile-shadow);
    backdrop-filter: blur(4px);
    line-height: 1.44;
  }
  [data-entry-design="graphite"] .entry-header { margin-bottom: .45rem; }
  [data-entry-design="graphite"] .entry-card h1 { margin-bottom: .3rem; }
  [data-entry-design="graphite"] .entry-copy { font-size: .88rem; }
  [data-entry-design="graphite"] .entry-actions { margin-top: .65rem; gap: .4rem; }
  [data-entry-design="graphite"] .entry-actions form { gap: .4rem; }
  [data-entry-design="graphite"] .entry-actions label,
  [data-entry-design="graphite"] .entry-password { gap: .25rem; }
  [data-entry-design="graphite"] .entry-actions label.focus-auth-consent { gap: .55rem; }
  [data-entry-design="graphite"] .entry-actions > button,
  [data-entry-design="graphite"] .entry-actions .focus-auth-primary { min-height: 46px; }
  [data-entry-design="graphite"] .entry-actions input:not([type="checkbox"]) { font-size: 1rem; }
}
