:root {
  font: 16px/1.55 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #213a31;
  background: #f5f6f1;
  --green: #185943;
  --line: #d7e0d6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.3; }
h2 { font-size: 21px; line-height: 1.4; }
.mast { background: #fafbf8; border-bottom: 1px solid var(--line); }
.bar, main { width: min(1080px, calc(100% - 48px)); margin: auto; }
.bar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; font-weight: 750; font-size: 25px; letter-spacing: .06em; }
.brand span { font-weight: 500; font-size: 14px; letter-spacing: .03em; color: #50695d; }
#identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
#signed-email { overflow-wrap: anywhere; font-size: 14px; }
main { padding: 40px 0 64px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); }
.login-card { max-width: 436px; margin: clamp(12px, 8vh, 76px) auto 0; }
.login-card h1 { font-size: 27px; }
.login-card > p { color: #576d60; margin: 12px 0 22px; }
.login-card form > button { width: 100%; }
.workbench { margin-top: 24px; display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.55fr); gap: 20px; align-items: start; }
h2 + label, .composer form { margin-top: 20px; }
form { margin: 0; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 620; margin-bottom: 16px; }
textarea, input, select, button { font: inherit; color: inherit; }
textarea, input, select { display: block; width: 100%; min-height: 44px; border: 1px solid #9daf9f; border-radius: 7px; background: #fff; padding: 9px 11px; font-weight: 400; font-size: 16px; line-height: 1.5; }
textarea { resize: vertical; }
input[readonly] { background: #f4f6f1; }
button { min-height: 42px; border-radius: 7px; border: 1px solid #a1b5a6; background: #f6f9f4; padding: 8px 16px; font-weight: 600; cursor: pointer; }
button:hover { background: #e8f1e8; }
button.primary { color: #fff; background: var(--green); border-color: var(--green); }
button.primary:hover { background: #104b37; }
button.subtle { background: transparent; white-space: nowrap; }
button:disabled { opacity: .58; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #618c68; outline-offset: 3px; }
.status { overflow-wrap: anywhere; font-size: 14px; color: #335f47; }
.status:not(:empty), .actions { margin-top: 12px; }
.status.error { color: #913f26; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions:not(:has(button:not([hidden]))) { display: none; }
@media (max-width: 700px) {
  .bar, main { width: calc(100% - 28px); }
  .bar { min-height: 60px; gap: 12px; }
  .brand { font-size: 21px; }
  #identity { gap: 6px; }
  .workbench { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
  main { padding: 24px 0 40px; }
}
