:root {
    --bg: #121212;
    --bg-D: rgb(18, 18, 30);
    --bg-L: rgb(18, 18, 30);
    --bg-L2: rgb(143, 166, 136);
    --bg-L3: rgb(121, 125, 107);
    --surface: #1e1e1e;
    --surface-2: #2a2a2a;
    --surface-D: #151729;
    --surface-D2: #0b0b0ba8;
    --text: #e8eaed;
    --text-secondary: #9aa0a6;
    --accent: #8ab4f8;
    --main-D: #a2f88a;
    --border: #3c4043;
    --top: 42px;
    --letter-spacing: .025em;
    background: black;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* ::-moz-selection {
    background-color: #03262b38 !important;
    color: var(--main-D) !important;
}

* ::selection {
    background-color: #03262b;
    color: #dcdcdc;
}

html ::selection {
    background-color: #03262b;
    color: #dcdcdc;
}

body {
    font-family: 'Roboto', system-ui, sans-serif;
    background: rgba(25, 30, 22, 0.45);
    color: #000;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 500;
}

.app {
    max-width: 900px;
    margin: 3em auto 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(42, 43, 39, 0.43);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--top);
    z-index: 10;
    color: #77805a;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 1.1rem;
}

.logo-area .material-icons {
    color: #7d7a8f70;
    font-size: 28px;
}

.date-label {
    font-size: 0.95rem;
    color: #000;
    letter-spacing: var(--letter-spacing);
}

.day-view {
    flex: 1;
    display: flex;
    position: relative;
    overflow-y: auto;
}

.time-column {
    width: 64px;
    flex-shrink: 0;
    padding-top: 12px;
    border-right: 1px solid var(--border);
    background: rgba(121, 125, 107, 0.05);
    color: white;
}

.time-slot-label {
    height: 60px;
    font-size: 0.75rem;
    color: #3d5000;
    text-align: right;
    padding-right: 8px;
    position: relative;
    top: -8px;
}

.grid {
    flex: 1;
    position: relative;
    background: repeating-linear-gradient( to bottom, transparent, transparent 59px, var(--border) 59px, var(--border) 60px);
}

.hour-row {
    height: 60px;
    position: relative;
    cursor: pointer;
}

.hour-row:hover {
    background: rgba(138, 180, 248, 0.06);
}

.event-block {
    position: absolute;
    left: 8px;
    right: 8px;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    color: #fdfdfd;
    /*! filter: contrast(38); */
    border: 1px solid #f0f8ff63;
    background: #7b9568;
}

.event-block:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.event-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /*! filter: saturate(102%); */
    color: #e0ffd9;
}

.event-time {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 2px;
}


/* Modal */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(32, 35, 22, 0.67);
    z-index: 100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 12px;
    overflow-y: auto;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: rgb(121, 125, 107);
    width: 100%;
    max-width: 480px;
    border-radius: 7px;
    margin-top: 24px;
    margin-bottom: 40px;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideUp 0.25s ease;
    border: 1px solid var(--border);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header button {
    background: none;
    /*! border: none; */
    color: #0006;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header button:hover {
    background: #00000091;
    color: #a2f88a;
}

.save-btn {
    background: var(--main-D) !important;
    color: #202124ab !important;
    font-weight: 500;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-size: 0.9rem;
    border: 1px solid #000000eb;
}

.modal-body {
    padding: 8px 16px 24px;
}

.title-input {
    width: 100%;
    background: #00000075;
    border: none;
    /*! border-bottom: 2px solid #a2f88a; */
    color: #a2f88a;
    font-size: 1.4rem;
    padding: 12px 12px 12px 12px;
    margin-bottom: 16px;
    outline: none;
    border-radius: 6px;
}

.title-input:focus {
    border-bottom-color: #66a954;
}

.type-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.type-pill {
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: transparent;
    color: #a2f88a;
    font-size: 0.85rem;
    cursor: pointer;
}

.type-pill.active {
    background: #3c4043;
    border-color: transparent;
}

.account-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #a2f88a;
    background: #0000007d;
    padding: 12px;
    border-radius: 3px;
    font-weight: 100;
}

.account-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid var(--border);
}

.account-avatar:hover {
    background: var(--surface-D2);
    border-color: var(--main-D);
    color: var(--main-D);
}

.label-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid #02020245;
    font-size: 0.8rem;
    cursor: pointer;
    background: #0000006b;
    color: #c2c2c296;
    transition: background 0.15s, border-color 0.15s;
    font-weight: 100;
}

.chip:hover {
    border: 1px solid var(--text);
}

.chip .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #3fff39;
}

.chip.active {
    background: var(--surface-D2);
    border-color: var(--main-D);
    color: #a2f88a;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    margin: 0 -16px;
}

.form-row .material-icons {
    color: #00000082;
    font-size: 22px;
    flex-shrink: 0;
}

.form-row .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-row .label {
    color: #000;
    font-size: 0.8rem;
}

.toggle {
    width: 40px;
    height: 22px;
    background: #00000082;
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle.on {
    background: var(--main-D);
}

.toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #797d6b;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.toggle.on::after {
    transform: translateX(18px);
}

.time-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-inputs input {
    background: #0000006e;
    border: 1px solid var(--border);
    color: #a2f88a;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
}

