:root {
    --ink: #1d2730;
    --muted: #6c7479;
    --paper: #fbfaf7;
    --line: #e6e3dc;
    --red: #d44d43;
    --red-dark: #b4352d;
    --green: #386f66;
    --sand: #f1e8d5;
    --card: #fff;
    --shadow: 0 9px 25px #24323a0d;
    --nav-height: 72px;
    --tag-bar-height: 43px;
    --sticky-gap: 0px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
}
button,
input,
textarea {
    font: inherit;
}
button {
    cursor: pointer;
}
.top {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    background: #1d2d36;
    color: #fff;
    display: grid;
    grid-template-columns: minmax(330px, 1fr) minmax(240px, 300px) minmax(330px, 1fr);
    align-items: center;
    gap: 20px;
    padding: 0 clamp(20px, 4vw, 58px);
    border-bottom: 3px solid var(--red);
}
.brand {
    display: flex;
    gap: 13px;
    align-items: center;
    min-width: 0;
}
.brand > div:last-child {
    min-width: 0;
}
.stamp {
    width: 33px;
    height: 33px;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #f1c865;
    font-size: 19px;
}
.brand h1 {
    font-family: "Playfair Display", serif;
    font-size: 21px;
    margin: 0;
    letter-spacing: 0.2px;
}
.brand small {
    display: block;
    font: 11px "DM Mono";
    letter-spacing: 1px;
    color: #bcc8c8;
    margin-top: 2px;
}
.brand-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.brand-meta > small {
    margin-top: 0;
}
.currency-config-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    border: 1px solid #ffffff30;
    border-radius: 999px;
    background: #ffffff0d;
    color: #dce5e5;
    font: 500 10px "DM Mono";
}
.currency-config-trigger:hover,
.currency-config-trigger:focus-visible {
    border-color: #ffffff70;
    background: #ffffff18;
}
.currency-config-trigger > span { color: #f1c865; font-size: 12px; }
.currency-config-trigger strong { font: inherit; }
.exchange-rate-status {
    color: var(--muted);
    font: 10px "DM Mono";
    white-space: nowrap;
}
.budget-total {
    max-width: 130px;
    padding: 2px 6px;
    border: 1px solid #ffffff30;
    border-radius: 999px;
    background: #ffffff0d;
    color: #f1c865;
    font: 500 10px "DM Mono";
    white-space: nowrap;
}
.budget-total:hover,
.budget-total:focus-visible {
    border-color: #ffffff70;
    background: #ffffff18;
}
.brand .trip-title {
    font-family: "Playfair Display", serif;
    font-size: 21px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.2px;
    background: transparent;
    border: 0;
    border-bottom: 1px dashed transparent;
    color: #fff;
    width: min(100%, 360px);
    max-width: 100%;
    padding: 1px 0;
    outline: none;
    transition: border-color 0.15s ease;
}
.brand .trip-title::placeholder {
    color: #ffffff66;
}
.brand .trip-title:hover {
    border-bottom-color: #ffffff45;
}
.brand .trip-title:focus {
    border-bottom-color: var(--red);
}
.top-actions {
    display: flex;
    justify-self: end;
    gap: 9px;
}
.nav-menu-items {
    display: flex;
    align-items: center;
    gap: 9px;
}
.top-search {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    padding: 9px 11px;
    border: 1px solid #ffffff40;
    border-radius: 7px;
    background: #ffffff0a;
    color: #fff;
    font-size: 13px;
}
.top-search:hover,
.top-search:focus-visible {
    border-color: #ffffff70;
    background: #ffffff14;
    outline: none;
}
.top-search-label {
    flex: 1;
    text-align: left;
}
.top-actions > .hamburger {
    display: none;
}
.nav-menu-items > button,
.nav-menu-items > .github-control > button,
.top-actions > .hamburger,
.add-day {
    border: 1px solid #ffffff40;
    background: transparent;
    color: #fff;
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 13px;
}
.nav-menu-items > button:hover,
.nav-menu-items > .github-control > button:hover,
.top-actions > .hamburger:hover {
    background: #ffffff14;
}
.top .primary {
    background: #d44d43;
    border-color: #d44d43;
    font-weight: 600;
}
.top .primary:hover {
    background: #b4352d;
}
.github-control {
    position: relative;
    display: inline-flex;
}
.github-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50%;
    background: #ffffff66;
}
#githubOpenBtn.github-configured .github-dot {
    background: #9db7c3;
    box-shadow: 0 0 0 3px #9db7c326;
}
#githubOpenBtn.github-connected .github-dot {
    background: #79c7a3;
    box-shadow: 0 0 0 3px #79c7a326;
}
.github-menu {
    position: absolute;
    z-index: 60;
    top: calc(100% + 8px);
    right: 0;
    width: min(290px, calc(100vw - 34px));
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 42px #0b141b55;
    color: var(--ink);
}
.github-menu[hidden] { display: none; }
.github-menu::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 25px;
    width: 9px;
    height: 9px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: #fff;
    transform: rotate(45deg);
}
.github-menu-title {
    display: block;
    padding: 5px 9px 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.top .github-menu button {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 49px;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    text-align: left;
}
.top .github-menu button:hover:not(:disabled),
.top .github-menu button:focus-visible {
    background: #f7f4ee;
    outline: none;
}
.top .github-menu button:disabled {
    cursor: not-allowed;
    opacity: .42;
}
.github-menu button > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.github-menu strong,
.github-menu small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.github-menu strong { font-size: 13px; }
.github-menu small { color: var(--muted); font-size: 11px; }
.github-menu-icon {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 7px;
    background: #f1ece3;
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
}
