:root {
    --paper: #faf9f5;
    --white: #fff;
    --forest: #264d43;
    --sage: #dfe8dd;
    --ink: #28352f;
    --muted: #64716a;
    --line: #e0e5dd;
    --gold: #a27b39;
    --danger: #a23d42;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-size: 14px
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

button,
input,
select,
textarea {
    font: inherit
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer;
    border: 1px solid var(--line);
    background: white;
    color: var(--forest);
    border-radius: 7px;
    padding: 10px 15px;
    font-weight: 600
}

button:hover {
    background: #edf1eb
}

button:disabled {
    opacity: .55;
    cursor: wait
}

button.primary,
.primary {
    background: var(--forest);
    border-color: var(--forest);
    color: white
}

button.primary:hover {
    background: #386457
}

a {
    color: var(--forest)
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2,
h3,
.brand {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400
}

h1 {
    font-size: 38px;
    letter-spacing: -1px;
    margin-bottom: 10px
}

h2 {
    font-size: 25px
}

h3 {
    font-size: 21px
}

p {
    line-height: 1.6;
    color: var(--muted)
}

small {
    color: var(--muted)
}

[hidden] {
    display: none !important
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 238px;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 38px 22px;
    display: flex;
    flex-direction: column
}

.brand {
    text-decoration: none;
    font-size: 30px;
    padding: 0 10px;
    margin-bottom: 48px
}

.brand span {
    font: 11px Arial;
    display: block;
    margin-top: 12px;
    color: var(--muted)
}

nav {
    display: flex;
    flex-direction: column;
    gap: 6px
}

nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    text-decoration: none;
    border-radius: 7px;
    color: var(--muted)
}

nav a.active {
    background: var(--sage);
    color: var(--forest);
    font-weight: 600
}

nav svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6
}

.sidebar-bottom {
    margin-top: auto;
    padding: 32px 10px 0
}

.sidebar-bottom p {
    font-size: 12px
}

.mini-flower {
    font-size: 34px;
    color: var(--gold)
}

.quiet {
    background: none;
    border: none;
    padding: 6px 0;
    font-size: 12px
}

main {
    margin-left: 238px;
    padding: 0 42px;
    max-width: 1700px
}

.topbar {
    height: 77px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 12px
}

#save-status:before {
    content: '●';
    color: #658767;
    font-size: 8px;
    margin-right: 8px
}

#view {
    padding-top: 32px;
    min-height: 80vh
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px
}

.page-head p {
    margin: 0
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.hero {
    background: var(--sage);
    border-radius: 12px;
    min-height: 270px;
    padding: 34px 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative
}

.hero h2 {
    font-size: 43px;
    max-width: 470px;
    line-height: 1.16;
    margin: 12px 0 20px
}

.hero p {
    color: #436254;
    margin: 0
}

.hero .arch {
    width: 180px;
    height: 220px;
    border: 1px solid #99ad92;
    border-radius: 110px 110px 0 0;
    flex-shrink: 0;
    margin: 0 15px 0 25px
}

.arch {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--forest)
}

.arch span {
    font: 40px Georgia
}

.arch i {
    font-size: 24px;
    padding: 0 8px
}

.arch small {
    margin-top: 20px;
    font-size: 11px
}

.countdown {
    display: inline-block;
    margin-top: 15px;
    font-size: 12px;
    color: var(--forest);
    padding: 7px 11px;
    border: 1px solid #b4c5ae;
    border-radius: 30px
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 26px 0 32px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 26px;
    gap: 18px
}

.stat {
    border-right: 1px solid var(--line);
    padding: 0 15px
}

.stat:first-child {
    padding-left: 0
}

.stat:last-child {
    border: 0
}

.stat span {
    font-size: 12px;
    color: var(--muted)
}

.stat strong {
    display: block;
    font: 33px Georgia;
    margin: 10px 0
}

.stat small {
    font-size: 11px
}

.columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 25px
}

.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px
}

.section-head h2 {
    margin: 0
}

.section-head a {
    font-size: 12px;
    text-decoration: none
}

.task-line {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    align-items: center
}

.task-line .task-copy {
    flex: 1
}

.task-line strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 7px
}

.task-line.done strong {
    text-decoration: line-through;
    color: var(--muted)
}

input[type=checkbox] {
    accent-color: var(--forest);
    width: 18px;
    height: 18px;
    flex-shrink: 0
}

.pill {
    display: inline-block;
    font-size: 11px;
    border-radius: 20px;
    background: #edf1eb;
    padding: 5px 9px;
    color: var(--forest);
    white-space: nowrap
}

