*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: #0a2540; background: #f5f5f5; }
a { color: #006bff; text-decoration: none; }
a:hover { text-decoration: underline; }

.page-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1rem; }
.card { position: relative; width: 100%; max-width: 1060px; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 1px 8px rgba(0,0,0,.08); overflow: hidden; }
.ribbon { pointer-events: none; position: absolute; top: 0; right: 0; width: 64px; height: 64px; z-index: 1; }
.ribbon::after { content: ""; position: absolute; right: -28px; top: 18px; width: 120px; height: 24px; background: #3d3d3d; transform: rotate(45deg); opacity: .9; }
.card-grid { display: grid; min-height: 620px; }
@media (min-width: 1024px) { .card-grid { grid-template-columns: 38% 62%; } }

.panel-left { display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem 2rem; border-bottom: 1px solid #eaeaea; }
@media (min-width: 1024px) { .panel-left { padding: 3rem 2.5rem; border-bottom: none; border-right: 1px solid #eaeaea; } }
.host-row { display: flex; align-items: center; gap: .625rem; margin-bottom: 2.5rem; }
.host-avatar { width: 32px; height: 32px; border-radius: 999px; background: #eaeaea; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 600; color: #888; }
.host-name { font-size: .875rem; font-weight: 500; color: #888; }
.meeting-title { font-size: 1.75rem; font-weight: 700; line-height: 1.2; margin: 0; }
.meeting-sub { margin-top: 1rem; font-size: .9375rem; }
.duration { margin-top: 1.5rem; display: flex; align-items: center; gap: .5rem; font-size: .9375rem; font-weight: 700; }
.icon-clock::before { content: "🕐"; font-size: 1rem; }
.auth-error { margin-top: 1.5rem; padding: .5rem .75rem; background: #fef2f2; color: #dc2626; border-radius: 6px; font-size: .875rem; }
.footer-links { margin-top: 2.5rem; display: flex; gap: 1rem; font-size: .75rem; }

.panel-right { position: relative; padding: 2.5rem 2rem; }
@media (min-width: 1024px) { .panel-right { padding: 3rem 2.5rem; } }
.calendar-root.blurred { pointer-events: none; user-select: none; filter: blur(2px); }
.auth-overlay { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); padding: 1.5rem; }
.auth-overlay.hidden { display: none; }

.x-btn { display: inline-flex; align-items: center; gap: .75rem; border-radius: 999px; font-weight: 500; text-decoration: none; color: #fff; background: #1a1a1a; border: 2px solid rgba(255,255,255,.9); padding: .875rem 1.25rem; font-size: .9375rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; }
.x-btn:hover { background: #000; text-decoration: none; }
.x-btn.inline { background: #0f172a; border: 1px solid #0f172a; box-shadow: none; padding: .5rem 1rem; font-size: .875rem; }
.x-logo-wrap { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.x-logo { width: 16px; height: 16px; fill: currentColor; }
.x-avatar { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; border: 2px solid rgba(255,255,255,.2); }
.x-avatar-fallback { width: 36px; height: 36px; border-radius: 999px; background: #333; display: flex; align-items: center; justify-content: center; font-weight: 600; border: 2px solid rgba(255,255,255,.2); }
.x-avatar-fallback.dark { background: #475569; border-color: transparent; }

.cal-title { font-size: 1rem; font-weight: 600; margin: 0 0 1.25rem; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding: 0 .25rem; }
.cal-nav button { width: 32px; height: 32px; border: none; border-radius: 999px; background: transparent; color: #666; cursor: pointer; font-size: 1.25rem; }
.cal-nav button:hover { background: #f0f0f0; }
.cal-nav span { font-size: .875rem; font-weight: 600; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #888; margin-bottom: .25rem; }
.cal-weekdays div { padding: .5rem 0; }
.cal-days { display: grid; grid-template-columns: repeat(7,1fr); gap: .25rem 0; text-align: center; }
.cal-day-btn { width: 40px; height: 40px; border: none; border-radius: 999px; background: transparent; font-size: .875rem; font-weight: 500; cursor: pointer; margin: 0 auto; }
.cal-day-btn.available { color: #006bff; }
.cal-day-btn.available:hover { background: #e8f2ff; }
.cal-day-btn.selected { background: #006bff; color: #fff; }
.cal-day-btn.disabled { color: #ccc; cursor: default; }
.cal-layout { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .cal-layout.has-date { flex-direction: row; align-items: flex-start; } .cal-layout.has-date .cal-month { width: 55%; } .cal-slots { width: 45%; border-left: 1px solid #eaeaea; padding-left: 1.5rem; } }
.slot-btn { width: 100%; margin-bottom: .5rem; padding: .625rem 1rem; border-radius: 6px; border: 1px solid #006bff; background: #fff; color: #006bff; font-size: .875rem; font-weight: 600; cursor: pointer; }
.slot-btn:hover { background: #e8f2ff; }
.slot-btn.active { background: #006bff; color: #fff; }
.slot-btn.taken { border-color: #eee; color: #ccc; text-decoration: line-through; cursor: not-allowed; }
.book-form { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #eaeaea; }
.book-form input, .book-form textarea { width: 100%; margin-bottom: .75rem; padding: .625rem .75rem; border: 1px solid #d0d0d0; border-radius: 6px; font-size: .875rem; }
.book-form input:focus, .book-form textarea:focus { outline: none; border-color: #006bff; box-shadow: 0 0 0 1px #006bff; }
.btn-primary { width: 100%; padding: .75rem; border: none; border-radius: 999px; background: #006bff; color: #fff; font-weight: 700; font-size: .875rem; cursor: pointer; }
.btn-primary:hover { background: #005ce6; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.status-ok { text-align: center; color: #16a34a; font-size: .875rem; }
.status-err { text-align: center; color: #dc2626; font-size: .875rem; }
.tz { margin-top: 2rem; font-size: .75rem; color: #666; }

.dash-body { background: #f8fafc; min-height: 100vh; }
.dash-header { border-bottom: 1px solid #e2e8f0; background: #fff; }
.dash-header-inner { max-width: 64rem; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.back-link { font-size: .875rem; }
.dash-header h1 { margin: .25rem 0 0; font-size: 1.25rem; }
.signed-in { margin: .25rem 0 0; font-size: .875rem; color: #64748b; }
.btn-outline { border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; color: #475569; cursor: pointer; }
.btn-outline:hover { background: #f8fafc; }
.dash-content { max-width: 64rem; margin: 0 auto; padding: 2rem 1.5rem; }
.dash-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.5rem; margin-bottom: 2rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.dash-card h2 { margin: 0 0 .75rem; font-size: 1.125rem; }
.section-title { font-size: 1.125rem; font-weight: 600; margin: 0 0 .5rem; }
.section-desc { font-size: .875rem; color: #475569; margin: 0 0 1rem; }
.explorer-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.btn-blue { border: none; border-radius: 999px; background: #2563eb; color: #fff; padding: .5rem 1.25rem; font-size: .875rem; font-weight: 500; cursor: pointer; }
.btn-blue:hover { background: #1d4ed8; }
.btn-blue:disabled { opacity: .6; }
.hint { font-size: .875rem; color: #64748b; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1rem; }
.panel h3 { margin: 0 0 .75rem; font-size: 1rem; }
.row { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; margin-bottom: .5rem; }
.row dt { color: #64748b; }
.row dd { margin: 0; font-weight: 500; }
.tweet-list { list-style: none; padding: 0; margin: 0; }
.tweet-list li { background: #f8fafc; border-radius: .5rem; padding: .75rem; margin-bottom: .75rem; font-size: .875rem; }
.tweet-meta { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .75rem; color: #94a3b8; }
.btn-delete { border: none; background: none; color: #ef4444; cursor: pointer; font-size: .75rem; }
.alert { padding: .75rem 1rem; border-radius: .75rem; font-size: .875rem; margin-bottom: 1rem; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-ok { background: #f0fdf4; color: #166534; }
.empty { font-size: .875rem; color: #94a3b8; }
