/* Katman sırası (CSS Cascade 5 @layer): sonra bildirilen katman, özgüllükten bağımsız olarak öncekini ezer. Sıra kaynaktaki
   sırayla aynıdır ve katmanlar ardışıktır: kural sırası ve medya bloklarının yeri değişmedi. Katmansız kural yazmayın:
   katmansız kural bütün katmanları ezer (Kasa.Api.Ui.Tests katman.test.mjs denetler).
   tokens      yazı tipi ve :root belirteçleri (renk, gölge, yarıçap)
   reset       kutu modeli, boşluk ve form öğesi yazı tipi sıfırlaması, odak halkası
   base        öğe tipografisi, form alanları, küçük yardımcı sınıflar (.help, .money, [hidden])
   components  düğme, bildirim, giriş, kenar çubuğu, liste, pencere, tablo ve bunların duyarlı (medya) kuralları
   screens     ekrana özgü bölümler: genel kasa, ay seçici, kart/kredi, bildirim, ekstre aktarma ve duyarlı kuralları */
@layer tokens, reset, base, components, screens;
@layer tokens {
  @font-face {
    font-family: KasaSystem;
    src: local("Segoe UI");
    font-display: swap;
  }
  :root {
    --green: #194d3c;
    --green-light: #e7eee5;
    --cream: #f6f3e9;
    --paper: #fffdf7;
    --ink: #243d33;
    --muted: #5d6963;
    --line: #dddcd0;
    --control-line: #858a7f;
    --danger-line: #b97d6f;
    --focus: #9a5f2e;
    --copper: #a35b31;
    --danger: #a13232;
    --radius: 12px;
    --shadow: 0 16px 44px #1c3c2820;
    /* Yüzeyler: form alanı, kenar çubuğu, tablo başlığı, satır ve kart üzerine gelme, düzenleyici ve boş durum zeminleri */
    --white: #ffffff;
    --field: #fffefa;
    --field-disabled: #eeeee5;
    --sidebar: #eeefe4;
    --nav-hover: #e1e6d9;
    --table-head: #f0f0e4;
    --row-hover: #f0eee2;
    --card-hover: #f8f8ee;
    --editor-surface: #f8f7ee;
    --source-surface: #efeee5;
    --empty: #faf8ef;
    --monogram: #e9ecdf;
    --tag: #efeee3;
    --document-type: #eeeee3;
    /* Yazı ve süs çizgileri: menü, ok, boş durum işareti, not ve belge türü yazısı; kesik ve ince kenarlıklar */
    --nav-text: #526356;
    --chevron: #778470;
    --empty-mark: #9fae93;
    --note-text: #546354;
    --document-type-text: #7c826f;
    --control-line-hover: #788d77;
    --empty-line: #cbd0c1;
    --loader-track: #d6ddcf;
    --dialog-line: #d1d4c4;
    --recovery-line: #809777;
    /* Koyu yeşil zemin: birincil düğme üzerine gelme ve giriş/genel kasa kutusundaki açık yazılar ve çizgiler */
    --green-dark: #103d2e;
    --on-green-text: #d8e0d1;
    --on-green-label: #c3d4bd;
    --on-green-muted: #cbd9c5;
    --on-green-faint: #b4c6af;
    --ledger-line: #7c9b83;
    --ledger-rule: #446e56;
    /* Uyarı ve hata: tehlike düğmesi, form hatası, bilgi ve tehlike notu, hata bildirimi */
    --danger-surface: #fff8f2;
    --error-surface: #fcf0ea;
    --notice: #f7ead8;
    --notice-danger: #faeae5;
    --toast-error: #83362d;
    --toast-close-hover: #ffffff26;
    /* Durum rozetleri (zemin / yazı): varsayılan, incelemede, onaylandı, bekliyor, iptal */
    --badge: #e9e9df;
    --badge-text: #646b61;
    --badge-review: #f4e5ce;
    --badge-review-text: #885628;
    --badge-approved: #e3eddf;
    --badge-approved-text: #366341;
    --badge-pending: #faeae1;
    --badge-pending-text: #9b4c2e;
    --badge-cancelled: #f3e4dd;
    --badge-cancelled-text: #8d5149;
    /* Saydam katmanlar: pencere arka perdesi ve ekstre araç çubuğu gölgesi */
    --backdrop: #15291fc0;
    --toolbar-shadow: #243d3310;
    color-scheme: light;
    font-family: KasaSystem, "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--cream);
    font-synthesis: none;
  }
}
@layer reset {
  * {
    box-sizing: border-box;
  }
  body {
    margin: 0;
  }
  button,
  input,
  textarea,
  select {
    font: inherit;
  }
  button,
  a,
  input,
  select,
  textarea {
    -webkit-tap-highlight-color: transparent;
  }
  button,
  a {
    touch-action: manipulation;
  }
  button {
    cursor: pointer;
  }
  button:disabled {
    cursor: wait;
    opacity: 0.55;
  }
  a {
    color: var(--green);
  }
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }
  button {
    transition:
      background 0.16s,
      border-color 0.16s;
  }
  h1,
  h2,
  h3,
  p {
    margin-top: 0;
  }
}
@layer base {
  h1 {
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    font-weight: 650;
    letter-spacing: -0.055em;
    line-height: 1.15;
    margin-bottom: 0;
  }
  h2 {
    font-size: 1.4rem;
    letter-spacing: -0.025em;
    font-weight: 650;
  }
  h3 {
    font-size: 1.04rem;
    font-weight: 650;
  }
  p {
    line-height: 1.6;
  }
  small {
    font-size: 0.8rem;
  }
  input,
  select,
  textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid var(--control-line);
    border-radius: 7px;
    background: var(--field);
    color: var(--ink);
  }
  input::placeholder,
  textarea::placeholder {
    color: var(--muted);
    opacity: 1;
  }
  textarea {
    resize: vertical;
    min-height: 88px;
  }
  input:disabled,
  select:disabled,
  textarea:disabled {
    background: var(--field-disabled);
    color: var(--muted);
  }
  label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
  }
  label > input,
  label > select,
  label > textarea {
    margin-top: 7px;
    font-weight: 400;
  }
  input[type="checkbox"] {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    min-height: 20px;
    margin-right: 8px;
    accent-color: var(--green);
  }
  input[type="file"] {
    font-size: 0.82rem;
    padding: 9px;
  }
  input[type="file"]::file-selector-button {
    background: var(--green-light);
    border: 0;
    border-radius: 4px;
    color: var(--green);
    padding: 6px 10px;
    margin-right: 10px;
  }
  fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
  }
  legend {
    font-size: 1.02rem;
    font-weight: 650;
    margin: 0 0 18px;
  }
  .muted,
  .help {
    color: var(--muted);
  }
  .help {
    font-size: 0.83rem;
    margin: 8px 0 0;
    line-height: 1.5;
  }
  .money {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .negative {
    color: var(--danger);
  }
  .positive {
    color: var(--green);
  }
  [hidden] {
    display: none !important;
  }
}
@layer components {
  .skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 12px;
    background: var(--white);
  }
  .skip-link:focus {
    top: 12px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
    font-weight: 650;
    font-size: 1.55rem;
    letter-spacing: -0.055em;
  }
  .brand-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 43px;
    border: 1px solid currentColor;
    border-radius: 12px 3px 12px 3px;
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 1.7rem;
  }
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--control-line);
    background: var(--paper);
    color: var(--ink);
    border-radius: 7px;
    min-height: 44px;
    padding: 10px 17px;
    font-weight: 600;
    font-size: 0.87rem;
    text-decoration: none;
    line-height: 1.25;
  }
  .button:hover {
    background: var(--green-light);
    border-color: var(--control-line-hover);
  }
  .button.primary {
    background: var(--green);
    border-color: var(--green);
    color: var(--paper);
  }
  .button.primary:hover {
    background: var(--green-dark);
  }
  .button.danger {
    color: var(--danger);
    border-color: var(--danger-line);
    background: var(--danger-surface);
  }
  .button.small {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  .button.full {
    width: 100%;
    justify-content: space-between;
  }
  .icon-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 1.35rem;
  }
  .icon-button:hover {
    background: var(--green-light);
  }
  .link-button {
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 0;
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 0.84rem;
  }
  .row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
  }
  .stack {
    display: grid;
    gap: 18px;
  }
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .span-all {
    grid-column: 1/-1;
  }
  .form-error {
    color: var(--danger);
    background: var(--error-surface);
    border-left: 3px solid var(--danger);
    padding: 10px 12px;
    font-size: 0.88rem;
    white-space: pre-line;
  }
  .notice {
    padding: 14px 16px;
    border-left: 3px solid var(--copper);
    background: var(--notice);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .notice p:last-child {
    margin-bottom: 0;
  }
  .notice.success {
    border-color: var(--green);
    background: var(--green-light);
  }
  .notice.danger {
    border-color: var(--danger);
    background: var(--notice-danger);
  }
  .notifications {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
  }
  .toast {
    background: var(--green);
    color: var(--white);
    border-radius: 9px;
    box-shadow: var(--shadow);
    padding: 15px 20px;
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
  }
  .toast.error {
    background: var(--toast-error);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 10px;
    pointer-events: auto;
  }
  .toast.error > span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .toast-close {
    flex: none;
    min-width: 32px;
    min-height: 32px;
    margin: -6px 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 1.3rem;
    line-height: 1;
  }
  .toast-close:hover {
    background: var(--toast-close-hover);
  }
  .toast-close:focus-visible {
    outline-color: var(--paper);
    outline-offset: -3px;
  }
  .login-screen {
    display: grid;
    grid-template-columns: minmax(400px, 1.08fr) 1fr;
    min-height: 100svh;
  }
  .login-story {
    background: var(--green);
    color: var(--cream);
    padding: 42px clamp(35px, 6vw, 95px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .login-intro {
    margin-top: clamp(55px, 11vh, 125px);
  }
  .intro-label {
    font-size: 0.8rem;
    color: var(--on-green-label);
    margin-bottom: 20px;
  }
  .login-intro h1 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(3rem, 5.1vw, 5.6rem);
    letter-spacing: -0.045em;
    line-height: 1.04;
    margin-bottom: 24px;
  }
  .login-intro > p:last-child {
    font-size: 0.98rem;
    color: var(--on-green-text);
    line-height: 1.7;
  }
  .ledger-art {
    margin: 42px 0 35px;
    padding: 0 6px 0 0;
    transform: rotate(-3deg);
    max-width: 400px;
    color: var(--on-green-text);
  }
  .ledger-art > div:first-child {
    display: flex;
    justify-content: space-between;
    font-family: Georgia, serif;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ledger-line);
  }
  .ledger-art i {
    display: block;
    height: 27px;
    border-bottom: 1px solid var(--ledger-rule);
  }
  .ledger-total {
    text-align: right;
    padding-top: 14px;
    font-family: Georgia, serif;
    font-style: italic;
  }
  .login-foot {
    margin: auto 0 0;
    color: var(--on-green-faint);
    font-size: 0.76rem;
  }
  .login-main {
    display: grid;
    place-items: center;
    padding: 40px;
  }
  .login-card {
    width: min(100%, 365px);
  }
  .login-card h2 {
    font-size: 1.95rem;
    letter-spacing: -0.045em;
    margin-bottom: 10px;
  }
  .login-card form {
    display: grid;
    gap: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .login-card .button {
    margin-top: 7px;
    min-height: 50px;
  }
  .login-card .form-error {
    margin: 0;
  }
  .login-help {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 26px;
    line-height: 1.55;
  }
  .mobile-brand {
    display: none;
  }
  .application {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    min-height: 100svh;
  }
  .sidebar {
    padding: 30px 20px;
    position: sticky;
    top: 0;
    height: 100svh;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    background: var(--sidebar);
  }
  .sidebar .brand {
    padding: 0 14px 37px;
  }
  .sidebar nav {
    display: grid;
    gap: 6px;
  }
  .nav-button {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: none;
    border-radius: 7px;
    padding: 13px 14px;
    color: var(--nav-text);
    text-align: left;
    font-size: 0.9rem;
    font-weight: 550;
    white-space: nowrap;
  }
  .nav-button:hover {
    background: var(--nav-hover);
  }
  .nav-button.active {
    background: var(--green);
    color: var(--paper);
  }
  .nav-icon {
    display: inline-grid;
    place-items: center;
    font-family: Georgia, serif;
    width: 22px;
    font-size: 1.1rem;
    font-weight: 400;
  }
  .sidebar-foot {
    margin-top: auto;
    padding: 22px 14px 0;
    border-top: 1px solid var(--line);
  }
  .role-label {
    display: block;
    font-size: 0.74rem;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .logout {
    background: none;
    border: 0;
    padding: 6px 0;
    color: var(--ink);
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
  }
  .main {
    padding: 40px clamp(22px, 4vw, 64px) 22px;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    min-width: 0;
  }
  .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 32px;
  }
  .context {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .header-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .page-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.71rem;
    color: var(--muted);
    padding-top: 28px;
    margin-top: 36px;
    border-top: 1px solid var(--line);
  }
  .summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 26px;
  }
  .summary {
    padding: 21px 24px;
  }
  .summary + .summary {
    border-left: 1px solid var(--line);
  }
  .summary-label {
    display: block;
    color: var(--muted);
    font-size: 0.77rem;
    margin-bottom: 9px;
  }
  .summary-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
  }
  .summary-note {
    font-size: 0.74rem;
    color: var(--muted);
    margin-top: 8px;
  }
  .toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 19px;
  }
  .toolbar .search {
    flex: 1;
    min-width: 200px;
  }
  .toolbar select {
    width: auto;
    min-width: 170px;
  }
  .toolbar input {
    background: var(--paper);
  }
  .toolbar-label {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
  }
  .purchase-list {
    border-top: 1px solid var(--line);
  }
  .purchase-row {
    display: grid;
    grid-template-columns: 46px minmax(150px, 1fr) 150px 140px 30px;
    gap: 17px;
    width: 100%;
    align-items: center;
    padding: 20px 4px;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-align: left;
  }
  .purchase-row:hover {
    background: var(--row-hover);
  }
  .purchase-monogram {
    width: 43px;
    height: 46px;
    display: grid;
    place-items: center;
    background: var(--monogram);
    border-radius: 9px;
    color: var(--green);
    font-family: Georgia, serif;
    font-size: 1.4rem;
  }
  .purchase-name {
    font-weight: 650;
    margin-bottom: 6px;
    font-size: 0.97rem;
  }
  .purchase-meta {
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.4;
  }
  .purchase-total {
    text-align: right;
    font-weight: 650;
    font-size: 1rem;
  }
  .purchase-total small {
    display: block;
    font-weight: 400;
    color: var(--muted);
    margin-top: 6px;
    font-size: 0.72rem;
  }
  .chevron {
    text-align: right;
    color: var(--chevron);
  }
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 4px;
    background: var(--badge);
    color: var(--badge-text);
    white-space: nowrap;
    width: fit-content;
  }
  .badge::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
  }
  .badge.review {
    background: var(--badge-review);
    color: var(--badge-review-text);
  }
  .badge.approved {
    background: var(--badge-approved);
    color: var(--badge-approved-text);
  }
  .badge.pending {
    background: var(--badge-pending);
    color: var(--badge-pending-text);
  }
  .badge.cancelled {
    color: var(--badge-cancelled-text);
    background: var(--badge-cancelled);
  }
  .empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 28px;
    border: 1px dashed var(--empty-line);
    border-radius: 10px;
    background: var(--empty);
  }
  .empty .empty-mark {
    font-size: 2.5rem;
    color: var(--empty-mark);
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 20px;
  }
  .empty h2 {
    font-size: 1.2rem;
    margin-bottom: 9px;
  }
  .empty p {
    max-width: 430px;
    font-size: 0.89rem;
    color: var(--muted);
    margin-bottom: 22px;
  }
  .loader {
    width: 28px;
    height: 28px;
    border: 2px solid var(--loader-track);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  .back-link {
    display: inline-flex;
    gap: 8px;
    border: 0;
    background: none;
    color: var(--green);
    padding: 0 0 18px;
    font-size: 0.83rem;
  }
  .detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 25px;
    align-items: start;
  }
  .section {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 22px;
  }
  .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
  }
  .section-head h2,
  .section-head h3 {
    margin: 0;
  }
  .section-head h2 {
    font-size: 1.15rem;
  }
  .metadata {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }
  .metadata dt {
    font-size: 0.73rem;
    color: var(--muted);
    margin-bottom: 7px;
  }
  .metadata dd {
    margin: 0;
    font-size: 0.87rem;
    font-weight: 550;
    overflow-wrap: anywhere;
  }
  .item-detail + .item-detail {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 18px;
  }
  .item-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 9px;
  }
  .allocation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .allocation-tag {
    font-size: 0.73rem;
    padding: 5px 8px;
    background: var(--tag);
    border-radius: 4px;
  }
  .purchase-note {
    font-size: 0.86rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--note-text);
    margin: 22px 0 0;
  }
  .total-line {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 0;
    font-size: 0.88rem;
  }
  .total-line.strong {
    border-top: 1px solid var(--line);
    margin-top: 9px;
    padding-top: 20px;
    font-size: 1.1rem;
    font-weight: 650;
  }
  .detail-actions {
    display: grid;
    gap: 10px;
    margin-top: 23px;
  }
  .detail-actions .button {
    width: 100%;
  }
  .payment {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 0;
    border-top: 1px solid var(--line);
  }
  .payment:first-of-type {
    border-top: 0;
  }
  .payment-name {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .payment-info {
    font-size: 0.77rem;
    color: var(--muted);
    line-height: 1.6;
  }
  .payment .row-actions {
    margin-top: 10px;
  }
  .payment-amount {
    text-align: right;
    font-weight: 600;
    font-size: 0.95rem;
  }
  .payment.cancelled {
    opacity: 0.65;
  }
  .payment.cancelled .payment-amount {
    text-decoration: line-through;
  }
  .document-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .document-row:last-child {
    border: 0;
  }
  .document-row.removed {
    opacity: 0.7;
  }
  .document-row.removed a {
    text-decoration: line-through;
  }
  .document-row a {
    flex: 1;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
  }
  .document-type {
    display: grid;
    place-items: center;
    width: 35px;
    height: 40px;
    background: var(--document-type);
    border-radius: 4px;
    color: var(--document-type-text);
    font-size: 0.63rem;
    font-weight: 650;
    flex: none;
  }
  .file-size {
    font-size: 0.72rem;
    color: var(--muted);
  }
  dialog {
    border: 1px solid var(--dialog-line);
    border-radius: 14px;
    padding: 0;
    box-shadow: var(--shadow);
    width: min(670px, calc(100vw - 30px));
    max-height: calc(100svh - 40px);
    background: var(--paper);
    color: var(--ink);
  }
  dialog::backdrop {
    background: var(--backdrop);
    backdrop-filter: blur(3px);
  }
  dialog.wide {
    width: min(940px, calc(100vw - 30px));
  }
  .modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 21px 26px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 2;
  }
  .modal-head h2 {
    margin: 0;
    font-size: 1.25rem;
  }
  #modal-content {
    padding: 24px 26px;
  }
  .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
  }
  .line-editor {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--editor-surface);
  }
  .line-editor + .line-editor {
    margin-top: 14px;
  }
  .line-editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.86rem;
    font-weight: 650;
  }
  .item-fields {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) 150px;
    gap: 12px;
  }
  .allocation-editor {
    padding-top: 17px;
    margin-top: 15px;
    border-top: 1px solid var(--line);
  }
  .allocation-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .allocation-editor-head span {
    font-size: 0.76rem;
    color: var(--muted);
  }
  .allocation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 135px 35px;
    gap: 10px;
    align-items: end;
    margin-bottom: 10px;
  }
  .allocation-row label {
    font-size: 0.73rem;
  }
  .allocation-row .icon-button {
    margin-bottom: 4px;
  }
  .allocation-summary {
    font-size: 0.78rem;
    margin-top: 11px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  .allocation-summary.invalid {
    color: var(--copper);
  }
  .draft-total {
    display: flex;
    justify-content: space-between;
    font-weight: 650;
    padding: 20px 0 4px;
    font-size: 1.15rem;
  }
  .table-wrap {
    overflow: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 9px;
  }
  .table-wrap:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }
  table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.86rem;
    text-align: left;
  }
  th {
    font-weight: 550;
    font-size: 0.74rem;
    color: var(--muted);
    background: var(--table-head);
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
  }
  td {
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
  }
  tr:last-child td {
    border-bottom: 0;
  }
  th.amount,
  td.amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .table-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--green);
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .table-sub {
    display: block;
    font-size: 0.74rem;
    color: var(--muted);
    margin-top: 5px;
  }
  .settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .settings-grid .section {
    margin: 0;
  }
  .settings-grid .section > p {
    font-size: 0.84rem;
    color: var(--muted);
  }
  .recovery-code {
    display: block;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    padding: 20px;
    background: var(--green-light);
    border: 1px dashed var(--recovery-line);
    font-family: ui-monospace, monospace;
    line-height: 1.6;
    font-size: 1.15rem;
    border-radius: 7px;
    margin: 20px 0;
  }
  .plan-note {
    font-size: 0.8rem;
    margin: 10px 0 21px;
    color: var(--muted);
  }
  .buyer-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .buyer-row:last-child {
    border: 0;
  }
  .buyer-row strong {
    display: block;
    font-size: 0.88rem;
  }
  .buyer-row small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
  }
  .plain-note {
    font-size: 0.86rem;
    color: var(--muted);
    padding: 8px 0;
    margin: 0;
    line-height: 1.6;
  }
  .filter-period {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: flex-end;
  }
  .filter-period label {
    flex: 1;
    min-width: 150px;
  }
  @media (min-width: 1450px) {
    .main {
      padding-left: 64px;
      padding-right: 64px;
    }
    .detail-grid {
      grid-template-columns: minmax(0, 1fr) 345px;
    }
  }
  @media (max-width: 1100px) {
    .application {
      grid-template-columns: 190px minmax(0, 1fr);
    }
    .sidebar {
      padding-left: 13px;
      padding-right: 13px;
    }
    .main {
      padding: 30px 24px 20px;
    }
    .detail-grid {
      grid-template-columns: minmax(0, 1fr) 270px;
      gap: 18px;
    }
    .section {
      padding: 19px;
    }
    .purchase-row {
      grid-template-columns: 42px minmax(120px, 1fr) 120px 115px 15px;
      gap: 10px;
    }
    .summary {
      padding: 20px 18px;
    }
    .summary-value {
      font-size: 1.4rem;
    }
  }
  @media (max-width: 900px) {
    .detail-grid {
      grid-template-columns: 1fr;
    }
    .detail-summary {
      grid-row: 1;
    }
    .detail-summary .section {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 25px;
    }
    .detail-summary .section > h2 {
      grid-column: 1/-1;
    }
    .detail-summary .detail-actions {
      grid-column: 2;
      grid-row: 2 / span 5;
      margin-top: 0;
      align-content: start;
    }
    .detail-summary .total-line {
      grid-column: 1;
    }
    .purchase-row {
      grid-template-columns: 42px minmax(110px, 1fr) 105px 22px;
    }
    .purchase-row > .status-cell {
      grid-column: 2;
      grid-row: 2;
      margin-top: -6px;
    }
    .purchase-row > .purchase-monogram {
      grid-row: 1 / span 2;
    }
    .purchase-row > .purchase-total {
      grid-column: 3;
      grid-row: 1 / span 2;
    }
    .purchase-row > .chevron {
      grid-column: 4;
      grid-row: 1 / span 2;
    }
    .purchase-row {
      row-gap: 11px;
    }
    .settings-grid {
      grid-template-columns: 1fr;
    }
    .login-screen {
      grid-template-columns: 1fr 1fr;
    }
    .login-story {
      padding: 35px;
    }
    .login-main {
      padding: 28px;
    }
    .login-intro h1 {
      font-size: 3.3rem;
    }
    .item-fields {
      grid-template-columns: minmax(140px, 1fr) 120px;
    }
  }
  @media (max-width: 700px) {
    .application {
      display: block;
    }
    .sidebar {
      position: sticky;
      top: 0;
      height: auto;
      z-index: 10;
      padding: 12px 16px 0;
      border-right: 0;
      border-bottom: 1px solid var(--line);
      display: grid;
      grid-template-columns: 1fr auto;
      background: var(--sidebar);
    }
    .sidebar .brand {
      font-size: 1.3rem;
      padding: 0;
    }
    .sidebar .brand-mark {
      width: 28px;
      height: 31px;
      font-size: 1.25rem;
      border-radius: 8px 2px 8px 2px;
    }
    .sidebar nav {
      grid-column: 1/-1;
      grid-row: 2;
      display: flex;
      overflow-x: auto;
      gap: 5px;
      margin: 12px -16px 0;
      padding: 0 16px 9px;
      scrollbar-width: thin;
    }
    .nav-button {
      padding: 10px 12px;
      font-size: 0.79rem;
      min-height: 39px;
    }
    .nav-icon {
      display: none;
    }
    .sidebar-foot {
      display: flex;
      align-items: center;
      gap: 13px;
      margin: 0;
      padding: 0;
      border: 0;
      grid-row: 1;
      grid-column: 2;
    }
    .role-label {
      margin: 0;
      font-size: 0.68rem;
    }
    .logout {
      font-size: 0.73rem;
      gap: 12px;
      min-height: 36px;
      width: auto;
    }
    .main {
      padding: 25px 18px 18px;
    }
    .page-header {
      margin-bottom: 25px;
      gap: 12px;
      align-items: flex-start;
    }
    .page-header h1 {
      font-size: 2rem;
    }
    .context {
      font-size: 0.73rem;
    }
    .header-actions .button {
      font-size: 0.78rem;
      padding: 10px 13px;
      min-height: 41px;
    }
    .summary-strip {
      margin-bottom: 22px;
    }
    .summary {
      padding: 16px 12px;
    }
    .summary-label {
      font-size: 0.66rem;
      line-height: 1.35;
      min-height: 17px;
    }
    .summary-value {
      font-size: 1.18rem;
    }
    .summary-note {
      display: none;
    }
    .toolbar {
      gap: 9px;
    }
    .toolbar input {
      min-height: 44px;
    }
    .toolbar select {
      min-width: 115px;
      max-width: 45%;
      font-size: 0.82rem;
      padding-left: 10px;
    }
    .toolbar .search {
      min-width: 130px;
    }
    .purchase-row {
      padding: 17px 0;
      grid-template-columns: 36px minmax(0, 1fr) 105px 10px;
      gap: 10px;
    }
    .purchase-monogram {
      width: 35px;
      height: 39px;
      font-size: 1.1rem;
    }
    .purchase-name {
      font-size: 0.87rem;
      overflow-wrap: anywhere;
    }
    .purchase-meta {
      font-size: 0.7rem;
    }
    .purchase-total {
      font-size: 0.89rem;
    }
    .purchase-total small {
      font-size: 0.65rem;
    }
    .badge {
      font-size: 0.65rem;
      padding: 4px 7px;
    }
    .section {
      padding: 18px;
      margin-bottom: 18px;
    }
    .detail-grid {
      gap: 0;
    }
    .metadata {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
    }
    .metadata dt {
      font-size: 0.67rem;
    }
    .metadata dd {
      font-size: 0.8rem;
    }
    .detail-summary .section {
      display: block;
    }
    .detail-summary .detail-actions {
      display: flex;
      flex-wrap: wrap;
      margin-top: 15px;
      gap: 8px;
    }
    .detail-summary .detail-actions .button {
      width: auto;
      flex: 1;
      min-width: 120px;
      font-size: 0.79rem;
    }
    .total-line {
      font-size: 0.82rem;
      padding: 8px 0;
    }
    .total-line.strong {
      padding-top: 15px;
      font-size: 1.04rem;
    }
    .item-heading {
      font-size: 0.86rem;
      gap: 10px;
    }
    .allocation-tag {
      font-size: 0.68rem;
    }
    .payment {
      gap: 8px;
    }
    .payment-amount {
      font-size: 0.84rem;
    }
    .payment .button {
      font-size: 0.71rem;
      min-height: 34px;
      padding: 6px 10px;
    }
    .modal-head {
      padding: 16px 18px;
    }
    #modal-content {
      padding: 19px 18px;
    }
    dialog,
    dialog.wide {
      width: calc(100vw - 20px);
      max-height: calc(100svh - 24px);
    }
    .form-grid {
      gap: 15px;
    }
    .form-grid > label {
      font-size: 0.78rem;
    }
    .line-editor {
      padding: 14px;
    }
    .item-fields {
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .item-fields > label:first-child {
      grid-column: 1/-1;
    }
    .allocation-row {
      grid-template-columns: minmax(0, 1fr) 95px 28px;
      gap: 6px;
    }
    .allocation-row .icon-button {
      width: 28px;
    }
    .allocation-editor-head {
      gap: 8px;
    }
    .allocation-editor-head .button {
      font-size: 0.71rem;
      padding: 7px 8px;
    }
    .line-editor label {
      font-size: 0.74rem;
    }
    .allocation-summary {
      font-size: 0.7rem;
    }
    .modal-actions .button {
      flex: 1;
    }
    .login-screen {
      display: block;
      min-height: 100svh;
    }
    .login-story {
      display: none;
    }
    .login-main {
      padding: 38px 26px;
      min-height: 100svh;
    }
    .mobile-brand {
      display: block;
      font-family: Georgia, serif;
      color: var(--green);
      font-size: 1.6rem;
      margin-bottom: 48px;
    }
    .login-card h2 {
      font-size: 1.85rem;
    }
    .login-help {
      font-size: 0.75rem;
    }
    .notifications {
      right: 16px;
      bottom: 16px;
    }
    .page-footer {
      font-size: 0.64rem;
    }
    .section-head {
      flex-wrap: wrap;
      gap: 12px;
    }
    th,
    td {
      padding: 13px 12px;
      font-size: 0.79rem;
    }
    .filter-period {
      gap: 12px;
    }
    .filter-period label {
      min-width: 120px;
    }
  }
  @media (max-width: 370px) {
    .main {
      padding-left: 12px;
      padding-right: 12px;
    }
    .summary {
      padding: 14px 9px;
    }
    .summary-value {
      font-size: 1.02rem;
    }
    .purchase-row {
      grid-template-columns: 30px minmax(0, 1fr) 90px 9px;
      gap: 8px;
    }
    .purchase-monogram {
      width: 30px;
    }
    .form-grid {
      grid-template-columns: 1fr;
    }
    .span-all {
      grid-column: auto;
    }
    .role-label {
      display: none;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
    .loader {
      border-top-color: var(--green);
      border-right-color: var(--green);
    }
  }
  @media print {
    .sidebar,
    .page-header .header-actions,
    .page-footer,
    .notifications,
    .back-link,
    button {
      display: none !important;
    }
    .application {
      display: block;
    }
    .main {
      padding: 0;
      max-width: none;
    }
    .section,
    .table-wrap {
      break-inside: avoid;
      box-shadow: none;
    }
    body {
      background: var(--white);
    }
    .detail-grid {
      display: block;
    }
  }
}
@layer screens {
  .cash-hero {
    background: var(--green);
    color: var(--paper);
    padding: 28px 30px;
    border-radius: 12px;
    margin-bottom: 22px;
  }
  .cash-hero .summary-label {
    color: var(--on-green-muted);
    font-size: 0.82rem;
    margin-bottom: 14px;
  }
  .cash-total {
    display: block;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.055em;
    line-height: 1.2;
    font-weight: 600;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .cash-total:focus-visible {
    outline: 3px solid var(--paper);
    outline-offset: 3px;
  }
  .channel-balances {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 26px;
  }
  .channel-balance {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
  }
  .channel-name {
    display: block;
    font-size: 0.83rem;
    color: var(--muted);
    margin-bottom: 10px;
    overflow-wrap: anywhere;
  }
  .channel-balance .money {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.04em;
  }
  .month-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .month-picker .button {
    min-width: 44px;
    font-size: 1.1rem;
  }
  .month-picker-value {
    min-width: 128px;
    text-align: center;
    font-weight: 600;
  }
  .month-field {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
  }
  .month-field > .month-picker {
    display: flex;
    margin-top: 7px;
  }
  .filter-period {
    margin-bottom: 18px;
  }
  @media (max-width: 1000px) {
    .channel-balances {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .channel-balance .money {
      font-size: 1.35rem;
    }
  }
  @media (max-width: 700px) {
    .cash-hero {
      padding: 24px 21px;
    }
    .channel-balances {
      gap: 0 18px;
    }
    .channel-balance .money {
      font-size: 1.2rem;
    }
    .channel-name {
      font-size: 0.75rem;
    }
    .item-fields {
      grid-template-columns: 1fr;
    }
    .item-fields > label:first-child {
      grid-column: auto;
    }
    .metadata {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 370px) {
    .channel-balances {
      grid-template-columns: 1fr;
    }
  }
  .finance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .finance-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 12px;
    padding: 23px;
    color: var(--ink);
    min-width: 0;
  }
  .finance-card:hover {
    border-color: var(--green);
    background: var(--card-hover);
  }
  .finance-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
  }
  .finance-card-head strong {
    font-size: 1.08rem;
    overflow-wrap: anywhere;
  }
  .finance-card > .money {
    font-size: 1.8rem;
    font-weight: 650;
    letter-spacing: -0.04em;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .finance-card small {
    font-size: 0.78rem;
    color: var(--muted);
  }
  .finance-card .summary-label {
    margin-bottom: -8px;
  }
  .channel-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .channel-options label {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
  }
  .channel-options input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    flex: none;
  }
  .notification-list {
    display: grid;
    gap: 14px;
  }
  .notification-item {
    padding: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 8px;
  }
  .notification-item.read {
    border-left-color: var(--line);
  }
  .notification-item h2 {
    font-size: 1.05rem;
    margin: 12px 0 8px;
  }
  .notification-item p {
    font-size: 0.88rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .notification-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 0.75rem;
  }
  .notification-item .row-actions {
    margin-top: 16px;
  }
  @media (max-width: 700px) {
    .finance-grid {
      grid-template-columns: 1fr;
      gap: 14px;
    }
    .finance-card {
      padding: 20px;
    }
    .finance-card > .money {
      font-size: 1.6rem;
    }
    .channel-options {
      grid-template-columns: 1fr;
    }
    .notification-item {
      padding: 18px;
    }
    .sidebar nav {
      max-width: 100vw;
    }
  }
  .channel-card-debt {
    border-top: 1px solid var(--line);
    padding-top: 11px;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
  }
  .channel-card-debt .money {
    font-size: inherit;
    font-weight: 600;
    color: var(--ink);
  }
  .minimum-status {
    display: block;
    min-width: 155px;
    margin-top: 7px;
    line-height: 1.5;
    color: var(--green);
  }
  .minimum-status.pending {
    color: var(--copper);
  }
  .similar-warning {
    margin: 0;
    padding: 18px;
  }
  .similar-records {
    padding-left: 20px;
    margin: 14px 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
  .similar-warning .row-actions {
    margin-top: 14px;
  }
  .monthly-allocation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 160px);
    gap: 18px;
    align-items: center;
  }
  .monthly-allocation label {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
  }
  .monthly-allocation input[type="checkbox"] {
    flex: none;
    margin: 0;
  }
  .channel-balance.below-threshold {
    border-bottom-color: var(--copper);
  }
  .below-threshold > .badge {
    display: block;
    width: fit-content;
    margin: 10px 0;
    white-space: normal;
    line-height: 1.5;
  }
  details > summary {
    cursor: pointer;
    font-weight: 600;
    padding: 8px 0;
    font-size: 0.88rem;
  }
  details[open] > summary {
    margin-bottom: 12px;
  }
  @media (min-width: 701px) {
    .sidebar nav {
      min-height: 0;
      overflow-y: auto;
      padding-bottom: 16px;
    }
    .sidebar-foot {
      flex-shrink: 0;
    }
  }
  .import-source {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .import-source .span-all {
    grid-column: 1/-1;
  }
  .import-rows {
    display: grid;
    gap: 14px;
  }
  .import-row {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
  }
  .import-row.selected {
    border-color: var(--green);
    box-shadow: inset 3px 0 var(--green);
  }
  .import-row-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
  }
  .import-row-head label {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-wrap: anywhere;
  }
  .import-row-head input {
    flex: none;
    margin: 0;
  }
  .import-source-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.79rem;
    line-height: 1.6;
    padding: 11px 13px;
    background: var(--source-surface);
    border-radius: 6px;
    margin: 8px 0;
  }
  .import-row .form-grid {
    margin-top: 14px;
  }
  .import-row .allocation-row {
    margin-top: 10px;
  }
  .import-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 15px 18px;
    z-index: 2;
    box-shadow: 0 -3px 14px var(--toolbar-shadow);
  }
  .import-preview {
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
  .import-preview .notice {
    margin-bottom: 12px;
  }
  .import-status {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--muted);
  }
  .import-warning {
    color: var(--copper);
  }
  .import-source-title {
    overflow-wrap: anywhere;
  }
  .import-bank-hint {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
  }
  .import-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .import-row fieldset {
    margin-top: 15px;
  }
  .import-preview table {
    min-width: 600px;
  }
  @media (max-width: 700px) {
    .import-source {
      grid-template-columns: 1fr;
    }
    .import-source .span-all {
      grid-column: auto;
    }
    .import-row {
      padding: 15px;
    }
    .import-row-head {
      gap: 10px;
      flex-wrap: wrap;
    }
    .import-row .form-grid {
      grid-template-columns: 1fr;
    }
    .import-toolbar {
      padding: 13px;
      gap: 10px;
    }
    .import-toolbar .button {
      flex: 1;
    }
    .import-toolbar strong {
      width: 100%;
    }
  }
  .signed-amount {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    margin-top: 7px;
    font-weight: 400;
  }
  .signed-amount > select {
    width: auto;
  }
  @media (max-width: 700px) {
    .form-grid > .signed-field {
      grid-column: 1/-1;
    }
  }
}
