/* OneGo admin panel and sign-in page. Styled after the OneGo Invoice Maker app. */

:root {
	--o-bg: #f4f5f8;
	--o-card: #ffffff;
	--o-ink: #171c28;
	--o-ink-2: #2b3245;
	--o-muted: #6b7386;
	--o-line: #e5e8ef;
	--o-side: #1b1e26;
	--o-side-2: #232733;
	--o-side-text: #c5cad6;
	--o-signal: #ee5a2a;
	--o-signal-2: #ff7a3d;
	--o-signal-soft: #fff1ea;
	--o-ok: #16a34a;
	--o-ok-soft: #e8f7ee;
	--o-warn: #d97706;
	--o-warn-soft: #fff6e5;
	--o-bad: #dc2626;
	--o-bad-soft: #fdecec;
	--o-blue-soft: #eef2ff;
	--o-violet-soft: #f3efff;
	--o-r: 14px;
	--o-shadow: 0 1px 2px rgba(23, 28, 40, .05), 0 10px 30px -18px rgba(23, 28, 40, .25);
	--o-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.ogp, body.ogp-signin { font-family: var(--o-font); color: var(--o-ink); background: var(--o-bg); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.5; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.ogp-boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; animation: ogp-pulse 1.2s infinite ease-in-out; }
@keyframes ogp-pulse { 50% { opacity: .45; transform: scale(.96); } }

/* ---------- Buttons and fields ---------- */
.ogp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 11px; border: 1px solid var(--o-line); background: #fff; color: var(--o-ink); font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.ogp-btn:hover { border-color: #cfd4de; background: #fafbfc; }
.ogp-btn:active { transform: translateY(1px); }
.ogp-btn:disabled { opacity: .55; cursor: default; }
.ogp-btn svg { width: 18px; height: 18px; flex: none; }
.ogp-btn--primary { background: linear-gradient(135deg, var(--o-signal), var(--o-signal-2)); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px rgba(238, 90, 42, .9); }
.ogp-btn--primary:hover { background: linear-gradient(135deg, #e14d1d, #f86e30); border-color: transparent; }
.ogp-btn--dark { background: var(--o-ink); border-color: var(--o-ink); color: #fff; }
.ogp-btn--dark:hover { background: #000; border-color: #000; }
.ogp-btn--ghost { background: transparent; border-color: transparent; }
.ogp-btn--ghost:hover { background: rgba(23, 28, 40, .05); border-color: transparent; }
.ogp-btn--danger { color: var(--o-bad); }
.ogp-btn--danger:hover { background: var(--o-bad-soft); border-color: #f5c2c2; }
.ogp-btn--sm { min-height: 32px; padding: 5px 11px; font-size: 13.5px; border-radius: 9px; }
.ogp-btn--block { width: 100%; }
.ogp-label { display: block; margin: 0 0 6px; font-weight: 650; font-size: 14px; }
.ogp-help { margin: 6px 0 0; color: var(--o-muted); font-size: 13px; }
.ogp-input, .ogp-select, .ogp-textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #d6dbe4; border-radius: 11px; background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.ogp-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.ogp-input:focus, .ogp-select:focus, .ogp-textarea:focus { outline: 0; border-color: var(--o-signal); box-shadow: 0 0 0 4px rgba(238, 90, 42, .13); }
.ogp-field { margin-bottom: 18px; }
.ogp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ogp-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14.5px; }
.ogp-check input { width: 17px; height: 17px; accent-color: var(--o-signal); }
.ogp-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; }
.ogp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ogp-switch__track { position: relative; width: 40px; height: 23px; border-radius: 99px; background: #cfd4de; transition: background .2s; flex: none; }
.ogp-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.ogp-switch input:checked + .ogp-switch__track { background: var(--o-ok); }
.ogp-switch input:checked + .ogp-switch__track::after { transform: translateX(17px); }
.ogp-switch input:focus-visible + .ogp-switch__track { box-shadow: 0 0 0 3px rgba(238, 90, 42, .3); }
.ogp-days { display: flex; flex-wrap: wrap; gap: 6px; }
.ogp-day { position: relative; }
.ogp-day input { position: absolute; opacity: 0; }
.ogp-day span { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid #d6dbe4; background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.ogp-day input:checked + span { background: var(--o-ink); border-color: var(--o-ink); color: #fff; }
.ogp-day input:focus-visible + span { box-shadow: 0 0 0 3px rgba(238, 90, 42, .3); }
.ogp-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ogp-choice { position: relative; display: block; cursor: pointer; }
.ogp-choice input { position: absolute; opacity: 0; }
.ogp-choice > span { display: block; height: 100%; padding: 13px 14px; border: 1px solid #d6dbe4; border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.ogp-choice strong { display: block; font-size: 14.5px; }
.ogp-choice small { display: block; margin-top: 3px; color: var(--o-muted); font-size: 12.5px; line-height: 1.4; }
.ogp-choice input:checked + span { border-color: var(--o-signal); background: var(--o-signal-soft); box-shadow: 0 0 0 2px rgba(238, 90, 42, .18); }
.ogp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 650; background: #eef0f4; color: var(--o-ink-2); white-space: nowrap; }
.ogp-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.ogp-pill--ok { background: var(--o-ok-soft); color: var(--o-ok); }
.ogp-pill--warn { background: var(--o-warn-soft); color: var(--o-warn); }
.ogp-pill--bad { background: var(--o-bad-soft); color: var(--o-bad); }
.ogp-pill--info { background: var(--o-blue-soft); color: #4f46e5; }
.ogp-pill--plain::before { display: none; }
.ogp-alert { padding: 12px 14px; border-radius: 12px; background: var(--o-bad-soft); color: #9b1c1c; font-size: 14px; margin-bottom: 16px; }
.ogp-alert--warn { background: var(--o-warn-soft); color: #92400e; }
.ogp-alert--info { background: var(--o-blue-soft); color: #3730a3; }
.ogp-alert a { font-weight: 650; }

/* ---------- Shell ---------- */
.ogp-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.ogp-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; background: linear-gradient(180deg, var(--o-side) 0%, #15171d 100%); color: var(--o-side-text); }
.ogp-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px; color: #fff; text-decoration: none; }
.ogp-brand__name { display: block; font-weight: 700; font-size: 18px; letter-spacing: -.01em; line-height: 1.1; }
.ogp-brand__sub { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8b92a3; font-weight: 600; margin-top: 3px; }
.ogp-profile { padding: 12px; border-radius: 14px; background: var(--o-side-2); border: 1px solid rgba(255, 255, 255, .05); }
.ogp-profile__label { margin: 0 0 8px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8b92a3; font-weight: 650; }
.ogp-profile__who { display: flex; align-items: center; gap: 10px; }
.ogp-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--o-signal), var(--o-signal-2)); color: #fff; font-weight: 700; flex: none; }
.ogp-profile__name { display: block; color: #fff; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.ogp-profile__mail { display: block; font-size: 12px; color: #8b92a3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.ogp-nav { display: flex; flex-direction: column; gap: 3px; }
.ogp-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; color: var(--o-side-text); text-decoration: none; font-weight: 550; font-size: 14.5px; transition: background .15s, color .15s; }
.ogp-nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.ogp-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.ogp-nav a.is-active { background: linear-gradient(90deg, rgba(238, 90, 42, .22), rgba(238, 90, 42, .06)); color: #fff; box-shadow: inset 0 0 0 1px rgba(238, 90, 42, .35); }
.ogp-nav a.is-active svg { color: var(--o-signal-2); opacity: 1; }
.ogp-nav__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--o-signal); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ogp-side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 3px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
.ogp-side__foot a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: #9aa1b2; text-decoration: none; font-size: 14px; }
.ogp-side__foot a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.ogp-side__foot svg { width: 18px; height: 18px; }

.ogp-main { min-width: 0; padding: 22px 30px 60px; }
.ogp-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ogp-top__menu { display: none; }
.ogp-top__title { min-width: 0; }
.ogp-top__title h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.ogp-top__title p { margin: 3px 0 0; color: var(--o-muted); font-size: 14px; }
.ogp-top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ogp-clock { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--o-line); }
.ogp-clock strong { color: var(--o-signal); font-size: 16px; }
.ogp-clock span { font-size: 12px; line-height: 1.2; color: var(--o-muted); }

/* ---------- Cards ---------- */
.ogp-card { background: var(--o-card); border: 1px solid var(--o-line); border-radius: var(--o-r); box-shadow: var(--o-shadow); padding: 20px 22px; }
.ogp-card + .ogp-card { margin-top: 16px; }
.ogp-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ogp-card__head h2, .ogp-card__head h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.ogp-card__head p { margin: 2px 0 0; color: var(--o-muted); font-size: 13.5px; }
.ogp-card__head .ogp-spacer { margin-left: auto; }
.ogp-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ogp-grid { display: grid; gap: 16px; }
.ogp-grid--hero { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
.ogp-grid--stats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ogp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ogp-grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.ogp-hero { position: relative; overflow: hidden; padding: 26px 28px; border-radius: 18px; color: #fff; background: radial-gradient(120% 120% at 85% 20%, rgba(255, 255, 255, .18) 0, rgba(255, 255, 255, 0) 45%), linear-gradient(120deg, #f0592b 0%, #ff7a3d 55%, #f7a26d 100%); box-shadow: 0 24px 40px -26px rgba(238, 90, 42, .9); min-height: 200px; }
.ogp-hero::after { content: ""; position: absolute; right: 36px; top: 50%; width: 170px; height: 170px; margin-top: -85px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 0 0 26px rgba(255, 255, 255, .06); }
.ogp-hero .ogp-eyebrow { background: rgba(255, 255, 255, .2); color: #fff; }
.ogp-hero h2 { margin: 14px 0 8px; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; max-width: 520px; }
.ogp-hero p { margin: 0 0 18px; color: rgba(255, 255, 255, .88); max-width: 520px; }
.ogp-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.ogp-hero__chips .ogp-pill { background: rgba(255, 255, 255, .95); }
.ogp-hero__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.ogp-hero__btns .ogp-btn { background: #fff; border-color: #fff; color: var(--o-ink); }
.ogp-hero__btns .ogp-btn--outline { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); color: #fff; }
.ogp-focus h3 { margin: 12px 0 6px; font-size: 18px; }
.ogp-focus p { margin: 0 0 12px; color: var(--o-muted); font-size: 14px; }
.ogp-focus__icon { width: 46px; height: 46px; border-radius: 13px; background: #eef0f4; display: flex; align-items: center; justify-content: center; color: var(--o-ink-2); }
.ogp-focus__icon svg { width: 22px; height: 22px; }
.ogp-link { color: var(--o-signal); font-weight: 650; text-decoration: none; }
.ogp-link:hover { text-decoration: underline; }

.ogp-stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--o-r); background: #fff; border: 1px solid var(--o-line); box-shadow: var(--o-shadow); text-decoration: none; transition: transform .18s, box-shadow .18s; }
a.ogp-stat:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -20px rgba(23, 28, 40, .35); }
.ogp-stat__icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; background: var(--o-ok-soft); color: var(--o-ok); }
.ogp-stat__icon svg { width: 20px; height: 20px; }
.ogp-stat--signal .ogp-stat__icon { background: var(--o-signal-soft); color: var(--o-signal); }
.ogp-stat--violet .ogp-stat__icon { background: var(--o-violet-soft); color: #7c3aed; }
.ogp-stat--warn .ogp-stat__icon { background: var(--o-warn-soft); color: var(--o-warn); }
.ogp-stat--blue .ogp-stat__icon { background: var(--o-blue-soft); color: #4f46e5; }
.ogp-stat__label { color: var(--o-muted); font-size: 13px; font-weight: 600; }
.ogp-stat__value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ogp-stat__sub { color: var(--o-muted); font-size: 12.5px; }

/* ---------- Lists, tables ---------- */
.ogp-list { display: flex; flex-direction: column; }
.ogp-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--o-line); }
.ogp-item:first-child { border-top: 0; padding-top: 4px; }
.ogp-thumb { width: 74px; height: 74px; border-radius: 11px; object-fit: cover; background: #e9ecf2; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--o-muted); }
.ogp-thumb img, .ogp-thumb video { width: 100%; height: 100%; object-fit: cover; }
.ogp-item__body { min-width: 0; flex: 1; }
.ogp-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; color: var(--o-muted); }
.ogp-item__meta strong { color: var(--o-ink); font-size: 14px; }
.ogp-item__text { margin: 0; font-size: 14px; color: var(--o-ink-2); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ogp-item__result { margin-top: 4px; font-size: 12.5px; }
.ogp-item__result a { color: var(--o-signal); font-weight: 600; }
.ogp-item__result .bad { color: var(--o-bad); }
.ogp-item__actions { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
.ogp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ogp-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--o-muted); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--o-line); }
.ogp-table td { padding: 12px 10px; border-bottom: 1px solid var(--o-line); vertical-align: top; }
.ogp-table tr:last-child td { border-bottom: 0; }
.ogp-table small { color: var(--o-muted); display: block; }
.ogp-scroll { overflow-x: auto; }
.ogp-empty { padding: 34px 16px; text-align: center; color: var(--o-muted); }
.ogp-empty svg { width: 34px; height: 34px; margin: 0 auto 8px; opacity: .5; }

/* ---------- Tabs ---------- */
.ogp-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin-bottom: 18px; border-radius: 13px; background: #fff; border: 1px solid var(--o-line); }
.ogp-tabs a, .ogp-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 10px; border: 0; background: none; color: var(--o-ink-2); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
.ogp-tabs a:hover, .ogp-tabs button:hover { background: #f1f3f7; }
.ogp-tabs .is-active { background: var(--o-ink); color: #fff; }
.ogp-tabs .is-active:hover { background: var(--o-ink); }
.ogp-tabs svg { width: 17px; height: 17px; }

/* ---------- Website editor with live preview ---------- */
.ogp-editor { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); gap: 18px; align-items: start; }
.ogp-preview { position: sticky; top: 16px; border-radius: 16px; overflow: hidden; border: 1px solid var(--o-line); background: #fff; box-shadow: var(--o-shadow); }
.ogp-preview__bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #f7f8fa; border-bottom: 1px solid var(--o-line); font-size: 13px; color: var(--o-muted); }
.ogp-preview__dots { display: flex; gap: 6px; }
.ogp-preview__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.ogp-preview__dots i:nth-child(2) { background: #febc2e; }
.ogp-preview__dots i:nth-child(3) { background: #28c840; }
.ogp-preview__url { flex: 1; padding: 4px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--o-line); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ogp-preview__frame { position: relative; height: calc(100vh - 150px); min-height: 520px; overflow: hidden; }
.ogp-preview iframe { width: 166.67%; height: 166.67%; border: 0; transform: scale(.6); transform-origin: 0 0; background: #fff; }
.ogp-preview--phone .ogp-preview__frame { display: flex; justify-content: center; background: #eef0f4; }
.ogp-preview--phone iframe { width: 390px; height: 100%; transform: none; border-left: 1px solid var(--o-line); border-right: 1px solid var(--o-line); }
.ogp-savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--o-ink); color: #fff; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); animation: ogp-up .2s ease-out; }
.ogp-savebar span { flex: 1; font-weight: 600; font-size: 14px; }
.ogp-savebar .ogp-btn--ghost { color: #fff; }
.ogp-savebar .ogp-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
@keyframes ogp-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ogp-colour { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--o-line); }
.ogp-colour:first-child { border-top: 0; }
.ogp-colour input[type="color"] { width: 46px; height: 46px; padding: 0; border: 1px solid #d6dbe4; border-radius: 12px; background: none; cursor: pointer; flex: none; }
.ogp-colour input[type="color"]::-webkit-color-swatch-wrapper { padding: 4px; }
.ogp-colour input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.ogp-colour strong { display: block; font-size: 14.5px; }
.ogp-colour small { color: var(--o-muted); font-size: 12.5px; }
.ogp-colour code { margin-left: auto; font-size: 12.5px; color: var(--o-muted); }
.ogp-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ogp-preset { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; border-radius: 99px; border: 1px solid var(--o-line); background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; }
.ogp-preset i { width: 18px; height: 18px; border-radius: 50%; }
.ogp-fonts { display: grid; gap: 8px; }
.ogp-font { position: relative; cursor: pointer; }
.ogp-font input { position: absolute; opacity: 0; }
.ogp-font > span { display: block; padding: 11px 14px; border: 1px solid #d6dbe4; border-radius: 12px; }
.ogp-font strong { display: block; font-size: 18px; line-height: 1.25; }
.ogp-font small { font-family: var(--o-font); color: var(--o-muted); font-size: 12px; }
.ogp-font input:checked + span { border-color: var(--o-signal); background: var(--o-signal-soft); }
.ogp-media { display: flex; align-items: center; gap: 14px; }
.ogp-media__box { width: 120px; height: 72px; border-radius: 12px; border: 1px dashed #c9cfda; background: #f7f8fa; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--o-muted); font-size: 12px; text-align: center; padding: 6px; flex: none; }
.ogp-media__box img { max-height: 100%; width: auto; }
.ogp-media__box--sq { width: 72px; }

/* ---------- Social: folders and pieces ---------- */
.ogp-folder { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--o-r); background: #fff; border: 1px solid var(--o-line); box-shadow: var(--o-shadow); text-decoration: none; transition: transform .18s, box-shadow .18s; }
.ogp-folder:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -20px rgba(23, 28, 40, .35); }
.ogp-folder__top { display: flex; align-items: center; gap: 12px; }
.ogp-folder__icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--o-signal-soft); color: var(--o-signal); flex: none; }
.ogp-folder__icon svg { width: 23px; height: 23px; }
.ogp-folder--reels .ogp-folder__icon { background: var(--o-violet-soft); color: #7c3aed; }
.ogp-folder--shorts .ogp-folder__icon { background: var(--o-bad-soft); color: var(--o-bad); }
.ogp-folder--long .ogp-folder__icon { background: var(--o-blue-soft); color: #4f46e5; }
.ogp-folder h3 { margin: 0; font-size: 16.5px; }
.ogp-folder__kind { font-size: 12.5px; color: var(--o-muted); }
.ogp-folder__sched { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--o-ink-2); }
.ogp-folder__sched svg { width: 16px; height: 16px; color: var(--o-muted); }
.ogp-folder__foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.ogp-folder--new { align-items: center; justify-content: center; min-height: 170px; border: 2px dashed #d3d8e2; background: transparent; box-shadow: none; color: var(--o-muted); font-weight: 650; cursor: pointer; }
.ogp-folder--new svg { width: 28px; height: 28px; }
.ogp-folder--new:hover { border-color: var(--o-signal); color: var(--o-signal); }
.ogp-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 28px; border: 2px dashed #cfd5df; border-radius: var(--o-r); background: #fafbfc; text-align: center; color: var(--o-muted); cursor: pointer; transition: border-color .15s, background .15s; }
.ogp-drop svg { width: 30px; height: 30px; color: var(--o-signal); }
.ogp-drop strong { color: var(--o-ink); font-size: 15px; }
.ogp-drop.is-over { border-color: var(--o-signal); background: var(--o-signal-soft); }
.ogp-progress { margin-top: 12px; display: grid; gap: 6px; }
.ogp-progress__row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ogp-progress__bar { flex: 1; height: 6px; border-radius: 99px; background: #e9ecf2; overflow: hidden; }
.ogp-progress__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--o-signal), var(--o-signal-2)); transition: width .2s; }
.ogp-pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 16px; }
.ogp-piece { border-radius: var(--o-r); background: #fff; border: 1px solid var(--o-line); overflow: hidden; box-shadow: var(--o-shadow); }
.ogp-piece.is-off { opacity: .55; }
.ogp-piece__media { position: relative; aspect-ratio: 1; background: #1b1e26; display: flex; align-items: center; justify-content: center; }
.ogp-piece__media img, .ogp-piece__media video { width: 100%; height: 100%; object-fit: contain; }
.ogp-piece__badge { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11.5px; font-weight: 650; }
.ogp-piece__body { padding: 10px 12px 12px; }
.ogp-piece__title { font-weight: 650; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ogp-piece__meta { color: var(--o-muted); font-size: 12px; margin: 2px 0 8px; }
.ogp-piece__row { display: flex; align-items: center; gap: 6px; }
.ogp-piece__row .ogp-btn { margin-left: auto; }
.ogp-word { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--o-line); }
.ogp-word:first-child { border-top: 0; }
.ogp-word__body { flex: 1; min-width: 0; }
.ogp-word__body strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.ogp-word__body p { margin: 0; font-size: 13.5px; color: var(--o-muted); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ogp-word.is-off { opacity: .55; }

/* ---------- Business tools ---------- */
.ogp-tool { display: flex; gap: 14px; padding: 16px; border-radius: var(--o-r); background: #fff; border: 1px solid var(--o-line); box-shadow: var(--o-shadow); }
.ogp-tool img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.ogp-tool h3 { margin: 0 0 3px; font-size: 16px; }
.ogp-tool p { margin: 0 0 8px; color: var(--o-muted); font-size: 13.5px; }
.ogp-tool__price { font-weight: 700; }
.ogp-tool__price s { color: var(--o-muted); font-weight: 500; margin-right: 6px; }

/* ---------- Modal and toast ---------- */
.ogp-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; background: rgba(15, 18, 26, .5); backdrop-filter: blur(3px); overflow-y: auto; animation: ogp-fade .15s ease-out; }
@keyframes ogp-fade { from { opacity: 0; } }
.ogp-modal__box { width: 100%; max-width: 620px; border-radius: 18px; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); animation: ogp-up .2s ease-out; }
.ogp-modal__head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--o-line); }
.ogp-modal__head h2 { margin: 0; font-size: 18px; flex: 1; }
.ogp-modal__body { padding: 20px 22px; }
.ogp-modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--o-line); background: #fafbfc; border-radius: 0 0 18px 18px; }
.ogp-toast { position: fixed; left: 50%; bottom: 26px; z-index: 200; transform: translateX(-50%); padding: 12px 18px; border-radius: 12px; background: var(--o-ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); animation: ogp-up .2s ease-out; }
.ogp-toast--bad { background: var(--o-bad); }
.ogp-spin { width: 18px; height: 18px; border: 2px solid rgba(0, 0, 0, .15); border-top-color: var(--o-signal); border-radius: 50%; animation: ogp-rot .7s linear infinite; display: inline-block; }
@keyframes ogp-rot { to { transform: rotate(360deg); } }
.ogp-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px; color: var(--o-muted); }

/* ---------- Sign-in page ---------- */
.ogp-signin { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(80% 60% at 100% 0%, rgba(238, 90, 42, .25), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(79, 70, 229, .18), transparent 60%), #15171d; }
.ogp-signin__card { width: 100%; max-width: 420px; padding: 32px 30px 26px; border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.ogp-signin__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--o-ink); text-decoration: none; font-weight: 700; font-size: 18px; margin-bottom: 22px; }
.ogp-signin h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.ogp-signin__lead { margin: 0 0 20px; color: var(--o-muted); }
.ogp-signin .ogp-input { margin-bottom: 14px; }
.ogp-signin__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 18px; font-size: 14px; }
.ogp-signin__row a { color: var(--o-signal); font-weight: 600; text-decoration: none; }
.ogp-signin__back { display: block; margin-top: 18px; text-align: center; color: var(--o-muted); font-size: 14px; text-decoration: none; }
.ogp-signin__back:hover { color: var(--o-ink); }

/* ---------- Small screens ---------- */
@media (max-width: 1100px) {
	.ogp-editor { grid-template-columns: 1fr; }
	.ogp-preview { position: static; }
	.ogp-preview__frame { height: 560px; }
	.ogp-grid--hero { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.ogp-shell { grid-template-columns: 1fr; }
	.ogp-side { position: fixed; left: 0; top: 0; z-index: 90; width: 280px; transform: translateX(-100%); transition: transform .25s; box-shadow: 20px 0 50px rgba(0, 0, 0, .3); }
	.ogp-shell.is-menu .ogp-side { transform: none; }
	.ogp-shell.is-menu::after { content: ""; position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .4); }
	.ogp-main { padding: 14px 14px 60px; }
	.ogp-top { flex-wrap: wrap; }
	.ogp-top__menu { display: inline-flex; }
	.ogp-top__title h1 { font-size: 21px; }
	.ogp-clock { display: none; }
	.ogp-top__right { margin-left: 0; width: 100%; }
	.ogp-grid--2 { grid-template-columns: 1fr; }
	.ogp-row2 { grid-template-columns: 1fr; }
	.ogp-item { flex-wrap: wrap; }
	.ogp-item__actions { width: 100%; }
	.ogp-hero h2 { font-size: 24px; }
	.ogp-hero::after { display: none; }
}

/* Nav badge (unread counts from extensions such as OneGo Mail). */
.ogp-nav__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--o-signal); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }

/* Colour picker with OK / Cancel (replaces the browser's own colour window). */
.ogp-cp { position: fixed; z-index: 10050; width: 264px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--o-line); box-shadow: 0 24px 60px -18px rgba(15, 18, 26, .45); }
.ogp-cp__sv { position: relative; height: 150px; border-radius: 11px; cursor: crosshair; touch-action: none; }
.ogp-cp__dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3); pointer-events: none; }
.ogp-cp__hue { width: 100%; height: 14px; margin: 12px 0 10px; border-radius: 99px; -webkit-appearance: none; appearance: none; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); cursor: pointer; }
.ogp-cp__hue::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3); }
.ogp-cp__hue::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.ogp-cp__row { display: flex; align-items: center; gap: 10px; }
.ogp-cp__now { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--o-line); }
.ogp-cp__hex { min-height: 40px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: lowercase; }
.ogp-cp__sw { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin: 12px 0; }
.ogp-cp__sw button { aspect-ratio: 1; border: 1px solid rgba(0, 0, 0, .12); border-radius: 7px; cursor: pointer; padding: 0; }
.ogp-cp__sw button:hover { transform: scale(1.12); }
.ogp-cp__foot { display: flex; justify-content: flex-end; gap: 8px; }
/* Team access */
.ogp-team-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.ogp-team-pick{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--o-line);border-radius:12px;cursor:pointer}
.ogp-team-pick:has(input:checked){border-color:var(--o-signal);background:color-mix(in srgb,var(--o-signal) 7%,transparent)}
.ogp-team-pick input{width:17px;height:17px;margin-top:2px;accent-color:var(--o-signal);flex:none}
.ogp-team-pick strong{display:block;font-size:14.5px}
.ogp-team-pick small{display:block;color:var(--o-muted);font-size:12.5px;line-height:1.35;margin-top:2px}
.ogp-team td small{display:block;color:var(--o-muted);font-size:12.5px}
.ogp-team tbody tr{cursor:pointer}
.ogp-team tbody tr:hover{background:rgba(127,127,127,.07)}
.ogp-team .ogp-pill{margin:2px 2px 2px 0}
.ogp-team-owners{margin:0;padding-left:18px;line-height:1.9}
.ogp-team-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--o-line)}

