@font-face {
  font-family: Notebook;
  src: local("Georgia");
  font-display: swap;
}
:root {
  --paper: #f7f6f0;
  --surface: #fffefa;
  --ink: #252d29;
  --muted: #747b70;
  --line: #e3e5db;
  --green: #345747;
  --green-soft: #e8ede3;
  --accent: #345747;
  --accent-soft: #e8ede3;
  --serif: Notebook, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #95b999;
  outline-offset: 4px;
}
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #779984;
  outline-offset: 2px;
}
button,
a {
  touch-action: manipulation;
}
button svg {
  pointer-events: none;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
textarea {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 14px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #989d91;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 400;
}
svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.boot {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--muted);
  font-size: 14px;
}
.brand {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 35px;
  letter-spacing: -1.8px;
  font-weight: 700;
  width: fit-content;
}
.brand img {
  margin-right: 12px;
  border-radius: 8px;
}
.brand-dot {
  color: #709071;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9px;
  padding: 13px 19px;
  font-weight: 600;
  font-size: 14px;
  min-height: 46px;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary {
  background: var(--green);
  border: 1px solid var(--green);
  color: #fffefa;
  box-shadow: 0 2px 3px #1b30210c;
}
.primary:hover {
  background: #294636;
}
.primary:active,
.secondary:active {
  transform: translateY(1px);
}
.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}
.secondary:hover {
  background: var(--green-soft);
}
.text-button {
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  min-height: 40px;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--muted);
}
.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 16% 51%, #eceee2 0, transparent 53%),
    var(--paper);
}
.login-top {
  max-width: 1400px;
  width: 100%;
  padding: 35px 5%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.private-label {
  font-size: 14px;
  color: var(--muted);
}
.login-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 100px;
  width: min(960px, 85%);
  margin: 50px auto 80px;
}
.login-art {
  height: 420px;
  position: relative;
}
.paper {
  position: absolute;
  left: 15px;
  top: 20px;
  width: 310px;
  height: 355px;
  border: 1px solid #daddcc;
  border-radius: 3px;
  box-shadow: 0 13px 30px #2f48300a;
}
.paper-back {
  background: #dfe5d4;
  transform: rotate(-8deg);
  left: 0;
  top: 25px;
}
.paper-front {
  background: #fffef9;
  transform: rotate(3deg);
  padding: 35px;
}
.paper-label {
  font-size: 10px;
  letter-spacing: 2.4px;
  color: #8d9686;
}
.paper-thought {
  display: block;
  font-family: var(--serif);
  font-size: 33px;
  line-height: 1.35;
  margin-top: 27px;
  letter-spacing: -1px;
}
.paper-thought em {
  color: #6c8260;
}
.paper-lines {
  height: 42px;
  margin-top: 25px;
  background: repeating-linear-gradient(
    transparent,
    transparent 19px,
    #e9eadd 19px,
    #e9eadd 20px
  );
}
.paper-star {
  position: absolute;
  color: #a5ae7f;
  font-size: 50px;
  right: 22px;
  bottom: 13px;
}
.art-caption {
  position: absolute;
  bottom: 0;
  left: 24px;
  color: #839078;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
}
.login-form {
  max-width: 380px;
  width: 100%;
}
.login-form h1 {
  font: 46px/1.2 var(--serif);
  letter-spacing: -1.5px;
  margin: 16px 0 12px;
}
.login-intro {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 34px;
}
.login-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 9px;
}
.login-form input {
  width: 100%;
  height: 50px;
}
.password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
}
.password-label label {
  margin: 0;
}
.password-label .text-button {
  font-size: 13px;
}
.login-submit {
  width: 100%;
  margin-top: 25px;
  justify-content: space-between;
  padding: 15px 20px;
}
.login-submit span {
  font-size: 20px;
}
.login-foot {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}
.login-foot svg {
  width: 14px;
  height: 14px;
}
.login-footer {
  padding: 25px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 3px;
  color: #8c9385;
}
.error-text {
  font-size: 14px;
  color: #a24332;
  padding-top: 14px;
  line-height: 1.5;
}
.app-shell {
  min-height: 100dvh;
}
.sidebar {
  width: 244px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  border-right: 1px solid var(--line);
  padding: 33px 22px 20px;
  background: #efefe6;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  margin-left: 8px;
}
.sidebar-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #929987;
  margin: 57px 15px 17px;
}
.desktop-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  border: none;
  background: none;
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border-radius: 8px;
  text-align: left;
  gap: 12px;
  color: #71786a;
  font-size: 14px;
  font-weight: 500;
}
.nav-item:hover {
  background: #e7e9de;
}
.nav-item.active {
  background: #dde5d7;
  color: #34533f;
}
.nav-item[data-category="quotes"].active {
  background: #eee6d4;
  color: #8b6937;
}
.nav-item[data-category="ideas"].active {
  background: #e6e0ec;
  color: #796485;
}
.nav-count {
  font-size: 12px;
  margin-left: auto;
  background: #ffffff75;
  min-width: 22px;
  text-align: center;
  border-radius: 5px;
  padding: 2px 4px;
}
.sidebar-bottom {
  margin-top: auto;
}
.private-note {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  color: #8a927d;
  font-size: 12px;
  padding: 24px 0;
}
.private-note svg {
  width: 14px;
  height: 14px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-top: 1px solid #dfe2d4;
  background: none;
  text-align: left;
  padding: 20px 4px 2px;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #dce4d4;
  color: #4a6544;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  border: 1px solid #ccd8c2;
  flex-shrink: 0;
}
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.profile-info strong {
  font-size: 14px;
  font-weight: 500;
}
.profile-info small {
  font-size: 11px;
  color: var(--muted);
}
.profile > svg {
  width: 19px;
  color: var(--muted);
}
.workspace {
  margin-left: 244px;
}
.topbar {
  height: 86px;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.today {
  font-size: 13px;
  color: var(--muted);
}
.topbar-private {
  font-size: 12px;
  color: #798371;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  height: 6px;
  width: 6px;
  background: #90a27d;
  border-radius: 50%;
}
.mobile-brand,
.mobile-profile,
.mobile-nav {
  display: none;
}
.library {
  max-width: 1260px;
  padding: 49px 50px 25px;
  margin: auto;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 35px;
}
.section-heading h1 {
  font-family: var(--serif);
  font-size: 54px;
  letter-spacing: -2px;
  line-height: 1.2;
  margin-top: 9px;
}
.heading-dot {
  color: #94a085;
}
.section-heading .primary {
  margin-top: 19px;
}
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  flex: 1;
  max-width: 400px;
}
.search-box > svg {
  position: absolute;
  left: 14px;
  color: #8b9481;
  width: 18px;
}
.search-box input {
  width: 100%;
  padding: 12px 36px 12px 42px;
  font-size: 14px;
  background: transparent;
  height: 44px;
}
.search-shortcut {
  position: absolute;
  right: 12px;
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #8a9281;
  pointer-events: none;
}
.entry-count {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}
.entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.entry-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  min-height: 214px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition:
    box-shadow 0.16s,
    border-color 0.16s,
    transform 0.16s;
  position: relative;
  overflow: hidden;
}
.entry-card:hover {
  border-color: #bbc9b0;
  box-shadow: 0 5px 18px #364b3310;
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.card-icon {
  color: var(--accent);
  background: var(--accent-soft);
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg {
  width: 16px;
  height: 16px;
}
.card-arrow {
  color: #a6ac9b;
  font-size: 18px;
}
.entry-card h2 {
  font: 23px/1.3 var(--serif);
  letter-spacing: -0.4px;
  margin-bottom: 9px;
  overflow-wrap: anywhere;
}
.card-preview {
  font-size: 14px;
  line-height: 1.65;
  color: #7a8074;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.card-check {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  color: #7a8074;
  white-space: nowrap;
  overflow: hidden;
  margin-top: 7px;
}
.card-check svg {
  height: 14px;
  width: 14px;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #939988;
  margin-top: auto;
  padding-top: 24px;
}
.card-footer span:last-child {
  color: var(--accent);
}
.empty-state {
  padding: 50px 20px 62px;
  text-align: center;
  border: 1px dashed #d6dccb;
  border-radius: 12px;
  background: #f9faf42b;
}
.empty-illustration {
  width: 116px;
  height: 118px;
  position: relative;
  margin: 0 auto 25px;
}
.empty-sheet {
  position: absolute;
  width: 74px;
  height: 95px;
  border: 1px solid #d5dccc;
  border-radius: 5px;
  left: 20px;
  top: 7px;
}
.empty-sheet.back {
  background: #e7ecdd;
  transform: rotate(-12deg);
  left: 13px;
  top: 7px;
}
.empty-sheet.front {
  background: #fffef8;
  transform: rotate(6deg);
  padding: 14px;
}
.empty-sheet.front > svg {
  width: 22px;
  color: #7b9270;
}
.empty-sheet i {
  display: block;
  height: 1px;
  background: #dfe6d5;
  width: 100%;
  margin-top: 8px;
}
.empty-sheet i:last-child {
  width: 60%;
}
.empty-plus {
  position: absolute;
  bottom: 2px;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 25px;
  line-height: 29px;
  border: 3px solid var(--paper);
  font-weight: 300;
}
.empty-state h2 {
  font: 29px var(--serif);
  letter-spacing: -0.6px;
}
.empty-state p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 12px auto;
  max-width: 300px;
}
.empty-cta {
  margin-top: 7px;
}
.empty-cta span {
  margin-left: 8px;
}
.library-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  color: #929988;
  font-size: 11px;
}
.library-footer > span:last-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
}
.load-error {
  padding: 35px;
  text-align: center;
  color: #8b4336;
  line-height: 1.6;
}
.load-error button {
  margin-top: 15px;
}
.editor {
  max-width: 1000px;
  margin: auto;
  padding: 28px 50px 45px;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}
