/* ============================================================
   DTR SYSTEM — styles.css
   Color palette:
     Brick red  : #b8332c / #9e2b25
     Warm peach : radial gradient
     Cards      : #efefef / #f3f1ef
     Accent tan : #e8a078 / #dbc0b1
   ============================================================ */

/* ---- Page background ---- */



body {
    background: radial-gradient(circle at 18% 12%, #f5ddd4 0%, #f5e8e1 45%, #ede4de 100%);
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
}

/* ---- Header ---- */
.dtr-header {
    background: linear-gradient(90deg, #9e2b25 0%, #b8332c 60%, #c94040 100%);
    border-bottom: 3px solid #7c1f1a;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(120, 30, 24, 0.35);
}

.dtr-logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff4ef;
    text-decoration: none;
    text-transform: uppercase;
}

.dtr-new-btn {
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff4ef;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.42rem 1rem;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease;
}

.dtr-new-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   WORKSPACE SHELL
   ============================================================ */

.workspace-hidden {
    height: 100%;
    overflow: hidden;
}

.workspace-shell {
    background: #f8e9e5;
    border: 1px solid rgba(219, 192, 177, 0.85);
    border-top: 5px solid var(--red, #b8332c);
    border-radius: 1.2rem;
    padding: 1rem 1.5rem 1rem 1.5rem;
    box-shadow: 0 4px 24px rgba(120, 40, 32, 0.12);
    position: relative;
    overflow: visible;
}

.workspace-shell::before {
    content: "";
    position: absolute;
    right: -9rem;
    top: -9rem;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 51, 44, 0.11) 0%, transparent 70%);
    pointer-events: none;
}

.workspace-shell>* {
    position: relative;
    z-index: 1;
}

/* Main calendar card — NO overflow hidden so tabs can overhang if needed */
.workspace-calendar-card {
    background: #f3f1ef;
    border: 1px solid rgba(219, 192, 177, 0.9);
    border-radius: 1rem;
    box-shadow: 0 3px 14px rgba(120, 40, 32, 0.09);
    /* padding is managed per-section inside */
    position: relative;
    z-index: 3;
}

/* Sidebar cards */
.workspace-side-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(219, 192, 177, 0.9);
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(120, 40, 32, 0.08);
    backdrop-filter: blur(2px);
}

.workspace-main-column {
    position: relative;
    z-index: 3;
}

.workspace-side-column {
    position: relative;
    z-index: 1;
}

.workspace-side-card h1,
.workspace-side-card h2 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.01em;
}

.workspace-side-card p,
.summary-row {
    font-family: 'Montserrat', sans-serif;
}

/* ============================================================
   MONTH PANEL TOP AREA
   Layout (top → bottom):
     1. Title row  ("Monthly Tabs"  +  meta pill on same line)
     2. Tab strip  (browser-tab style, flush above calendar)
     3. Calendar
   ============================================================ */

/* Row 1: title + meta pill, same horizontal line */
.workspace-month-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    padding: 1.08rem 1rem 0;
}

.workspace-rules {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.rules-trigger {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    border: 1.5px solid #b8332c;
    background: #fff4ef;
    color: #7c1f1a;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(124, 31, 26, 0.18);
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.rules-trigger:hover {
    transform: translateY(-1px);
    background: #b8332c;
    color: #fff4ef;
    border-color: #7c1f1a;
}

.rules-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    width: min(28rem, 92vw);
    background: linear-gradient(140deg, #fffdfb 0%, #fff6ef 55%, #fce7dc 100%);
    border: 1px solid rgba(123, 47, 34, 0.35);
    border-radius: 1rem;
    padding: 0.95rem 1.05rem 1rem;
    box-shadow: 0 22px 48px rgba(81, 28, 19, 0.24);
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
    z-index: 1000;
}

.rules-popover::before {
    content: "";
    position: absolute;
    top: -0.4rem;
    right: 0.6rem;
    width: 0.85rem;
    height: 0.85rem;
    background: #fff9f3;
    border-left: 1px solid rgba(123, 47, 34, 0.35);
    border-top: 1px solid rgba(123, 47, 34, 0.35);
    transform: rotate(45deg);
}

.workspace-rules:hover .rules-popover,
.workspace-rules:focus-within .rules-popover {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.rules-title {
    margin: 0;
    font-weight: 800;
    color: #5b2b22;
    letter-spacing: 0.02em;
    font-size: 1.02rem;
}

.rules-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: #7a4b3f;
}

.rules-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
}

.rules-chip {
    align-self: flex-start;
    background: #7b2f22;
    color: #fff4ef;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.55rem;
    border-radius: 13px;
    text-transform: uppercase;
}

.rules-list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    color: #5d3e34;
    font-size: 0.84rem;
    line-height: 1.4;
    display: grid;
    gap: 0.55rem;
}

.rules-list-rich li {
    display: grid;
    grid-template-columns: 0.9rem 1fr;
    gap: 0.5rem;
    align-items: start;
}

.rule-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    margin-top: 0.3rem;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.dot-work {
    background: #b8332c;
}

.dot-ignore {
    background: #7a4b3f;
}

.dot-cap {
    background: #e39d63;
}

.dot-under {
    background: #2f5f9c;
}

.dot-day {
    background: #3a7d7a;
}


.workspace-month-title {
    margin: 0;
    font-size: 1.75rem;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    line-height: 1;
    color: #1f1a18;
    white-space: nowrap;
}

