:root {
  --ink: #17211b;
  --muted: #69746d;
  --green: #146b3a;
  --green-2: #25804d;
  --green-soft: #e6f1e7;
  --sage: #f0f5ee;
  --canvas: #f8fbfb;
  --panel: #ffffff;
  --line: #e2e5df;
  --amber: #c57a00;
  --amber-soft: #fff4d7;
  --danger: #a43b31;
  --shadow: 0 8px 28px rgba(35, 51, 41, .055);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fbfdfd; min-width: 320px; }
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 294px; padding: 0 14px 30px; border-right: 1px solid #edf0f1; background: rgba(255,255,255,.94); backdrop-filter: blur(18px); display: flex; flex-direction: column; }
.brand { height: 92px; margin: 0 -14px 18px; padding: 0 29px; border-bottom: 1px solid #eef1f1; display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; color: #07984c; flex: 0 0 auto; }
.brand-mark svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 3px; color: #71809a; font-size: 9.5px; }
.nav-list { display: grid; gap: 8px; }
.nav-item { width: 100%; border: 0; background: transparent; border-radius: 12px; padding: 14px 22px; display: flex; align-items: center; gap: 15px; color: #354560; font-weight: 700; text-align: left; cursor: pointer; transition: .2s ease; }
.nav-item:hover { background: #f2faf5; }
.nav-item.active { position: relative; color: #087942; background: linear-gradient(90deg, #e9f9ef, #dff5e9); }
.nav-item.active::before { content: ""; position: absolute; inset: 8px auto 8px -14px; width: 5px; background: #08a85a; border-radius: 0 6px 6px 0; }
.nav-icon { width: 24px; font-size: 21px; text-align: center; }
.main { margin-left: 294px; padding: 0 34px 112px; }
.topbar { min-height: 91px; display: flex; align-items: center; gap: 18px; }
.page-heading { min-width: 0; }
.page-heading h1 { margin: 0; font-size: clamp(23px, 2.2vw, 30px); letter-spacing: -.05em; line-height: 1.1; color: #102039; }
.page-heading p { margin: 7px 0 0; color: #73819a; font-size: 13px; }
.search-box { width: min(280px, 25vw); height: 45px; margin-left: auto; padding: 0 15px; display: flex; align-items: center; gap: 10px; border-radius: 11px; color: #284466; background: #f2f5f8; }
.search-box span { font-size: 25px; line-height: 1; transform: rotate(-18deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: #22324b; font-size: 12px; }
.search-box input::placeholder { color: #8794ab; }
.notification-button { position: relative; width: 42px; height: 42px; border: 0; border-radius: 50%; color: #284466; background: transparent; cursor: pointer; font-size: 25px; }
.notification-button i { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border: 1.5px solid white; border-radius: 50%; background: #ff3f45; }
.profile { padding: 5px; border: 0; border-radius: 12px; background: transparent; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.profile:hover { background: #eff3ed; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #d6f8e2, #e4f6e9); color: #163a2d; font-size: 14px; font-weight: 800; }
.profile-copy { text-align: left; }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { font-size: 12px; }.profile-copy small { margin-top: 3px; color: #7d8780; font-size: 9px; }
.chevron { color: #6d7870; }.menu-button { display: none; }
.view { display: none; animation: fade .25s ease; }.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.panel { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.setup-progress { min-height: 105px; padding: 21px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 22px; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-right: 15px; }
.step::after { content: ""; position: absolute; top: 10px; left: 29px; right: 8px; height: 2px; background: #d7ded8; }
.step.complete::after { background: var(--green); }
.step:last-child::after { display: none; }
.step-dot { position: relative; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid #b8c3bb; border-radius: 50%; color: #718078; background: white; font-size: 10px; font-weight: 800; }
.step.complete .step-dot { color: white; background: var(--green); border-color: var(--green); }
.step.current .step-dot { color: var(--green); border-color: var(--green); }
.step strong { display: block; margin-top: 8px; font-size: 11px; font-weight: 600; }.step small { color: #7b867f; font-size: 9px; }
.progress-summary { padding-left: 20px; border-left: 1px solid var(--line); }
.progress-summary strong { font-size: 11px; }.progress-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.progress-track { flex: 1; height: 10px; background: #e8e9e5; border-radius: 99px; overflow: hidden; }.progress-fill { height: 100%; background: linear-gradient(90deg, #4a8b5e, #1b743f); border-radius: inherit; transition: width .4s ease; }.progress-row span { color: #68736c; font-size: 10px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 302px; gap: 20px; margin-top: 18px; align-items: start; }
.section-title { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 0 4px 16px; }.section-title h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }.section-title.compact { margin: 0 0 15px; }
.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.source-card { min-height: 204px; padding: 18px; display: flex; flex-direction: column; background: rgba(255,255,255,.96); border: 1px solid #e4e9e6; border-radius: 13px; box-shadow: 0 8px 20px rgba(40,50,43,.045); transition: transform .2s, box-shadow .2s; }
.source-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(40,50,43,.07); }
.source-head { display: flex; align-items: center; gap: 12px; }.source-head h3 { margin: 0; font-size: 15px; letter-spacing: -.025em; color: #142238; }.source-menu { margin-left: auto; border: 0; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; color: #52647b; }
.service-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; color: white; font-size: 15px; font-weight: 800; background: #f7faf8; border: 1px solid #edf1ef; box-shadow: 0 3px 8px rgba(27,52,39,.06); }
.service-icon svg { display: block; width: 34px; height: 34px; filter: drop-shadow(0 1px 1px rgba(28,52,61,.08)); }
.service-icon.gmail, .service-icon.slack, .service-icon.discord, .service-icon.teams, .service-icon.google-chat, .service-icon.google-calendar { background: #fff; }
.source-status { margin: 12px 0 9px; }.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 99px; font-size: 9px; font-weight: 800; }.badge.connected { color: #16864e; background: #e6f7ed; }.badge.disconnected { color: #a86400; background: var(--amber-soft); }
.source-detail { min-height: 54px; color: #68778a; font-size: 10px; line-height: 1.55; }.source-detail strong { display: block; color: #3e4d61; margin-top: 7px; }
.source-footer { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 8px; }.sync { color: #6d7770; font-size: 9.5px; line-height: 1.4; }.sync strong { color: #465149; display: block; }
.card-button { min-width: 92px; border: 0; border-radius: 7px; padding: 9px 12px; background: #e2eee2; color: #234d31; font-size: 10px; font-weight: 800; cursor: pointer; }.card-button.connect { color: white; background: var(--green); }.card-button:hover { filter: brightness(.96); }
.card-button.unavailable { color: #59635d; background: #ecefeb; }
/* Lịch đích: dạng thu gọn, nằm trong card Google Calendar */
.calendar-card .source-detail { min-height: 0; }
.calendar-destination { margin: 11px 0 4px; }
.calendar-destination label { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; color: #526058; font-size: 9px; font-weight: 700; }
.calendar-destination .hint { display: inline-flex; color: #8a958d; }
.calendar-destination .hint svg { width: 11px; height: 11px; }
.select-wrap { position: relative; }
.calendar-select { width: 100%; appearance: none; border: 1px solid #d8e2dc; border-radius: 8px; padding: 8px 26px 8px 22px; background: white; color: #26332b; font-size: 9.5px; outline: none; text-overflow: ellipsis; }
.calendar-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px #e5f0e7; }
.calendar-select:disabled { color: #77817a; background: #f7f9f6; }
.select-dot { position: absolute; z-index: 1; left: 9px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); }
.select-chevron { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; pointer-events: none; color: #51647c; }
.select-chevron svg { width: 12px; height: 12px; }
.loading-card { grid-column: 1/-1; padding: 80px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.readiness { padding: 18px 13px 13px; background: linear-gradient(160deg, #f4f8f2, #edf5ef); position: sticky; top: 14px; }.readiness h2 { margin: 0 3px; font-size: 16px; }.readiness > p { margin: 5px 3px 14px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.readiness-item { margin-bottom: 8px; padding: 12px; display: flex; align-items: center; gap: 10px; background: white; border: 1px solid #e2eae2; border-radius: 8px; }.status-icon { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 11px; }.status-icon.pending { background: #d4940e; }.readiness-copy { min-width: 0; }.readiness-copy strong { display: block; font-size: 10px; }.readiness-copy span { color: var(--green); font-size: 9px; }.readiness-copy span.pending { color: var(--amber); }.readiness-copy small { display: block; margin-top: 3px; overflow: hidden; color: #778179; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.readiness-arrow { margin-left: auto; color: #526059; }
.ready-banner { margin-top: 10px; padding: 11px; display: flex; gap: 9px; align-items: center; border: 1px solid #cce3d0; border-radius: 8px; color: #255a37; background: #e9f5eb; }.ready-banner strong { display: block; font-size: 9px; }.ready-banner small { color: #6b786f; font-size: 8px; }
.cookie-panel { margin-top: 20px; padding: 15px; }.cookie-title { display: flex; align-items: flex-start; gap: 11px; }.flask { color: var(--green); font-size: 20px; }.cookie-title h2 { margin: 0; font-size: 14px; }.cookie-title h2 span { color: #6f7972; font-size: 11px; }.cookie-title p { margin: 3px 0 0; color: #78827b; font-size: 9.5px; }
.cookie-content { margin-top: 12px; padding: 10px 12px; display: grid; grid-template-columns: 1.35fr .7fr 1.05fr auto; gap: 12px; align-items: center; border: 1px solid #e4e6e1; border-radius: 8px; }.cookie-field label, .cookie-expiry label { display: block; margin-bottom: 5px; color: #4f5b54; font-size: 9px; }.masked { border: 1px solid #dce1dc; border-radius: 6px; padding: 8px 10px; color: #374139; background: #fff; font: 11px ui-monospace, monospace; }.cookie-expiry strong { font-size: 10px; }.security-warning { padding: 8px 10px; display: flex; gap: 9px; color: #8a5500; background: #fffaf0; border: 1px solid #f2dca9; border-radius: 7px; }.security-warning strong { display: block; font-size: 9px; }.security-warning small { display: block; margin-top: 2px; color: #8b7760; font-size: 8px; }.warning-icon { color: #c66d00; font-size: 17px; }
.primary, .secondary, .danger { border-radius: 7px; padding: 10px 16px; font-size: 10.5px; font-weight: 800; cursor: pointer; transition: .18s; }.primary { border: 1px solid var(--green); color: white; background: linear-gradient(180deg, #187540, #126335); box-shadow: 0 3px 8px rgba(20,107,58,.15); }.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 13px rgba(20,107,58,.2); }.secondary { border: 1px solid #d7ddd8; color: #26322b; background: white; }.secondary:hover { background: #f3f6f2; }.danger { border: 1px solid #ecd2ce; color: var(--danger); background: #fff8f7; }
.action-bar { position: fixed; z-index: 15; inset: auto 0 0 294px; min-height: 64px; padding: 10px 34px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); background: rgba(255,255,255,.93); backdrop-filter: blur(16px); }.save-state { display: flex; align-items: center; gap: 10px; color: #748078; font-size: 10px; }.actions { display: flex; gap: 10px; }
.overview-hero { position: relative; min-height: 304px; padding: 37px 48px; display: flex; align-items: center; overflow: hidden; border-color: #ccf2da; background: linear-gradient(114deg, #fbfffd 0%, #ecfff4 49%, #ddf9e8 100%); color: #102039; box-shadow: 0 13px 28px rgba(37,113,75,.07); }
.overview-hero::before, .overview-hero::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; background: rgba(59,210,123,.08); }
.overview-hero::before { width: 260px; height: 260px; right: 50px; bottom: -160px; }
.overview-hero::after { width: 200px; height: 200px; right: -25px; top: -83px; transform: rotate(38deg); border-radius: 34px; }
.hero-waves { position: absolute; inset: auto 0 0 0; width: 100%; height: 116px; pointer-events: none; opacity: .55; }
.wave { fill-opacity: .1; }
.wave-1 { fill: #62da93; animation: wave-drift 7s ease-in-out infinite; }
.wave-2 { fill: #4dcd82; fill-opacity: .06; animation: wave-drift 9s ease-in-out infinite reverse; }
.wave-3 { fill: #209b59; fill-opacity: .035; animation: wave-drift 11s ease-in-out infinite 1s; }
@keyframes wave-drift {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-40px); }
  100% { transform: translateX(0); }
}
.hero-content { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; gap: 28px; }
.hero-text { flex: 1; min-width: 0; }
.overview-hero .eyebrow { color: #04974e; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.overview-hero h2 { max-width: 590px; margin: 15px 0 13px; font-size: clamp(30px, 3.08vw, 45px); line-height: 1.07; letter-spacing: -.058em; color: #102039; }
.overview-hero p { color: #687994; font-size: 13px; line-height: 1.65; max-width: 570px; }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-btn-primary { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 9px; padding: 13px 24px; background: linear-gradient(135deg, #11a85b, #058344); color: white; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .18s, box-shadow .18s; box-shadow: 0 8px 14px rgba(0,150,73,.2); }
.hero-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,150,73,.25); }
.hero-btn-secondary { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 11px 10px; background: transparent; color: #087b43; font-size: 12px; font-weight: 800; cursor: pointer; transition: background .18s; }
.hero-btn-secondary:hover { background: rgba(18,174,91,.08); }
.play-icon { display: inline-grid; place-items: center; width: 27px; height: 27px; border: 2px solid #07934d; border-radius: 50%; color: #07934d; background: white; font-size: 9px; }
.hero-icons { position: relative; width: 235px; height: 195px; flex: 0 0 235px; }
.hero-icons::before, .hero-icons::after { content: ""; position: absolute; z-index: 0; left: 103px; top: 69px; width: 48px; height: 48px; border: 1px solid rgba(15,175,94,.28); border-radius: 50%; opacity: 0; animation: app-ripple 3.8s ease-out infinite; }
.hero-icons::after { animation-delay: 1.9s; }
.orbit { position: absolute; border: 1px dashed rgba(12,163,86,.3); border-radius: 50%; transform-origin: center; }
.orbit-one { inset: 2px 9px 18px 11px; animation: orbit-drift 10s linear infinite; }
.orbit-two { inset: 42px -7px 5px 10px; animation: orbit-drift-reverse 13s linear infinite; }
.hero-app-stack { position: absolute; z-index: 3; left: 28px; top: 28px; width: 65px; padding: 12px 0; display: grid; justify-items: center; gap: 8px; border-radius: 14px; background: rgba(255,255,255,.93); box-shadow: 0 12px 28px rgba(33,108,73,.12); animation: stack-float 4.2s ease-in-out infinite; }
.hero-app-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: white; font-size: 13px; font-weight: 900; transition: transform .2s; }
.hero-app-icon svg { display: block; width: 28px; height: 28px; filter: drop-shadow(0 1px 1px rgba(28,52,61,.08)); }
.hero-app-icon:hover { transform: scale(1.08); }
.hi-calendar, .hi-gmail, .hi-slack { background: white; }
.hero-event-card { position: absolute; z-index: 2; left: 99px; top: 75px; width: 108px; height: 112px; padding: 24px 15px 12px; border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: 0 14px 28px rgba(33,108,73,.12); animation: card-float 4.2s ease-in-out .55s infinite; }
.hero-event-card::before { content: ""; position: absolute; left: 15px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: #10ae61; }.hero-event-card i { display: block; height: 8px; margin: 8px 0; border-radius: 4px; background: #e8edf1; }.hero-event-card i:nth-of-type(2) { width: 78%; }.hero-event-card i:nth-of-type(3) { width: 60%; }.hero-event-card span { position: absolute; left: 16px; bottom: 13px; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid #17211b; color: #17211b; background: white; font-size: 14px; font-weight: 900; }
.hero-icons > .hi-check { position: absolute; z-index: 4; top: 25px; right: 8px; width: 50px; height: 50px; border-radius: 50%; color: white; background: linear-gradient(145deg, #21c876, #06934b); box-shadow: 0 9px 17px rgba(10,163,80,.24); font-size: 24px; }
@keyframes orbit-drift { from { transform: rotate(-20deg); } to { transform: rotate(340deg); } }
@keyframes orbit-drift-reverse { from { transform: rotate(30deg); } to { transform: rotate(-330deg); } }
@keyframes app-ripple { 0% { transform: scale(.55); opacity: .55; } 70% { opacity: .1; } 100% { transform: scale(3.25); opacity: 0; } }
@keyframes stack-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.hero-ring-wrap { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.readiness-ring { width: 135px; height: 135px; display: grid; place-content: center; text-align: center; border: 12px solid #d9e9da; border-top-color: var(--green); border-radius: 50%; box-shadow: inset 0 0 0 1px white; }
.readiness-ring span { font-size: 26px; font-weight: 800; }
.readiness-ring small { color: var(--muted); font-size: 10px; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.overview-hero .readiness-ring { width: 145px; height: 145px; border: 12px solid #caf3da; border-top-color: #06a758; border-right-color: #06a758; box-shadow: none; background: rgba(255,255,255,.42); }
.overview-hero .readiness-ring span { color: #102039; font-size: 30px; }.overview-hero .readiness-ring small { color: #71809a; font-size: 10px; }.hero-steps-left { padding: 8px 18px; border-radius: 99px; color: #087744; background: rgba(216,247,226,.84); font-size: 10px; font-weight: 800; }
.metric-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.metric { min-height: 122px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; border-color: #edf0f1; box-shadow: 0 6px 19px rgba(25,63,67,.05); }.metric > div { min-width: 0; }.metric > b { margin-left: auto; color: #527092; font-size: 29px; font-weight: 400; }.metric div > span { color: #74819a; font-size: 11px; }.metric strong { display: block; overflow: hidden; margin: 8px 0 4px; color: #102039; font-size: 21px; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }.metric small { color: #8290a6; font-size: 9.5px; }.metric-icon { width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: #038b4b; background: linear-gradient(145deg, #dff9eb, #effcf5); font-size: 27px; font-weight: 800; }.calendar-icon { color: #284466; background: linear-gradient(145deg, #edf3f8, #f8fafc); font-size: 28px; }.core-icon { font-size: 17px; }
.checklist-panel, .activity-panel { margin-top: 22px; padding: 0 24px 12px; border-color: #edf0f1; }.checklist-header { min-height: 92px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #e8edf0; }.checklist-title-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: #079b52; background: #e6faed; font-size: 23px; }.checklist-header h2 { margin: 0; color: #102039; font-size: 20px; letter-spacing: -.045em; }.checklist-header p { margin: 5px 0 0; color: #7a88a0; font-size: 10px; }.checklist-progress { width: 295px; margin-left: auto; }.checklist-progress span { display: block; margin-bottom: 8px; color: #73819a; font-size: 10px; text-align: left; }.checklist-progress i { display: block; height: 11px; overflow: hidden; border-radius: 99px; background: #e9eef2; }.checklist-progress b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0daf60, #0a9351); transition: width .35s ease; }.check-row { min-height: 57px; padding: 8px 9px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #e8edf0; }.check-row:last-child { border-bottom: 0; }.check-dot { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: #0aa45a; font-size: 12px; font-weight: 800; }.check-dot.pending { color: white; background: #a6b3c5; }.check-row.pending:first-child .check-dot { background: #f1a412; }.check-copy { min-width: 165px; }.check-row strong { color: #18263b; font-size: 11px; }.check-row small { display: block; margin-top: 3px; color: #8090a8; font-size: 10px; }.check-state { margin-left: auto; }.check-state.complete { padding: 8px 16px; border-radius: 99px; color: #07934e; background: #e9faef; font-size: 9.5px; font-weight: 800; }.check-state button { min-width: 91px; padding: 7px 15px; border: 1px solid #d8e1eb; border-radius: 8px; color: #2a394e; background: white; font-size: 9.5px; font-weight: 800; cursor: pointer; }.check-state button:hover { background: #f6faf8; }.check-arrow { margin-left: 10px; color: #527092; font-size: 25px; font-weight: 400; }
.account-list, .permission-table { overflow: hidden; }.account-row { padding: 17px 20px; display: grid; grid-template-columns: 1.2fr 1fr .7fr auto; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); }.account-row:last-child { border: 0; }.account-source { display: flex; align-items: center; gap: 12px; }.account-source .service-icon { width: 34px; height: 34px; }.account-source strong, .account-cell strong { display: block; font-size: 11px; }.account-source small, .account-cell small { color: var(--muted); font-size: 9px; }
.permission-row { display: grid; grid-template-columns: 1fr 2fr .7fr; gap: 16px; padding: 16px 20px; align-items: center; border-bottom: 1px solid var(--line); }.permission-row.header { color: #7b867f; background: #f7f9f6; font-size: 9px; font-weight: 700; text-transform: uppercase; }.permission-source { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; }.scope-chips { display: flex; flex-wrap: wrap; gap: 5px; }.scope-chip { padding: 4px 7px; border-radius: 99px; color: #4f5f54; background: #eef3ed; font-size: 8px; }.security-note { margin-top: 16px; padding: 16px 19px; display: flex; gap: 12px; color: #70561e; background: #fffaf0; border: 1px solid #f1dfb6; border-radius: 10px; }.security-note strong { font-size: 11px; }.security-note p { margin: 4px 0 0; color: #857352; font-size: 9px; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }.status-card { padding: 22px; }.status-card-top { display: flex; justify-content: space-between; align-items: center; }.status-card h3 { margin: 15px 0 5px; font-size: 14px; }.status-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px #e2f0e5; }.pulse.off { background: #d19317; box-shadow: 0 0 0 5px #fff0ce; }.activity-list { display: grid; }.activity { padding: 12px 0; display: flex; gap: 11px; border-bottom: 1px solid var(--line); }.activity:last-child { border: 0; }.activity time { margin-left: auto; color: #8b948e; font-size: 8px; }.activity strong { font-size: 10px; }.activity small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(20,31,24,.42); backdrop-filter: blur(5px); }.modal-backdrop[hidden] { display: none; }.modal { position: relative; width: min(470px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 27px; border-radius: 16px; background: white; box-shadow: 0 28px 80px rgba(15,30,20,.25); }.modal-close { position: absolute; top: 14px; right: 14px; width: 31px; height: 31px; border: 0; border-radius: 50%; color: #667169; background: #f0f3ef; cursor: pointer; }.modal h2 { margin: 0 35px 8px 0; font-size: 21px; letter-spacing: -.04em; }.modal p { color: var(--muted); font-size: 10px; line-height: 1.6; }.form-group { margin-top: 15px; }.form-group label { display: block; margin-bottom: 6px; color: #4d5a52; font-size: 10px; font-weight: 700; }.form-control { width: 100%; padding: 11px 12px; border: 1px solid #d8ded9; border-radius: 8px; outline: none; font-size: 11px; }.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px #e5f0e7; }.modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }.oauth-box { margin: 17px 0; padding: 16px; display: flex; align-items: center; gap: 12px; border-radius: 10px; background: #f3f7f2; }.oauth-box .service-icon { flex: 0 0 auto; }.oauth-box strong { display: block; font-size: 11px; }.oauth-box small { color: var(--muted); font-size: 9px; }
.toast-stack { position: fixed; z-index: 80; right: 20px; bottom: 82px; display: grid; gap: 10px; }.toast { min-width: 270px; padding: 13px 15px; display: flex; gap: 10px; border: 1px solid #dce5dd; border-radius: 10px; color: #254330; background: white; box-shadow: 0 14px 35px rgba(20,35,25,.14); animation: toast-in .25s ease; font-size: 10px; }.toast.error { color: var(--danger); border-color: #ebd1ce; }.toast strong { display: block; margin-bottom: 2px; font-size: 10px; }.toast small { color: var(--muted); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
  .source-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.content-layout { grid-template-columns: minmax(0,1fr) 275px; }.cookie-content { grid-template-columns: 1fr 1fr; }.security-warning { order: 3; }.cookie-content > button { order: 4; }.setup-progress { grid-template-columns: 1fr; }.progress-summary { border-left: 0; border-top: 1px solid var(--line); padding: 13px 0 0; }
}
@media (max-width: 1080px) {
  .overview-hero { padding: 34px; }.hero-icons { display: none; }
}
@media (max-width: 760px) {
  .hero-content { flex-direction: column; align-items: flex-start; }.hero-ring-wrap, .search-box, .profile-copy, .chevron { display: none; }.profile { margin-left: auto; }.source-grid, .metric-grid, .status-grid { grid-template-columns: 1fr; }.checklist-progress { width: 170px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-102%); transition: transform .25s; box-shadow: 15px 0 50px rgba(20,35,25,.15); }.sidebar.open { transform: translateX(0); }.main { margin-left: 0; padding-inline: 20px; }.action-bar { left: 0; padding-inline: 20px; }.menu-button { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; background: white; }.content-layout { grid-template-columns: 1fr; }.readiness { position: static; }.status-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .main { padding-inline: 13px; }.topbar { min-height: 78px; }.page-heading p, .profile-copy, .chevron { display: none; }.source-grid { grid-template-columns: 1fr; }.steps { grid-template-columns: 1fr 1fr; gap: 14px; }.step::after { display: none; }.cookie-content, .metric-grid, .status-grid { grid-template-columns: 1fr; }.cookie-content > * { order: initial !important; }.action-bar { padding: 10px 13px; }.save-state { display: none; }.actions { width: 100%; }.actions button { flex: 1; }.account-row, .permission-row { grid-template-columns: 1fr; }.permission-row.header { display: none; }.overview-hero { padding: 24px; }.hero-content { flex-direction: column; }.hero-icons, .hero-ring-wrap { display: none; }
}

.badge.unconfigured { color: #616a64; background: #ecefeb; }
.badge.warning { color: #9a5f00; background: var(--amber-soft); }
.config-list { margin: 16px 0; display: grid; gap: 7px; }
.config-list code { padding: 9px 11px; border: 1px solid #e0e4df; border-radius: 7px; color: #3d4b42; background: #f6f8f5; font-size: 10px; }
.resource-picker { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.resource-picker-head { padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; background: #f5f8f4; }
.resource-picker-head strong { font-size: 10px; }
.resource-picker-head small, .loading-inline { color: var(--muted); font-size: 9px; }
.resource-options { max-height: 230px; overflow: auto; padding: 6px; }
.resource-option { padding: 10px; display: flex; align-items: center; gap: 10px; border-radius: 7px; cursor: pointer; }
.resource-option:hover { background: #f1f6f0; }
.resource-option input { accent-color: var(--green); }
.resource-option span { min-width: 0; }
.resource-option strong, .resource-option small { display: block; }
.resource-option strong { font-size: 10px; }
.resource-option small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.resource-option.disabled { opacity: .45; cursor: not-allowed; }
.loading-inline { display: block; padding: 18px; text-align: center; }
.error-text { color: var(--danger); }
.modal-actions.split { justify-content: space-between; }
.modal-actions.split > div { display: flex; gap: 8px; }
.danger.ghost { background: transparent; }
.service-notice { margin-bottom: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid #efd9a8; border-radius: 10px; color: #6d5118; background: #fffaf0; }
.service-notice > span { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: #c98910; font-size: 11px; font-weight: 800; }
.service-notice strong { display: block; font-size: 11px; }
.service-notice p { margin: 4px 0 0; color: #7d6e50; font-size: 9px; line-height: 1.5; }
.service-notice.ready { border-color: #cce3d0; color: #255a37; background: #edf7ef; }
.service-notice.ready > span { background: var(--green); }
.service-notice.ready p { color: #627168; }
.user-flow { margin: 16px 0; padding: 14px 16px; border-radius: 9px; background: #f1f6f0; }
.user-flow strong { font-size: 10px; }
.user-flow ol { margin: 9px 0 0; padding-left: 20px; color: #4d5a52; font-size: 10px; line-height: 1.8; }
.admin-details { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf9; }
.admin-details summary { color: #536059; font-size: 10px; font-weight: 700; cursor: pointer; }

/* Phase 1 design system: SVG icon sizing (replaces Unicode glyph icons) */
svg { display: block; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 20px; height: 20px; }
.menu-button { display: inline-grid !important; place-items: center; }
.menu-button svg { width: 20px; height: 20px; }
.search-box svg { width: 18px; height: 18px; }
.search-box span { transform: none; }
.notification-button { display: inline-grid; place-items: center; }
.notification-button svg { width: 21px; height: 21px; }
.chevron { display: inline-flex; }
.chevron svg { width: 13px; height: 13px; }
.flask { display: inline-flex; }
.flask svg { width: 20px; height: 20px; }
.play-icon svg { width: 11px; height: 11px; }
.metric-icon svg { width: 26px; height: 26px; }
.metric > b svg { width: 22px; height: 22px; color: #527092; }
.checklist-title-icon svg { width: 22px; height: 22px; }
.security-note > span { display: inline-flex; }
.security-note > span svg { width: 20px; height: 20px; }
.save-state span:first-child { display: inline-flex; }
.save-state svg { width: 15px; height: 15px; }
.actions button svg, .section-title button svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.modal-close svg { width: 15px; height: 15px; }
.hero-app-icon.hi-check svg { width: 24px; height: 24px; }
.badge svg, .status-icon svg, .check-dot svg, .step-dot svg, .warning-icon svg, .service-notice > span svg, .ready-banner .status-icon svg { width: 12px; height: 12px; vertical-align: -1px; }
.check-arrow svg, .readiness-arrow svg { width: 18px; height: 18px; }
.source-menu svg { width: 16px; height: 16px; }
.source-detail svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; }
