:root {
  --ink: #17231f;
  --muted: #66716d;
  --paper: #f3f2ed;
  --card: #fffefa;
  --line: #dfe1da;
  --forest: #0f5b42;
  --forest-dark: #0b4533;
  --mint: #dcebe3;
  --lime: #d9ee8b;
  --amber: #df9b3c;
  --red: #b74d45;
  --nav: #101b18;
  --shadow: 0 14px 50px rgba(20, 35, 29, .08);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.login-view {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  color: #f8f8f2;
  background:
    radial-gradient(circle at 10% 90%, rgba(78, 151, 111, .3), transparent 35rem),
    var(--nav);
}
.login-view::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .09;
  background-image: linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
  pointer-events: none;
}
.login-card {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 48px clamp(32px, 7vw, 104px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 820;
  letter-spacing: -.025em;
}
.brand-light { color: white; }
.brand-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #0b3325;
  background: var(--lime);
  font-size: 11px;
  letter-spacing: .1em;
  box-shadow: 0 8px 24px rgba(217, 238, 139, .12);
}
.login-copy { margin: auto 0 48px; }
.eyebrow {
  color: var(--forest);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .17em;
}
.login-copy .eyebrow { color: var(--lime); }
.login-copy h1 {
  margin: 20px 0 22px;
  max-width: 780px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.login-copy h1 em { color: var(--lime); font-style: normal; }
.login-copy p { max-width: 530px; color: #aebbb5; font-size: 17px; line-height: 1.8; }
.login-form { max-width: 580px; }
.login-form label { display: block; margin-bottom: 9px; color: #ccd5d0; font-size: 12px; font-weight: 700; }
.login-row { display: flex; gap: 9px; }
input, textarea, select {
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(15, 91, 66, .12); }
.login-row input {
  min-width: 0;
  flex: 1;
  padding: 14px 15px;
  border-color: rgba(255,255,255,.15);
  color: white;
  background: rgba(255,255,255,.08);
}
.login-row input::placeholder { color: #7f9189; }
.login-row button, .primary-button {
  border: 0;
  border-radius: 9px;
  padding: 13px 20px;
  color: white;
  background: var(--forest);
  font-weight: 760;
}
.login-row button { color: #0c291f; background: var(--lime); }
.login-row button:disabled, .primary-button:disabled { opacity: .55; cursor: wait; }
.form-message { min-height: 19px; margin: 9px 0 0; color: #d8736b; font-size: 12px; }
.login-aside {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  border-left: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 80% 22%, rgba(217,238,139,.16), transparent 18rem),
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
}
.aside-card, .aside-progress {
  position: absolute;
  width: min(410px, calc(100% - 80px));
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 17px;
  background: rgba(24, 39, 34, .75);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0,0,0,.2);
}
.aside-card span, .aside-progress span { color: #7f938a; font-size: 11px; letter-spacing: .08em; }
.aside-card strong { display: block; margin-top: 12px; font-family: Georgia, "Songti SC", serif; font-size: 23px; font-weight: 500; line-height: 1.45; }
.aside-card-one { top: 20%; left: 12%; transform: rotate(-2deg); }
.aside-card-two { top: 45%; right: 7%; transform: rotate(2.4deg); }
.aside-progress { left: 14%; bottom: 14%; }
.aside-progress div { display: flex; justify-content: space-between; }
.aside-progress b { color: var(--lime); }
.aside-progress > i { display: block; height: 7px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.aside-progress > i > i { display: block; height: 100%; border-radius: inherit; background: var(--lime); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 20px;
  color: #d7dfda;
  background: var(--nav);
}
.sidebar .brand { margin: 0 10px 28px; color: white; }
.new-button {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  color: #10231c;
  background: var(--lime);
  font-weight: 800;
  text-align: left;
}
.new-button span { margin-right: 8px; font-size: 20px; font-weight: 400; vertical-align: -1px; }
.main-nav { margin-top: 27px; display: grid; gap: 5px; }
.nav-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  color: #97a79f;
  background: transparent;
  font-size: 13px;
  text-align: left;
}
.nav-item.active, .nav-item:hover { color: white; background: rgba(255,255,255,.07); }
.nav-item b {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 99px;
  color: #a9bbb1;
  background: rgba(255,255,255,.08);
  font-size: 10px;
  text-align: center;
}
.date-nav { min-height: 0; margin-top: 30px; overflow: hidden; }
.nav-label { margin: 0 11px 10px; color: #687b72; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.date-list { max-height: 43vh; overflow: auto; display: grid; gap: 5px; padding-right: 3px; }
.date-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border: 0;
  border-radius: 7px;
  color: #82958b;
  background: transparent;
  font-size: 12px;
}
.date-button:hover, .date-button.active { color: white; background: rgba(255,255,255,.06); }
.date-button b { font-size: 10px; }
.date-all { position: sticky; z-index: 2; top: 0; background: var(--nav); }
.date-tree { display: grid; gap: 3px; }
.date-year, .date-month { color: #82958b; }
.date-year summary, .date-month summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 9px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}
.date-year summary::-webkit-details-marker, .date-month summary::-webkit-details-marker { display: none; }
.date-year summary::before, .date-month summary::before {
  content: "›";
  width: 14px;
  color: #64786e;
  font-size: 17px;
  line-height: 1;
  transform: rotate(0);
  transition: transform .15s ease;
}
.date-year[open] > summary::before, .date-month[open] > summary::before { transform: rotate(90deg); }
.date-year summary span, .date-month summary span { margin-right: auto; }
.date-year summary b, .date-month summary b {
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 99px;
  color: #82958b;
  background: rgba(255,255,255,.055);
  font-size: 9px;
  text-align: center;
}
.date-year > summary { color: #b4c1ba; font-weight: 750; }
.date-year > summary:hover, .date-month > summary:hover { color: white; background: rgba(255,255,255,.045); }
.date-year-children { margin-left: 9px; padding-left: 7px; border-left: 1px solid rgba(255,255,255,.08); }
.date-month-children { margin-left: 15px; display: grid; gap: 1px; }
.date-day { padding: 7px 9px; font-size: 11px; }
.date-empty { padding: 10px 11px; color: #687b72; font-size: 11px; }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer button { width: 100%; padding: 8px; border: 0; color: #7f9189; background: transparent; font-size: 12px; text-align: left; }

.main-content { min-width: 0; padding: 0 clamp(24px, 4vw, 64px) 80px; }
.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.search-wrap {
  width: min(560px, 65%);
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8e9893;
}
.search-wrap input { width: 100%; padding: 10px 4px; border: 0; background: transparent; box-shadow: none; }
.ai-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 700;
}
.ai-status span { width: 7px; height: 7px; border-radius: 50%; background: #a5afa9; }
.ai-status.online span { background: #40a876; box-shadow: 0 0 0 3px rgba(64,168,118,.13); }
.mobile-menu { display: none; }
.content-view { max-width: 1180px; margin: 0 auto; padding-top: 46px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-heading h2 {
  margin: 10px 0 7px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(38px, 5vw, 57px);
  font-weight: 500;
  letter-spacing: -.035em;
}
.page-heading p { margin: 0; color: var(--muted); }
.heading-new {
  margin-bottom: 4px;
  padding: 11px 15px;
  border: 1px solid var(--forest);
  border-radius: 9px;
  color: var(--forest);
  background: transparent;
  font-weight: 750;
}
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 32px 0 46px; }
.stats-row article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.52);
}
.stats-row span { color: var(--muted); font-size: 11px; }
.stats-row strong { display: block; margin-top: 9px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.idea-groups { display: grid; gap: 38px; }
.date-group-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.date-group-header h3 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 25px; font-weight: 500; }
.date-group-header span { color: var(--muted); font-size: 11px; }
.idea-list { display: grid; gap: 11px; }
.idea-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  box-shadow: 0 2px 12px rgba(20,35,29,.025);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.idea-card:hover { transform: translateY(-2px); border-color: #c7d1ca; box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 4px 7px; border-radius: 6px; color: var(--forest); background: var(--mint); font-size: 10px; font-weight: 800; }
.pill.hold { color: #8c5d18; background: #f5e7c9; }
.pill.reject { color: #98433d; background: #f4dfdb; }
.pill.neutral { color: #5f6864; background: #eeefeb; }
.card-date { color: var(--muted); font-size: 11px; }
.idea-card h4 { margin: 13px 0 8px; font-size: 20px; letter-spacing: -.02em; }
.idea-card .summary { max-width: 850px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.card-decision {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--forest);
  border-radius: 0 8px 8px 0;
  color: #31413a;
  background: #f0f5f1;
  font-size: 12px;
}
.card-bottom { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 24px; margin-top: 17px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.progress-meta b { color: var(--forest); }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e6e8e2; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest), #4a9a76); }
.next-action { max-width: 380px; color: var(--muted); font-size: 11px; text-align: right; }
.next-action strong { color: var(--ink); }
.empty-state {
  padding: 70px 24px;
  border: 1px dashed #cfd4ce;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}
.empty-state strong { display: block; margin-bottom: 8px; color: var(--ink); font-family: Georgia, "Songti SC", serif; font-size: 26px; font-weight: 500; }

.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.back-button { padding: 5px 0; border: 0; color: var(--forest); background: transparent; font-weight: 750; }
.detail-title-wrap { flex: 1; }
.detail-title-wrap h2 { margin: 10px 0 12px; font-family: Georgia, "Songti SC", serif; font-size: clamp(36px, 5vw, 56px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.detail-actions { display: flex; gap: 8px; padding-top: 30px; }
.secondary-button, .danger-button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-weight: 700;
}
.danger-button { color: var(--red); }
.detail-progress {
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: 13px;
  color: white;
  background: var(--nav);
}
.detail-progress-top { display: flex; justify-content: space-between; margin-bottom: 12px; }
.detail-progress-top span { color: #9dafa6; font-size: 11px; }
.detail-progress-top strong { color: var(--lime); font-size: 20px; }
.detail-progress .progress-track { background: rgba(255,255,255,.11); }
.detail-progress .progress-fill { background: var(--lime); }
.stage-labels { display: flex; justify-content: space-between; margin-top: 12px; color: #81928a; font-size: 9px; }
.stage-labels .current { color: var(--lime); }
.judgment-banner {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid #cddf9c;
  border-radius: 13px;
  background: linear-gradient(120deg, #f0f5dc, #f8faee);
}
.judgment-banner .eyebrow { color: #627528; }
.judgment-banner p { margin: 9px 0 0; white-space: pre-wrap; line-height: 1.65; }
.muted { color: var(--muted) !important; font-size: 12px; }
.edit-panel { margin: -8px 0 22px; }
.text-edit-button { padding: 6px 0; border: 0; color: var(--forest); background: transparent; font-size: 11px; font-weight: 750; }
.edit-panel form { margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.55); }
.edit-panel textarea { min-height: 78px; padding: 10px; resize: vertical; }
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.section-card { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.section-card.full { grid-column: 1 / -1; }
.section-card h3 { margin: 0 0 13px; font-family: Georgia, "Songti SC", serif; font-size: 22px; font-weight: 500; }
.section-card p { color: #3f4d47; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.evidence-list, .compact-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.evidence-item { padding: 11px 12px; border-radius: 9px; background: #f3f4ef; }
.evidence-item strong { display: block; font-size: 12px; }
.evidence-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.compact-list li { position: relative; padding-left: 14px; color: #405049; font-size: 12px; line-height: 1.55; }
.compact-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--forest); }
.compact-list.reject-list li::before { background: var(--red); }
.metric-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.metric-chip { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fafaf7; font-size: 11px; }
.metric-chip strong { color: var(--forest); }

.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 42px 0 13px; }
.section-title-row h3 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 28px; font-weight: 500; }
.section-title-row button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--forest); background: white; font-weight: 700; }
.step-list { display: grid; gap: 10px; }
.step-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
}
.step-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--forest);
  background: var(--mint);
  font-size: 11px;
  font-weight: 850;
}
.step-number.done { color: #2f6620; background: #e2efcf; }
.step-number.blocked { color: #8c3f38; background: #f2dfdc; }
.step-number.skipped { color: #68726d; background: #eceeea; }
.step-head { display: flex; justify-content: space-between; gap: 12px; }
.step-head h4 { margin: 1px 0 4px; font-size: 15px; }
.step-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.priority { color: var(--forest); font-size: 10px; font-weight: 850; }
.step-controls { display: grid; grid-template-columns: 155px minmax(180px, 1fr) 56px; gap: 10px; align-items: center; margin-top: 13px; }
.step-controls select { padding: 8px; }
.step-controls input[type="range"] { width: 100%; accent-color: var(--forest); }
.step-controls output { color: var(--forest); font-size: 12px; font-weight: 800; text-align: right; }
.step-result { width: 100%; min-height: 60px; margin-top: 10px; padding: 10px; resize: vertical; font-size: 12px; }
.step-save-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.step-save-row button { padding: 6px 9px; border: 0; border-radius: 6px; color: var(--forest); background: var(--mint); font-size: 11px; font-weight: 750; }
.step-save-row .remove-step { color: var(--red); background: #f4e2df; }
.add-step-form { display: grid; grid-template-columns: minmax(0,1fr) 100px auto; gap: 8px; margin-top: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
.add-step-form input, .add-step-form select { padding: 9px 10px; }
.add-step-form button { border: 0; border-radius: 8px; color: white; background: var(--forest); font-weight: 700; }

.update-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 13px; }
.update-form { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.update-form textarea { width: 100%; min-height: 130px; padding: 11px; resize: vertical; }
.update-form select { width: 100%; margin-bottom: 9px; padding: 9px; }
.update-form .primary-button { width: 100%; margin-top: 9px; }
.timeline { display: grid; gap: 8px; }
.timeline-item { position: relative; padding: 13px 15px 13px 35px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.5); }
.timeline-item::before { content: ""; position: absolute; left: 15px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--forest); }
.timeline-item strong { font-size: 11px; }
.timeline-item time { float: right; color: var(--muted); font-size: 10px; }
.timeline-item p { margin: 6px 0 0; color: #405049; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.raw-details { margin-top: 36px; border-top: 1px solid var(--line); }
.raw-details summary { padding: 18px 0; color: var(--forest); font-weight: 750; cursor: pointer; }
.raw-details pre { max-height: 520px; overflow: auto; padding: 18px; border-radius: 11px; white-space: pre-wrap; word-break: break-word; color: #3c4943; background: #e9ebe6; font: 12px/1.65 ui-monospace, Consolas, monospace; }
.archive-card { padding: 22px; border: 1px solid #cddf9c; border-radius: 13px; background: #f5f8e9; }
.archive-card h3 { margin: 0 0 10px; font-family: Georgia, "Songti SC", serif; font-size: 24px; font-weight: 500; }
.archive-card p { line-height: 1.7; white-space: pre-wrap; }

.settings-wrap { max-width: 760px; }
.settings-wrap h2 { margin: 10px 0; font-family: Georgia, "Songti SC", serif; font-size: 48px; font-weight: 500; }
.settings-wrap > p { color: var(--muted); line-height: 1.7; }
.settings-card { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); }
.settings-status { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.settings-status i { width: 11px; height: 11px; border-radius: 50%; background: #aab2ae; }
.settings-status.online i { background: #40a876; box-shadow: 0 0 0 4px rgba(64,168,118,.12); }
.settings-card label { display: grid; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 12px; font-weight: 700; }
.settings-card input, .settings-card select { padding: 11px 12px; }
.settings-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.settings-note { margin-top: 16px; padding: 12px; border-radius: 9px; color: #56635d; background: #f0f2ed; font-size: 11px; line-height: 1.6; }
.settings-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (max-width: 720px) {
  .settings-grid { grid-template-columns: 1fr; gap: 0; }
  .settings-actions { align-items: stretch; flex-direction: column; }
}

.app-dialog {
  width: min(860px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 30px 100px rgba(10,25,19,.3);
}
.app-dialog::backdrop { background: rgba(10, 20, 17, .65); backdrop-filter: blur(5px); }
.app-dialog form { padding: 28px; }
.small-dialog { width: min(650px, calc(100% - 28px)); }
.dialog-header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dialog-header h2 { margin: 8px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 35px; font-weight: 500; }
.dialog-close { width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: #eff0eb; font-size: 25px; font-weight: 300; }
.create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.create-grid label, .field-block { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.create-grid input, .create-grid select { padding: 11px; }
.field-block { margin-top: 17px; }
.field-block small { color: #939b97; font-weight: 400; }
.field-block textarea { min-height: 300px; padding: 13px; resize: vertical; color: #26332d; line-height: 1.6; }
.judgment-field textarea { min-height: 105px; border-color: #cddf9c; background: #fbfdf4; }
.organize-note { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 11px 13px; border-radius: 9px; background: #f0f2ed; }
.organize-note p { margin: 0; font-size: 11px; }
.organize-note small { color: var(--muted); }
.organize-dot { width: 9px; height: 9px; border-radius: 50%; background: #a5afa9; }
.organize-dot.online { background: #40a876; box-shadow: 0 0 0 3px rgba(64,168,118,.12); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  padding: 11px 15px;
  border-radius: 9px;
  color: white;
  background: var(--nav);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .2s;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .login-view { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; left: -280px; width: 260px; transition: left .2s; }
  .sidebar.open { left: 0; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .main-content { padding-inline: 20px; }
  .mobile-menu { display: block; border: 0; background: transparent; font-size: 20px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .login-card { padding: 28px 20px; }
  .login-copy { margin-bottom: 28px; }
  .login-row { flex-direction: column; }
  .login-row button { width: 100%; }
  .main-content { padding-inline: 12px; }
  .topbar { height: 68px; }
  .search-wrap { width: 100%; }
  .ai-status { display: none; }
  .content-view { padding-top: 30px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .stats-row { gap: 7px; margin: 24px 0 32px; }
  .stats-row article { padding: 13px; }
  .idea-card { padding: 17px; }
  .card-bottom { grid-template-columns: 1fr; gap: 10px; }
  .next-action { text-align: left; }
  .detail-head { flex-direction: column; }
  .detail-actions { padding-top: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .section-card.full { grid-column: auto; }
  .step-card { grid-template-columns: 1fr; }
  .step-controls { grid-template-columns: 1fr; }
  .step-controls output { text-align: left; }
  .update-layout { grid-template-columns: 1fr; }
  .add-step-form { grid-template-columns: 1fr; }
  .create-grid { grid-template-columns: 1fr; }
  .app-dialog form { padding: 20px; }
}