/* ---- Meta pill (the red info bar) ---- */
.workspace-month-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    background: var(--red, #b8332c);
    color: #f9ebe3;
    border-radius: 15px;
    padding: 0.45rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(124, 31, 26, 0.35);
    box-shadow: 0 4px 14px rgba(124, 31, 26, 0.18);
}

.workspace-month-meta strong {
    color: #fff4ef;
}

/* ============================================================
   TAB STRIP  — browser-tab style, sits between topline and
   the calendar bar.  The active tab merges visually with the
   card body (#efefef) by matching its bottom background color.
   ============================================================ */
.workspace-month-tabs {
    display: flex;
    justify-content: flex-end;
    /* tabs grow upward from this baseline */
    align-items: flex-end;
    gap: 0;
    padding: 0 1rem 0;
    margin-top: 1rem;
    margin-bottom: -1.5px;
    /* overlap calendar top border so tabs are visibly attached */
}

.workspace-month-tab {
    /* Browser-tab look: rounded top corners, flat bottom */
    border: 1.5px solid #c8a898;
    border-bottom: none;
    background: linear-gradient(180deg, #f0e5de 0%, #e9d8cf 100%);
    color: #4a2e27;
    border-radius: 0.55rem 0.55rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.52rem 0.9rem 0.70rem;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    transform-origin: bottom center;
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
    /* Slight overlap between tabs */
    margin-right: -1px;
    position: relative;
    z-index: 1;
    border-color: #b8332c;
}

.workspace-month-tab:hover {
    color: #f19913;
    border-color: #f5ab21;
    z-index: 2;
}

/* Active tab: matches card background so it looks "open" */
.workspace-month-tab.is-active {
    background: #e8a878;
    border-color: #c07048;
    color: #1f1a18;
    z-index: 3;
    /* Keep seam closed while lifting active tab above the rest */
    margin-bottom: -1.5px;
    padding-bottom: calc(0.60rem + 1.5px);
    padding-top: calc(.70rem + 1.5px);
    transform: translateY(-3px);
    box-shadow: 0 -2px 8px rgba(140, 50, 30, 0.2);
}

/* ============================================================
   MONTH PANEL CONTENT AREA  (below tabs, inside calendar card)
   ============================================================ */
.workspace-month-panel {
    /* horizontal padding matches topline */
    display: flex;
    flex-direction: column;
    gap: 0;

}

.workspace-month-panel>.custom-calendar {
    margin-top: 0;
}

/* ============================================================
   CUSTOM CALENDAR
   ============================================================ */
.custom-calendar {
    display: flex;
    flex-direction: column;
    border-radius: 0.55rem 0.55rem 0.55rem 0.55rem;
    /* flat top-left where active tab joins */
    overflow: hidden;
    max-height: min(72vh, calc(100vh - 18rem));
    border: 1.5px solid #b8332c;
    background: #b8332c;
    box-shadow: 0 2px 12px rgba(140, 40, 32, 0.15);
    z-index: 10;
}

.custom-calendar-weeks {
    background-color: rgb(233, 233, 233);
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(126, 45, 40, 0.45) transparent;
}

.custom-calendar-weeks::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.custom-calendar-weeks::-webkit-scrollbar-track {
    background: transparent;
}

.custom-calendar-weeks::-webkit-scrollbar-thumb {
    background: rgba(126, 45, 40, 0.45);
    border-radius: 999px;
}

.custom-calendar-weeks::-webkit-scrollbar-thumb:hover {
    background: rgba(126, 45, 40, 0.7);
}

.custom-calendar-head {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    background: #b8332c;
}

.custom-calendar-arrow-head {
    border-right: 1px solid #c94040;
}

.custom-calendar-days-head {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.custom-calendar-days-head span {
    padding: 0.85rem 0.3rem;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    color: #fff4ec;
    border-right: 1px solid #c94040;
}

.custom-calendar-days-head span:last-child {
    border-right: none;
}

/* ---- Week rows ---- */
.week-row {
    border-top: 1.5px solid #c94040;
    background: #f0e7e1;
}

.week-row-head {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
}

.week-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-right: 1.5px solid #d08a7f;
    background: #e6c2b2;
    color: #7e2d28;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
    padding: 0;
}

.week-arrow-btn svg {
    width: 1.05rem;
    height: 1.05rem;
    transition: transform 230ms ease;
}

.week-row.is-open .week-arrow-btn svg {
    transform: rotate(90deg);
}

.week-arrow-btn:hover:not(:disabled) {
    background: #deb6a2;
    color: #5c1e1b;
}

.week-arrow-btn:disabled,
.week-arrow-btn.is-disabled {
    color: #b8a09a;
    background: #ece0da;
    cursor: not-allowed;
}

/* ---- Day number cells ---- */
.calendar-day-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day-cell {
    min-height: 2.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    font-size: 1.3rem;
    font-weight: 500;
    color: #1f1b1a;
    border-right: 1px solid #d07f7a;
    transition: background 120ms ease;
    user-select: none;
}


.calendar-day-cell.has-entry-data::before {
    content: "";
    position: absolute;
    top: 50%;
    height: 1.15rem;
    transform: translateY(-50%) rotate(-0.4deg);
    background: rgba(206, 116, 110, 0.52);
    pointer-events: none;
    /* The hand-drawn magic — references the hidden SVG filter above */
    filter: url(#dtr-marker);
}

.calendar-day-cell.has-entry-single::before {
    left: var(--sketch-left-single, 2.2rem);
    right: var(--sketch-right-single, 2.2rem);
    border-radius: 999px;
}

.calendar-day-cell.has-entry-start::before {
    left: var(--sketch-left-start, 2.2rem);
    right: -2px;
    border-radius: 999px 0 0 999px;
}

.calendar-day-cell.has-entry-middle::before {
    left: -2px;
    right: -2px;
    border-radius: 0;
}

.calendar-day-cell.has-entry-end::before {
    left: -2px;
    right: var(--sketch-right-end, 2.2rem);
    border-radius: 0 999px 999px 0;
}

.calendar-day-cell:last-child {
    border-right: none;
}

.week-row:nth-child(odd) .calendar-day-cell {
    background: #efefef;
}

.week-row:nth-child(even) .calendar-day-cell {
    background: #e9d9d2;
}

.calendar-day-cell.is-outside {
    color: transparent;
    pointer-events: none;
}

.calendar-day-cell.is-inactive {
    color: #9c7d74;
    font-weight: 400;
}

.calendar-day-cell.is-active {
    color: #1b1b1b;
}

/* ============================================================
   WEEK ACCORDION
   ============================================================ */
.week-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1);
    background: #f3f4f5;
}