.pill.wait {
    background: #f8efd9;
    color: #7c622a
}

.pill.bad {
    background: #f8e8e7;
    color: var(--danger)
}

.progress {
    height: 7px;
    border-radius: 10px;
    background: #edf1eb;
    overflow: hidden;
    margin: 12px 0 18px
}

.progress>div {
    height: 100%;
    background: var(--forest)
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    font-size: 13px
}

.summary-line+.summary-line {
    border-top: 1px solid var(--line)
}

.toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap
}

.toolbar input {
    flex: 1;
    min-width: 180px
}

.toolbar select {
    max-width: 210px
}

input,
select,
textarea {
    border: 1px solid #cdd6cc;
    border-radius: 6px;
    padding: 11px 12px;
    background: white;
    color: var(--ink);
    width: 100%
}

textarea {
    min-height: 90px;
    resize: vertical
}

label {
    font-size: 12px;
    color: var(--muted);
    display: block;
    margin-bottom: 8px
}

input[type=checkbox] {
    width: auto
}

.table-wrap {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap
}

th {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    background: #f2f5ef;
    padding: 15px
}

td {
    padding: 17px 15px;
    border-top: 1px solid var(--line);
    font-size: 13px
}

td small {
    display: block;
    margin-top: 5px
}

td button {
    font-size: 11px;
    padding: 6px 8px
}

.empty {
    text-align: center;
    padding: 42px 20px;
    color: var(--muted)
}

.empty h3 {
    color: var(--forest)
}

.empty p {
    max-width: 440px;
    margin: 0 auto 18px
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 20px
}

.vendor-card .category {
    color: var(--gold);
    font-size: 12px
}

.vendor-card h2 {
    margin: 12px 0
}

.vendor-card .actions {
    margin-top: 18px
}

.table-card {
    padding: 23px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px
}

.table-circle {
    width: 132px;
    height: 132px;
    background: #e8eee2;
    border: 6px double #aaba9d;
    border-radius: 50%;
    margin: 22px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center
}

.table-circle strong {
    font: 22px Georgia
}

.table-circle small {
    margin-top: 9px
}

.seated {
    padding: 10px 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center
}

.seated button {
    padding: 4px 8px
}

.table-card select {
    margin-top: 16px
}

.unseated {
    margin: 0 0 22px;
    background: #edf1eb;
    padding: 16px;
    border-radius: 7px
}

.timeline-item {
    display: flex;
    gap: 25px;
    padding: 22px 0;
    border-top: 1px solid var(--line)
}

.timeline-item time {
    font: 23px Georgia;
    color: var(--forest);
    width: 80px;
    flex-shrink: 0
}

.timeline-item div {
    flex: 1
}

.timeline-item h3 {
    margin-bottom: 8px
}

.timeline-item p {
    margin: 0
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.field.wide {
    grid-column: 1/-1
}

.field.check label {
    display: flex;
    align-items: center;
    gap: 9px
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px
}

.modal-head h2 {
    margin: 0
}

.icon-button {
    border: 0;
    background: none;
    font-size: 23px;
    padding: 4px 9px
}

dialog {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
    width: min(620px, 94vw);
    max-height: 90vh;
    box-shadow: 0 20px 100px #142f3433
}

dialog::backdrop {
    background: #142f3477;
    backdrop-filter: blur(3px)
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px
}

#form-error,
#login-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 15px
}

#toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--forest);
    color: white;
    padding: 15px 24px;
    border-radius: 9px;
    z-index: 10;
    box-shadow: 0 4px 20px #0002;
    max-width: 90vw
}

footer {
    font: 12px Georgia;
    color: #7c877e;
    padding: 40px 0 24px;
    text-align: center
}

.login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr
}

