:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #193347; background: #f4f7fa; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid #c9d6e0; border-radius: 8px; background: #fff; color: #164568; padding: 9px 14px; }
button:hover { background: #eaf3f8; }
button.primary { background: #176a9b; border-color: #176a9b; color: white; }
button.primary:hover { background: #0f567f; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 68px; padding: 12px clamp(18px, 4vw, 60px); color: #fff; background: #124c73; }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 20px; }
.brand small { display: block; font-weight: 500; font-size: 12px; letter-spacing: .12em; opacity: .85; }
.mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; color: #176a9b; }
.account { display: flex; gap: 14px; align-items: center; }
main { max-width: 1180px; margin: 0 auto; padding: 30px clamp(18px, 4vw, 48px) 80px; }
.login-card { max-width: 410px; margin: 9vh auto; padding: 30px; border-radius: 14px; background: #fff; box-shadow: 0 12px 35px #183e5b16; }
.login-card form { display: grid; gap: 16px; }
h1 { font-size: 28px; margin: 0 0 14px; }
h2 { font-size: 20px; margin: 0 0 18px; }
p { color: #526779; line-height: 1.5; }
label { display: grid; gap: 6px; color: #39556b; font-size: 14px; }
input, select, textarea { width: 100%; min-height: 40px; border: 1px solid #bfcdd8; border-radius: 8px; padding: 8px 10px; background: #fff; color: #193347; }
select[multiple] { min-height: 98px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #8ec2e1; outline-offset: 1px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; border-bottom: 1px solid #d5e1e8; padding-bottom: 12px; }
.tabs button { border: 0; background: transparent; }
.tabs button.selected { background: #dcecf5; color: #134b70; font-weight: 700; }
.title-row, .section-row, .row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.title-row p { margin-top: 0; }
.search-row { display: flex; gap: 10px; align-items: end; margin: 16px 0 24px; }
.search-row input { flex: 1; }
.cards { display: grid; gap: 12px; }
.card, .panel { border: 1px solid #d9e4ea; border-radius: 12px; background: #fff; box-shadow: 0 3px 9px #23435a08; }
.card { padding: 16px 18px; }
.card h2 { margin-bottom: 8px; }
.card p { margin: 4px 0; }
.card button { margin-top: 10px; }
.panel { padding: 22px; margin: 18px 0; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.form-grid .wide { grid-column: 1 / -1; }
.entry-row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #e4eaef; padding: 18px 0; }
.entry-row:first-child { border-top: 0; }
.entry-row .full { grid-column: 1 / -1; }
.entry-row .remove { justify-self: start; }
.form-actions { margin: 24px 0; }
.check-line { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; }
.check-line input { width: auto; min-height: 0; }
.link-button { border: 0; padding-left: 0; background: none; }
.details-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.details-grid section { padding: 16px; background: #fff; border: 1px solid #d9e4ea; border-radius: 10px; }
.details-grid h2 { margin: 0 0 8px; }
.money { font-weight: 700; color: #164568; }
.muted { color: #60788b; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 13px; border-bottom: 1px solid #e0e8ed; }
th { background: #eaf2f7; }
#notice { position: fixed; right: 22px; bottom: 18px; max-width: 410px; padding: 12px 16px; color: #143c56; background: #d9edf8; border: 1px solid #a8d4e9; border-radius: 9px; box-shadow: 0 8px 18px #23435a1c; }
#notice.error { color: #852d2d; background: #fff0f0; border-color: #efc0c0; }
[hidden] { display: none !important; }
@media (max-width: 680px) { main { padding-top: 20px; } .form-grid, .entry-row, .details-grid { grid-template-columns: 1fr; } .search-row { flex-wrap: wrap; } .search-row input { min-width: 100%; } }