.week-accordion-inner {
    padding: 0.75rem 0.75rem 0.9rem;
    border-top: 1.5px solid #d5cbcb;
}

.week-entry-table-wrap {
    border: 1px solid #cfd4db;
    border-radius: 0.75rem;
    background: #eef1f4;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.week-entry-headings {
    display: grid;
    grid-template-columns: repeat(10, minmax(130px, 1fr));
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    border-bottom: 1.5px solid #cdd5de;
    background: #e2e8f0;
    min-width: 1300px;
}

.week-entry-headings span {
    padding: 0.65rem 0.8rem;
    border-right: 1px solid #d4dce5;
}

.week-entry-headings span:last-child {
    border-right: none;
}

.week-entry-list {
    display: flex;
    flex-direction: column;
    min-width: 1300px;
}

.dtr-entry-card {
    border-top: 1px solid #d8dde5;
    background: #f8fafd;
    transition: background 120ms ease;
}

.dtr-entry-card:first-child {
    border-top: none;
}

.dtr-entry-card:hover {
    background: #f1f5fb;
}

.dtr-entry-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(130px, 1fr));
    min-width: 1300px;
}

.dtr-cell {
    border-right: 1px solid #d8dde5;
    padding: 0.65rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dtr-cell:last-child {
    border-right: none;
}

.dtr-cell-label {
    font-size: 0.71rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dtr-day-value {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.9rem;
}

.dtr-cell-undertime {
    justify-content: center;
    font-weight: 700;
    color: #334155;
}

.dtr-cell-status {
    align-items: center;
    justify-content: center;
}

.week-entry-empty {
    margin: 0;
    padding: 0.85rem 0.95rem;
    font-size: 0.88rem;
    color: #64748b;
    background: #f4f4f5;
    border: 1px dashed #d5d5d9;
    border-radius: 0.6rem;
}

/* ============================================================
   TIME PICKER
   ============================================================ */
.time-picker {
    position: relative;
    width: 100%;
    max-width: 7.9rem;
    min-width: 0;
}

.time-picker-trigger {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.2rem;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d1b8b0;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f2ef 100%);
    color: #1f1a18;
    padding: 0.375rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
    min-height: 1.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.time-picker-label,
.time-picker-trigger [data-time-label] {
    display: block;
    flex: 1 1 0;
    font-size: 1em;
    line-height: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.time-picker-trigger .time-picker-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
    font-size: 0.95em;
    line-height: 1;
    margin-left: 0.1rem;
}

.time-picker-trigger:hover {
    border-color: #b8332c;
    transform: translateY(-1px);
}

.time-picker.open .time-picker-trigger {
    border-color: #9e2b25;
    box-shadow: 0 0 0 3px rgba(184, 51, 44, 0.15);
}

.time-picker-icon {
    opacity: 0.55;
    font-size: 0.8rem;
}

.time-picker-panel {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.4rem);
    transform: translateX(-50%) translateY(-0.35rem) scale(0.97);
    opacity: 0;
    visibility: hidden;
    width: 10.8rem;
    padding: 0.55rem;
    border-radius: 0.9rem;
    border: 1.5px solid rgba(184, 51, 44, 0.28);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(253, 245, 241, 0.98));
    box-shadow: 0 16px 32px rgba(120, 30, 20, 0.2);
    backdrop-filter: blur(6px);
    z-index: 55;
    transition: all 180ms ease;
}

.time-picker.open .time-picker-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.time-picker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.35rem;
}

.time-picker-grid select {
    border: 1px solid #d1b8b0;
    border-radius: 0.55rem;
    background: #ffffff;
    font-size: 0.73rem;
    font-weight: 600;
    padding: 0.25rem;
    color: #1f1a18;
}

.time-picker-grid select:focus {
    outline: none;
    border-color: #b8332c;
    box-shadow: 0 0 0 2px rgba(184, 51, 44, 0.15);
}

.time-picker-actions {
    margin-top: 0.45rem;
    display: flex;
    gap: 0.35rem;
}

.time-picker-actions button {
    flex: 1;
    border-radius: 0.5rem;
    border: 1px solid #d1b8b0;
    background: #ffffff;
    padding: 0.28rem 0.35rem;
    font-size: 0.69rem;
    font-weight: 700;
    color: #1f1a18;
    transition: all 140ms ease;
    cursor: pointer;
}