.back-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
  min-height: 44px;
}
.back-button svg {
  height: 18px;
  width: 18px;
}
.editor-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.save-status {
  border: 0;
  background: none;
  font-size: 12px;
  color: #7c886f;
  padding: 9px 0;
  min-height: 44px;
}
.save-status[data-state="error"] {
  color: #b45338;
}
.save-status[data-state="saving"] {
  color: #9d9364;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: #929986;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #eee9df;
  color: #9f5346;
}
.icon-button svg {
  height: 19px;
  width: 19px;
}
.editor-paper {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 37px 42px 30px;
  min-height: 550px;
  box-shadow: 0 3px 15px #37433103;
}
.editor-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #969c8e;
  font-size: 11px;
  margin-bottom: 19px;
}
.category-tag {
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 5px 8px;
  border-radius: 4px;
}
.entry-title {
  display: block;
  width: 100%;
  font-family: var(--serif);
  font-size: 39px;
  letter-spacing: -1px;
  line-height: 1.3;
  padding: 0;
  border: 0;
  border-radius: 0;
  margin-bottom: 23px;
  background: transparent;
}
.entry-title::placeholder {
  color: #626957;
}
.note-body {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  min-height: 170px;
  background: transparent;
  resize: none;
  border-radius: 0;
  line-height: 1.85;
  font-size: 16px;
  overflow: hidden;
}
.entry-title:focus-visible,
.note-body:focus-visible {
  outline: none;
}
.entry-title:focus-visible {
  box-shadow: 0 2px #e4e9dc;
}
.checklist {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
}
.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eeefe6;
}
.check-row input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border: 1.5px solid #bcc8b1;
  background: #fffef9;
  border-radius: 5px;
  padding: 0;
  cursor: pointer;
}
.check-row input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
  box-shadow: inset 0 0 0 4px var(--surface);
}
.check-row input[type="text"] {
  flex: 1;
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  background: none;
  font-size: 16px;
}
.check-row.done input[type="text"] {
  text-decoration: line-through;
  color: #929986;
}
.check-row .icon-button {
  width: 36px;
}
.check-row .icon-button svg {
  height: 16px;
  width: 16px;
}
.add-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--green);
  font-size: 14px;
  padding: 10px 0;
  margin-top: 7px;
}
.add-row:hover {
  color: #182f20;
}
.add-row svg {
  width: 17px;
  height: 17px;
}
.editor-end {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  margin-top: 55px;
  color: #c2c9b6;
}
.editor-end > span:not(:nth-child(2)) {
  width: 37px;
  height: 1px;
  background: #e3e6d9;
}
.editor-end svg {
  width: 15px;
  height: 15px;
}
.quote-section {
  margin-top: 29px;
}
.quote-section + .quote-section {
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.quote-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.quote-section-heading h2 {
  font: 22px var(--serif);
  letter-spacing: -0.4px;
}
.section-number {
  font-size: 10px;
  color: #a09272;
  letter-spacing: 1px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  gap: 8px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: #717767;
}
.field input,
.field textarea {
  width: 100%;
  background: #fcfcf7;
  font-size: 16px;
}
.field textarea {
  min-height: 112px;
  resize: none;
  overflow: hidden;
}
.material-labels,
.material-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 32px;
  gap: 10px;
}
.material-labels {
  font-size: 12px;
  color: #8a8f7f;
  margin-bottom: 9px;
}
.material-row {
  margin-bottom: 9px;
  align-items: center;
}
.material-row input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background: #fcfcf7;
}
.material-row .icon-button {
  width: 32px;
}
.material-cost {
  position: relative;
}
.material-cost-caption {
  display: none;
}
.material-cost > span[aria-hidden] {
  position: absolute;
  left: 11px;
  top: 13px;
  color: #979c8d;
  font-size: 15px;
}
.material-cost input {
  padding-left: 25px;
  text-align: right;
}
.material-total {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  color: #737a69;
}
.material-total strong {
  font: 26px var(--serif);
  color: #65593d;
  letter-spacing: -0.6px;
}
.labor-grid {
  max-width: 420px;
}
.labor-grid .field {
  margin-bottom: 0;
}
.field-hint {
  font-size: 12px;
  color: #929786;
  margin-top: 13px;
}
.save-error {
  border: 1px solid #e7cfb5;
  background: #fcf4e5;
  border-radius: 8px;
  padding: 11px 15px;
  margin-bottom: 18px;
  color: #8c5938;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.save-error span {
  flex: 1;
  min-width: 170px;
}
.save-error button {
  white-space: nowrap;
  font-size: 13px;
  color: #865032;
}
dialog {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 29px;
  max-width: 400px;
  width: calc(100% - 36px);
  color: var(--ink);
  box-shadow: 0 20px 80px #132b2430;
}
dialog::backdrop {
  background: #26382d66;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font: 29px var(--serif);
  letter-spacing: -0.6px;
  margin: 16px 0 12px;
}
dialog p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.dialog-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eee8db;
  color: #93825f;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: #304c3d;
  color: #fffef8;
  padding: 13px 23px;
  border-radius: 9px;
  box-shadow: 0 5px 20px #21392a22;
  font-size: 14px;
  z-index: 20;
}
.app-shell[data-category="quotes"] {
  --accent: #8b6937;
  --accent-soft: #f0e9d8;
}
.app-shell[data-category="ideas"] {
  --accent: #7d648b;
  --accent-soft: #eee7f3;
}
@media (min-width: 1500px) {
  .entries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 214px;
    padding: 30px 15px 20px;
  }
  .workspace {
    margin-left: 214px;
  }
  .topbar {
    padding: 0 30px;
  }
  .library {
    padding: 40px 30px 25px;
  }
  .editor {
    padding: 24px 30px;
  }
  .editor-paper {
    padding: 30px;
  }
  .login-main {
    gap: 40px;
  }
  .paper {
    width: 280px;
  }
  .paper-thought {
    font-size: 30px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 77px;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-brand {
    display: flex;
    font-size: 31px;
  }
  .mobile-brand img {
    margin-right: 9px;
  }
  .mobile-profile {
    display: flex;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .topbar-private,
  .today {
    display: none;
  }
  .library {
    padding: 30px 22px 115px;
  }
  .section-heading {
    margin-bottom: 26px;
  }
  .section-heading h1 {
    font-size: 45px;
    letter-spacing: -1.8px;
    margin-top: 7px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.7px;
  }
  .section-heading .primary {
    margin-top: 13px;
    padding: 12px 14px;
    font-size: 13px;
    gap: 7px;
  }
  .section-heading .primary svg {
    width: 17px;
    height: 17px;
  }
  .list-toolbar {
    gap: 12px;
    margin-bottom: 22px;
  }
  .search-box {
    max-width: none;
  }
  .search-box input {
    font-size: 16px;
    height: 46px;
  }
  .search-shortcut {
    display: none;
  }
  .entry-count {
    font-size: 11px;
  }
  .entries {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .entry-card {
    padding: 21px 22px;
    min-height: 185px;
  }
  .card-top {
    margin-bottom: 12px;
  }
  .entry-card h2 {
    font-size: 23px;
  }
  .card-footer {
    padding-top: 20px;
  }
  .empty-state {
    padding: 42px 16px 45px;
    min-height: 330px;
  }
  .empty-state h2 {
    font-size: 27px;
  }
  .empty-state p {
    font-size: 14px;
    max-width: 255px;
  }
  .empty-illustration {
    margin-bottom: 19px;
  }
  .library-footer {
    margin-top: 25px;
    font-size: 10px;
  }
  .library-footer > span:last-child {
    font-size: 12px;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    background: #f9faf4f5;
    border-top: 1px solid #e0e4d7;
    backdrop-filter: blur(16px);
    z-index: 10;
  }
  .mobile-nav .nav-item {
    flex-direction: column;
    gap: 5px;
    min-height: 55px;
    width: 90px;
    padding: 7px 5px 6px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.2;
  }
  .mobile-nav .nav-item svg {
    width: 21px;
    height: 21px;
  }
  .mobile-nav .nav-item.active {
    background: #e8eddf;
  }
  .mobile-nav .nav-count {
    display: none;
  }
  .editor {
    padding: 13px 20px 110px;
  }
  .editor-toolbar {
    margin-bottom: 18px;
  }
  .editor-actions {
    gap: 10px;
  }
  .editor-paper {
    border: 0;
    background: transparent;
    padding: 6px 1px;
    box-shadow: none;
    border-radius: 0;
    min-height: 500px;
  }
  .editor-meta {
    font-size: 10px;
    margin-bottom: 19px;
  }
  .entry-title {
    font-size: 34px;
    margin-bottom: 22px;
    line-height: 1.4;
  }
  .note-body {
    min-height: 190px;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .labor-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .quote-section {
    margin-top: 25px;
  }
  .quote-section + .quote-section {
    padding-top: 23px;
  }
  .quote-section-heading {
    margin-bottom: 18px;
  }
  .quote-section-heading h2 {
    font-size: 23px;
  }
  .field input,
  .field textarea,
  .material-row input {
    background: #fffef9;
  }
  .field label {
    font-size: 14px;
  }
  .material-labels,
  .material-row {
    grid-template-columns: minmax(0, 1fr) 94px 28px;
    gap: 8px;
  }
  .material-row .icon-button {
    width: 28px;
  }
  .material-row input {
    padding: 12px 10px;
  }
  .material-cost input {
    padding-left: 22px;
  }
  .material-cost > span[aria-hidden] {
    left: 9px;
  }
  .material-total {
    padding: 17px 0;
  }
  .save-error {
    font-size: 13px;
    padding: 10px 12px;
  }
  .toast {
    bottom: 95px;
  }
  .login-page {
    background:
      radial-gradient(ellipse at top left, #e8ecdf 0, transparent 55%),
      var(--paper);
  }
  .login-top {
    padding: 28px;
  }
  .private-label {
    display: none;
  }
  .login-main {
    display: block;
    width: auto;
    margin: 55px 28px 50px;
    flex: 1;
  }
  .login-art {
    display: none;
  }
  .login-form {
    margin: 0 auto;
    max-width: 380px;
  }
  .login-form h1 {
    font-size: 45px;
  }
  .login-form .eyebrow {
    font-size: 11px;
  }
  .login-intro {
    margin-bottom: 32px;
  }
  .login-form input {
    height: 53px;
  }
  .login-submit {
    height: 52px;
  }
  .login-footer {
    padding-bottom: calc(25px + env(safe-area-inset-bottom));
  }
  .login-foot {
    margin-top: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Standalone material lists: quantity first, an email-ready table. */
.app-shell[data-category="lists"] {
  --accent: #4b7285;
  --accent-soft: #e3edf0;
}
.nav-item[data-category="lists"].active {
  background: #dfe9ec;
  color: #496d7e;
}
.list-copy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 25px;
}
.list-copy-bar p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.list-copy-bar button {
  flex-shrink: 0;
}
.supply-labels,
.supply-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
}
.supply-labels {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 9px;
}
.supply-row {
  margin-bottom: 10px;
}
.supply-row input {
  width: 100%;
  background: #fcfcf7;
  font-size: 16px;
}
.supply-row .icon-button {
  width: 36px;
}
.clipboard-status {
  font-size: 14px;
  color: var(--green);
  line-height: 1.6;
  margin-top: 16px;
}
.clipboard-status[data-state="error"] {
  color: #a24332;
}
.clipboard-source {
  position: fixed;
  left: -9999px;
  top: 0;
}
@media (max-width: 760px) {
  .mobile-nav .nav-item {
    width: 25%;
    min-width: 0;
  }
  .app-shell[data-category="lists"] .section-heading h1 {
    font-size: 38px;
  }
  .list-copy-bar {
    align-items: flex-start;
  }
  .list-copy-bar p {
    max-width: 125px;
    padding-top: 4px;
  }
  .supply-labels,
  .supply-row {
    grid-template-columns: 74px minmax(0, 1fr) 32px;
    gap: 8px;
  }
  .supply-row input {
    padding: 13px 10px;
    background: #fffef9;
  }
  .supply-row .icon-button {
    width: 32px;
  }
}
/* Readable, compact working surfaces and persistent editor controls. */
:root {
  --muted: #62695f;
}
.card-preview {
  color: #646d60;
  -webkit-line-clamp: 2;
}
.card-footer,
.editor-meta,
.today,
.entry-count,
.library-footer,
.profile-info small,
.private-note,
.field-hint,
.material-labels {
  color: #687160;
}
.field-hint {
  font-size: 13px;
  line-height: 1.5;
}
.field label,
.supply-labels {
  color: #5b6556;
  font-size: 14px;
}
.entry-card {
  min-height: 162px;
  padding: 19px;
}
.card-top {
  margin-bottom: 10px;
}
.card-footer {
  padding-top: 15px;
  font-size: 12px;
}
.card-pin {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--accent);
  font-size: 12px;
}
.card-pin svg {
  height: 14px;
  width: 14px;
}
.editor-chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  padding: 5px 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.editor-toolbar {
  margin: 0;
  min-height: 48px;
  gap: 5px;
}
.editor-actions {
  gap: 4px;
}
.save-status {
  font-size: 12px;
  color: #506a48;
  max-width: 150px;
  line-height: 1.4;
  padding: 8px;
}
.save-status[data-state="error"] {
  color: #875023;
}
.save-status[data-state="saving"] {
  color: #626239;
}
.copy-toolbar {
  width: auto;
  gap: 6px;
  padding: 0 10px;
  color: var(--green);
}
.copy-toolbar span {
  font-size: 13px;
  white-space: nowrap;
}
.entry-menu {
  position: absolute;
  right: 0;
  top: 54px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 25px #26382d20;
  border-radius: 10px;
  z-index: 30;
}
.entry-menu button {
  background: none;
  border: 0;
  text-align: left;
  padding: 13px;
  border-radius: 7px;
  min-height: 44px;
  font-size: 14px;
}
.entry-menu button:hover {
  background: var(--green-soft);
}
.entry-menu #delete-entry {
  color: #9b3e31;
}
.save-error {
  margin: 6px 0 0;
}
.editor-chrome .clipboard-status {
  margin: 6px 0 0;
  font-size: 13px;
}
.check-row {
  gap: 5px;
}
.check-target {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  margin: 0;
}
.check-row input[type="checkbox"]:checked {
  box-shadow: none;
}
.check-row input[type="checkbox"]:checked::after {
  content: "✓";
  display: block;
  text-align: center;
  color: white;
  line-height: 17px;
  font-size: 15px;
}
.check-row textarea {
  flex: 1;
  min-height: 44px;
  border: 0;
  padding: 10px 0;
  resize: none;
  overflow: hidden;
  background: none;
  font-size: 16px;
  line-height: 1.5;
}
.check-row.done textarea {
  color: #697460;
  text-decoration: line-through;
}
.check-row .icon-button,
.material-row .icon-button,
.supply-row .icon-button {
  width: 44px;
  height: 44px;
}
.material-labels,
.material-row {
  grid-template-columns: 70px minmax(0, 1fr) 110px 44px;
  gap: 8px;
}
.material-row,
.supply-row {
  align-items: start;
}
.material-row textarea,
.supply-row textarea {
  width: 100%;
  padding: 11px 12px;
  font-size: 16px;
  line-height: 1.5;
  min-height: 48px;
  resize: none;
  overflow: hidden;
  background: #fcfcf7;
}
.material-row input {
  min-height: 48px;
}
.material-cost > .field-error {
  position: static;
  display: block;
  font-size: 12px;
  line-height: 1.4;
  padding-top: 5px;
  color: #a13b2c;
}
.field-error {
  color: #a13b2c;
  font-size: 13px;
  line-height: 1.4;
}
[aria-invalid="true"] {
  border-color: #af5d48 !important;
}
.supply-labels,
.supply-row {
  grid-template-columns: 80px minmax(0, 1fr) 44px;
  gap: 8px;
}
.supply-row input {
  min-height: 48px;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.row-actions .text-button {
  font-size: 13px;
  min-height: 44px;
}
.device-drafts {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid #cbd5bf;
  border-radius: 10px;
  background: #eef2e7;
}
.device-drafts h2 {
  font: 20px var(--serif);
  margin-bottom: 8px;
}
.draft-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 5px;
  width: 100%;
  background: none;
  border: 0;
  border-top: 1px solid #d5ddcd;
  padding: 12px 0;
  color: var(--ink);
}
.draft-card small {
  font-size: 12px;
  color: #5b694f;
}
.library-loading {
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0;
}
.load-more {
  margin: 22px auto;
  display: flex;
}
.toast {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 40;
}
.toast button {
  color: #fffefa;
  background: none;
  border: 0;
  text-decoration: underline;
  font-weight: 600;
  min-height: 44px;
  padding: 0 5px;
}
#paste-dialog textarea {
  width: 100%;
  margin-top: 20px;
  min-height: 160px;
}
#reauth-form label {
  display: block;
  margin: 20px 0 8px;
  font-size: 14px;
}
#reauth-form input {
  width: 100%;
}
@media (max-width: 760px) {
  .library {
    padding-top: 15px;
  }
  .section-heading {
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 5;
    padding: 12px 0;
    margin-bottom: 18px;
  }
  .section-heading h1 {
    font-size: 40px;
  }
  .entry-card {
    min-height: 145px;
    padding: 17px 19px;
  }
  .entry-card h2 {
    font-size: 22px;
  }
  .card-footer {
    padding-top: 14px;
  }
  .editor {
    padding-top: 4px;
  }
  .editor-chrome {
    margin: 0 -5px 21px;
    padding: 5px 5px 8px;
  }
  .back-button {
    gap: 4px;
  }
  .back-button span {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .copy-toolbar {
    width: 44px;
    padding: 0;
  }
  .copy-toolbar span {
    display: none;
  }
  .save-status {
    max-width: 112px;
    padding: 7px 4px;
  }
  .editor-actions {
    gap: 0;
  }
  .material-labels,
  .material-row {
    grid-template-columns: 60px minmax(0, 1fr) 44px;
  }
  .material-cost-heading {
    display: none;
  }
  .material-row .material-cost {
    grid-column: 2;
    grid-row: 2;
  }
  .material-row .remove-material {
    grid-column: 3;
    grid-row: 1;
  }
  .material-cost-caption {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
  }
  .material-cost > span[aria-hidden] {
    top: 32px;
  }
  .supply-labels,
  .supply-row {
    grid-template-columns: 65px minmax(0, 1fr) 44px;
  }
  .material-row textarea,
  .supply-row textarea {
    background: var(--surface);
    padding: 11px 9px;
  }
  .supply-row .icon-button {
    width: 44px;
  }
  .entry-title {
    font-size: 32px;
  }
  .mobile-nav .nav-item {
    font-size: 12px;
    min-height: 58px;
  }
  .material-cost input {
    padding-left: 22px;
  }
  .field-grid.labor-grid {
    gap: 12px;
  }
}

/* Business layout: shared density rules; controls retain comfortable touch areas. */
:root {
  --paper: #f6f7f7;
  --surface: #fff;
  --line: #d8dedd;
  --serif: var(--sans);
}
.topbar {
  display: none;
}
.sidebar {
  width: 200px;
  padding: 20px 12px;
}
.workspace {
  margin-left: 200px;
}
.sidebar .brand {
  font-size: 26px;
  margin-bottom: 20px;
}
.desktop-nav {
  gap: 2px;
}
.profile {
  padding: 12px 0;
}
.library {
  padding: 20px 24px 28px;
}
.section-heading {
  margin: 0 0 12px;
  padding: 0;
  min-height: 44px;
}
.section-heading h1 {
  font: 600 26px/1.2 var(--sans);
  margin: 0;
  letter-spacing: 0;
}
.section-heading .primary {
  margin: 0;
}
.heading-dot,
.eyebrow,
.library-footer,
.empty-illustration,
.editor-end,
.editor-meta,
.section-number,
.card-icon,
.search-shortcut {
  display: none;
}
.list-toolbar {
  gap: 12px;
  margin-bottom: 12px;
}
.entries {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.entry-card,
#app[data-category="quotes"] .entry-card {
  min-height: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  display: block;
  box-shadow: none;
}
.entry-card:hover {
  transform: none;
  box-shadow: none;
  background: #eef3f0;
}
.entry-card .card-top,
#app[data-category="quotes"] .entry-card .card-top {
  float: right;
  margin: 0 0 0 8px;
}
.card-pin > span[aria-hidden] {
  display: none;
}
.entry-card h2,
#app[data-category="quotes"] .entry-card h2 {
  font: 600 16px/1.35 var(--sans);
  margin: 0;
  letter-spacing: 0;
}
.card-preview {
  font-size: 14px;
  line-height: 1.4;
  margin: 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.card-footer {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  font-size: 12px;
}
.empty-state {
  min-height: 0;
  padding: 24px 12px;
  text-align: left;
}
.empty-state h2 {
  font: 600 18px/1.4 var(--sans);
}
.empty-state p {
  margin: 6px 0;
  max-width: none;
}
.empty-state p:empty,
.field-hint:empty,
.planning-intro:empty {
  display: none;
}
.editor {
  max-width: 1100px;
  padding: 12px 24px 28px;
}
.editor-chrome {
  margin-bottom: 12px;
  padding: 0;
}
.editor-paper {
  padding: 16px;
  border-radius: 4px;
  min-height: 0;
  box-shadow: none;
}
.entry-title {
  font: 600 26px/1.3 var(--sans);
  letter-spacing: 0;
  margin-bottom: 12px;
}
.editor .category-tag {
  display: none;
}
.quote-section {
  margin-top: 16px;
}
.quote-section + .quote-section {
  padding-top: 12px;
}
.quote-section-heading {
  margin-bottom: 10px;
}
.quote-section-heading h2 {
  font: 600 18px/1.3 var(--sans);
}
.field {
  margin-bottom: 12px;
}
.field label {
  margin-bottom: 5px;
}
input,
textarea,
select,
.primary,
.secondary {
  border-radius: 5px;
}
.login-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-top {
  padding: 20px;
  margin: 0 auto;
}
.login-main {
  display: block;
  width: min(380px, calc(100% - 40px));
  margin: 20px auto;
  min-height: 0;
}
.login-form {
  width: 100%;
  padding: 0;
}
.login-form h1 {
  font: 600 26px/1.3 var(--sans);
  margin: 0 0 20px;
}
.login-form .eyebrow {
  display: none;
}
@media (max-width: 760px) {
  .workspace {
    margin-left: 0;
  }
  .topbar {
    display: flex;
    height: 48px;
    padding: 0 16px;
  }
  .mobile-brand {
    font-size: 24px;
  }
  .mobile-brand img {
    width: 24px;
    height: 24px;
  }
  .library {
    padding: 12px 16px 90px;
  }
  .section-heading {
    position: static;
    min-height: 44px;
    margin-bottom: 10px;
  }
  .section-heading h1 {
    font-size: 24px;
  }
  .section-heading .primary {
    padding: 10px 12px;
  }
  .list-toolbar {
    gap: 8px;
    margin-bottom: 10px;
  }
  .editor {
    padding: 4px 16px 90px;
  }
  .editor-paper {
    padding: 0;
    border: 0;
    background: transparent;
  }
  .editor-chrome {
    margin: 0 0 12px;
  }
  .entry-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .quote-section {
    margin-top: 12px;
  }
  .quote-section + .quote-section {
    padding-top: 12px;
  }
  .material-labels,
  .material-row,
  .supply-labels,
  .supply-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 6px;
  }
  .material-quantity,
  .supply-quantity {
    grid-column: 1;
    width: 100%;
  }
  .material-name,
  .supply-material {
    grid-column: 1;
    grid-row: 2;
  }
  .material-row .remove-material,
  .supply-row .remove-supply {
    grid-column: 2;
    grid-row: 1;
  }
  .material-row .material-cost {
    grid-column: 1;
    grid-row: 3;
  }
  .material-cost-caption {
    display: inline;
  }
  .material-cost > span[aria-hidden] {
    top: 32px;
  }
  .material-labels,
  .supply-labels {
    display: none;
  }
  .material-row input,
  .supply-row input,
  .material-row textarea,
  .supply-row textarea {
    padding: 10px;
  }
  .material-row .cost-input {
    padding-left: 24px;
  }
  .material-row,
  .supply-row {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .copy-toolbar {
    width: auto;
    padding: 0 6px;
  }
  .copy-toolbar span {
    display: inline;
    font-size: 12px;
  }
}
.login-intro {
  display: none;
}
.login-page {
  background: var(--paper);
}
.login-submit > span {
  display: none;
}
html {
  scroll-behavior: auto;
}
@media (max-width: 760px) {
  .quote-tracking .field-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
