.shell { display: grid; grid-template-columns: 276px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 14px 16px; border-right: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow-y: auto; }
.side .lockup { padding: 0 8px; margin-bottom: 4px; }
.navl { display: grid; gap: 2px; }
.navl .lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--mute); padding: 10px 10px 6px; display: flex; justify-content: space-between; align-items: center; }
.navl a, .navl button.link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--body); text-decoration: none; font-weight: 600; font-size: 14px; border: 0; background: transparent; font-family: inherit; cursor: pointer; width: 100%; text-align: left; transition: background .15s, color .15s; }
.navl a:hover, .navl button.link:hover { background: var(--surface2); color: var(--ink); }
.navl a[aria-current=page] { background: var(--surface3); color: var(--ink); }
.navl a .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navl .ic { width: 18px; height: 18px; flex: none; }
.pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.mono { --t: var(--accent); width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: color-mix(in srgb, var(--t) var(--tmix), var(--ink)); background: color-mix(in srgb, var(--t) 16%, var(--bg)); border: 1px solid color-mix(in srgb, var(--t) 32%, transparent); overflow: hidden; }
.mono img { width: 100%; height: 100%; object-fit: cover; }
.mono.lg { width: 46px; height: 46px; border-radius: 14px; font-size: 19px; }
.side .acct { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 6px 0; display: flex; align-items: center; gap: 10px; }
.side .acct .em { flex: 1; min-width: 0; font-size: 12.5px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .byline { font-size: 11px; color: var(--mute); padding: 0 8px; }
.side .byline a { color: var(--soft); }

.topbar { display: none; position: sticky; top: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--glass2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.switcher { position: relative; }
.switcher > button { max-width: 200px; }
.switcher .menu { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); background: var(--surface2); border: 1px solid var(--line2); border-radius: 16px; padding: 8px; box-shadow: var(--sh-menu); z-index: 50; }
@media (max-width: 899px) { .shell { grid-template-columns: minmax(0, 1fr); } .side { display: none; } .topbar { display: flex; } }

.main { padding: 36px clamp(18px, 4vw, 52px) 140px; max-width: 1240px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 40px); }
.page-head p { margin: 8px 0 0; color: var(--soft); max-width: 560px; }

