:root {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #132725;
  background: #f4f6f2;
  font-synthesis: none;
  --line: #dbe4dc;
  --green: #195b47;
  --muted: #50645c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid #2b8a70; outline-offset: 3px; }
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; padding: 10px max(22px, calc((100vw - 1320px) / 2)); background: #112e29; color: #f6fffa;
}
.wordmark { display: flex; align-items: center; gap: 12px; font-weight: 650; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #b1e8cb; color: #173d31; font-weight: 800; }
.quiet { background: transparent; color: inherit; border: 0; padding: 9px 12px; border-radius: 6px; }
.quiet:hover { background: #79a99225; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; line-height: 1.1; margin-bottom: 10px; }
h2 { font-size: 1.15rem; letter-spacing: -.02em; }
.signin { width: min(460px, calc(100% - 36px)); margin: clamp(44px, 12vh, 135px) auto; padding: clamp(25px, 6vw, 42px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 34px #203c2910; }
.signin > p { color: var(--muted); line-height: 1.6; margin-bottom: 25px; }
label { display: grid; gap: 7px; font-size: .87rem; font-weight: 600; }
input, select, textarea { min-width: 0; border: 1px solid #c7d4ca; border-radius: 8px; padding: 9px 11px; color: #132725; background: #fff; width: 100%; }
textarea { resize: vertical; }
#login { display: grid; gap: 9px; }
#login button { justify-self: start; margin-top: 8px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: 9px 14px; min-height: 41px; font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.primary { color: #fff; background: #195b47; border: 1px solid #195b47; }
.primary:hover { background: #124434; }
.secondary { color: #24493c; background: #fff; border: 1px solid #c7d4ca; }
.secondary:hover { background: #eaf5ee; }
.workspace { max-width: 1368px; padding: 38px 24px; margin: 0 auto; display: grid; grid-template-columns: 222px minmax(0, 1fr); gap: 34px; }
aside { padding: 12px 18px 18px 0; border-right: 1px solid var(--line); }
aside h2 { font-size: .87rem; color: var(--muted); margin: 1px 0 14px 12px; }
nav { display: grid; gap: 6px; }
.brand { border: 0; border-radius: 9px; color: inherit; background: transparent; padding: 10px; display: flex; align-items: center; gap: 11px; text-align: left; }
.brand:hover, .brand[aria-current="true"] { background: #e1eee5; }
.brand[aria-current="true"] { font-weight: 700; }
.monogram { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #234739; background: #cde7d4; font-size: .75rem; font-weight: 750; }
.brand:nth-child(2) .monogram { background: #dce8f4; color: #1c4672; }
.brand:nth-child(3) .monogram { background: #eee1f0; color: #69436a; }
.brand:nth-child(4) .monogram { background: #f7e7cd; color: #765023; }
.api-link { display: block; margin: 24px 0 0 12px; font-size: .82rem; }
.heading, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.heading { margin: 4px 0 28px; }
.heading a { font-size: .88rem; }
.actions, .filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input, .filters select { width: auto; max-width: 100%; font-size: .84rem; }
.inbox { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 15px; min-height: 250px; }
.toolbar { padding: 17px 20px; border-bottom: 1px solid var(--line); }
#items, .attachments { list-style: none; margin: 0; padding: 0; }
#items li + li { border-top: 1px solid #edf1ee; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; background: #fff; border: 0; text-align: left; gap: 6px 15px; padding: 17px 20px; }
.item:hover { background: #f4f8f5; }
.item strong, .item small { overflow-wrap: anywhere; }
.item small { color: var(--muted); grid-row: 2; }
.status { font-size: .76rem; color: #314d42; padding: 4px 8px; background: #eaf1eb; border-radius: 15px; align-self: center; grid-column: 2; grid-row: 1 / span 2; }
.empty { padding: 54px 22px; text-align: center; color: var(--muted); }
.form-note { color: #773e29; font-size: .87rem; line-height: 1.45; }
.form-note:empty { display: none; }
#notice { padding: 10px 20px; }
.more { margin: 14px 20px; }
dialog { width: min(570px, calc(100% - 26px)); max-height: calc(100dvh - 28px); border: 1px solid var(--line); border-radius: 16px; color: inherit; padding: 23px; }
dialog::backdrop { background: #122f29a0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
#item-form { display: grid; gap: 13px; }
#item-form button { justify-self: start; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.attachments { display: grid; gap: 5px; font-size: .9rem; overflow-wrap: anywhere; }
.attachments:empty { display: none; }
@media (max-width: 760px) {
  .workspace { grid-template-columns: 1fr; gap: 22px; padding: 20px 15px; }
  aside { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  nav { grid-template-columns: 1fr 1fr; }
  .api-link { margin-top: 10px; }
  .heading { margin-bottom: 18px; }
  .toolbar, .item { padding-inline: 13px; }
}
