:root {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #17233f;
    background: #f7f8fb;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #f7f8fb; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: #102549; font-size: 19px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand small { display: block; margin-top: 3px; color: #8792a3; font-size: 8px; font-weight: 750; letter-spacing: .12em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #ef7611; color: white; font-size: 22px; font-weight: 800; }
.eyebrow { margin: 0 0 8px; color: #ef7611; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.primary-button { display: inline-flex; min-height: 44px; padding: 0 17px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 10px; background: #ef7611; color: #fff; font-size: 12px; font-weight: 750; transition: background .16s ease, box-shadow .16s ease, transform .16s ease; }
.primary-button:hover:not(:disabled) { background: #dd6507; box-shadow: 0 7px 18px #ef761133; transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .7; }
.secondary-button { min-height: 42px; padding: 0 15px; border: 1px solid #e0e5ec; border-radius: 9px; background: #fff; color: #59667b; font-size: 12px; font-weight: 700; }
.secondary-button:hover { border-color: #b8c2d0; background: #f8f9fb; }
.text-button { padding: 8px 0 8px 12px; border: 0; background: transparent; color: #68758a; font-size: 12px; font-weight: 650; }
.text-button:hover { color: #ef7611; }

.login-view { position: relative; display: grid; min-height: 100vh; padding: 28px; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 68% 30%, #1c3e6e 0, #102549 53%, #0c1c38 100%); }
.login-card { position: relative; z-index: 1; width: min(100%, 430px); padding: 40px; border: 1px solid #ffffff20; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px #06132f55; }
.login-card .brand { margin-bottom: 42px; }
.login-card h1 { margin: 0; color: #14284b; font-size: 31px; letter-spacing: -.045em; line-height: 1.15; }
.login-description { margin: 12px 0 27px; color: #778398; font-size: 13px; line-height: 1.65; }
.login-card form { display: grid; gap: 10px; }
.login-card label, .meeting-form label { color: #39475d; font-size: 11px; font-weight: 750; }
.login-card input, .meeting-form input, .meeting-form select, .meeting-form textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #dfe4eb; border-radius: 9px; outline: none; background: #fff; color: #1c2a43; font-size: 13px; }
.login-card input:focus, .meeting-form input:focus, .meeting-form select:focus, .meeting-form textarea:focus { border-color: #ef7611; box-shadow: 0 0 0 3px #ef76111c; }
.login-card .primary-button { margin-top: 7px; }
.login-card .primary-button span { margin-left: auto; font-size: 17px; }
.login-footnote { margin: 25px 0 0; color: #98a1ae; font-size: 10px; text-align: center; }
.form-message { min-height: 17px; margin: 1px 0 0; color: #b42318; font-size: 11px; line-height: 1.5; }
.login-decoration { position: absolute; right: 7%; bottom: -180px; width: 520px; height: 520px; border: 1px solid #ffffff10; border-radius: 50%; }
.login-decoration span { position: absolute; inset: 45px; border: 1px solid #ffffff10; border-radius: 50%; }
.login-decoration span:nth-child(2) { inset: 95px; }
.login-decoration span:nth-child(3) { inset: 150px; }

.topbar { position: sticky; z-index: 2; top: 0; display: flex; height: 72px; padding: 0 max(28px, calc((100% - 1420px) / 2)); align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f4; background: #ffffffed; backdrop-filter: blur(14px); }
.topbar .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 19px; }
.topbar .brand { font-size: 17px; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.team-label { display: inline-flex; align-items: center; gap: 8px; color: #6f7a8c; font-size: 11px; font-weight: 650; }
.team-label i { width: 7px; height: 7px; border-radius: 50%; background: #35a66b; box-shadow: 0 0 0 3px #35a66b1c; }

.workspace { width: min(1420px, 100%); margin: 0 auto; padding: 36px 28px 20px; }
.page-heading { display: flex; margin-bottom: 25px; align-items: end; justify-content: space-between; gap: 20px; }
.page-heading h1 { margin: 0; color: #13284b; font-size: 32px; letter-spacing: -.045em; }
.subtitle { margin: 7px 0 0; color: #7e899a; font-size: 12px; }
.new-meeting-button { min-height: 42px; }
.new-meeting-button > span { font-size: 17px; line-height: 0; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 18px; }
.calendar-card, .agenda-card { border: 1px solid #e9edf2; border-radius: 15px; background: #fff; box-shadow: 0 3px 14px #253c5907; }
.calendar-card { min-width: 0; padding: 23px 24px 18px; }
.calendar-toolbar { display: flex; margin-bottom: 19px; align-items: center; justify-content: space-between; gap: 14px; }
.calendar-toolbar h2 { margin: 0; color: #172b4d; font-size: 19px; font-weight: 750; text-transform: capitalize; }
.calendar-toolbar p { margin: 5px 0 0; color: #9aa3b0; font-size: 10px; }
.month-controls { display: flex; align-items: center; gap: 7px; }
.month-controls button { display: grid; min-width: 34px; height: 33px; padding: 0 8px; place-items: center; border: 1px solid #e8ebf0; border-radius: 8px; background: #fff; color: #647188; font-size: 17px; }
.month-controls button:hover { border-color: #ef7611; color: #ef7611; }
.month-controls #today-button { min-width: auto; font-size: 10px; font-weight: 700; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-weekdays { margin-bottom: 7px; color: #8c97a7; font-size: 9px; font-weight: 750; text-align: center; text-transform: uppercase; }
.calendar-day { position: relative; min-width: 0; min-height: 104px; padding: 8px 7px; border: 1px solid #f0f2f5; border-radius: 9px; background: #fff; text-align: left; transition: border-color .14s ease, background .14s ease; }
.calendar-day:hover { border-color: #f1c49d; background: #fffaf6; }
.calendar-day.is-outside { background: #fafbfc; color: #b4bdc9; }
.calendar-day.is-selected { border-color: #ef7611; box-shadow: inset 0 0 0 1px #ef7611; }
.calendar-day.is-today .day-number { display: grid; width: 23px; height: 23px; margin: -3px 0 2px -3px; place-items: center; border-radius: 50%; background: #102549; color: #fff; }
.day-number { display: block; width: max-content; margin-bottom: 4px; color: #44536a; font-size: 10px; font-weight: 700; }
.calendar-day.is-outside .day-number { color: #acb5c2; }
.calendar-event { display: block; overflow: hidden; margin-top: 4px; padding: 4px 5px; border-radius: 5px; color: #35435a; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event.is-demo { border-left: 2px solid #ef7611; background: #fff2e6; }
.calendar-event.is-meeting { border-left: 2px solid #4968c8; background: #eef1ff; }
.calendar-more { display: block; margin: 4px 0 0 3px; color: #778398; font-size: 9px; font-weight: 700; }
.calendar-legend { display: flex; margin-top: 16px; flex-wrap: wrap; gap: 18px; color: #798599; font-size: 10px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calendar-legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend-demo { background: #ef7611; }
.legend-meeting { background: #4968c8; }
.calendar-error { min-height: 0; margin: 10px 0 0; color: #b42318; font-size: 11px; }

.agenda-card { position: sticky; top: 92px; min-height: 300px; padding: 21px 18px; }
.agenda-heading { padding-bottom: 15px; border-bottom: 1px solid #edf0f4; }
.agenda-heading .eyebrow { margin-bottom: 6px; }
.agenda-heading h2 { margin: 0; color: #172b4d; font-size: 15px; line-height: 1.45; text-transform: capitalize; }
.agenda-events { display: grid; gap: 10px; padding-top: 13px; }
.agenda-event { position: relative; padding: 12px 11px; border: 1px solid #edf0f4; border-left: 3px solid #ef7611; border-radius: 9px; background: #fff; }
.agenda-event.is-meeting { border-left-color: #4968c8; }
.agenda-event-top { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.agenda-event h3 { margin: 0; color: #273752; font-size: 11px; line-height: 1.5; }
.event-type { flex: 0 0 auto; padding: 4px 6px; border-radius: 5px; background: #fff2e6; color: #a64b00; font-size: 8px; font-weight: 750; }
.agenda-event.is-meeting .event-type { background: #eef1ff; color: #4056a4; }
.event-time { margin: 7px 0 0; color: #6e7b90; font-size: 10px; font-weight: 650; }
.event-details { display: grid; gap: 4px; margin: 8px 0 0; color: #8590a0; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.event-cancel { margin-top: 10px; padding: 5px 8px; border: 1px solid #f0d7d2; border-radius: 6px; background: #fff; color: #ae4137; font-size: 9px; font-weight: 650; }
.event-cancel:hover { background: #fff5f3; }
.agenda-empty { display: grid; padding: 35px 12px 20px; justify-items: center; color: #8994a4; text-align: center; }
.agenda-empty > span { display: grid; width: 38px; height: 38px; margin-bottom: 10px; place-items: center; border-radius: 50%; background: #f4f6f9; color: #8290a4; font-size: 20px; }
.agenda-empty strong { color: #536178; font-size: 11px; }
.agenda-empty p { max-width: 190px; margin: 6px 0 0; font-size: 10px; line-height: 1.55; }
.workspace-footer { padding: 16px 3px; color: #919ba9; font-size: 10px; text-align: center; }

.meeting-dialog { width: min(100% - 28px, 520px); max-width: 520px; max-height: calc(100% - 28px); padding: 0; overflow: auto; border: 0; border-radius: 15px; background: #fff; box-shadow: 0 25px 90px #0f1d3344; }
.meeting-dialog::backdrop { background: #10254970; backdrop-filter: blur(3px); }
.meeting-form { display: grid; padding: 24px; gap: 8px; }
.dialog-heading { display: flex; margin-bottom: 10px; align-items: start; justify-content: space-between; }
.dialog-heading .eyebrow { margin-bottom: 5px; }
.dialog-heading h2 { margin: 0; color: #172b4d; font-size: 20px; letter-spacing: -.03em; }
.dialog-close { display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 50%; background: #f3f5f8; color: #6d798c; font-size: 21px; }
.meeting-form label { display: block; margin: 4px 0 0; }
.meeting-form input, .meeting-form select, .meeting-form textarea { display: block; margin-top: 6px; }
.meeting-form textarea { min-height: 84px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; margin-top: 3px; justify-content: end; gap: 9px; }
.meeting-form .form-message { margin: 0; }

@media (max-width: 900px) {
    .calendar-layout { grid-template-columns: minmax(0, 1fr); }
    .agenda-card { position: static; min-height: 0; }
    .agenda-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .topbar { height: 62px; padding: 0 16px; }
    .topbar-actions { gap: 10px; }
    .team-label { font-size: 0; }
    .team-label i { width: 8px; height: 8px; }
    .workspace { padding: 24px 13px 15px; }
    .page-heading { margin-bottom: 17px; align-items: start; flex-direction: column; gap: 13px; }
    .page-heading h1 { font-size: 28px; }
    .subtitle { max-width: 320px; font-size: 11px; }
    .new-meeting-button { align-self: stretch; }
    .calendar-card { padding: 16px 11px 14px; }
    .calendar-toolbar { align-items: start; flex-direction: column; }
    .month-controls { align-self: end; }
    .calendar-weekdays, .calendar-grid { gap: 3px; }
    .calendar-day { min-height: 72px; padding: 5px 3px; border-radius: 6px; }
    .day-number { margin-bottom: 3px; font-size: 9px; }
    .calendar-event { margin-top: 3px; padding: 3px 3px; font-size: 7px; }
    .calendar-more { margin-left: 2px; font-size: 7px; }
    .agenda-events { grid-template-columns: 1fr; }
    .login-card { padding: 29px 23px; }
    .login-card .brand { margin-bottom: 32px; }
    .login-card h1 { font-size: 27px; }
    .form-row { grid-template-columns: 1fr; gap: 4px; }
    .meeting-form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
