:root {
  color-scheme: light;
  --paper: #f5f4ed;
  --surface: #fffef9;
  --ink: #233e35;
  --muted: #59675f;
  --line: #d8ded2;
  --green: #214d40;
  --mint: #e4ebdd;
  --accent: #b6c57d;
  --danger: #9d3532;
  --radius: 20px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 9px;
  transition:
    background 0.16s,
    color 0.16s;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button:not(:disabled):active {
  transform: translateY(1px);
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #738b3f;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1232px;
  padding: 0 44px;
  margin: auto;
}
.masthead {
  min-height: 110px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  font-size: 25px;
  letter-spacing: -1px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.3px;
  margin-top: 3px;
  color: var(--muted);
}
.brand-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 30px;
  letter-spacing: -3px;
  width: 49px;
  height: 49px;
  border-radius: 14px;
}
.brand-symbol span {
  font-size: 16px;
  color: var(--accent);
  align-self: flex-end;
  margin: 0 0 9px 3px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.connection {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.connection:before {
  content: '';
  width: 7px;
  height: 7px;
  background: #78847c;
  border-radius: 50%;
}
.connection[data-state='online']:before {
  background: #3f7450;
}
.connection[data-state='offline']:before {
  background: #b77938;
}
.quiet {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 14px;
  font-size: 13px;
}
.quiet:hover:not(:disabled) {
  background: var(--mint);
}
.intro {
  padding: 54px 0 42px;
}
.eyebrow,
.section-index {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
  color: var(--muted);
}
.intro h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.12;
  margin: 15px 0;
}
.intro h1 span {
  color: #889950;
}
.intro > p:last-child {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
}
.workspace-heading h2 {
  font-size: 23px;
  font-weight: 550;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.refresh-area {
  display: flex;
  align-items: center;
  gap: 14px;
}
.refresh-area span {
  font-size: 12px;
  color: var(--muted);
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  gap: 36px;
}
.terminal {
  background: var(--green);
  color: #ecf0e6;
  padding: 23px 24px 18px;
  border-radius: var(--radius);
  box-shadow:
    0 13px 25px -23px #152d1c,
    inset 0 0 0 1px #ffffff1c;
}
.terminal-top,
.terminal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 1.6px;
}
.terminal-top {
  margin-bottom: 24px;
}
.device-badge {
  font-size: 9px;
  white-space: nowrap;
  border: 1px solid #90a78b;
  padding: 5px 8px;
  border-radius: 20px;
  letter-spacing: 0.7px;
}
.lcd-bezel {
  background: #18382d;
  border: 1px solid #52705c;
  border-radius: 9px;
  padding: 15px;
}
.lcd {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 27px 15px;
  color: #203820;
  min-height: 142px;
  border-radius: 4px;
  border: 2px solid #728a56;
  background-color: #c5d69b;
  background-image: radial-gradient(#263e1c17 1px, transparent 1px);
  background-size: 4px 4px;
  box-shadow: inset 0 2px 10px #233e3540;
  font-family: Consolas, 'Courier New', monospace;
  font-weight: bold;
  font-size: clamp(14px, 1.9vw, 25px);
  letter-spacing: 2px;
  line-height: 1.2;
}
.lcd span {
  white-space: pre;
  display: block;
  min-height: 1.2em;
}
.terminal-bottom {
  margin-top: 20px;
  color: #bfcdbd;
  letter-spacing: 1px;
  font-size: 10px;
}
.terminal-led {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #d1dc9d;
}
.preview-note {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
  margin: 13px 0 28px;
}
.health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ecf0e54a;
}
.health-grid > div {
  padding: 19px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.health-grid > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.health-grid > div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}
.health-grid span {
  font-size: 12px;
  color: var(--muted);
}
.health-grid strong {
  font-size: 12px;
  font-weight: 600;
}
.help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.terminal-column > .help {
  margin: 12px 0 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.section-heading h3 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 0;
  font-weight: 600;
}
.description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 22px;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 0 8px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
output {
  font-size: 11px;
  color: var(--muted);
  font-family: Consolas, monospace;
}
input,
select {
  border: 1px solid #bfc9bd;
  border-radius: 8px;
  background: #fcfcf7;
  color: var(--ink);
  min-height: 45px;
}
input {
  width: 100%;
  padding: 11px 12px;
  font-size: 15px;
}
#line1,
#line2 {
  font-family: Consolas, 'Courier New', monospace;
  letter-spacing: 1px;
}
select {
  padding: 8px 30px 8px 11px;
  margin-top: 7px;
  font-size: 13px;
}
input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--green);
  color: white;
  padding: 12px 18px;
  font-weight: 550;
  font-size: 14px;
}
.primary:hover:not(:disabled) {
  background: #32644f;
}
.send-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.send-row .primary {
  min-height: 47px;
}
.command-feedback {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 20px 0 0;
  min-height: 34px;
}
.command-feedback[data-state='error'],
.error {
  color: var(--danger);
}
.command-feedback[data-state='success'] {
  color: #34623e;
}
.pages-card {
  margin-top: 20px;
}
.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.page-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 13px 10px;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  min-height: 66px;
}
.page-button span {
  display: block;
  font-family: Consolas, monospace;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 3px;
}
.page-button:hover:not(:disabled) {
  background: var(--mint);
  border-color: #a5b591;
}
.page-button[aria-pressed='true'] {
  background: var(--mint);
  border-color: var(--green);
}
.menu-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.menu-actions button {
  flex: 1;
}
.activity {
  margin-top: 28px;
}
.activity .section-heading > span {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--muted);
}
.event-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.event-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
}
.event-list time {
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 11px;
  white-space: nowrap;
}
.future-note {
  display: flex;
  gap: 12px;
  padding: 25px 4px;
}
.future-dot {
  width: 9px;
  height: 9px;
  background: #a6b580;
  border-radius: 100%;
  margin-top: 5px;
  flex-shrink: 0;
}
.future-note h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.future-note p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 7px 0;
}
.banner {
  border: 1px solid #c79a6b;
  background: #fcf0dd;
  color: #674326;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 10px;
  margin-bottom: 20px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 15px 0 35px;
}
.login-copy h2 {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -1px;
}
.login-copy p {
  max-width: 340px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.login-card h3 {
  font-size: 22px;
  margin: 0 0 25px;
}
.login-card label {
  margin: 18px 0 9px;
}
.login-card .primary {
  width: 100%;
  margin-top: 23px;
}
.login-card .error {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 0;
}
.desk-sketch {
  margin: 35px 0;
  transform: rotate(-3deg);
  text-align: center;
  max-width: 280px;
}
.sketch-lcd {
  display: block;
  border: 2px solid #73866a;
  border-radius: 16px 13px 20px 11px;
  padding: 22px;
  background: #e9edda;
  font-family: Consolas, monospace;
  line-height: 1.8;
  letter-spacing: 2px;
  font-size: 19px;
  box-shadow: 7px 7px 0 #cfd8bc;
}
.sketch-caption {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  display: block;
  margin-top: 17px;
  color: var(--muted);
}
footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
}
footer span span {
  margin: 0 10px;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 5;
  background: var(--green);
  color: white;
  padding: 12px;
  border-radius: 5px;
}
.skip-link:focus {
  top: 12px;
}
@media (min-width: 1200px) {
  .lcd {
    font-size: 25px;
  }
}
@media (max-width: 850px) {
  .shell {
    padding: 0 25px;
  }
  .workspace-grid {
    gap: 22px;
  }
  .card {
    padding: 21px;
  }
  .terminal {
    padding: 20px 17px;
  }
  .terminal-top {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .lcd-bezel {
    padding: 10px;
  }
  .lcd {
    padding: 24px 10px;
    font-size: 17px;
    letter-spacing: 1px;
  }
  .health-grid > div {
    padding: 15px 12px;
  }
  .send-row {
    flex-wrap: wrap;
  }
  .send-row .primary {
    flex: 1;
  }
  .login-layout {
    gap: 28px;
  }
  .login-copy h2 {
    font-size: 30px;
  }
}
@media (max-width: 650px) {
  .shell {
    padding: 0 20px;
  }
  .masthead {
    min-height: 88px;
    align-items: flex-start;
    padding: 20px 0;
    gap: 12px;
  }
  .brand {
    font-size: 22px;
  }
  .brand-symbol {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }
  .brand small {
    font-size: 8px;
  }
  .header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
  .header-actions .quiet {
    padding: 5px 8px;
    min-height: 44px;
    font-size: 11px;
  }
  .connection {
    font-size: 11px;
  }
  .intro {
    padding: 34px 0 32px;
  }
  .intro h1 {
    letter-spacing: -1.5px;
    font-size: 38px;
  }
  .intro > p:last-child {
    font-size: 13px;
    max-width: 290px;
  }
  .workspace-grid,
  .login-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .workspace-heading {
    align-items: flex-end;
  }
  .workspace-heading h2 {
    font-size: 21px;
  }
  .refresh-area {
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
  }
  .refresh-area span {
    font-size: 10px;
  }
  .terminal {
    padding: 24px;
  }
  .terminal-top {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .lcd {
    font-size: clamp(16px, 5vw, 25px);
    letter-spacing: 1px;
    min-height: 136px;
    padding: 22px 12px;
  }
  .preview-note {
    margin-bottom: 20px;
    font-size: 10px;
  }
  .activity {
    margin-top: 22px;
  }
  .controls-column {
    display: flex;
    flex-direction: column;
  }
  .pages-card {
    margin-top: 18px;
  }
  .card {
    padding: 22px;
  }
  .section-heading h3 {
    font-size: 17px;
  }
  .page-grid {
    gap: 7px;
  }
  .page-button {
    font-size: 11px;
  }
  .health-grid > div {
    padding: 16px;
  }
  .health-grid span,
  .health-grid strong {
    font-size: 12px;
  }
  .login-copy h2 {
    font-size: 29px;
    margin: 15px 0;
  }
  .desk-sketch {
    display: none;
  }
  .login-layout {
    padding-top: 0;
  }
  .login-copy p {
    margin-bottom: 0;
  }
  .login-card input {
    font-size: 13px;
  }
  .send-row .primary {
    font-size: 13px;
    padding: 12px;
    gap: 10px;
  }
  .send-row {
    gap: 10px;
  }
  footer {
    font-size: 10px;
    margin-top: 25px;
    padding-bottom: 24px;
  }
  .future-note {
    padding-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.login-link {
  text-decoration: none;
  min-height: 48px;
  margin: 24px 0 12px;
}
.login-card > .quiet {
  margin: 4px 8px 0 0;
}
.login-link[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}