.time-picker-actions button[data-time-apply] {
    border-color: #b8332c;
    background: #b8332c;
    color: #ffffff;
}

.time-picker-actions button:hover {
    transform: translateY(-1px);
    opacity: 0.88;
}

.time-picker.is-disabled .time-picker-trigger {
    background: #f1ebe8;
    color: #a89390;
    border-color: #dcc8c2;
    cursor: not-allowed;
    transform: none;
}

.time-picker.is-disabled .time-picker-icon {
    opacity: 0.35;
}

.time-picker.is-disabled .time-picker-trigger:hover {
    border-color: #dcc8c2;
    transform: none;
}

/* ============================================================
   DAY TYPE SELECT
   ============================================================ */
.day-type-select {
    border-radius: 0.65rem;
    border: 1px solid #d1b8b0;
    padding: 0.32rem 1.7rem 0.32rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: #fff;
    color: #1f1a18;
    transition: all 180ms ease;
    cursor: pointer;
    appearance: auto;
}

.day-type-select:focus {
    outline: none;
    border-color: #b8332c;
    box-shadow: 0 0 0 3px rgba(184, 51, 44, 0.15);
}

.day-type-select[data-type="regular_day"] {
    background-color: #ecfeff;
    color: #0f766e;
}

.day-type-select[data-type="wfh"] {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.day-type-select[data-type="holiday"] {
    background-color: #fff7ed;
    color: #c2410c;
}

.day-type-select[data-type="suspension"] {
    background-color: #fff1f2;
    color: #be123c;
}

.day-type-select[data-type="absent"] {
    background-color: #fee2e2;
    color: #991b1b;
}

.day-type-select[data-type="leave"] {
    background-color: #f0fdf4;
    color: #166534;
}

/* ============================================================
   STATUS DOT + POPOVER
   ============================================================ */
.status-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
    transition: background 200ms ease, box-shadow 200ms ease;
}

.status-dot[data-status="saved"] {
    background-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.status-dot[data-status="warning"] {
    background-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.status-dot-button {
    position: relative;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(184, 51, 44, 0.22);
    background: rgba(184, 51, 44, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 220ms ease;
    overflow: hidden;
    cursor: pointer;
}

.status-dot-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 100, 80, 0.24), rgba(184, 51, 44, 0));
    opacity: 0;
    transition: opacity 220ms ease;
}

.status-hover:hover .status-dot-button::before {
    opacity: 1;
}

.status-hover:hover .status-dot-button {
    border-color: rgba(184, 51, 44, 0.45);
    transform: translateY(-1px);
}

.status-popover {
    pointer-events: none;
    position: absolute;
    right: calc(100% + 0.55rem);
    top: 50%;
    transform: translateY(-50%) translateX(0.35rem);
    opacity: 0;
    visibility: hidden;
    width: 15.5rem;
    transition: all 220ms ease;
    z-index: 40;
}

.status-hover:hover .status-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.status-popover-inner {
    position: relative;
    padding: 0.75rem 0.85rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg, rgba(28, 16, 14, 0.96), rgba(50, 28, 24, 0.96));
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 35px rgba(80, 20, 16, 0.4);
}

.status-popover-head {
    display: flex;
    align-items: center;
    margin-bottom: 0.35rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

.status-pill[data-status="saved"] {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.status-pill[data-status="warning"] {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.status-popover-text {
    font-size: 0.74rem;
    color: #e2d4d0;
    line-height: 1.3;
}

.status-popover-glow {
    position: absolute;
    inset: 0;
    border-radius: 0.95rem;
    background: linear-gradient(120deg, rgba(200, 80, 60, 0.2), rgba(184, 51, 44, 0));
    filter: blur(14px);
    opacity: 0.55;
    z-index: -1;
}

.status-popover-arrow {
    position: absolute;
    width: 0.68rem;
    height: 0.68rem;
    right: -0.34rem;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: rgba(50, 28, 24, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================================================
   EXPORT / ACTION BUTTONS
   ============================================================ */
.btn-export-excel {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--red, #b8332c);
    border: 2px solid var(--red-dark, #9e2b25);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.7rem;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.btn-export-excel:hover:not(:disabled) {
    background: var(--red-dark, #9e2b25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 43, 37, 0.28);
}

.btn-export-pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #8f241f;
    border: 2px solid #7c1f1a;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.7rem;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.btn-export-pdf:hover:not(:disabled) {
    background: #7c1f1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 31, 26, 0.3);
}

.btn-export-excel:disabled,
.btn-export-pdf:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-my-records {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(184, 51, 44, 0.3);
    color: #9e2b25;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.7rem;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.btn-my-records:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--red, #b8332c);
    color: var(--red-dark, #9e2b25);
    transform: translateY(-2px);
}

/* Export modal loader (Excel/PDF loading state) */
#export-loading-state {
    display: flex;
    justify-content: center;
}

#export-loading-state.hidden {
    display: none;
}

#export-loading-state .loader {
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    --book-color: #f1775b;
    --book-cover-color: #506c86;
}

#export-loading-state .book {
    width: 150px;
    height: 13px;
    background-color: var(--book-color);
    border-bottom: 2px solid var(--book-cover-color);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
}

#export-loading-state .page {
    width: 50%;
    height: 2px;
    background-color: var(--book-color);
    animation: paging 0.7s ease-out infinite;
    transform-origin: left;
}

#export-loading-state .page2 {
    width: 50%;
    height: 2px;
    background-color: var(--book-color);
    animation: paging 0.8s ease-out infinite;
    transform-origin: left;
    position: absolute;
}

@keyframes paging {
    10% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(-180deg);
    }
}

