:root { --pink: #ff3366; --pink-soft: #fff0f4; --ink: #2b2b3a; --muted: #7a7a8c; --line: #e8e8f0; --bg: #f7f7fb; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); }

/* Sidebar */
#sidebar { width: 240px; flex: none; display: flex; flex-direction: column; gap: 12px; padding: 16px 12px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--pink); color: #fff; font-weight: 700; }
#search { width: min(360px, 40vw); margin-left: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
#search:focus { outline: 2px solid var(--pink); background: #fff; }
.nav-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 4px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.nav-head button { border: 0; background: none; font-size: 18px; color: var(--pink); line-height: 1; }
.nav-item, .space-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; padding: 7px 8px; border: 0; border-radius: 7px; background: none; text-align: left; }
.space-item { cursor: pointer; }
.nav-item:hover, .space-item:hover { background: var(--bg); }
.nav-item.active, .space-item.active { background: var(--pink-soft); color: var(--pink); font-weight: 600; }
.space-item.drop, .col.drop-col { outline: 2px dashed var(--pink); }
.space-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.space-item .mini { display: none; gap: 2px; }
.space-item:hover .mini { display: flex; }
.mini button { border: 0; background: none; padding: 0 3px; color: var(--muted); }
.mini button:hover { color: var(--pink); }
em { font-style: normal; font-size: 12px; color: var(--muted); }
.side-foot { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-foot button, .side-foot a { min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; text-align: center; text-decoration: none; cursor: pointer; }
.side-foot button:hover, .side-foot a:hover { border-color: var(--pink); color: var(--pink); }

/* Main */
main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: baseline; gap: 10px; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.top h1 { margin: 0; font-size: 20px; font-weight: 500; }
#subtitle { font-size: 12px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 8px 24px; background: #fff; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--pink); }
.toolbar[hidden] { display: none; }
.toolbar button { border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--pink); }
.toolbar label { display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.toolbar select { border: 0; background: none; color: var(--pink); font-size: 12px; font-weight: 600; }
.toolbar .check { color: var(--muted); font-weight: 500; }
.toolbar .primary { padding: 7px 12px; border-radius: 6px; background: var(--pink); color: #fff; }
.spacer { flex: 1; }
#content { flex: 1; overflow-y: auto; padding: 18px 24px 80px; }

/* Collections */
.col { margin-bottom: 22px; }
.col-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px; cursor: grab; }
.col-head h2 { margin: 0; font-size: 18px; font-weight: 500; }
.col-head .count { font-size: 12px; color: var(--muted); }
.caret { border: 0; background: none; color: var(--pink); padding: 0 2px; transition: transform .15s; }
.col.collapsed .caret { transform: rotate(-90deg); }
.col.collapsed .col-body { display: none; }
.tag { padding: 1px 8px; border-radius: 10px; background: var(--pink-soft); color: var(--pink); font-size: 11px; }
.col-actions { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.col:hover .col-actions, .col-actions:focus-within { opacity: 1; }
.icon-btn { border: 0; background: none; padding: 4px 7px; border-radius: 5px; font-size: 12px; color: var(--muted); }
.icon-btn:hover { background: var(--pink-soft); color: var(--pink); }
.icon-btn.on { color: var(--pink); }

.col-body { min-height: 14px; }
.tab { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 9px 12px; background: #fff; border: 1px solid transparent; border-radius: 5px; box-shadow: 0 1px 2px rgba(30, 30, 60, .08); }
.tab:hover { border-color: #f4c2cf; }
.tab.dragging { opacity: .4; }
.tab.over-before { box-shadow: 0 -3px 0 var(--pink); }
.tab.over-after { box-shadow: 0 3px 0 var(--pink); }
.col.over-before { box-shadow: 0 -3px 0 var(--pink); }
.col.over-after { box-shadow: 0 3px 0 var(--pink); }
.fav { width: 18px; height: 18px; flex: none; border-radius: 3px; object-fit: contain; }
.fav-fallback { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 3px; background: var(--line); font-size: 10px; font-weight: 700; color: var(--muted); }
.tab-title { flex: 1 1 50%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
.tab-title:hover { color: var(--pink); }
.tab-url { flex: 1 1 40%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.tab-note { flex: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-style: italic; color: #b07a00; }
.tab-actions { display: flex; gap: 0; opacity: 0; }
.tab:hover .tab-actions, .tab-actions:focus-within { opacity: 1; }
.empty { padding: 14px; border: 1px dashed var(--line); border-radius: 6px; text-align: center; font-size: 12px; color: var(--muted); }

/* Layouts */
#content.compact .tab { padding: 4px 12px; margin-bottom: 2px; }
#content.compact .tab-url { display: none; }
#content.grid .col-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
#content.grid .tab { flex-wrap: wrap; margin: 0; }
#content.grid .tab-title { flex-basis: calc(100% - 40px); }
#content.grid .tab-url { flex-basis: 100%; order: 3; }

.section-label { margin: 18px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.crumb { font-size: 11px; color: var(--muted); }
.big-empty { margin-top: 60px; text-align: center; color: var(--muted); }
.big-empty strong { display: block; margin-bottom: 6px; font-size: 18px; color: var(--ink); }

#toast { position: fixed; right: 18px; bottom: 18px; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none; }
#toast.show { opacity: 1; transform: none; }

/* Sync dialog */
#sync-btn.ok::after { content: " \25CF"; color: #2a9d5c; }
#sync-btn.err::after { content: " \25CF"; color: #d63a3a; }
dialog { width: min(460px, 92vw); padding: 20px; border: 0; border-radius: 12px; box-shadow: 0 12px 40px rgba(20, 20, 50, .3); }
dialog::backdrop { background: rgba(20, 20, 40, .35); }
dialog [hidden] { display: none; }
dialog h3 { margin: 0 0 6px; }
dialog label { display: block; margin: 12px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
dialog input { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-weight: 400; }
dialog .row { display: flex; gap: 8px; align-items: stretch; margin-top: 4px; }
dialog .row input { margin-top: 0; flex: 1; min-width: 0; }
dialog .row.end { justify-content: flex-end; margin-top: 16px; }
dialog button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
dialog button.primary { border-color: var(--pink); background: var(--pink); color: #fff; }
dialog button.danger { margin-right: auto; color: #c0213f; }
.hint { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.hint.error { color: #c0213f; }

/* Sticky top menu + hamburger */
#topbar .brand { flex: none; }
#search { min-width: 0; }
#topbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 14px; height: 52px; flex: none; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
.hamburger { flex: none; display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: none; }
.hamburger:hover { background: var(--pink-soft); }
.hamburger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); }
.topnav { display: flex; align-items: center; gap: 2px; }
.topnav button, .topnav a { padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font-size: 13px; text-decoration: none; }
.topnav button:hover, .topnav a:hover { background: var(--pink-soft); color: var(--pink); }
.topnav button.active { color: var(--pink); font-weight: 600; }
.shell { flex: 1; min-height: 0; display: flex; }
#scrim { display: none; }

/* Organisation rail */
#orgrail { width: 64px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; background: #2b2b3a; overflow-y: auto; }
.org-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid transparent; border-radius: 12px; color: #fff; font-size: 16px; font-weight: 700; }
.org-btn:hover { filter: brightness(1.1); }
.org-btn.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.org-btn.add { background: transparent; border: 2px dashed rgba(255, 255, 255, .4); color: rgba(255, 255, 255, .8); font-size: 22px; font-weight: 400; }
.org-btn.add:hover { border-color: #fff; color: #fff; }
.org-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 4px 0; font-size: 15px; }
.org-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-head .icon-btn { font-size: 18px; line-height: 1; }

/* Collection extras */
.col-star { padding: 2px 4px; border: 0; background: none; font-size: 16px; line-height: 1; color: #c9c9d6; }
.col-star.on, .col-star:hover { color: #f5a300; }
.col-note { margin: 2px 4px 8px 30px; padding: 8px 10px; border-left: 3px solid #f5c542; border-radius: 4px; background: #fffbea; font-size: 13px; white-space: pre-wrap; color: #5c4a00; }
.col-actions .icon-btn.kebab { font-size: 16px; line-height: 1; padding: 2px 8px; }
.col .crumb { margin-left: 2px; }
.toolbar .outline { padding: 6px 10px; border: 1px solid var(--pink); border-radius: 6px; }
.toolbar .outline:hover { background: var(--pink-soft); }
.side-link { color: inherit; }

/* In-app pop-ups (replace the browser's prompt / confirm) */
dialog.modal { width: min(440px, 92vw); }
dialog.modal form { margin: 0; }
dialog.modal h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.modal-msg { margin: 0 0 8px; }
.field label { margin-top: 12px; }
dialog select, dialog textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 400; }
dialog textarea { resize: vertical; min-height: 90px; }
dialog input:focus, dialog select:focus, dialog textarea:focus { outline: 2px solid var(--pink); border-color: transparent; }
dialog button.primary.warn { border-color: #c0213f; background: #c0213f; }
dialog button:disabled { opacity: .5; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
dialog .chip { display: inline-block; margin: 0; font-size: 12px; font-weight: 600; cursor: pointer; }
dialog .chip input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; padding: 0; }
.chip span { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.chip input:checked + span { border-color: var(--pink); background: var(--pink-soft); color: var(--pink); }
.chip input:focus-visible + span { outline: 2px solid var(--pink); }

.popmenu { position: fixed; z-index: 200; min-width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(20, 20, 50, .2); }
.popmenu hr { margin: 4px 2px; border: 0; border-top: 1px solid var(--line); }
.popitem { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 13px; }
.popitem:hover, .popitem:focus-visible { background: var(--pink-soft); color: var(--pink); outline: 0; }
.popitem.danger { color: #c0213f; }

/* Wide screens: the hamburger hides or shows the organisation rail & sidebar */
body.nav-collapsed #orgrail, body.nav-collapsed #sidebar { display: none; }

/* Narrow screens: the sidebar becomes a drawer opened by the hamburger */
@media (max-width: 860px) {
  .topnav { display: none; }
  #topbar { gap: 10px; padding: 0 10px; }
  #topbar .brand strong { display: none; }
  #search { width: auto; flex: 1; }
  #orgrail, #sidebar { position: fixed; top: 52px; bottom: 0; z-index: 70; display: none; }
  #orgrail { left: 0; }
  #sidebar { left: 64px; box-shadow: 8px 0 24px rgba(20, 20, 50, .18); }
  body.nav-open #orgrail, body.nav-open #sidebar { display: flex; }
  body.nav-open #scrim { display: block; position: fixed; inset: 52px 0 0 0; z-index: 65; background: rgba(20, 20, 40, .35); }
  body.nav-collapsed #orgrail, body.nav-collapsed #sidebar { display: none; }
  body.nav-open.nav-collapsed #orgrail, body.nav-open.nav-collapsed #sidebar { display: flex; }
  .toolbar { flex-wrap: wrap; gap: 10px 14px; padding: 8px 14px; }
  .top, #content { padding-left: 14px; padding-right: 14px; }
  .col-actions { opacity: 1; }
  .tab-actions { opacity: 1; }
  .tab-url { display: none; }
}

/* Open tabs side panel: drag its tabs into any collection */
main { overflow: hidden; }
.main-body { flex: 1; min-height: 0; display: flex; }
.main-body #content { min-width: 0; }
#open-panel { width: 320px; flex: none; display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #fff; border-left: 1px solid var(--line); overflow-y: auto; }
#open-panel[hidden] { display: none; }
#open-panel h3 { margin: 0; font-size: 14px; }
#open-panel .hint { margin: 0 0 4px; }
#open-panel .panel-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
#open-panel .tab { margin: 0; padding: 7px 8px; cursor: grab; }
#open-panel .tab-url { display: none; }
#open-panel .tab-actions { opacity: 1; }
.col.drop-col, .space-item.drop { outline: 2px dashed var(--pink); outline-offset: 2px; }
@media (max-width: 860px) { #open-panel { position: fixed; right: 0; top: 52px; bottom: 0; z-index: 60; box-shadow: -8px 0 24px rgba(20, 20, 50, .18); } }

/* Toby-style look: soft pink avatars, folder spaces, card tabs, sticky-note collection notes */
:root { --pink-tint: #f9a8bd; --lav: #d9d4ee; }
#orgrail { background: #fff; border-right: 1px solid var(--line); gap: 14px; padding-top: 16px; }
.org-btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid transparent; background: var(--pink-tint); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.org-btn:hover { background: #f58aa6; filter: none; }
.org-btn.active { background: var(--pink); border-color: #fff; box-shadow: 0 0 0 2px var(--pink); }
.org-btn.add { width: auto; height: auto; border: 0; background: none; color: var(--muted); font-size: 24px; font-weight: 300; }
.org-btn.add:hover { background: none; color: var(--pink); }
#sidebar { gap: 6px; padding: 16px 10px; }
.org-head { font-size: 17px; font-weight: 500; padding-bottom: 6px; }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.nav-tools button { border: 0; background: none; font-size: 12px; font-weight: 700; letter-spacing: 0; color: var(--pink); line-height: 1; }
.nav-tools #space-sort:not(.on) { color: #b9b9c8; }
.nav-head button { font-size: 20px; }
.nav-item, .space-item { font-size: 14px; }
.ico { display: inline-block; width: 18px; height: 18px; margin-right: 10px; vertical-align: -4px; background: currentColor; opacity: .75; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.ico.folder { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h7l2 2h9v12H3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h7l2 2h9v12H3z'/%3E%3C/svg%3E"); }
.ico.star { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 7 7 .6-5.3 4.7 1.7 7.2L12 17.8 5.6 21.5l1.7-7.2L2 9.6 9 9z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 7 7 .6-5.3 4.7 1.7 7.2L12 17.8 5.6 21.5l1.7-7.2L2 9.6 9 9z'/%3E%3C/svg%3E"); opacity: 1; }
.starred-item { margin-bottom: 2px; }
.space-item.active .ico, .nav-item.active .ico { opacity: 1; }
.start-btn { margin-top: 12px; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--pink); color: #fff; font-weight: 600; }

/* collections: title with a pink caret, a hairline between each */
#content { background: #fafafd; padding: 0 28px 80px; }
.col { margin: 0; padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.col-head { gap: 8px; padding: 0 0 14px; cursor: default; }
.col-head[draggable="true"] { cursor: grab; }
.col-head h2 { font-size: 20px; font-weight: 500; }
.caret { font-size: 14px; transform: none; }
.col.collapsed .caret { transform: rotate(180deg); }
.col.collapsed { padding-bottom: 14px; }
.col-star { padding: 0 2px; opacity: 0; transition: opacity .12s; }
.col-star.on, .col-head:hover .col-star, .col-star:focus-visible { opacity: 1; }
.col-body { display: block; }

/* the note is a sticky card at the start of the collection */
.col-note { box-sizing: border-box; min-height: 98px; margin: 0 0 8px; padding: 16px; border: 0; border-radius: 4px; background: #fdfbee; box-shadow: 0 1px 3px rgba(30, 30, 60, .12); font-size: 14px; color: #55524a; white-space: pre-wrap; cursor: pointer; overflow: hidden; }
.col-note:hover { box-shadow: 0 2px 8px rgba(30, 30, 60, .18); }

/* cards (default view) */
.tab-host { display: none; }
#content.grid .col-body { display: grid; grid-template-columns: repeat(auto-fill, 232px); gap: 18px; align-items: start; }
#content.grid .col-body .empty { grid-column: 1 / -1; }
#content.grid .col-note { margin: 0; height: 98px; }
#content.grid .tab { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "fav title actions" "host host host" "note note note"; align-items: center; column-gap: 10px; row-gap: 0; margin: 0; padding: 0; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(30, 30, 60, .14); overflow: hidden; }
#content.grid .tab:hover { box-shadow: 0 3px 10px rgba(30, 30, 60, .2); }
#content.grid .tab > .fav, #content.grid .tab > .fav-fallback { grid-area: fav; margin-left: 14px; width: 26px; height: 26px; font-size: 13px; }
#content.grid .tab > .tab-title { grid-area: title; flex: none; padding: 16px 0; font-size: 14px; }
#content.grid .tab > .tab-actions { grid-area: actions; padding-right: 6px; }
#content.grid .tab > .tab-url { display: none; }
#content.grid .tab > .crumb { display: none; }
#content.grid .tab > .tab-host { display: block; grid-area: host; padding: 9px 14px; border-top: 1px solid var(--lav); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#content.grid .tab > .tab-note { grid-area: note; max-width: none; padding: 0 14px 10px; }
#content.grid .tab-actions .icon-btn { padding: 2px 5px; }
#content.grid .tab.over-before { box-shadow: -4px 0 0 var(--pink); }
#content.grid .tab.over-after { box-shadow: 4px 0 0 var(--pink); }
#content.list .tab, #content.compact .tab { border-radius: 4px; }

/* toolbar & header closer to Toby */
.top { padding: 16px 28px; }
.top h1 { font-size: 24px; font-weight: 500; }
.toolbar { padding: 10px 28px; }

/* website: extension prompt */
#ext-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: #fff0f4; color: #7a1030; border-bottom: 1px solid #ffd0dc; font-size: 13px; flex: none; }
#ext-banner span { flex: 1 1 260px; }
#ext-banner button { font: inherit; border: 1px solid #ff3366; background: #fff; color: #c0173f; border-radius: 8px; padding: 4px 10px; cursor: pointer; }
#ext-banner [data-action="ext-dismiss"] { border-color: transparent; background: none; }

/* login gate */
body.locked > :not(#auth-gate) { display: none !important; }
#auth-gate { position: fixed; inset: 0; z-index: 1000; overflow: auto; display: flex; align-items: center; justify-content: center; background: #f6f6f9; padding: 16px; }
#gate-form { width: 100%; max-width: 360px; background: #fff; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,.08); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
#gate-form .brand { width: 40px; height: 40px; border-radius: 10px; background: #ff3366; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
#gate-form h1 { font-size: 20px; margin: 0; }
#gate-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #444; }
#gate-form input { font: inherit; padding: 9px 10px; border: 1px solid #d5d5dd; border-radius: 8px; }
#gate-form button { font: inherit; padding: 10px; border-radius: 8px; border: 0; cursor: pointer; }
#gate-form button.primary { background: #ff3366; color: #fff; font-weight: 600; }
#gate-form button.primary:disabled { opacity: .6; cursor: wait; }
#gate-form button.link { background: none; color: #ff3366; }
#gate-msg { margin: 0; min-height: 1.2em; font-size: 13px; color: #555; }
#gate-msg.error { color: #c0173f; }
#gate-form [hidden] { display: none !important; }
