:root { --brand: #0B5345; --ink: #17201D; --muted: #5d6b66; --line: #dce3e0; --tint: #eef5f2; --red: #b42318; --amber: #b45309; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); }
* { box-sizing: border-box; }
body { margin: 0; background: #f6f8f7; }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.top img { height: 26px; }
.top .who { margin-left: auto; text-align: right; font-weight: 600; font-size: 14px; }
.top .who small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.tabs a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.tabs a.on { background: var(--brand); color: #fff; }
.page { max-width: 760px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
h1 { font-size: 22px; } h2 { font-size: 16px; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.tile span { color: var(--muted); font-size: 12px; } .tile b { font-size: 20px; color: var(--brand); } .tile small { color: var(--muted); font-size: 12px; }
.split { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.split.total { border-bottom: 0; font-size: 16px; color: var(--brand); }
.row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.row-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row-item:last-child { border-bottom: 0; } .right { text-align: right; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); margin: 8px 0; }
input, select { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; min-height: 44px; }
.btn { font: inherit; font-size: 15px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; width: 100%; margin-top: 8px; }
.btn.sm { font-size: 13px; padding: 6px 12px; min-height: 36px; }
.btn.link { border: 0; background: none; color: var(--brand); padding: 4px 6px; min-height: 0; text-decoration: underline; }
.btn:disabled { opacity: .5; cursor: default; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.msg { padding: 10px 12px; border-radius: 10px; margin: 10px 0; font-size: 14px; background: var(--tint); }
.msg.error { background: #fdecea; color: var(--red); } .msg.ok { background: #e6f4ea; color: var(--brand); }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; margin-left: 6px; background: #eef0ef; }
.pill.green { background: #e6f4ea; color: var(--brand); } .pill.red { background: #fdecea; color: var(--red); } .pill.amber { background: #fef3c7; color: var(--amber); } .pill.grey { background: #eef0ef; color: var(--muted); }
.edit { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; }
.filters label { margin: 0; }
.signin { max-width: 400px; margin: 40px auto; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.signin .logo { height: 34px; }
.signin form { display: flex; flex-direction: column; }