/* ============================================================
   SUMMARY CARD
   ============================================================ */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.38rem 0;
    border-bottom: 1px dashed #dbc0b1;
    font-size: 0.82rem;
    color: #3a2a24;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row strong {
    color: #1f1a18;
    font-weight: 700;
}

#save-status {
    font-size: 0.78rem;
    min-height: 1.1rem;
    transition: color 200ms ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
    .workspace-shell {
        padding: 1.1rem;
    }

    .workspace-month-topline {
        gap: 0.75rem;
        padding: 0.9rem 0.9rem 0;
    }

    .workspace-month-title {
        font-size: 1.55rem;
    }

    .workspace-month-meta {
        gap: 0.75rem;
        padding: 0.42rem 0.92rem;
        font-size: 0.75rem;
    }

    .workspace-month-tab {
        font-size: 0.78rem;
        padding: 0.48rem 0.8rem 0.58rem;
    }

    .workspace-month-tab.is-active {
        padding-bottom: calc(0.53rem + 1.5px);
        padding-top: calc(0.62rem + 1.5px);
    }

    .custom-calendar-days-head span {
        font-size: 1.05rem;
        padding: 0.72rem 0.22rem;
    }

    .calendar-day-cell {
        font-size: 1.12rem;
        min-height: 2.65rem;
    }

    .week-entry-headings {
        font-size: 0.77rem;
        grid-template-columns: repeat(10, minmax(118px, 1fr));
        min-width: 1180px;
    }

    .week-entry-list,
    .dtr-entry-grid {
        min-width: 1180px;
        grid-template-columns: repeat(10, minmax(118px, 1fr));
    }

    .dtr-cell {
        padding: 0.55rem 0.68rem;
        gap: 0.3rem;
    }

    .dtr-cell-label {
        font-size: 0.68rem;
    }

    .dtr-day-value {
        font-size: 0.84rem;
    }

    .time-picker {
        width: 6rem;
    }

    .time-picker-trigger {
        padding: 0.35rem 0.54rem;
        font-size: 0.75rem;
        min-height: 1.8rem;
    }

    .time-picker-trigger .time-picker-icon {
        font-size: 0.72rem;
    }

    .day-type-select {
        font-size: 0.76rem;
    }

    .btn-export-excel,
    .btn-export-pdf,
    .btn-my-records {
        font-size: 0.76rem;
        padding: 0.42rem 0.82rem;
    }

    .summary-row {
        font-size: 0.78rem;
    }

    #save-status {
        font-size: 0.74rem;
    }
}

@media (max-width: 1024px) {
    .workspace-shell {
        padding: 0.8rem;
        border-radius: 1rem;
    }

    .workspace-month-topline {
        gap: 0.55rem;
        padding: 0.72rem 0.65rem 0;
    }

    .workspace-month-title {
        font-size: 1.28rem;
    }

    .workspace-month-meta {
        gap: 0.55rem;
        padding: 0.38rem 0.72rem;
        font-size: 0.69rem;
        border-radius: 0.68rem;
    }

    .workspace-month-tabs {
        padding: 0 0.65rem 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .workspace-month-tabs::-webkit-scrollbar {
        display: none;
    }

    .workspace-month-tab {
        flex: 0 0 auto;
        font-size: 0.72rem;
        padding: 0.4rem 0.58rem 0.42rem;
        border-width: 1.2px;
    }

    .workspace-month-tab.is-active {
        transform: translateY(-1px);
        padding-bottom: calc(0.42rem + 1px);
        padding-top: calc(0.47rem + 1px);
    }

    .workspace-month-panel {
        padding: 0 0.65rem 0.65rem;
    }

    .custom-calendar-head {
        grid-template-columns: 2rem minmax(0, 1fr);
    }

    .calendar-day-cell {
        font-size: 1rem;
        min-height: 2.15rem;
    }

    .custom-calendar-days-head span {
        font-size: 0.83rem;
        padding: 0.58rem 0.06rem;
    }

    .week-arrow-btn svg {
        width: 0.9rem;
        height: 0.9rem;
    }

    .week-entry-headings {
        font-size: 0.72rem;
        grid-template-columns: repeat(10, minmax(104px, 1fr));
        min-width: 1040px;
    }

    .week-entry-list,
    .dtr-entry-grid {
        min-width: 1040px;
        grid-template-columns: repeat(10, minmax(104px, 1fr));
    }

    .dtr-cell {
        padding: 0.5rem 0.55rem;
    }

    .dtr-cell-label {
        font-size: 0.64rem;
    }

    .dtr-day-value {
        font-size: 0.8rem;
    }

    .time-picker {
        width: 5.4rem;
    }

    .time-picker-trigger {
        padding: 0.32rem 0.38rem;
        font-size: 0.7rem;
        min-height: 1.75rem;
        gap: 0.15rem;
        border-radius: 0.6rem;
    }

    .time-picker-trigger .time-picker-icon {
        font-size: 0.66rem;
    }

    .day-type-select {
        font-size: 0.72rem;
        padding: 0.28rem 1.35rem 0.28rem 0.48rem;
    }

    .btn-export-excel,
    .btn-export-pdf,
    .btn-my-records {
        font-size: 0.72rem;
        padding: 0.38rem 0.7rem;
    }

    .summary-row {
        font-size: 0.74rem;
    }

    #save-status {
        font-size: 0.72rem;
    }

    .workspace-side-column {
        position: static !important;
        top: auto !important;
    }

    .custom-calendar {
        max-height: min(63vh, calc(100vh - 9.6rem));
    }
}

