:root {
  --ink:#20342f;
  --muted:#71817a;
  --paper:#f4f6f2;
  --card:#fff;
  --line:#e2e9e3;
  --green:#327866;
  --green-dark:#245d50;
  --mint:#e9f3ee;
  --orange:#d98a57;
  --shadow:0 14px 42px #233b3010
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Inter,"Noto Sans SC","Microsoft YaHei",sans-serif;
  font-size:14px
}
button,input,textarea,select {
  font:inherit
}
button {
  cursor:pointer
}
.shell {
  max-width:1160px;
  margin:auto;
  padding:30px 24px 56px
}
.topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:34px
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:750;
  font-size:16px
}
.brandmark {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:14px;
  background:var(--green);
  color:white;
  font-size:20px
}
.top-actions {
  display:flex;
  gap:9px
}
.button {
  border:1px solid var(--line);
  background:white;
  color:var(--ink);
  border-radius:11px;
  padding:10px 14px;
  font-weight:650;
  transition:.18s
}
.button:hover {
  border-color:#a8c4b8;
  transform:translateY(-1px)
}
.button.primary {
  background:var(--green);
  border-color:var(--green);
  color:white
}
.button.primary:hover {
  background:var(--green-dark)
}
.button.danger {
  color:#ad594d
}
.hero {
  margin:0 0 24px
}
.eyebrow {
  color:var(--green);
  font-size:11px;
  letter-spacing:.15em;
  font-weight:800
}
.hero h1 {
  font-size:clamp(30px,5vw,42px);
  letter-spacing:-.04em;
  margin:9px 0 8px
}
.hero p {
  margin:0;
  color:var(--muted);
  font-size:15px
}
.layout {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(285px,.85fr);
  gap:20px;
  align-items:start
}
.panel {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:19px;
  box-shadow:var(--shadow)
}
.editor {
  padding:24px
}
.panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:19px
}
.panel-head h2 {
  margin:0;
  font-size:17px
}
.subtle {
  color:var(--muted);
  font-size:12px
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}
.field {
  display:flex;
  flex-direction:column;
  gap:7px
}
.field.full {
  grid-column:1/-1
}
.field label {
  font-size:12px;
  font-weight:700;
  color:#50665e
}
.field input,.field textarea,.field select {
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fcfdfb;
  color:var(--ink);
  padding:11px 12px;
  outline:none
}
.field input:focus,.field textarea:focus,.field select:focus {
  border-color:#82ae9e;
  box-shadow:0 0 0 3px #32786616
}
.field textarea {
  resize:vertical;
  min-height:91px;
  line-height:1.65
}
.field textarea.prompt {
  min-height:170px;
  font-family:inherit
}
.field textarea.result {
  min-height:110px
}
.form-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:18px
}
.form-foot .hint {
  color:var(--muted);
  font-size:12px
}
.form-actions {
  display:flex;
  gap:8px
}
.records {
  padding:20px
}
.records-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px
}
.records-head h2 {
  font-size:16px;
  margin:0
}
.badge {
  background:var(--mint);
  color:var(--green);
  font-weight:750;
  border-radius:99px;
  padding:5px 9px;
  font-size:11px
}
.search {
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 12px;
  margin:0 0 12px;
  outline:none
}
.filters {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:13px
}
.filter {
  border:1px solid var(--line);
  background:white;
  color:var(--muted);
  border-radius:99px;
  padding:6px 10px;
  font-size:11px
}
.filter.active {
  background:var(--mint);
  border-color:#c5dfd2;
  color:var(--green);
  font-weight:700
}
.record-list {
  display:flex;
  flex-direction:column;
  gap:9px;
  max-height:610px;
  overflow:auto;
  padding-right:2px
}
.record-card {
  display:flex;
  align-items:stretch;
  gap:4px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:4px;
  transition:.18s
}
.record-card:hover,.record-card.selected {
  border-color:#9dc5b5;
  background:#fbfdfb
}
.record {
  flex:1;
  min-width:0;
  text-align:left;
  border:0;
  background:transparent;
  border-radius:9px;
  padding:8px;
  transition:.18s;
  color:var(--ink)
}
.record:hover,.record.selected {
  background:#f3f8f4
}
.record-delete {
  flex:none;
  align-self:center;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#9a5c4e;
  padding:9px 10px;
  cursor:pointer;
  font:inherit;
  font-size:12px
}
.record-delete:hover,.record-delete:focus-visible {
  background:#fff0ec;
  color:#873e30
}
.record-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px
}
.record-title {
  font-weight:750;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.record-meta {
  display:flex;
  gap:7px;
  align-items:center;
  color:var(--muted);
  font-size:11px;
  margin-top:6px
}
.tag {
  background:#f1f5f2;
  border-radius:99px;
  padding:3px 7px;
  color:#587066
}
.stars {
  color:var(--orange);
  letter-spacing:1px
}
.empty {
  padding:28px 10px;
  text-align:center;
  color:var(--muted);
  line-height:1.7
}
.empty b {
  display:block;
  color:var(--ink);
  margin-bottom:4px
}
.checklist {
  margin-top:20px;
  padding:18px 20px
}
.checklist h2 {
  margin:0 0 12px;
  font-size:15px
}
.checks {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  color:#64766e;
  font-size:12px
}
.checks span {
  background:#f5f8f5;
  border-radius:9px;
  padding:10px
}
.toast {
  position:fixed;
  left:50%;
  bottom:22px;
  transform:translate(-50%,15px);
  opacity:0;
  pointer-events:none;
  background:#20342f;
  color:white;
  padding:11px 16px;
  border-radius:99px;
  transition:.2s;
  z-index:9
}
.toast.show {
  transform:translate(-50%,0);
  opacity:1
}
.file-input {
  display:none
}
.rating {
  display:flex;
  gap:6px
}
.rating button {
  border:1px solid var(--line);
  background:white;
  color:#b9c2bc;
  border-radius:8px;
  padding:7px 9px
}
.rating button.on {
  color:#bd7545;
  background:#fff7ed;
  border-color:#efd8c0
}
.print-only {
  display:none
}
.mobile-switch {
  display:none
}
.sync-status {
  font-size:11px;
  color:var(--muted);
  margin-left:8px
}
.account-email {
  max-width:110px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  color:var(--muted)
}
@media(max-width:800px) {
  .layout {
    grid-template-columns:1fr
  }
  .record-list {
    max-height:unset
  }
  .checks {
    grid-template-columns:1fr 1fr
  }
  .topbar {
    margin-bottom:22px
  }
  .mobile-switch {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:5px;
    padding:5px;
    background:#e8eee9;
    border-radius:13px;
    margin:0 0 14px
  }
  .mobile-switch button {
    border:0;
    border-radius:9px;
    background:transparent;
    color:var(--muted);
    padding:11px;
    font-weight:700
  }
  .mobile-switch button.active {
    background:white;
    color:var(--green);
    box-shadow:0 1px 4px #233b3012
  }
  .layout .editor,.layout .records {
    display:none
  }
  body[data-mobile-view="list"] .layout .records,body[data-mobile-view="edit"] .layout .editor {
    display:block
  }
  .checklist {
    display:none
  }
  .filters {
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:5px;
    scrollbar-width:none
  }
  .filters::-webkit-scrollbar {
    display:none
  }
  .filter {
    flex:0 0 auto
  }
  .record {
    padding:14px
  }
  .record-list {
    gap:8px
  }
}
@media(max-width:520px) {
  .shell {
    padding:16px 12px calc(28px + env(safe-area-inset-bottom))
  }
  .topbar {
    align-items:center;
    gap:10px
  }
  .top-actions {
    gap:5px;
    flex-wrap:wrap;
    justify-content:flex-end
  }
  .top-actions .button {
    min-height:40px;
    padding:8px 9px;
    font-size:11px
  }
  .brand {
    font-size:13px;
    gap:8px;
    white-space:nowrap
  }
  .brandmark {
    width:34px;
    height:34px;
    border-radius:11px
  }
  .hero {
    margin-bottom:17px
  }
  .eyebrow {
    font-size:10px
  }
  .hero h1 {
    font-size:30px;
    margin:6px 0
  }
  .hero p {
    font-size:13px;
    line-height:1.6
  }
  .editor {
    padding:16px;
    border-radius:16px
  }
  .records {
    padding:14px;
    border-radius:16px
  }
  .form-grid {
    grid-template-columns:1fr;
    gap:13px
  }
  .field.full {
    grid-column:auto
  }
  .field input,.field textarea,.field select {
    font-size:16px;
    padding:12px
  }
  .field textarea {
    min-height:100px
  }
  .field textarea.prompt {
    min-height:190px
  }
  .field textarea.result {
    min-height:125px
  }
  .panel-head {
    align-items:flex-start;
    gap:8px
  }
  .panel-head h2 {
    font-size:16px
  }
  .subtle {
    font-size:10px
  }
  .form-foot {
    align-items:stretch;
    flex-direction:column
  }
  .form-actions {
    width:100%
  }
  .form-actions .button {
    flex:1;
    min-height:46px
  }
  .rating button {
    min-width:40px;
    min-height:40px
  }
  .search {
    font-size:16px;
    padding:12px
  }
  .record-meta {
    flex-wrap:wrap
  }
  .toast {
    bottom:calc(18px + env(safe-area-inset-bottom));
    max-width:calc(100vw - 28px);
    white-space:nowrap
  }
  .checks {
    grid-template-columns:1fr 1fr
  }
}
@media print {
  body {
    background:white
  }
  .shell {
    max-width:none;
    padding:0
  }
  .top-actions,.records,.checklist,.form-foot,.eyebrow {
    display:none!important
  }
  .hero {
    margin:0 0 14px
  }
  .hero h1 {
    font-size:24px
  }
  .layout {
    display:block
  }
  .panel {
    border:0;
    box-shadow:none
  }
  .editor {
    padding:0
  }
  .field input,.field textarea,.field select {
    background:white;
    border-color:#aebbb3;
    color:#111;
    print-color-adjust:exact
  }
  .field textarea {
    min-height:80px
  }
  .field textarea.prompt {
    min-height:150px
  }
  .print-only {
    display:block
  }
  .form-grid {
    gap:10px
  }
}