/* sites overview */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 700px) { .sgrid, .igrid { grid-template-columns: minmax(0, 1fr) !important; } }
.shell > div { min-width: 0; }
a.scard { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s var(--ease), background .2s; }
a.scard:hover { border-color: var(--line2); background: var(--surface2); transform: translateY(-2px); }
.scard .top { display: flex; gap: 12px; align-items: center; }
.scard .top .t { flex: 1; min-width: 0; } .scard .top b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard .top small { display: block; color: var(--soft); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard .nums { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.scard .nums .k { display: flex; gap: 18px; }
.k .v { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; display: flex; align-items: center; gap: 6px; } .k .l { font-size: 11px; color: var(--soft); font-weight: 600; letter-spacing: .04em; margin-top: 2px; }
.bars { width: 132px; height: 34px; flex: none; } .bars rect { fill: var(--faint); } .bars rect.on { fill: var(--accent); } .bars rect.today { fill: var(--ink); }
.scard .last { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13.5px; color: var(--body); min-height: 48px; }
.scard .last span.t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .scard .last time { color: var(--mute); font-size: 12px; flex: none; }
.scard .last.none { color: var(--mute); }
.addcard { border: 1px dashed var(--line2); border-radius: 20px; display: grid; place-items: center; min-height: 160px; color: var(--soft); font-weight: 600; background: transparent; cursor: pointer; font-family: inherit; font-size: 14px; gap: 8px; align-content: center; transition: all .2s; }
.addcard:hover { color: var(--ink); border-color: var(--line3); background: var(--surface); }

.check { display: grid; gap: 0; counter-reset: s; }
.check .it { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.check .it:last-child { border-bottom: 0; }
.check .dot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; color: transparent; transition: all .3s var(--ease); margin-top: 2px; }
.check .dot .ic { width: 13px; height: 13px; stroke-width: 3; }
.check .it.done .dot { background: var(--leaf); border-color: var(--leaf); color: var(--on-leaf); }
.check .it.done h3 { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--faint); }
.check .it h3 { font-size: 15.5px; } .check .it p { margin: 4px 0 0; color: var(--soft); font-size: 14px; }
.check .it .code { margin-top: 12px; }

/* site header */
.shead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.shead .t { flex: 1; min-width: 0; } .shead h1 { font-size: clamp(26px, 3.2vw, 36px); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.shead .dom { color: var(--soft); font-size: 14px; margin-top: 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .shead .dom a { color: var(--soft); display: inline-flex; gap: 5px; align-items: center; text-decoration: none; } .shead .dom a:hover { color: var(--ink); }
.statrow { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 24px 0 6px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statrow .k .v { font-size: 20px; }
.tabs { display: flex; gap: 4px; margin: 18px 0 28px; overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 9px 16px; color: var(--soft); text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; transition: all .15s; }
.tabs a:hover { color: var(--ink); } .tabs a[aria-current=page] { background: var(--surface2); border-color: var(--line2); color: var(--ink); }
.pausebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--body); font-size: 14px; margin: 18px 0 0; }
.pausebar .grow { flex: 1; min-width: 200px; }
.verify { margin-top: 14px; } .verify summary { cursor: pointer; color: var(--soft); font-size: 13px; font-weight: 600; } .verify .code { margin-top: 8px; font-size: 12px; }

/* inbox */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .search { position: relative; flex: 1; min-width: 180px; max-width: 320px; }
.toolbar .search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--mute); width: 16px; height: 16px; pointer-events: none; }
.toolbar .search input { padding-left: 38px; border-radius: 999px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip .f { font-size: 14px; line-height: 1; }
.chip[aria-pressed=true] .f { filter: none; }
.sep { width: 1px; height: 22px; background: var(--line2); margin: 0 4px; }
.bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--surface3); border: 1px solid var(--line2); margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.day { position: sticky; top: 0; z-index: 2; padding: 10px 20px 8px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--soft); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.fbrow { position: relative; display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; outline: none; }
.fbrow:last-child { border-bottom: 0; }
.fbrow:hover, .fbrow.focus, .fbrow:focus-visible { background: var(--surface2); }
.fbrow:focus-visible { box-shadow: inset 2px 0 0 var(--accent); }
.fbrow .chk { display: grid; place-items: center; } .fbrow .chk input { appearance: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line2); background: transparent; margin: 0; cursor: pointer; opacity: 0; transition: opacity .12s; display: grid; place-items: center; }
.fbrow:hover .chk input, .fbrow.focus .chk input, .fbrow .chk input:checked, .sel-mode .fbrow .chk input, .fbrow .chk input:focus-visible { opacity: 1; }
.fbrow .chk input:checked { background: var(--accent); border-color: var(--accent); } .fbrow .chk input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg) translate(1px, -1px); }
.selall { appearance: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line2); background: transparent; margin: 0 4px 0 2px; cursor: pointer; display: grid; place-items: center; }
.selall:checked { background: var(--accent); border-color: var(--accent); } .selall:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg) translate(1px, -1px); }
.fbrow .msg { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: pre-wrap; }
.fbrow.new .msg { color: var(--ink); font-weight: 600; }
.fbrow.new::before { content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.fbrow.done { opacity: .6; }
.fbrow .msg.none { color: var(--mute); font-style: italic; font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--soft); font-size: 12.5px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; } .meta .ic { width: 13px; height: 13px; flex: none; } .meta .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbrow .acts { display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.fbrow:hover .acts, .fbrow.focus .acts, .fbrow:focus-within .acts { opacity: 1; }
@media (hover: none) { .fbrow .acts { opacity: 1; } .fbrow .chk input { opacity: 1; } }
.empty { text-align: center; padding: 56px 20px; color: var(--soft); }
.empty .face-big { font-size: 40px; margin-bottom: 10px; } .empty h3 { color: var(--ink); margin-bottom: 6px; } .empty p { margin: 0 auto 16px; max-width: 420px; }
.skrow { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .fbrow { grid-template-columns: 40px minmax(0, 1fr); padding: 14px 16px; } .fbrow .chk { display: none; } .fbrow .acts { grid-column: 2; opacity: 1; margin-top: -4px; } .fbrow.new::before { left: 4px; } }

.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 60; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--surface); border-left: 1px solid var(--line2); z-index: 61; display: flex; flex-direction: column; box-shadow: var(--sh-drawer); animation: slide .26s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer .body { padding: 24px; overflow-y: auto; flex: 1; }
.drawer .big-msg { font-size: 17px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin: 18px 0 24px; color: var(--ink); }
.drawer dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; font-size: 14px; } .drawer dt { color: var(--soft); } .drawer dd { margin: 0; overflow-wrap: anywhere; color: var(--body); }
.drawer footer { display: flex; gap: 8px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal { position: fixed; z-index: 70; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); background: var(--surface2); border: 1px solid var(--line2); border-radius: 20px; padding: 24px; box-shadow: var(--sh-modal); animation: pop .2s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.modal dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 16px 0 0; align-items: center; } .modal dt { display: flex; gap: 4px; } .modal dd { margin: 0; color: var(--body); font-size: 14px; }