@media (max-width: 768px) {

    .week-accordion-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .week-entry-table-wrap,
    .week-entry-headings,
    .week-entry-list,
    .dtr-entry-grid {
        min-width: 920px;
    }

    .week-entry-headings,
    .dtr-entry-grid {
        grid-template-columns: repeat(10, minmax(92px, 1fr));
    }

    .workspace-month-meta {
        width: 100%;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        gap: 0.45rem;
        border-radius: 0.65rem;
        font-size: 0.66rem;
    }

    .workspace-month-tabs {
        padding: 0 0.45rem 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .workspace-month-tabs::-webkit-scrollbar {
        display: none;
    }

    .workspace-month-panel {
        padding: 0 0.45rem 0.45rem;
    }

    .workspace-month-topline {
        padding: 0.62rem 0.45rem 0;
        gap: 0.42rem;
    }

    .workspace-month-title {
        font-size: 1.05rem;
    }

    .workspace-month-tab {
        font-size: 0.68rem;
        padding: 0.35rem 0.48rem 0.38rem;
        border-radius: 0.45rem 0.45rem 0 0;
    }

    .custom-calendar-head {
        grid-template-columns: 1.7rem minmax(0, 1fr);
    }

    .custom-calendar-days-head span {
        font-size: 0.72rem;
        padding: 0.5rem 0.02rem;
        letter-spacing: 0.02em;
    }

    .calendar-day-cell {
        min-height: 1.95rem;
        font-size: 0.9rem;
    }

    .week-arrow-btn svg {
        width: 0.82rem;
        height: 0.82rem;
    }

    .dtr-cell {
        padding: 0.42rem 0.45rem;
        gap: 0.22rem;
    }

    .dtr-cell-label {
        font-size: 0.6rem;
    }

    .dtr-day-value {
        font-size: 0.76rem;
    }

    .time-picker {
        max-width: 5rem;
    }

    .time-picker-trigger {
        padding: 0.28rem 0.4rem;
        font-size: 0.65rem;
        min-height: 1.65rem;
        gap: 0.12rem;
        border-radius: 0.55rem;
    }

    .time-picker-trigger .time-picker-icon {
        font-size: 0.6rem;
    }

    .day-type-select {
        font-size: 0.68rem;
        padding: 0.26rem 1.2rem 0.26rem 0.42rem;
    }

    .workspace-side-card {
        padding: 1rem !important;
    }

    .workspace-side-card h1 {
        font-size: 1.45rem !important;
        line-height: 1.15;
    }

    .workspace-side-card h2 {
        font-size: 1rem !important;
    }

    .workspace-side-card p,
    .summary-row {
        font-size: 0.72rem;
    }

    .btn-export-excel,
    .btn-export-pdf,
    .btn-my-records {
        font-size: 0.68rem;
        padding: 0.34rem 0.58rem;
    }

    .custom-calendar {
        max-height: min(62vh, calc(100vh - 8.6rem));
    }
}

@media (max-width: 560px) {
    .workspace-shell {
        padding: 0.6rem;
        border-radius: 0.75rem;
    }

    .workspace-month-title {
        font-size: 0.96rem;
    }

    .workspace-month-meta {
        font-size: 0.62rem;
        padding: 0.32rem 0.5rem;
    }

    .custom-calendar-days-head span {
        font-size: 0.65rem;
        padding: 0.45rem 0;
    }

    .calendar-day-cell {
        font-size: 0.82rem;
        min-height: 1.8rem;
    }

    .week-entry-table-wrap,
    .week-entry-headings,
    .week-entry-list,
    .dtr-entry-grid {
        min-width: 860px;
    }

    .week-accordion-inner {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .time-picker {
        max-width: 100%;
    }

    .time-picker-trigger {
        padding: 0.24rem 0.32rem;
        font-size: 0.6rem;
        min-height: 1.55rem;
        border-radius: 0.5rem;
    }

    .time-picker-trigger .time-picker-icon {
        font-size: 0.56rem;
    }

    .time-picker-label,
    .time-picker-trigger [data-time-label] {
        letter-spacing: 0;
    }

    .custom-calendar {
        max-height: min(60vh, calc(100vh - 8.1rem));
    }
}

/* ============================================================
   LANDING PAGE
   ============================================================ */

.lp-root {
    --red: #b8332c;
    --red-dark: #9e2b25;
    --red-deep: #7c1f1a;
    --peach: #edd8cd;
    --peach2: #e8d0c4;
    --tan: #dbc0b1;
    --card: #efefef;
    --card2: #f3f1ef;
    --ink: #1f1a18;
    --muted: #7c6058;
    --white: #fff;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lp-section-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 0.6rem;
}

.lp-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, #edd8cd 0%, #e8d0c4 55%, #dfc4b5 100%);
    border-top: 5px solid var(--red);
    border-radius: 1.4rem;
    overflow: hidden;
    padding: 4rem 3.5rem 5rem;
    box-shadow: 0 6px 40px rgba(120, 40, 32, 0.13);
}

.lp-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lp-grid-line {
    position: absolute;
    background: rgba(184, 51, 44, 0.07);
}

.lp-grid-line--v {
    width: 1px;
    top: 0;
    bottom: 0;
}

.lp-grid-line--h {
    height: 1px;
    left: 0;
    right: 0;
}

.lp-hero-blob {
    position: absolute;
    right: -8rem;
    top: -8rem;
    width: 36rem;
    height: 36rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 51, 44, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.lp-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(184, 51, 44, 0.12);
    border: 1px solid rgba(184, 51, 44, 0.25);
    color: var(--red-deep);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    width: fit-content;
    margin-bottom: 1.2rem;
}

.lp-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.75);
    }
}

