*, *::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; background: #fff; }
@media (min-width: 1024px) { .panel-left { padding: 3rem 2.5rem; border-bottom: none; border-right: 1px solid #eaeaea; } }
.org-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .625rem; margin-bottom: 2.5rem; color: #0d0d0d; }
.org-logo { width: 26px; height: 26px; display: block; }
.org-name { font-size: .875rem; font-weight: 400; line-height: 1.2; color: rgba(13, 13, 13, 0.75); }
.meeting-title { font-size: 1.75rem; font-weight: 700; line-height: 1.25; margin: 0; color: #0a2540; letter-spacing: -0.01em; }
.meeting-sub { margin-top: 1rem; font-size: .9375rem; line-height: 1.5; color: #0a2540; font-weight: 400; }
.meeting-sub strong { font-weight: 600; }
.duration { margin-top: 1.5rem; display: flex; align-items: center; gap: .5rem; font-size: .9375rem; font-weight: 700; color: #0a2540; }
.duration-icon { width: 1.125rem; height: 1.125rem; flex-shrink: 0; opacity: .9; }
.auth-error { margin-top: 1.5rem; padding: .5rem .75rem; background: #fef2f2; color: #dc2626; border-radius: 6px; font-size: .875rem; }
.auth-error-hint { margin-top: .75rem; padding: .75rem; background: #fffbeb; color: #92400e; border-radius: 6px; font-size: .8125rem; line-height: 1.45; }
.auth-error-hint code { display: inline-block; margin-top: .35rem; padding: .2rem .45rem; background: #fef3c7; border-radius: 4px; font-size: .8125rem; word-break: break-all; }
.unavailable-card { max-width: 22rem; padding: 2.5rem 2rem; text-align: center; }
.unavailable-title { margin: 0 0 .5rem; font-size: 2rem; font-weight: 600; color: #111827; }
.unavailable-text { margin: 0 0 .5rem; font-size: 1.0625rem; color: #374151; }
.unavailable-hint { margin: 0; font-size: .875rem; }
.footer-links { margin-top: 2.5rem; display: flex; gap: 1.25rem; font-size: .75rem; font-weight: 500; }
.footer-links a { color: #006bff; }

.panel-right { position: relative; padding: 2.5rem 2rem; }
@media (min-width: 1024px) { .panel-right { padding: 3rem 2.5rem; } }
.calendar-root { pointer-events: none; user-select: none; }
.calendar-root.blurred { 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; }

.oauth-popup-form {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
}
.oauth-popup-form button.x-btn {
  width: auto;
}

.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; }
button.x-btn { font-family: inherit; }
.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; margin: 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.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; display: block; }
.slot-btn.active { background: #006bff; color: #fff; }
.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; }