.login-art {
    background: var(--sage);
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.login-art .arch {
    width: 260px;
    height: 340px;
    border: 1px solid #8ca383;
    border-radius: 150px 150px 0 0
}

.login-art .arch span {
    font-size: 60px
}

.login-art>p {
    font: 26px/1.5 Georgia;
    text-align: center;
    color: var(--forest);
    margin-top: 32px
}

.login-form {
    max-width: 420px;
    width: 100%;
    padding: 45px;
    align-self: center;
    justify-self: center
}

.login-form h1 {
    font-size: 48px
}

.brand-mark {
    font: 23px Georgia;
    color: var(--gold);
    margin-bottom: 35px
}

.login-form form {
    margin: 30px 0
}

.login-form button {
    width: 100%;
    margin-top: 16px
}

.settings-form {
    max-width: 760px
}

.danger {
    color: var(--danger)
}

.muted {
    color: var(--muted)
}

.budget-note {
    font-size: 13px;
    margin: 20px 0
}

.nowrap {
    white-space: nowrap
}

@media(min-width:1500px) {
    main {
        padding: 0 65px
    }

    .hero {
        padding: 40px 50px
    }

    .hero h2 {
        max-width: 650px
    }
}

@media(max-width:1000px) {
    .sidebar {
        width: 195px;
        padding: 30px 14px
    }

    .brand {
        font-size: 26px
    }

    main {
        margin-left: 195px;
        padding: 0 25px
    }

    .columns {
        grid-template-columns: 1fr
    }

    .hero h2 {
        font-size: 34px
    }

    .hero .arch {
        width: 125px;
        height: 180px
    }

    .hero .arch span {
        font-size: 29px
    }

    .stats {
        gap: 8px
    }

    .stat {
        padding: 0 8px
    }

    .stat strong {
        font-size: 27px
    }
}

@media(max-width:700px) {
    .sidebar {
        position: static;
        width: 100%;
        padding: 20px 18px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .brand {
        margin-bottom: 20px;
        padding: 0;
        font-size: 27px
    }

    .brand span {
        display: inline;
        margin-left: 16px
    }

    .sidebar-bottom {
        display: none
    }

    nav {
        flex-direction: row;
        overflow: auto;
        margin: 0 -18px;
        padding: 0 12px 12px;
        gap: 4px
    }

    nav a {
        white-space: nowrap;
        padding: 10px;
        font-size: 12px;
        gap: 7px
    }

    nav svg {
        width: 16px
    }

    main {
        margin: 0;
        padding: 0 18px
    }

    .topbar {
        height: 55px;
        font-size: 11px
    }

    #view {
        padding-top: 24px
    }

    h1 {
        font-size: 30px
    }

    .page-head {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 15px
    }

    .hero {
        padding: 25px;
        min-height: 220px
    }

    .hero h2 {
        font-size: 32px
    }

    .hero .arch {
        display: none
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 23px
    }

    .stat:nth-child(3) {
        padding-left: 0
    }

    .stat:nth-child(2) {
        border: 0
    }

    .columns {
        gap: 0
    }

    .panel {
        padding: 19px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .field.wide {
        grid-column: auto
    }

    .login {
        grid-template-columns: 1fr
    }

    .login-art {
        padding: 30px
    }

    .login-art .arch {
        height: 180px;
        width: 150px
    }

    .login-art .arch span {
        font-size: 36px
    }

    .login-art>p {
        display: none
    }

    .login-form {
        padding: 32px
    }

    .brand-mark {
        display: none
    }

    .login-form h1 {
        font-size: 39px
    }

    .login-form form {
        margin: 22px 0
    }

    .timeline-item {
        gap: 12px
    }

    .timeline-item time {
        width: 60px
    }

    .cards {
        grid-template-columns: 1fr
    }
}

@media print {

    .sidebar,
    .topbar,
    .actions,
    button,
    footer,
    .toolbar {
        display: none !important
    }

    main {
        margin: 0;
        padding: 0
    }

    .panel,
    .table-card {
        break-inside: avoid
    }

    body {
        background: white
    }

    .table-wrap {
        overflow: visible
    }

    table {
        white-space: normal;
        font-size: 10px
    }
}

.native-progress {
    display: block;
    width: 100%;
    height: 8px;
    accent-color: var(--forest);
    margin: 12px 0 18px;
    border: 0
}

.native-progress::-webkit-progress-bar {
    background: #edf1eb;
    border-radius: 8px
}

.native-progress::-webkit-progress-value {
    background: var(--forest);
    border-radius: 8px
}

.vendor-card .task-line {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 10px;
}
.vendor-card .task-copy { grid-column: 2 / -1; }
.vendor-card .task-line > .pill { grid-column: 2; justify-self: start; }
.vendor-card .task-line > button { grid-column: 3; }

@media (max-width: 700px) {
    .task-line {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr) auto;
        gap: 10px;
    }
    .task-copy { grid-column: 2 / -1; }
    .task-line > .pill { grid-column: 2; justify-self: start; }
    .task-line > button { grid-column: 3; }
    .task-line strong { line-height: 1.45; }
    .timeline-item { flex-wrap: wrap; }
    .timeline-item > span { margin-left: 72px; }
}