.lp-hero-h1 {
    display: flex;
    flex-direction: column;
    margin: 0 0 1.4rem;
    gap: 0;
}

.lp-h1-line {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--ink);
    display: block;
    overflow: hidden;
}

.lp-h1-accent {
    color: var(--red);
    font-style: italic;
}

.lp-hero-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 30rem;
    margin: 0 0 2rem;
}

.lp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red);
    border: 2px solid var(--red-dark);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.7rem;
    text-decoration: none;
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
    cursor: pointer;
}

.lp-btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 43, 37, 0.4);
}

.lp-btn-sm {
    font-size: 0.78rem;
    padding: 0.52rem 1.1rem;
}

.lp-btn-ghost {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(184, 51, 44, 0.3);
    color: var(--red-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.7rem;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.lp-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--red);
    transform: translateY(-2px);
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.6rem;
}

.lp-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lp-pill {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.69rem;
    font-weight: 700;
    color: var(--red-deep);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(184, 51, 44, 0.2);
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
}

.lp-hero-card-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lp-mock-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(100, 30, 24, 0.22), 0 4px 12px rgba(100, 30, 24, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    position: relative;
}

.lp-mock-topbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
    padding: 0.55rem 0.85rem;
}

.lp-mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lp-mock-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: #999;
    margin-left: 0.35rem;
}

.lp-mock-cal-head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--red);
}

.lp-mock-cal-head span {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 0.1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.lp-mock-cal-head span:last-child {
    border-right: none;
}

.lp-mock-cal-body {
    padding: 0.25rem 0;
}

.lp-mock-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.lp-mock-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.4rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    border-right: 1px solid #f0e8e4;
    border-bottom: 1px solid #f0e8e4;
}

.lp-mock-day:last-child {
    border-right: none;
}

.lp-mock-day--empty {
    color: transparent;
}

.lp-mock-day--dim {
    color: #c9a090;
}

.lp-mock-day--highlight {
    position: relative;
}

.lp-mock-day--highlight::before {
    content: '';
    position: absolute;
    inset: 0.3rem 0.2rem;
    background: rgba(206, 116, 110, 0.45);
    border-radius: 999px;
    filter: url(#dtr-marker);
}

.lp-mock-day--today {
    background: var(--red);
    color: #fff;
    font-weight: 800;
    border-radius: 0;
}

.lp-mock-day--holiday {
    background: rgba(255, 247, 237, 0.9);
    color: #c2410c;
    font-weight: 700;
}

.lp-mock-entry-pill {
    position: absolute;
    bottom: -1px;
    left: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #1f1a18 0%, #3a2a24 100%);
    border-radius: 0.85rem 0.85rem 0 0;
    padding: 0.75rem 1rem 0.85rem;
    box-shadow: 0 -4px 20px rgba(30, 10, 8, 0.2);
}

.lp-mock-entry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.lp-mock-entry-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.lp-mock-entry-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    background: rgba(184, 51, 44, 0.35);
    color: #f5a8a4;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
}

.lp-mock-entry-times {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: #fff;
    flex-wrap: wrap;
}

.lp-mock-sep {
    color: rgba(255, 255, 255, 0.3);
}

.lp-scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.55;
}

.lp-scroll-hint span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red-deep);
}

.lp-scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--red);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.lp-scroll-wheel {
    width: 3px;
    height: 7px;
    background: var(--red);
    border-radius: 999px;
    animation: scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    80% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

.lp-features {
    padding: 5rem 0 4rem;
}

.lp-features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.lp-features-h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    color: var(--ink);
    margin: 0;
    line-height: 1.15;
}

.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: start;
}

.lp-feat-card--wide {
    grid-column: span 2;
}

.lp-feat-card {
    position: relative;
    background: var(--card2);
    border: 1px solid var(--tan);
    border-radius: 1.1rem;
    padding: 2rem 1.75rem;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.lp-feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(120, 40, 32, 0.14);
    border-color: rgba(184, 51, 44, 0.35);
}

.lp-feat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(184, 51, 44, 0.1);
    border: 1px solid rgba(184, 51, 44, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    margin-bottom: 1rem;
}

.lp-feat-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 0.55rem;
}

.lp-feat-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