.ogp-team-roles{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}
.ogp-team-role{position:relative;display:block;cursor:pointer}
.ogp-team-role input{position:absolute;opacity:0}
.ogp-team-role>span{display:block;height:100%;padding:10px 12px;border:1.5px solid var(--o-line);border-radius:12px}
.ogp-team-role strong{display:block;font-size:14.5px}
.ogp-team-role small{display:block;color:var(--o-muted);font-size:12.5px;line-height:1.35;margin-top:3px}
.ogp-team-role input:checked+span{border-color:var(--o-signal);background:color-mix(in srgb,var(--o-signal) 8%,transparent)}
.ogp-team-role input:focus-visible+span{outline:2px solid var(--o-signal);outline-offset:2px}
.ogp-team-box{display:block;margin-top:4px;color:var(--o-muted);font-size:12.5px}

/* Sign-in and create account */
.ogp-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ogp-signin__switch{margin:16px 0 0;text-align:center;font-size:14.5px}
.ogp-signin__agree{align-items:flex-start;margin:6px 0 16px;font-size:14px;line-height:1.4}
.ogp-signin__resend{margin:0 0 14px}

.ogp-team-btns{white-space:nowrap;text-align:right}
.ogp-team-btns .ogp-btn{margin-left:6px}
.ogp-team-search{margin:0 0 14px;max-width:420px}
.ogp-team-locked td{opacity:.75}
