/* Shared layout */
:root {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #24352e;
  background: #f8f9f6;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { display: flex; min-height: 100vh; }
aside {
  width: 260px;
  flex-shrink: 0;
  background: #152922;
  color: #c8d6cc;
  padding: 36px 26px;
  display: flex;
  flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 25px; font-weight: 700; color: #fff; text-decoration: none; }
.brand > span:last-child { font-weight: 400; color: #a1b7a6; }
.mark { background: #d8efab; color: #183122; width: 38px; height: 38px; border-radius: 10px; text-align: center; font-size: 28px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .15em; color: #77847b; }
.workspace { display: flex; flex-direction: column; gap: 10px; margin-top: 60px; padding-bottom: 30px; border-bottom: 1px solid #34483e; }
.workspace strong { color: white; font-size: 18px; }
.workspace > span:last-child { font-size: 12px; }
.history { margin-top: 30px; }
.history p { font-size: 13px; line-height: 1.8; color: #a3b4a8; }
.aside-bottom { margin-top: auto; padding-top: 40px; font-size: 12px; }
.dot { display: inline-block; background: #d8efab; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; }
main { flex: 1; min-width: 0; }
header { height: 100px; padding: 0 50px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e7ebe3; font-size: 13px; color: #68756c; }
.badge { padding: 7px 12px; border: 1px solid #dce3d6; border-radius: 20px; font-size: 11px; }
.welcome { max-width: 860px; padding: 64px 50px; margin: 0 auto; }
h1 { font-size: clamp(36px, 4vw, 54px); font-weight: 550; letter-spacing: -.045em; line-height: 1.14; margin: 22px 0; }
.intro { color: #718076; font-size: 16px; line-height: 1.8; }
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
article { padding: 24px; border: 1px solid #dfe5da; border-radius: 12px; background: #fff; }
article > span { font-size: 10px; letter-spacing: .08em; color: #71846e; }
h2 { font-size: 18px; font-weight: 500; line-height: 1.5; }
article p { font-size: 12px; color: #7a847b; }
.notice { background: #edf1e7; padding: 22px 24px; margin-top: 28px; border-radius: 12px; }
.notice strong { font-size: 14px; font-weight: 600; }
.notice p { font-size: 13px; color: #64715f; line-height: 1.7; margin-bottom: 0; }
footer { margin-top: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 11px; color: #69766c; }
button { border: 0; background: none; text-decoration: underline; color: #375c42; cursor: pointer; padding: 8px; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid #90b261; outline-offset: 4px; }
@media (max-width: 760px) {
  .shell { display: block; }
  aside { width: auto; padding: 20px 24px; }
  .workspace, .history, .aside-bottom { display: none; }
  header { height: 70px; padding: 0 24px; }
  .welcome { padding: 36px 24px; }
  .examples { grid-template-columns: 1fr; }
  .desktop { display: none; }
  h1 { font-size: 40px; }
}

/* Personal entry */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: 100%; max-width: 440px; padding: 36px; border: 1px solid #dfe5da; border-radius: 16px; background: #fff; }
.login-brand { display: flex; align-items: center; gap: 10px; color: #24352e; text-decoration: none; font-weight: 650; font-size: 22px; margin-bottom: 36px; }
.login-card h1 { font-size: 32px; margin: 16px 0; }
.login-card .eyebrow { color: #56655b; font-size: 10px; }
.login-intro, .login-help { color: #56655b; font-size: 14px; line-height: 1.65; }
.login-help { margin: 24px 0 0; font-size: 13px; }
.login-form { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.login-form label { font-size: 14px; font-weight: 600; }
.login-form input { width: 100%; min-height: 46px; border: 1px solid #a7b4a7; border-radius: 8px; padding: 10px 12px; font: inherit; color: #24352e; }
.login-form input[type=password] { margin-bottom: 10px; }
.login-form input[type=submit] { background: #152922; color: #fff; cursor: pointer; border: 0; font-weight: 600; }
.login-form input[type=submit]:disabled { opacity: .65; cursor: wait; }
.login-form input:focus-visible { outline: 2px solid #375c42; outline-offset: 3px; }
.login-error { color: #802e25; background: #fff1ed; padding: 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.logout-button { min-height: 44px; }
.dialog-list { list-style: none; padding: 0; margin: 12px 0 0; }
.dialog-list a { color: #d8efab; text-decoration: none; font-size: 13px; line-height: 1.8; display: block; }
.dialog-title { font-size: 13px; color: #d8efab; margin-top: 8px; }
.thread { max-width: 860px; padding: 32px 50px; margin: 0 auto; }
.messages { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.message { padding: 18px 20px; border: 1px solid #dfe5da; border-radius: 12px; background: #fff; }
.message-user { background: #f4f7ef; }
.message-body { font-size: 15px; line-height: 1.7; margin-top: 8px; }
.message-body code { background: #edf1e7; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.message-note { font-size: 12px; color: #8a4a3a; margin: 8px 0 0; }
.composer { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.composer textarea { width: 100%; min-height: 110px; border: 1px solid #a7b4a7; border-radius: 8px; padding: 12px; font: inherit; resize: vertical; }
.composer input[type=submit] { align-self: flex-start; background: #152922; color: #fff; border: 0; border-radius: 8px; padding: 12px 18px; font-weight: 600; cursor: pointer; }
.request-status { font-size: 12px; color: #68756c; margin-bottom: 12px; }
.request-outcome { display: block; padding: 10px 12px; border-radius: 8px; background: #f8ece8; color: #6a3f34; line-height: 1.5; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.cancel-button { min-height: 44px; color: #802e25; }
@media (max-width: 480px) {
  .login-page { padding: 20px 16px; }
  .login-card { padding: 28px 22px; }
  .login-card h1 { font-size: 29px; }
}