.lp-feat-bg-accent {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.lp-feat-bg-accent--1 {
    width: 180px;
    height: 180px;
    background: rgba(184, 51, 44, 0.05);
    right: -40px;
    bottom: -40px;
}

.lp-feat-bg-accent--2 {
    width: 140px;
    height: 140px;
    background: rgba(184, 51, 44, 0.06);
    right: -30px;
    top: -30px;
}

.lp-feat-bg-accent--3 {
    width: 120px;
    height: 120px;
    background: rgba(184, 51, 44, 0.05);
    left: -20px;
    bottom: -20px;
}

.lp-feat-bg-accent--4 {
    width: 160px;
    height: 160px;
    background: rgba(184, 51, 44, 0.05);
    right: -40px;
    bottom: -40px;
}

.lp-feat-bg-accent--5 {
    width: 130px;
    height: 130px;
    background: rgba(184, 51, 44, 0.06);
    right: -20px;
    top: -20px;
}

.lp-feat-bg-accent--6 {
    width: 200px;
    height: 200px;
    background: rgba(184, 51, 44, 0.04);
    right: -60px;
    bottom: -60px;
}

.lp-workspaces {
    padding: 0 0 3rem;
}

.lp-workspaces-inner {
    background: #f8e9e5;
    border-top: 5px solid var(--red);
    border-radius: 1.2rem;
    padding: 2.5rem 2.75rem;
    box-shadow: 0 4px 24px rgba(120, 40, 32, 0.1);
}

.lp-workspaces-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.lp-ws-h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ink);
    margin: 0;
    line-height: 1.1;
}

.lp-ws-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lp-ws-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(219, 192, 177, 0.8);
    border-radius: 0.85rem;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.lp-ws-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(184, 51, 44, 0.35);
    transform: translateX(4px);
}

.lp-ws-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    text-decoration: none;
}

.lp-ws-icon {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.65rem;
    background: rgba(184, 51, 44, 0.1);
    border: 1px solid rgba(184, 51, 44, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}

.lp-ws-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.lp-ws-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
}

.lp-ws-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    color: var(--muted);
}

.lp-ws-arrow {
    font-size: 1.4rem;
    color: rgba(184, 51, 44, 0.35);
    transition: color 140ms ease, transform 140ms ease;
    line-height: 1;
}

.lp-ws-item:hover .lp-ws-arrow {
    color: var(--red);
    transform: translateX(2px);
}

.lp-ws-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1.5px dashed rgba(184, 51, 44, 0.3);
    border-radius: 1rem;
}

.lp-ws-empty-icon {
    color: rgba(184, 51, 44, 0.3);
    margin-bottom: 0.85rem;
}

.lp-ws-empty-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.3rem;
}

.lp-ws-empty-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 900px) {
    .lp-hero {
        padding: 3rem 2rem 4rem;
        min-height: auto;
    }

    .lp-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .lp-hero-card-wrap {
        order: -1;
    }

    .lp-mock-card {
        max-width: 360px;
        margin: 0 auto;
    }

    .lp-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lp-feat-card--wide {
        grid-column: span 2;
    }

    .lp-workspaces-inner {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .lp-hero {
        padding: 2.5rem 1.25rem 3.5rem;
    }

    .lp-features-grid {
        grid-template-columns: 1fr;
    }

    .lp-feat-card--wide {
        grid-column: span 1;
    }

    .lp-workspaces-inner {
        padding: 1.5rem 1.1rem;
    }

    .lp-workspaces-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-ws-h2 {
        font-size: 1.4rem;
    }
}

/* ============================================================
   START PAGE
   ============================================================ */

.sp-root {
    max-width: 980px;
    margin: 0 auto;
    gap: 1.1rem;
}

.sp-block {
    padding-bottom: 0;
}

.sp-card {
    position: relative;
    overflow: hidden;
}

.sp-alert {
    background: linear-gradient(160deg, rgba(255, 247, 237, 0.92), rgba(255, 236, 229, 0.92));
    border: 1px solid rgba(184, 51, 44, 0.28);
    border-top: 4px solid var(--red);
    border-radius: 1rem;
    padding: 0.78rem 1rem;
    color: #7c1f1a;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(120, 40, 32, 0.08);
}

.sp-card-header {
    margin-bottom: 1rem;
}

.sp-form-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
    line-height: 1.1;
    color: var(--ink);
    font-weight: 900;
}

.sp-form-sub {
    margin: 0.35rem 0 1.35rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.83rem;
    line-height: 1.6;
    color: var(--muted);
}

.sp-error {
    margin-bottom: 1rem;
    border: 1px solid rgba(190, 24, 93, 0.28);
    background: rgba(255, 241, 242, 0.8);
    color: #9f1239;
    border-radius: 0.8rem;
    padding: 0.68rem 0.85rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
}

.sp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.sp-label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #3a2a24;
}

.sp-inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.sp-input {
    width: 100%;
    border-radius: 0.72rem;
    border: 1px solid rgba(184, 51, 44, 0.24);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    padding: 0.58rem 0.68rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.sp-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(184, 51, 44, 0.16);
    background: #fff;
}

.sp-input:disabled {
    color: #9a7f77;
    background: rgba(241, 231, 225, 0.85);
    border-color: rgba(184, 51, 44, 0.2);
    cursor: not-allowed;
}

.sp-span-2 {
    grid-column: span 2;
}

.sp-submit-wrap {
    display: flex;
    align-items: center;
}

@media (max-width: 900px) {
    .sp-root {
        gap: 0.9rem;
    }

    .sp-card.lp-workspaces-inner {
        padding: 1.6rem 1.3rem;
    }
}

@media (max-width: 600px) {
    .sp-form-grid {
        grid-template-columns: 1fr;
    }

    .sp-span-2 {
        grid-column: span 1;
    }

    .sp-submit-wrap .lp-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .sp-alert {
        font-size: 0.74rem;
        padding: 0.7rem 0.8rem;
    }
}