/* widget tab */
.wgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 24px; align-items: start; }
@media (max-width: 1080px) { .wgrid { grid-template-columns: minmax(0, 1fr); } }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-bottom: 16px; }
.sec h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.sec h3 small { font-size: 12px; color: var(--mute); font-weight: 500; letter-spacing: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line2); cursor: pointer; padding: 0; transition: transform .12s; }
.swatches button:hover { transform: scale(1.1); } .swatches button[aria-pressed=true] { box-shadow: 0 0 0 2px var(--ink); }
.swatches .custom { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: 6px; }
.swatches .linkbtn { width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; white-space: nowrap; }
.swatches input[type=color] { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.swatches input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } .swatches input[type=color]::-webkit-color-swatch { border: 2px solid var(--line2); border-radius: 50%; }
.swatches .hex { width: 104px; padding: 7px 11px; font-size: 13px; border-radius: 999px; }
.warn { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: 13px; color: var(--body); }
.fontbox .fl { max-height: 210px; overflow-y: auto; margin-top: 10px; border: 1px solid var(--line2); border-radius: 14px; background: var(--bg); }
.fontbox .fl button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--body); font-size: 18px; cursor: pointer; text-align: left; }
.fontbox .fl button:last-child { border-bottom: 0; } .fontbox .fl button:hover { background: var(--surface2); } .fontbox .fl button[aria-pressed=true] { background: var(--surface3); color: var(--ink); }
.fontbox .fl button small { font: 600 11px "Plus Jakarta Sans"; color: var(--mute); }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { appearance: none; display: grid; gap: 6px; justify-items: center; padding: 12px 16px; min-width: 88px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg); color: var(--soft); cursor: pointer; font: 600 12px "Plus Jakarta Sans"; transition: all .15s; }
.choice:hover { color: var(--ink); } .choice[aria-pressed=true] { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px var(--ring); }
.choice .pv-pill { height: 26px; padding: 0 12px; border-radius: 999px; background: var(--c, var(--accent)); color: var(--t, var(--on-accent)); display: inline-flex; align-items: center; gap: 5px; font-size: 11px; } .choice .pv-pill svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.choices.faces .choice { min-width: 0; flex: 1 1 150px; }
.fprev { display: flex; gap: 5px; align-items: center; justify-content: center; height: 26px; color: var(--ink); }
.fprev .fc { width: 22px; height: 22px; overflow: visible; } .fprev .fc path, .fprev .fc circle, .pv-pill .fc path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; } .fprev .fc .dt, .pv-pill .fc .dt { stroke-width: 3.8; }
.fprev.em .e { font-size: 17px; line-height: 1; } .fprev .nobox { display: block; min-width: 96px; text-align: left; padding: 4px 8px; border: 1px solid var(--line2); border-radius: 8px; color: var(--mute); font-weight: 500; }
.choice .pv-pill .fc { width: 14px; height: 14px; }
.corners { position: relative; width: 168px; height: 108px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg); }
.corners button { position: absolute; width: 36px; height: 20px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface3); cursor: pointer; padding: 0; transition: all .15s; }
.corners button:hover { border-color: var(--accent); } .corners button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); }
.corners .tl { top: 8px; left: 8px; } .corners .tr { top: 8px; right: 8px; } .corners .bl { bottom: 8px; left: 8px; } .corners .br { bottom: 8px; right: 8px; }
.rad { display: flex; align-items: center; gap: 18px; } .rad .box { width: 56px; height: 56px; border: 2px solid var(--accent); background: var(--accent-tint); flex: none; transition: border-radius .1s; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.pv { position: sticky; top: 20px; border: 1px solid var(--line2); border-radius: 20px; overflow: hidden; background: var(--surface); }
.pv .bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pv .stage { background: var(--stage); padding: 14px; display: grid; justify-items: center; }
.pv .frame { width: 100%; max-width: 100%; transition: width .3s var(--ease); border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line2); }
.pv .frame.mobile { width: 390px; } .pv iframe { display: block; width: 100%; height: 560px; border: 0; }
@media (max-width: 1080px) { .pv { position: static; } }
.savebar { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 55; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; background: var(--ink); color: var(--bg); border-radius: 999px; box-shadow: var(--sh-bar); font-weight: 700; font-size: 14px; transition: transform .3s var(--ease); width: max-content; max-width: calc(100vw - 24px); }
.savebar.show { transform: translate(-50%, 0); }
/* while the bar is up, keyboard focus and scrolled-to controls stop above it instead of underneath */
html:has(.savebar.show) { scroll-padding-bottom: 96px; }
main:has(.savebar.show) { padding-bottom: 96px; }
.savebar .btn { border-color: var(--bg); background: transparent; color: var(--bg); } .savebar .btn.save { background: var(--bg); color: var(--ink); } .savebar .btn:hover { background: var(--inv-hover); } .savebar .btn.save:hover { background: var(--surface3); }

