:root {
    font: 100%/1.5 system-ui, sans-serif;
    color: #182d2a;
    background: #f1f5f3;
}
* { box-sizing: border-box; }
body { margin: 0; }
.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem max(1.25rem, calc((100vw - 72rem) / 2));
    min-height: 4rem;
    background: #133e37;
    color: white;
}
main { margin: 2rem auto; padding: 0 1rem; }
.signin { max-width: 27rem; }
.dashboard { max-width: 74rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.05em; margin: 0 0 1.5rem; }
h2 { font-size: 1.25rem; margin: 0 0 1rem; }
h3, p { margin: 0 0 .6rem; }
section { margin-bottom: 1.25rem; }
.panel { background: white; border: 1px solid #d4e1dc; border-radius: .8rem; padding: 1.25rem; }
.plans, .fields { display: grid; gap: 1rem; }
.plans { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.amount { display: block; font-size: 1.6rem; color: #125947; margin-bottom: .5rem; }
.master-plan-editor summary { color: #125947; cursor: pointer; font-weight: 650; padding-block: .4rem; }
.master-plan-editor form { margin-top: .5rem; }
.company-form { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); align-items: end; }
#custom-plan-fields { grid-column: 1 / -1; margin: 0; min-width: 0; border: 1px solid #d4e1dc; border-radius: .4rem; }
#custom-plan-fields legend { font-weight: 600; padding: 0 .35rem; }
label { display: grid; gap: .35rem; font-weight: 600; }
input, select, button { font: inherit; min-height: 2.75rem; padding: .55rem .75rem; border-radius: .4rem; }
input, select { border: 1px solid #859f95; background: white; width: 100%; }
button { color: white; background: #12634f; border: 1px solid transparent; cursor: pointer; font-weight: 600; }
button:hover { background: #0d4f3e; }
.secondary { border-color: #a4c2b5; background: transparent; }
:focus-visible { outline: 3px solid #c78927; outline-offset: 2px; }
.error, .notice { padding: .75rem 1rem; border-radius: .4rem; }
.error { background: #fce8e6; color: #84251d; }
.notice { background: #e0f2e9; color: #12513e; }
.table-wrap { overflow-x: auto; }
.operation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: end; gap: 1rem; margin: 1rem 0 1.5rem; }
#company-details .table-wrap { margin-bottom: 1.25rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .7rem; border-bottom: 1px solid #d4e1dc; }