input:focus {
    outline: none;
    /* box-shadow: 0 -12px 12px rgba(0, 0, 0, 0.4) inset; */
    box-shadow: 0 -12px 12px #161616 inset;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: #000;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 4px;
}

.action-btn:hover {
    background: var(--surface-2);
}

@media (min-width: 600px) {
    .modal {
        margin-top: 48px;
    }
    .time-column {
        width: 72px;
    }
    .event-block {
        left: 12px;
        right: 12px;
    }
}

font-family: 'Roboto',
system-ui,
sans-serif;
background: rgba(25, 30, 22, 0.45);
color: #000;
min-height: 100vh;
overflow-x: hidden;
font-weight: 500;

}
.app {
    max-width: 900px;
    margin: 3em auto 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(42, 43, 39, 0.43);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--top);
    z-index: 10;
    color: #77805a;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 1.1rem;
}
.logo-area .material-icons {
    color: #7d7a8f70;
    font-size: 28px;
}
.date-label {
    font-size: 0.95rem;
    color: #749573c4;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
.day-view {
    flex: 1;
    display: flex;
    position: relative;
    overflow-y: auto;
}
.time-column {
    width: 64px;
    flex-shrink: 0;
    padding-top: 12px;
    border-right: 1px solid var(--border);
    background: rgba(121, 125, 107, 0.05);
    color: white;
}
.time-slot-label {
    height: 60px;
    font-size: 0.75rem;
    color: #3d5000;
    text-align: right;
    padding-right: 8px;
    position: relative;
    top: -8px;
}
.grid {
    flex: 1;
    position: relative;
    background: repeating-linear-gradient( to bottom, transparent, transparent 59px, var(--border) 59px, var(--border) 60px);
}
.hour-row {
    height: 60px;
    position: relative;
    cursor: pointer;
}
.hour-row:hover {
    background: rgba(138, 180, 248, 0.06);
}
.event-block {
    position: absolute;
    left: 8px;
    right: 8px;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    color: #fdfdfd;
    /*! filter: contrast(38); */
    
    border: 1px solid #f0f8ff63;
    background: #7b9568;
}
.event-block:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.event-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /*! filter: saturate(102%); */
    
    color: #e0ffd9;
}
.event-time {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(32, 35, 22, 0.67);
    z-index: 100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 12px;
    overflow-y: auto;
}
.modal-overlay.open {
    display: flex;
}
.modal {
    background: rgb(121, 125, 107);
    width: 100%;
    max-width: 480px;
    border-radius: 7px;
    margin-top: 24px;
    margin-bottom: 40px;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideUp 0.25s ease;
    border: 1px solid var(--border);
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.modal-header button {
    background: none;
    /*! border: none; */
    
    color: #0006;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-header button:hover {
    background: #00000091;
    color: #a2f88a;
}
.save-btn {
    background: var(--main-D) !important;
    color: #202124ab !important;
    font-weight: 500;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-size: 0.9rem;
    border: 1px solid #000000eb !important;
}
.modal-body {
    padding: 8px 16px 24px;
}
.title-input {
    width: 100%;
    background: #00000075;
    border: none;
    /*! border-bottom: 2px solid #a2f88a; */
    
    color: #a2f88a;
    font-size: 1.4rem;
    padding: 12px 12px 12px 12px;
    margin-bottom: 16px;
    outline: none;
    border-radius: 6px;
}
.title-input:focus {
    border-bottom-color: #66a954;
}
.type-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.type-pill {
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: transparent;
    color: #a2f88a;
    font-size: 0.85rem;
    cursor: pointer;
}
.type-pill.active {
    background: #3c4043;
    border-color: transparent;
}
.account-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #a2f88a;
    background: #0000007d;
    padding: 12px;
    border-radius: 3px;
    font-weight: 100;
}
.account-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid var(--border);
}
.account-avatar:hover {
    background: var(--surface-D2);
    border-color: var(--main-D);
    color: var(--main-D);
}
.label-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid #02020245;
    font-size: 0.8rem;
    cursor: pointer;
    background: #0000006b;
    color: #c2c2c296;
    transition: background 0.15s, border-color 0.15s;
    font-weight: 100;
}
.chip:hover {
    border: 1px solid var(--main-D);
}
.chip .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #252525;
}
.chip.active {
    background: var(--surface-D2);
    border-color: var(--main-D);
    color: #a2f88a;
}
.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    margin: 0 -16px;
}
.form-row .material-icons {
    color: #00000082;
    font-size: 22px;
    flex-shrink: 0;
}
.form-row .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.form-row .label {
    color: #000;
    font-size: 0.8rem;
}
.toggle {
    width: 40px;
    height: 22px;
    background: #00000082;
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}
.toggle.on {
    background: var(--main-D);
}
.toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #797d6b;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}
.toggle.on::after {
    transform: translateX(18px);
}
.time-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.time-inputs input {
    background: #0000006e;
    border: 1px solid var(--border);
    color: #a2f88a;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
}
input:focus {
    outline: none;
    /* box-shadow: 0 -12px 12px rgba(0, 0, 0, 0.4) inset; */
    
    box-shadow: 0 -12px 12px #161616 inset;
}
.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: #000;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 4px;
}
.action-btn:hover {
    background: var(--surface-2);
}
@media (min-width: 600px) {
    .modal {
        margin-top: 48px;
    }
    
    .time-column {
        width: 72px;
    }
    
    .event-block {
        left: 12px;
        right: 12px;
    }
}