@font-face {
  font-family: Inter;
  src: url("/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #efece6;
  --white: #faf8f3;
  --ink: #1c2321;
  --muted: #5d5a50;
  --line: #dcd3c4;
  --forest: #262d29;
  --deep: #1c2321;
  --sand: #d2bc8d;
  --brown: #5a4122;
  --gold-line: #b89c66;
  --warm-light: #f0e9dc;
  --red: #993e32;
  --shadow: 0 2px 7px #30271808;
  --radius: 7px;
  --serif: Georgia, "Times New Roman", serif;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  line-height: 1.45;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 290px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .62; cursor: default; }
a { color: inherit; }
:focus-visible { outline: 2px solid #976720; outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
i[data-icon] { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; vertical-align: middle; }
i[data-icon] svg { width: 19px; height: 19px; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 10px; background: var(--white); }

.top { background: var(--deep); color: #f6f3ec; border-bottom: 1px solid var(--gold-line); }
.top-inner, .shell { max-width: 1280px; margin-inline: auto; padding-inline: 40px; }
.top-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: block; object-fit: contain; }
.brand-wordmark { display: block; object-fit: contain; }
.brand-separator { align-self: stretch; margin: 5px 6px; width: 1px; background: #d2bc8d60; }
.brand-crm { color: var(--sand); font-size: .79rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.private-mark { display: flex; align-items: center; gap: 8px; color: #e5dcc9; font-size: .85rem; }
.private-mark svg { width: 15px !important; height: 15px !important; }

.shell { padding-top: 27px; padding-bottom: 60px; }
.intro {
  display: flex; align-items: end; justify-content: space-between; gap: 24px; min-height: 176px;
  padding: 29px 30px 27px; margin-bottom: 18px; border: 1px solid #52462d; border-radius: var(--radius);
  color: #f6f3ec; background-color: #24231c;
  background-image: linear-gradient(90deg, #24231c 0%, #24231cf2 31%, #24231c45 80%), url("/schwarzwald.webp");
  background-repeat: no-repeat; background-size: cover, 77% auto; background-position: center, right 49%;
}
.intro h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.65rem); line-height: 1.03; letter-spacing: -.04em; font-weight: 500; }
.intro p { margin-top: 9px; color: #e5dac4; font-size: 1rem; }
.intro-actions, .file-actions, .foot-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.intro-actions { flex-shrink: 0; }
.button {
  appearance: none; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 43px; padding: 9px 14px; border: 1px solid transparent; border-radius: 5px; white-space: nowrap;
  font-size: .9rem; font-weight: 650; line-height: 1.2; transition: background .15s, border-color .15s;
}
.button i[data-icon] svg { width: 17px; height: 17px; }
.primary { color: #fffdf6; background: var(--forest); border-color: var(--forest); }
.primary:hover:not(:disabled) { background: var(--deep); }
.secondary { background: var(--white); border-color: #d4cabc; }
.secondary:hover:not(:disabled) { background: var(--warm-light); border-color: var(--gold-line); }
.intro-actions .primary { background: var(--sand); border-color: var(--sand); color: #251e13; }
.intro-actions .primary:hover:not(:disabled) { background: #e5d3ab; border-color: #e5d3ab; }
.intro-actions .secondary { background: #25231dbd; border-color: #a98d60; color: #f6f3ec; }
.intro-actions .secondary:hover:not(:disabled) { background: #4a3c29; }
.intro :focus-visible { outline-color: #eed5a3; }

.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.channel {
  text-align: left; min-height: 87px; padding: 14px 15px; display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.channel:hover { border-color: var(--gold-line); }
.channel[aria-pressed="true"] { background: #e9deca; border-color: var(--gold-line); box-shadow: inset 0 -2px var(--gold-line); }
.channel-icon {
  width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--warm-light); color: var(--brown); border-radius: 5px;
}
.channel[aria-pressed="true"] .channel-icon { background: var(--brown); color: #f6edde; }
.channel-text { flex: 1; min-width: 0; }
.channel-text strong { display: block; font-size: 1rem; font-weight: 680; }
.channel-text small { display: block; margin-top: 3px; color: var(--muted); font-size: .82rem; }
.channel-count {
  min-width: 28px; padding: 4px 5px; background: var(--warm-light); color: var(--brown);
  text-align: center; border-radius: 4px; font-size: .81rem; font-variant-numeric: tabular-nums; font-weight: 700;
}
.channel[aria-pressed="true"] .channel-count { color: var(--brown); background: #dbc8a4; }

.metrics { margin-block: 21px 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  min-height: 93px; padding: 12px 15px; text-align: left; box-shadow: var(--shadow);
}
.metric[aria-pressed="true"] { border-color: var(--gold-line); background: #f6f0e2; }
.metric:hover { border-color: var(--gold-line); }
.metric-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.metric-title i { color: #7d613c; }
.metric-title svg { width: 17px !important; height: 17px !important; }
.metric strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 2.15rem; font-weight: 400; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric[data-metric="due"] i { color: var(--brown); }

.board { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 12px; }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 19px; }
.board-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.board-title h2 { font-family: var(--serif); font-size: 1.52rem; font-weight: 500; letter-spacing: -.025em; }
.result-count { background: var(--warm-light); border-radius: 4px; color: var(--brown); font-size: .78rem; padding: 3px 7px; font-weight: 675; }
.result-count:empty { display: none; }
.board-tools { display: flex; gap: 8px; }
.search, .sort {
  display: flex; align-items: center; gap: 8px; min-height: 41px; padding-left: 10px;
  border: 1px solid #d4cabc; border-radius: 5px; color: var(--muted); background: var(--white);
}
.search i svg, .sort i svg { width: 16px !important; height: 16px !important; }
.search:focus-within, .sort:focus-within { outline: 2px solid #976720; outline-offset: 2px; }
.search input, .sort select { min-width: 0; border: 0; background-color: transparent; color: var(--ink); font-size: .89rem; outline: 0; }
.search input { width: min(18vw, 230px); padding: 9px 8px 9px 0; }
.search input::placeholder { color: #676f67; }
.sort select { padding: 8px 26px 8px 0; cursor: pointer; max-width: 100%; }
select {
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2358625a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 8px center; background-repeat: no-repeat; background-size: 15px;
}
.filter-button { min-height: 41px; }
#filter-count { color: white; background: var(--forest); padding: 2px 5px; border-radius: 4px; font-size: .73rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 19px 13px; }
.filter-chip { border: 1px solid #d9c8a9; color: var(--brown); background: var(--warm-light); border-radius: 4px; padding: 5px 8px; font-size: .85rem; }
.filter-chip i svg { width: 13px; height: 13px; }
.records { border-top: 1px solid var(--line); }
.empty { padding: 38px 20px 43px; min-height: 244px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.empty-icon { width: 49px; height: 49px; display: grid; place-items: center; color: var(--brown); background: var(--warm-light); border-radius: 6px; margin-bottom: 12px; }
.empty-icon i svg { width: 24px; height: 24px; }
.empty h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -.025em; }
.empty p { margin-top: 6px; color: var(--muted); font-size: .94rem; max-width: 37ch; }
.empty .button { margin-top: 15px; }

table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 13px 10px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { background: #f0eae0; color: #544a3b; font-size: .82rem; font-weight: 700; }
th:first-child, td:first-child { padding-left: 19px; }
th:last-child, td:last-child { padding-right: 17px; }
td { font-size: .89rem; border-top: 1px solid #e7e0d4; }
th:nth-child(1) { width: 21%; }
th:nth-child(2) { width: 24%; }
th:nth-child(3) { width: 18%; }
th:nth-child(4) { width: 26%; }
th:nth-child(5) { width: 11%; }
.record-row:hover { background: #f6f0e5; }
.record-link { background: none; border: 0; padding: 0; text-align: left; font-weight: 700; color: var(--brown); max-width: 100%; overflow-wrap: anywhere; }
.record-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.record-main { font-weight: 650; }
.record-sub { color: var(--muted); display: block; margin-top: 4px; font-size: .83rem; }
.record-sub svg { width: 13px !important; height: 13px !important; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; background: #eef0e9; color: #4b584e; padding: 4px 7px; font-size: .81rem; font-weight: 675; line-height: 1.15; }
.status::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.status-new, .status-won { background: #e6efe2; color: #345436; }
.status-progress { background: #f4ead7; color: #704820; }
.status-offer { background: #e7eef3; color: #35566d; }
.due { color: var(--red); font-weight: 650; }

dialog {
  border: 1px solid var(--line); border-radius: 8px; padding: 0; background: var(--white); color: var(--ink);
  max-width: calc(100vw - 28px); max-height: calc(100dvh - 28px); box-shadow: 0 16px 80px #15251c3a;
}
dialog::backdrop { background: #1d2b24a3; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 13px; border-bottom: 1px solid #d1be98; background: #f0ebe1; padding: 15px 20px; }
.dialog-head h2 { font-family: var(--serif); font-size: 1.76rem; font-weight: 500; letter-spacing: -.025em; }
.dialog-head p { color: var(--muted); margin-top: 2px; font-size: .85rem; }
.icon-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #47534b; }
.icon-button:hover { background: var(--warm-light); border-color: var(--line); }
.dialog-foot { border-top: 1px solid var(--line); padding: 12px 20px; display: flex; justify-content: space-between; gap: 8px; }
.filters-dialog { width: 640px; }
.filters-dialog[open] { display: flex; flex-direction: column; }
.filter-content, .editor-body { overflow: auto; overscroll-behavior: contain; }
.filter-content { padding: 17px 20px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-size: .92rem; font-weight: 700; margin-bottom: 8px; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 7px; }
.checks label, .check-line {
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  background: #fcfaf5; color: var(--ink); padding: 6px 9px; border-radius: 5px; min-height: 37px; font-size: .88rem; font-weight: 550;
}
.checks label:has(input:checked), .check-line:has(input:checked) { background: #eee3ce; border-color: var(--gold-line); color: var(--brown); }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brown); margin: 0; flex: 0 0 auto; }
.editor { width: 755px; }
.editor form { display: flex; flex-direction: column; max-height: calc(100dvh - 30px); }
.editor-body { min-height: 0; padding: 0 20px; scroll-padding-block: 12px; }
.form-section { padding: 16px 0 19px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 13px; font-family: var(--serif); font-size: 1.26rem; font-weight: 500; }
.form-section h3 i { color: #7a5a32; }
.form-section > p { font-size: .89rem; margin-bottom: 10px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid > label:not(.check-line), .item-row > label { display: grid; gap: 4px; align-content: start; font-size: .89rem; font-weight: 630; }
.form-grid > label:has(input[type="number"]) { min-width: 0; }
.form-grid input:not([type="checkbox"]), .form-grid select, .form-grid textarea, .item-row input, .product-actions select {
  width: 100%; min-width: 0; color: var(--ink); background-color: #fffdf8; border: 1px solid #d4cabc;
  border-radius: 5px; padding: 7px 9px; min-height: 41px; line-height: 1.3; font-size: 1rem; font-weight: 400;
}
.form-grid select { padding-right: 26px; }
.form-grid textarea { resize: vertical; }
.check-line { justify-self: start; }
.budget { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.positions { margin-top: 15px; }
.positions h4 { font-size: .93rem; }
.product-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 7px; }
.product-actions select { padding-right: 28px; cursor: pointer; }
.compact { min-height: 35px; padding: 6px 9px; }
.item-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(56px, .55fr) minmax(89px, .85fr) auto; gap: 7px; align-items: end; margin-top: 9px; }
.item-row .icon-button { margin-bottom: 1px; }
.positions-total { margin-top: 9px; text-align: right; font-size: .89rem; font-weight: 650; }
.file-actions { align-items: center; }
.file-actions label { cursor: pointer; }
.file-actions:focus-within label { border-color: var(--gold-line); }
.file-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.file-row a, .file-row strong { display: block; overflow-wrap: anywhere; font-size: .9rem; font-weight: 650; }
.file-row small { display: block; color: var(--muted); }
.file-row a:hover { color: var(--brown); }
.file-row-actions { display: flex; align-items: center; gap: 4px; }
.editor-foot { justify-content: flex-end; }
#delete-contact { margin-right: auto; }
.danger-quiet { color: var(--red); background: transparent; }
.danger-quiet:hover:not(:disabled) { background: #fbede9; }
.inline-error, .form-error { color: #8e372c !important; font-size: .9rem; }
.inline-error { margin-top: 8px; }
.form-error { margin: 7px 20px; }
.toast {
  position: fixed; z-index: 5; right: 22px; bottom: 20px; max-width: min(410px, calc(100vw - 44px));
  border-radius: 8px; padding: 11px 15px; box-shadow: 0 3px 14px #0002; color: white; background: var(--forest);
  font-size: .95rem;
}


/* Anmeldung, Nutzerbereich, Rechte */
.user-area { display: flex; align-items: center; gap: 6px; }
.user-name { display: grid; text-align: right; margin-right: 6px; line-height: 1.2; }
.user-name strong { font-size: .9rem; font-weight: 600; }
.user-name small { color: var(--sand); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.top-button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; border-radius: 5px;
  border: 1px solid #d2bc8d55; background: transparent; color: #f6f3ec; font-size: .85rem; font-weight: 600;
}
.top-button:hover { background: #ffffff14; border-color: var(--sand); }
.top-button svg { width: 16px !important; height: 16px !important; }
.login {
  min-height: calc(100dvh - 77px); display: grid; place-items: center; padding: 30px 16px;
  background-color: #24231c;
  background-image: linear-gradient(180deg, #24231cd9, #24231cf2), url("/schwarzwald.webp");
  background-size: cover; background-position: center;
}
.login-card {
  width: min(400px, 100%); display: grid; gap: 13px; padding: 28px 26px; border-radius: 8px;
  background: var(--white); border: 1px solid var(--gold-line); box-shadow: 0 16px 60px #0006;
}
.login-card img { justify-self: start; }
.login-card h1 { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; letter-spacing: -.03em; }
.login-card p { color: var(--muted); margin-top: -8px; }
.login-card label, .small-dialog label { display: grid; gap: 4px; font-size: .89rem; font-weight: 630; }
.login-card input, .small-dialog input {
  width: 100%; color: var(--ink); background: #fffdf8; border: 1px solid #d4cabc; border-radius: 5px;
  padding: 7px 9px; min-height: 43px; font-size: 1rem;
}
.login-card small, .small-dialog small { color: var(--muted); font-size: .82rem; }
.login-card .form-error { margin: 0; }
.small-dialog { width: 440px; }
.small-dialog .filter-content { display: grid; gap: 12px; }
.small-dialog .form-error { margin: 0; }
.small-dialog .dialog-foot { justify-content: flex-end; }
.hint { background: #f3ead6; border: 1px solid var(--gold-line); border-radius: 5px; padding: 9px 11px; font-size: .9rem; }
#users-dialog[open] { display: flex; flex-direction: column; }
#users-dialog .editor-body { padding-bottom: 10px; }
.role-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9rem; }
.role-list strong { display: inline-block; min-width: 96px; color: var(--brown); }
.user-list { display: grid; }
.user-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.user-row.inactive { opacity: .6; }
.user-main strong { display: block; }
.user-main small { display: block; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.user-role select { width: 100%; min-height: 37px; border: 1px solid #d4cabc; border-radius: 5px; background: #fffdf8; padding: 5px 8px; }
.user-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.temp-password { margin-top: 12px; display: grid; gap: 5px; padding: 12px; border-radius: 6px; background: #eee3ce; border: 1px solid var(--gold-line); }
.temp-password code { font-size: 1.2rem; font-weight: 700; letter-spacing: .06em; user-select: all; }
.temp-password small { color: var(--muted); }
.form-submit { display: flex; align-items: end; }
#users-dialog .form-error { margin: 8px 0 0; }
.read-only .file-actions, .read-only .product-actions, .read-only [data-remove-item] { display: none; }
.read-only input:disabled, .read-only select:disabled, .read-only textarea:disabled { opacity: 1; color: var(--ink); background: #f6f2ea; }

@media (max-width: 980px) {
  .top-inner, .shell { padding-inline: 24px; }
  .channel { padding: 11px; gap: 8px; }
  .channel-icon { width: 37px; height: 37px; }
  .channel-text small { font-size: .78rem; }
  .board-top { align-items: stretch; flex-wrap: wrap; }
  .search input { width: 160px; }
}
@media (max-width: 720px) {
  .top-inner, .shell { padding-inline: 15px; }
  .top-inner { min-height: 63px; }
  .brand { gap: 8px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-wordmark { width: 120px; height: 35px; }
  .brand-separator { margin-inline: 3px; }
  .brand-crm { font-size: .72rem; }
  .private-mark { font-size: 0; }
  .private-mark svg { width: 17px !important; height: 17px !important; }
  .shell { padding-top: 15px; padding-bottom: 35px; }
  .intro {
    flex-direction: column; align-items: stretch; justify-content: end; padding: 15px 13px; gap: 12px; min-height: 146px;
    margin-bottom: 12px; background-image: linear-gradient(90deg, #24231ce6, #24231c65), url("/schwarzwald.webp");
    background-size: cover; background-position: center;
  }
  .intro h1 { font-size: clamp(1.95rem, 7.7vw, 2.65rem); }
  .intro p { font-size: .86rem; margin-top: 5px; }
  .intro-actions .button { padding-inline: 9px; font-size: .82rem; }
  .intro-actions { flex-direction: row-reverse; justify-content: start; }
  .button { min-height: 44px; }
  .channels { gap: 6px; }
  .channel { min-height: 74px; display: grid; grid-template-columns: 1fr auto; gap: 4px; justify-items: start; padding: 7px 9px; }
  .channel-icon { grid-area: 1 / 1; width: 28px; height: 28px; }
  .channel-icon i svg { width: 16px; height: 16px; }
  .channel-text { grid-area: 2 / 1 / 3 / -1; }
  .channel-text strong { font-size: .875rem; white-space: nowrap; }
  .channel-text small { display: none; }
  .channel-count { grid-area: 1 / 2; align-self: center; min-width: 22px; font-size: .73rem; padding: 3px; }
  .metrics { grid-template-columns: repeat(2, 1fr); margin-block: 13px 16px; gap: 7px; }
  .metric { min-height: 64px; padding: 7px 10px; }
  .metric strong { font-size: 1.73rem; margin-top: 2px; }
  .metric-title { font-size: .83rem; }
  .board-top { padding: 12px; gap: 10px; flex-direction: column; }
  .board-title h2 { font-size: 1.28rem; }
  .board-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .search input { width: 100%; font-size: 1rem; }
  .sort { grid-column: 1 / -1; justify-self: start; min-height: 36px; }
  .sort select { font-size: .86rem; }
  .active-filters { padding-inline: 12px; }
  .empty { padding: 20px 12px 25px; min-height: 205px; }
  .empty h3 { font-size: 1.32rem; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .record-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .58fr); gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
  .record-row:last-child { border-bottom: 0; }
  .record-row td { border: 0; padding: 0; display: block; font-size: .9rem; }
  .record-row .cell-contact { grid-area: 1 / 1; }
  .record-row .cell-status { grid-area: 1 / 2; text-align: right; }
  .record-row .cell-interest { grid-area: 2 / 1 / 3 / -1; }
  .record-row .cell-next { grid-area: 3 / 1; }
  .record-row .cell-created { grid-area: 3 / 2; text-align: right; color: var(--muted); font-size: .79rem; }
  .record-row .cell-next:empty { display: none; }
  .record-sub { margin-top: 2px; }
  dialog { max-width: calc(100vw - 10px); max-height: calc(100dvh - 10px); }
  .editor form { max-height: calc(100dvh - 12px); }
  .dialog-head, .dialog-foot { padding: 10px 12px; }
  .dialog-head h2 { font-size: 1.5rem; }
  .editor-body, .filter-content { padding-inline: 12px; }
  .form-grid { gap: 8px; }
  .budget { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-foot .button { padding-inline: 8px; }
  .dialog-foot .button i { display: none; }
  .toast { right: 12px; bottom: 12px; }
}
@media (max-width: 360px) {
  .top-inner, .shell { padding-inline: 10px; }
  .channel { padding-inline: 6px; }
  .channel-text strong { font-size: .8rem; }
  .item-row { grid-template-columns: minmax(0, 1fr) minmax(47px, .4fr) minmax(64px, .6fr) auto; gap: 4px; }
}

@media (max-width: 720px) {
  .user-name { display: none; }
  .top-button span { display: none; }
  .user-row { grid-template-columns: minmax(0, 1fr); }
  .user-actions { justify-content: flex-start; }
}
