@font-face {
    font-family: 'Onest';
    src: url('/assets/fonts/Onest.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
:root {
    --text: #121b20;
    --muted: #53656e;
    --blue: #007c96;
    --cyan: #04b9d8;
    --border: #dce4e8;
    --bg: #f6f8fa;
}
* {
    box-sizing: border-box;
}
[hidden] {
    display: none !important;
}
body {
    margin: 0;
    background: #e9eff2;
    color: var(--text);
    font: 14px/1.5 'Onest', sans-serif;
}
a {
    color: var(--blue);
    text-decoration: none;
}
button, input, textarea, select {
    font: inherit;
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: .55;
    cursor: wait;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}
h1, h2, h3, p {
    margin: 0;
}
h1 {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -1px;
}
h2 {
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -.4px;
}
img {
    max-width: 100%;
    display: block;
}
label {
    display: block;
    font-size: 12px;
}
input, select {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    margin-top: 5px;
    border: 1px solid #b2c3cd;
    border-radius: 4px;
    background: white;
    color: var(--text);
}
input::placeholder {
    color: #88969e;
}
label + label {
    margin-top: 13px;
}
.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 34px;
    padding: 7px 12px;
    background: white;
    color: #224553;
    border: 1px solid #adc3ce;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 550;
    white-space: nowrap;
}
.admin-button:hover {
    background: #eaf5f8;
}
.admin-button.primary {
    background: #141e25;
    border-color: #141e25;
    color: white;
}
.admin-button.danger {
    border-color: #e5b9b3;
    color: #a13a2b;
}
.subtle-link {
    font-size: 12px;
    color: #53656e;
}
.eyebrow {
    display: block;
    color: var(--blue);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.1px;
    margin-bottom: 12px;
}
.muted {
    color: var(--muted);
}
.small {
    font-size: 11px;
}
.login-screen {
    max-width: 1100px;
    min-height: 100vh;
    margin: auto;
    padding: 60px 30px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 90px;
}
.login-brand img {
    width: 70px;
    margin-bottom: 40px;
}
.login-brand h1 {
    font-size: 52px;
    letter-spacing: -2.8px;
    line-height: 1.12;
    margin-bottom: 22px;
}
.login-brand h1 span {
    color: var(--blue);
}
.login-brand p {
    color: var(--muted);
    margin-bottom: 30px;
}
.login-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 15px 45px #203b4c08;
}
.login-card h2 {
    font-size: 24px;
}
.login-card > p {
    margin: 12px 0 25px;
    color: var(--muted);
    font-size: 13px;
}
.login-card input {
    margin-bottom: 20px;
    min-height: 43px;
}
.login-card .admin-button {
    min-height: 43px;
    width: 100%;
    font-size: 13px;
}
.error-note {
    background: #fff0ed;
    border-left: 3px solid #a13a2b;
    color: #a13a2b;
    padding: 10px 12px;
    margin-bottom: 15px;
    font-size: 12px;
}
.admin-shell {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 24px;
    max-width: 1600px;
    margin: 16px auto;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    min-height: calc(100vh - 32px);
}
.sidebar {
    align-self: start;
    position: sticky;
    top: 16px;
    min-height: 520px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    padding: 10px;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 25px;
    color: var(--text);
}
.admin-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.admin-brand b {
    font-size: 12px;
}
.admin-brand small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
}
.sidebar nav {
    display: grid;
    gap: 5px;
}
.sidebar nav a {
    color: #53656e;
    font-size: 12px;
    padding: 10px 10px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar nav a span {
    font-size: 16px;
    width: 16px;
}
.sidebar nav a:hover {
    background: #eaf5f8;
}
.sidebar nav a.active {
    background: #141e25;
    color: white;
    border-left-color: var(--cyan);
}
.sidebar-bottom {
    display: grid;
    gap: 10px;
    margin: auto 9px 5px;
    padding-top: 60px;
    font-size: 10px;
}
.sidebar-bottom button {
    border: 0;
    background: none;
    color: var(--muted);
    text-align: left;
    padding: 0;
    font-size: 10px;
}
.admin-content {
    min-width: 0;
}
.workspace-header {
    display: flex;
    align-items: center;
    gap: 17px;
    border-bottom: 1px solid var(--border);
    padding: 6px 0 14px;
    margin-bottom: 20px;
    font-size: 11px;
}
.workspace-header > span:first-child {
    color: var(--muted);
}
.workspace-header small {
    font-size: 10px;
    margin-left: 5px;
}
.session-state {
    margin-left: auto;
    color: var(--blue);
    font-size: 10px;
    letter-spacing: .5px;
}
.admin-hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    padding: 40px 35px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    align-items: center;
}
.admin-hero h1 {
    font-size: clamp(38px, 4vw, 65px);
    line-height: 1.06;
    letter-spacing: -2.8px;
}
.admin-hero h1 span {
    color: #0088a0;
}
.admin-hero p {
    margin-top: 24px;
    font-size: 13px;
    color: var(--muted);
}
.hero-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}
.hero-links .admin-button {
    padding: 11px 17px;
}
.brand-stage {
    position: relative;
    max-width: 270px;
    width: 95%;
    margin: auto;
    padding: 12px;
}
.brand-stage img {
    position: relative;
    z-index: 1;
    border: 1px solid #e9eff2;
    border-radius: 13px;
    box-shadow: 0 15px 25px #20364418;
}
.brand-orbit {
    position: absolute;
    inset: 0 -12px 0 18px;
    border-radius: 50%;
    background: #04b9d8;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-block: 18px;
}
.stat-card {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 20px;
}
.stat-card > span {
    font-size: 12px;
}
.stat-card strong {
    display: block;
    font-size: 37px;
    line-height: 1;
    margin-block: 17px 12px;
    letter-spacing: -1.3px;
}
.stat-card small {
    font-size: 10px;
    color: var(--muted);
}
.overview-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.admin-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
}
.card-heading > a {
    font-size: 11px;
}
.card-body {
    padding: 15px;
}
.connection-list {
    padding: 5px 15px;
}
.connection-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 15px;
    font-size: 12px;
    border-bottom: 1px solid #eef2f4;
}
.connection-row:last-child {
    border: 0;
}
.team-card {
    padding: 23px;
    border-radius: 14px;
    color: white;
    background: #141e25;
}
.team-card .eyebrow {
    color: #54d5e9;
}
.team-card h2 {
    font-size: 25px;
}
.team-card p {
    font-size: 11px;
    color: #a1c9da;
    margin-top: 12px;
}
.team-card > div {
    display: flex;
    gap: 50px;
    margin-top: 28px;
}
.team-card a {
    color: white;
    font-size: 14px;
    font-weight: 650;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-block: 25px 20px;
}
.page-heading .eyebrow {
    margin-bottom: 7px;
}
.page-heading p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 9px;
}
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 10px;
    line-height: 1.35;
    white-space: nowrap;
}
.badge.neutral {
    background: #edf2f5;
    color: #53656e;
}
.badge.success {
    background: #e4f2e4;
    color: #386a22;
}
.badge.warning {
    background: #fff3d6;
    color: #86640b;
}
.badge.error {
    background: #fde8e9;
    color: #a13a2b;
}
.table-toolbar {
    display: flex;
    gap: 13px;
    align-items: end;
    padding: 14px;
}
.table-toolbar label {
    min-width: 180px;
}
.table-toolbar .search-label {
    flex: 1;
}
.table-toolbar > span {
    font-size: 11px;
    margin-left: auto;
    padding-bottom: 8px;
}
.table-scroll {
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    font-size: 12px;
}
th {
    font-size: 11px;
    font-weight: 550;
    color: #53656e;
    background: #f1f5f7;
}
th, td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
tbody tr:last-child td {
    border-bottom: 0;
}
tbody tr:hover {
    background: #eaf5f8;
}
td small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
}
.row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.row-actions .admin-button {
    font-size: 10px;
    min-height: 28px;
    padding: 4px 8px;
}
.table-empty {
    text-align: center;
    color: var(--muted);
    padding: 40px 15px;
}
.table-thumb {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
    cursor: zoom-in;
}
.generation-grid, .admin-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}
.generation-card, .gallery-admin-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.generation-card img, .gallery-admin-card > img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #eef3f5;
    cursor: zoom-in;
}
.generation-placeholder {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--muted);
    background: #eef3f5;
}
.generation-card > div {
    padding: 12px;
}
.generation-card p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 10px;
    overflow-wrap: anywhere;
}
.generation-card details {
    margin-top: 10px;
}
.generation-card summary {
    font-size: 11px;
    color: var(--blue);
    cursor: pointer;
}
.generation-card .subtle-link {
    display: inline-block;
    margin-top: 12px;
}
.generation-toolbar {
    padding: 0 0 18px;
}
.admin-empty {
    grid-column: 1/-1;
    background: white;
    border: 1px dashed #b9cbd2;
    color: var(--muted);
    border-radius: 10px;
    padding: 45px;
    text-align: center;
    font-size: 13px;
}
.gallery-upload {
    padding: 17px;
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.gallery-upload label {
    min-width: 130px;
}
.gallery-file-label {
    flex: 1;
}
.gallery-upload .error-note {
    width: 100%;
    margin: 0;
}
.gallery-card-form {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 9px;
}
.gallery-card-form label + label {
    margin-top: 0;
}
.gallery-card-form .row-actions {
    grid-column: 1/-1;
}
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.notice {
    font-size: 11px;
    color: #416777;
    background: #eaf2f6;
    border-left: 3px solid #73bccc;
    padding: 10px 12px;
    margin-bottom: 16px;
}
.provider-state {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 16px;
    font-size: 11px;
}
.settings-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-block: 5px 20px;
    font-size: 12px;
    color: var(--blue);
}
.time-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}
.time-fields label + label {
    margin: 0;
}
.master-weekdays {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-block: 13px;
}
.master-weekdays label {
    display: flex;
    align-items: center;
    gap: 4px;
}
.master-weekdays input {
    width: 14px;
    height: 14px;
    min-height: auto;
    margin: 0;
    accent-color: var(--blue);
}
.master-weekdays label + label {
    margin: 0;
}
.calendar-card {
    padding: 18px;
}
.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.calendar-toolbar h2 {
    text-transform: capitalize;
    font-size: 21px;
}
.admin-weekdays, .admin-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}
.admin-weekdays {
    margin-bottom: 8px;
    font-size: 10px;
    text-align: center;
    color: var(--muted);
}
.admin-calendar {
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.calendar-day {
    min-height: 110px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 7px;
}
.calendar-day.outside {
    background: #f4f7f9;
}
.calendar-day > strong {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 12px;
}
.calendar-day.today > strong {
    background: var(--blue);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
}
.master-day {
    font-size: 9px;
    margin-bottom: 6px;
}
.master-day b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
}
.master-day span {
    display: inline-block;
    padding: 2px 4px;
    background: #edf1f3;
    margin: 3px 2px 0 0;
    border-radius: 3px;
    color: var(--muted);
}
.master-day span.free {
    background: #e4f2e4;
    color: #386a22;
}
.master-day span.pending {
    background: #fff3d6;
    color: #86640b;
}
.calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 10px;
    color: var(--muted);
    flex-wrap: wrap;
}
.calendar-legend > span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccd6dc;
}
.dot.green {
    background: #83b878;
}
.dot.yellow {
    background: #e6bd53;
}
.admin-toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 12px 20px;
    background: #141e25;
    color: white;
    border-radius: 7px;
    max-width: calc(100% - 30px);
    font-size: 12px;
    box-shadow: 0 6px 25px #14263325;
}
.image-dialog {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    background: white;
    max-width: 94vw;
    max-height: 94vh;
}
.image-dialog::backdrop {
    background: #121b20df;
}
.image-dialog img {
    max-width: 90vw;
    max-height: 87vh;
    object-fit: contain;
}
.dialog-close {
    position: sticky;
    top: 0;
    float: right;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--text);
    border: 0;
    font: 26px sans-serif;
    cursor: pointer;
}
@media (max-width: 1100px) {
    .admin-shell {
    grid-template-columns: 1fr;
    margin: 10px;
    gap: 15px;
}
    .sidebar {
    position: static;
    min-height: auto;
    display: grid;
    grid-template-columns: 155px 1fr;
    align-items: center;
    padding: 10px;
}
    .admin-brand {
    padding: 0;
}
    .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
    .sidebar nav a {
    padding: 8px;
    font-size: 11px;
}
    .sidebar nav a span {
    display: none;
}
    .sidebar-bottom {
    display: flex;
    grid-column: 1 / -1;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 8px 10px 0;
}
    .generation-grid, .admin-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 700px) {
    .login-screen {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
    min-height: auto;
}
    .login-brand img {
    width: 55px;
    margin-bottom: 20px;
}
    .login-brand h1 {
    font-size: 39px;
}
    .login-card {
    padding: 25px;
}
    .admin-shell {
    margin: 0;
    padding: 12px;
    border-radius: 0;
    min-height: 100vh;
}
    .sidebar {
    grid-template-columns: 1fr;
    gap: 10px;
}
    .admin-brand img {
    width: 45px;
    height: 45px;
}
    .sidebar nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
}
    .sidebar nav a {
    white-space: nowrap;
    flex-shrink: 0;
}
    .workspace-header {
    gap: 10px;
    font-size: 10px;
}
    .session-state {
    font-size: 9px;
}
    .admin-hero {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 25px;
}
    .admin-hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
}
    .brand-stage {
    max-width: 180px;
}
    .hero-links {
    flex-wrap: wrap;
}
    .stat-grid {
    gap: 8px;
}
    .stat-card {
    padding: 13px 10px;
}
    .stat-card > span {
    font-size: 10px;
}
    .stat-card strong {
    font-size: 29px;
}
    .stat-card small {
    display: none;
}
    .overview-bottom, .settings-grid {
    grid-template-columns: 1fr;
}
    .page-heading {
    align-items: start;
}
    .page-heading h1 {
    font-size: 25px;
}
    .page-heading p {
    font-size: 11px;
}
    .page-heading > .admin-button {
    font-size: 10px;
}
    .table-toolbar {
    flex-wrap: wrap;
    padding: 12px;
}
    .table-toolbar label {
    min-width: 140px;
    flex: 1;
}
    .table-toolbar > span {
    display: none;
}
    table {
    min-width: 650px;
}
    .generation-grid, .admin-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
    .gallery-upload {
    gap: 12px;
}
    .gallery-upload label {
    width: 100%;
}
    .gallery-card-form {
    grid-template-columns: 1fr;
    padding: 9px;
}
    .gallery-card-form .row-actions {
    grid-column: auto;
    flex-wrap: wrap;
}
    .calendar-card {
    padding: 12px 7px;
}
    .calendar-day {
    min-height: 105px;
    padding: 5px 3px;
}
    .master-day b {
    font-size: 8px;
}
    .master-day span {
    display: block;
    font-size: 8px;
    padding: 1px 2px;
    margin: 2px 0 0;
}
    .calendar-legend {
    gap: 10px;
}
    .notice {
    font-size: 10px;
}
}

.thumb-button { border: 0; background: none; padding: 0; cursor: zoom-in; }

.gallery-collection-control {
    padding: 18px 22px;
    margin-bottom: 20px;
}
.gallery-collection-control label {
    max-width: 350px;
}
