:root {
  color-scheme: light;
  --ink: #0b1726;
  --body: #30475b;
  --muted: #526b7d;
  --paper: #f4f7fa;
  --surface: #fff;
  --line: #d0dce4;
  --accent: #72e3c4;
  --teal: #126858;
  --navy: #0b1726;
  --mist: #a8b8c8;
  font: 16px/1.55 Inter, 'Segoe UI', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .58; cursor: wait; }
:focus-visible { outline: 3px solid #1b8d77; outline-offset: 3px; }
[hidden] { display: none !important; }
form { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.14; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.9rem); letter-spacing: -.042em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -.035em; }
h3 { font-size: 1.23rem; letter-spacing: -.016em; }
ul { margin: 0; }
.shell { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px; background: var(--surface); }
.skip:focus { transform: none; }
.masthead { background: var(--navy); color: #f4f8fa; border-bottom: 1px solid #263a48; }
.masthead-inner { min-height: 76px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.masthead nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; }
.masthead a { color: inherit; text-decoration: none; }
.masthead :focus-visible, .hero :focus-visible { outline-color: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.23rem; font-weight: 750; letter-spacing: -.035em; }
.brand img { border-radius: 9px; }
.masthead .nav-login, .nav-button { min-height: 44px; padding: 7px 13px; border-radius: 8px; font-weight: 650; }
.masthead .nav-login { display: inline-flex; align-items: center; border: 1px solid #627682; }
.masthead a:hover, .masthead button:hover { color: var(--accent); }
.nav-button { background: transparent; border: 0; color: inherit; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 9px 19px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; text-decoration: none; }
.button.accent { background: var(--accent); color: #0b2926; min-width: 129px; }
.button.accent:hover { background: #98f2dc; }
.button.primary { background: var(--teal); color: #fff; }
.button.primary:hover { background: #0b5044; }
.button.secondary { background: #fff; color: var(--teal); border-color: #b8cbce; }
.button.secondary:hover { background: #edf9f6; }
.hero { background: var(--navy); color: #f4f8fa; overflow: hidden; }
.hero-layout { min-height: 594px; display: grid; align-items: center; position: relative; isolation: isolate; padding-block: 68px 97px; }
.hero-copy { max-width: 690px; position: relative; z-index: 2; }
.hero h1 { font-weight: 760; font-size: clamp(2.55rem, 5.1vw, 4.25rem); line-height: 1.045; text-wrap: pretty; }
.hero p { max-width: 470px; margin: 24px 0 30px; color: #bdcbd8; font-size: clamp(1rem, 1.5vw, 1.16rem); }
.schematic { position: absolute; z-index: 1; inset: 0 -75px 0 44%; display: grid; align-items: center; pointer-events: none; }
.schematic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy), transparent 29%); }
.schematic canvas { width: 100%; height: auto; display: block; }
.motion-toggle { position: absolute; right: 0; bottom: 20px; z-index: 3; color: #b8cacf; border: 1px solid #465e69; border-radius: 8px; min-height: 44px; background: var(--navy); padding: 6px 12px; font-size: .88rem; }
.motion-icon { display: inline-block; min-width: 18px; color: var(--accent); }
.overview { padding-block: 51px 68px; }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 30px; }
.overview article { border-top: 1px solid #bacbd8; padding-top: 21px; }
.overview article p { color: var(--body); margin-top: 8px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 23px; color: var(--body); font-weight: 650; }
.site-footer span { margin-left: 16px; color: var(--muted); font-weight: 400; }
.workspace { padding-block: 52px 66px; }
.page-heading { display: flex; gap: 16px; justify-content: space-between; align-items: start; margin-bottom: 32px; }
.page-heading p { margin-top: 8px; color: var(--muted); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 280px); gap: 28px; align-items: start; }
.account-main { display: grid; gap: 44px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel, .empty, .record-list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.panel, .empty { padding: 23px; }
.empty, .panel p, .detail-list span { color: var(--body); }
.subscription h2 { margin-bottom: 12px; font-size: 1.28rem; }
.subscription strong { color: var(--teal); }
.subscription p { margin-top: 8px; }
.record-list { padding: 0; list-style: none; }
.record-list li + li { border-top: 1px solid var(--line); }
.record-list a { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; color: var(--ink); text-decoration: none; }
.record-list a:hover strong { text-decoration: underline; }
.record-list span { color: var(--muted); }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.tools-grid > .empty { grid-column: 1 / -1; }
.tool { display: flex; flex-direction: column; gap: 9px; }
.tool-title { display: flex; gap: 12px; justify-content: space-between; align-items: start; }
.tool-title img { flex: 0 0 72px; object-fit: cover; object-position: 88% center; border-radius: 7px; }
.tool-title h3 { margin-top: 5px; text-wrap: pretty; }
.tool .category, .tool-bottom span { color: var(--muted); font-size: .87rem; }
.tool-bottom { margin-top: auto; padding-top: 7px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tool-bottom .button { min-height: 44px; }
.auth-layout { min-height: 540px; display: grid; place-items: center; padding-block: 42px; }
.auth-panel { width: min(100%, 484px); padding: clamp(20px, 6vw, 42px); }
.auth-panel h1 { font-size: clamp(1.95rem, 5vw, 2.65rem); }
.auth-panel p { margin-top: 10px; }
.auth-panel form, .auth-panel > .button { margin-top: 18px; }
.stack { display: grid; gap: 15px; align-items: start; }
.stack button { justify-self: start; }
.stack label { display: grid; gap: 4px; font-weight: 650; }
.stack input:not([type=hidden]), .stack textarea, .stack select { width: 100%; padding: 9px 12px; min-height: 44px; border: 1px solid #78909c; border-radius: 7px; color: var(--ink); background: var(--surface); }
.stack input[readonly] { background: var(--paper); }
.stack .helptext { color: var(--muted); font-size: .89rem; }
.stack .errorlist, .feedback[data-error] { color: #942e32; }
.feedback:empty { display: none; }
.object-workspace { max-width: 900px; }
.back-link { display: inline-block; margin-bottom: 14px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.object-section { margin-top: 34px; }
.object-section h2 { margin-bottom: 14px; }
.detail-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.detail-list li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-list a { overflow-wrap: anywhere; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.attachment-form { margin-top: 14px; }
@media (max-width: 940px) {
  .hero-copy { max-width: 575px; }
  .hero-layout { min-height: 555px; }
  .schematic { left: 42%; right: -110px; opacity: .66; }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .subscription { grid-row: 1; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 36px); }
  .masthead-inner { min-height: 66px; }
  .brand { font-size: 1.09rem; gap: 8px; }
  .brand img { width: 33px; height: 33px; }
  .masthead .nav-about { display: none; }
  .masthead nav { gap: 5px 12px; font-size: .9rem; }
  .hero-layout { min-height: auto; padding-block: 42px 270px; align-items: start; }
  .hero h1 { font-size: clamp(2rem, 8.9vw, 3.4rem); }
  .hero p { margin: 19px 0 23px; }
  .schematic { inset: auto 0 29px; height: 235px; opacity: .93; }
  .schematic::after { background: linear-gradient(180deg, var(--navy), transparent 26%); }
  .schematic canvas { max-height: 235px; object-fit: contain; }
  .motion-toggle { bottom: 12px; }
  .overview { padding-block: 37px 42px; }
  .overview-grid, .tools-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 21px; }
  .overview article { padding-top: 14px; }
  .workspace { padding-block: 33px 44px; }
  .site-footer span { display: block; margin: 4px 0 0; }
}
@media (max-width: 365px) { .field-grid { grid-template-columns: 1fr; } }