/* integrations */
.igrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); align-items: start; }
.icard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 14px; }
.icard.soon { border-style: dashed; background: transparent; }
.icard .hd { display: flex; align-items: center; gap: 14px; } .icard .hd .lg { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line2); color: var(--ink); flex: none; } .icard .hd .lg svg { width: 22px; height: 22px; fill: currentColor; } .icard .hd .lg svg.line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icard .hd .t { flex: 1; min-width: 0; } .icard .hd h3 { font-size: 17px; } .icard .hd p { margin: 2px 0 0; color: var(--soft); font-size: 13.5px; }
.integ { border: 1px solid var(--line2); border-radius: 14px; padding: 14px; display: grid; gap: 10px; background: var(--bg); }
.integ .u { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--body); overflow-wrap: anywhere; }
.integ .st { font-size: 12.5px; display: flex; align-items: center; gap: 8px; } .integ .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.integ .st.ok { color: var(--leaf); } .integ .st.ok i { background: var(--leaf); } .integ .st.failed { color: var(--bad); } .integ .st.failed i { background: var(--bad); } .integ .st.none { color: var(--mute); }
.integ.off { opacity: .6; }
.addrow { display: flex; gap: 8px; } .addrow input { flex: 1; min-width: 0; border-radius: 999px; }
.card.secret { border-color: var(--accent); }
.danger-zone { border-color: var(--bad-line2); }
.settings { display: grid; gap: 16px; max-width: 640px; }
.help { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: center; margin-top: 16px; } .help span { color: var(--body); font-size: 14px; }
.sheet-row { padding: 10px; border-radius: 12px; display: flex; align-items: center; gap: 10px; color: var(--body); text-decoration: none; font-weight: 600; font-size: 14px; background: transparent; border: 0; width: 100%; font-family: inherit; cursor: pointer; text-align: left; } .sheet-row:hover { background: var(--surface3); color: var(--ink); }
.center { max-width: 440px; margin: 14vh auto 0; padding: 0 20px; text-align: center; }
.center .card { text-align: left; margin-top: 28px; padding: 24px; }
.center h1 { font-size: 36px; margin-top: 22px; } .center p.sub { color: var(--soft); margin: 12px 0 0; }

/* add site dialog: centred on desktop, a bottom sheet on phones */
.addm { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; }
.addm .x { position: absolute; top: 14px; right: 14px; }
.addm h2 { font-size: 26px; }
.addm .stepper { display: flex; gap: 8px; margin: 0 0 14px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.addm .stepper b { font-weight: 700; } .addm .stepper b.on { color: var(--accent-text); }
.addm .more summary { cursor: pointer; color: var(--soft); font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.addm .more summary:hover { color: var(--ink); }
.addm .code { white-space: pre-wrap; word-break: break-all; padding-right: 16px; padding-bottom: 54px; font-size: 12px; }
.addm .code .btn { top: auto; bottom: 8px; }
.addm .live { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--soft); }
.addm .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.4s ease-in-out infinite; }
.addm .live.ok { color: var(--leaf); } .addm .live.ok i { background: var(--leaf); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 640px) {
  .modal.addm { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); animation: sheet .26s var(--ease); }
  .addm input { font-size: 16px; }
}
/* shared confirmation dialog */
.cfm { width: min(420px, calc(100vw - 32px)); padding: 28px; }
.cfm h2 { font-size: 22px; margin: 0 0 8px; } .cfm p { margin: 0 0 22px; }
.cfm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.btn.primary.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.primary.danger:hover { background: var(--bad); filter: brightness(.92); }
:root[data-theme="dark"] .btn.primary.danger { color: #1a0707; }
@media (max-width: 640px) {
  .modal.cfm { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; border-radius: 20px 20px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); animation: sheet .26s var(--ease); }
  .cfm-actions { flex-direction: column-reverse; } .cfm-actions .btn { width: 100%; justify-content: center; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
