/* DentalMarq client portal: the site's teal and Plus Jakarta Sans, kept calm. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
:root { --teal: #01938E; --teal-deep: #017C78; --ink: #0F1B2D; --ink-2: #4B5563; --mute: #6B7280; --line: rgba(15,27,45,.12); --bg: #F6F8FA; --card: #fff; --r: 16px; --f: "Plus Jakarta Sans", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } img, video, iframe { display: block; max-width: 100%; }
.brand { font: 800 18px var(--f); letter-spacing: -.02em; } .brand b { color: var(--teal); font-weight: 800; }
.lab { margin: 0 0 8px; font: 700 11.5px var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); } .lab a { border-bottom: 1px solid transparent; } .lab a:hover { border-color: currentColor; }
h1 { margin: 0 0 12px; font: 800 clamp(26px, 3vw, 36px)/1.1 var(--f); letter-spacing: -.03em; } h2 { margin: 28px 0 12px; font: 700 18px var(--f); letter-spacing: -.01em; } h2:first-child { margin-top: 0; }
.p { margin: 0 0 14px; color: var(--ink-2); max-width: 60ch; } .p a { color: var(--teal-deep); font-weight: 600; } .fine { margin: 22px 0 0; font-size: 12.5px; color: var(--mute); } .fine a { color: var(--teal-deep); } code { font: 600 13px ui-monospace, Menlo, monospace; background: #EEF2F5; padding: 2px 6px; border-radius: 6px; }
label { display: block; margin: 16px 0 6px; font: 600 13px var(--f); } label small { display: block; font-weight: 400; color: var(--mute); font-size: 12px; }
input:not([type=checkbox]):not([type=file]), textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: 500 15px var(--f); color: var(--ink); } input:focus, textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1,147,142,.15); } textarea { resize: vertical; } input[type=file] { font: 500 13.5px var(--f); margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 18px; padding: 0 22px; height: 46px; border: 0; border-radius: 999px; background: var(--teal); color: #fff; font: 700 14px var(--f); cursor: pointer; transition: background 150ms ease, transform 120ms ease; } .btn:hover { background: var(--teal-deep); } .btn:active { transform: scale(.97); } .btn--s { height: 38px; padding: 0 16px; font-size: 13px; margin-top: 0; }
.lnk { font: 700 13px var(--f); color: var(--teal-deep); background: none; border: 0; padding: 0; cursor: pointer; } .lnk:hover { text-decoration: underline; } .danger { color: #B42318; }
.err { margin: 0 0 6px; padding: 12px 14px; border-radius: 10px; background: #FEF3F2; color: #B42318; font-size: 14px; } .flash { margin: 0 0 20px; padding: 12px 16px; border-radius: 10px; background: #E3F4F3; color: var(--teal-ink, #015F5C); font-weight: 600; font-size: 14px; }
.box { width: min(100% - 32px, 440px); margin: 10vh auto 40px; padding: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -40px rgba(15,27,45,.35); } .box .brand { display: block; margin-bottom: 28px; } .box .btn { width: 100%; }
.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(246,248,250,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); } .top nav { display: flex; gap: 22px; align-items: center; } .who { font: 600 13.5px var(--f); color: var(--ink-2); }
.space { width: min(100% - 32px, 1200px); margin: 0 auto; padding: 40px 0 60px; } .intro { font-size: 16.5px; max-width: 64ch; } .empty { padding: 32px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform 200ms ease, box-shadow 200ms ease; } .card:hover { transform: translateY(-2px); box-shadow: 0 24px 40px -30px rgba(15,27,45,.4); }
.card--site { grid-column: span 2; } .card__b { padding: 18px 20px 20px; } .card__b h2 { margin: 0 0 6px; font-size: 17px; } .card__b .p { font-size: 14px; margin-bottom: 8px; } .meta { margin: 0; font-size: 12.5px; color: var(--mute); } .acts { display: flex; gap: 18px; align-items: center; margin-top: 14px; } .acts .btn { margin: 0; height: 40px; padding: 0 18px; font-size: 13px; }
.thumb { position: relative; display: block; background: #EEF2F5; aspect-ratio: 16 / 10; overflow: hidden; } .thumb--site .shrink { position: absolute; inset: 0; overflow: hidden; } .thumb--site iframe { width: 1440px; height: 900px; border: 0; transform-origin: 0 0; transform: scale(var(--k, .45)); pointer-events: none; background: #fff; }
.thumb--site .pill { position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 999px; background: rgba(15,27,45,.8); color: #fff; font: 700 12px var(--f); } .thumb--video { aspect-ratio: auto; background: #000; } .thumb--video video { width: 100%; max-height: 520px; } .thumb--image img { width: 100%; height: 100%; object-fit: cover; }
.thumb--doc, .thumb--link { display: grid; place-items: center; aspect-ratio: 16 / 7; font: 800 22px var(--f); color: var(--teal-deep); letter-spacing: .04em; } .thumb--folder { aspect-ratio: auto; padding: 16px 20px; } .thumb--folder ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; } .thumb--folder a { color: var(--teal-deep); font-weight: 600; }
.admin .two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; } .admin section { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; } .admin form + h2 { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.clist { list-style: none; margin: 0; padding: 0; } .clist a { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); } .clist li:first-child a { border-top: 0; } .clist span { font-size: 13px; color: var(--mute); } .clist a:hover b { color: var(--teal-deep); }
.item { padding: 14px 0; border-top: 1px solid var(--line); } .item:first-of-type { border-top: 0; } .item .meta { margin-bottom: 8px; word-break: break-all; } .item .meta a { color: var(--teal-deep); font-weight: 600; } .item input, .item textarea { margin-bottom: 8px; } .item .acts { margin-top: 4px; } .item.is-hidden { opacity: .55; } .chk { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: 13px; }
.shown { margin: 0 0 24px; padding: 20px 24px; background: #fff; border: 2px solid var(--teal); border-radius: var(--r); } .shown p { margin: 4px 0; } .shown code { font-size: 15px; }
@media (max-width: 900px) { .admin .two { grid-template-columns: 1fr; } .card--site { grid-column: auto; }  .top nav { gap: 14px; } .who { display: none; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; }  .box { padding: 26px; margin-top: 6vh; } }

/* ── cards: previews for every kind of file ── */
.card__b h2 { text-wrap: balance; } .note .p { font-size: 14px; margin: 0 0 8px; max-width: none; } .note .p:last-child { margin-bottom: 10px; } .intro .p { font-size: 16.5px; max-width: 64ch; }
.thumb--pdf, .thumb--file, .thumb--link { display: block; aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 50% 0%, #F3F7F9, #E4EBEF); }
.thumb--pdf .sheet { position: absolute; left: 50%; top: 22px; width: 62%; aspect-ratio: 210 / 297; transform: translateX(-50%); border-radius: 6px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(15,27,45,.08), 0 18px 40px -16px rgba(15,27,45,.35); transition: transform 300ms cubic-bezier(.23,1,.32,1), box-shadow 300ms ease; }
.thumb--pdf .sheet .docico { position: absolute; inset: 0; width: 100%; height: 100%; padding: 12% 14%; transition: opacity 300ms ease; }
.thumb--pdf canvas { position: absolute; left: 0; top: 0; width: 100%; height: auto; opacity: 0; transition: opacity 400ms ease; }
.thumb--pdf.is-ready canvas { opacity: 1; } .thumb--pdf.is-ready .docico { opacity: 0; }
.thumb--pdf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(to top, rgba(228,235,239,.95), rgba(228,235,239,0)); pointer-events: none; }
.card:hover .thumb--pdf .sheet { transform: translateX(-50%) translateY(-4px); box-shadow: 0 1px 2px rgba(15,27,45,.08), 0 26px 50px -18px rgba(15,27,45,.45); }
.thumb--pdf .pill { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #D9483B; color: #fff; font: 800 11.5px var(--f); letter-spacing: .06em; }
.thumb--pdf .pages:not(:empty)::before { content: "\00B7"; margin-right: 6px; opacity: .7; }
.thumb--file { display: grid; place-items: center; } .thumb--file .docico { width: 26%; max-width: 120px; filter: drop-shadow(0 14px 22px rgba(15,27,45,.18)); transition: transform 300ms cubic-bezier(.23,1,.32,1); } .card:hover .thumb--file .docico { transform: translateY(-4px); }
.thumb--link { display: grid; place-items: center; } .thumb--link .browser { position: relative; width: 70%; padding: 34px 18px 22px; border-radius: 10px; background: #fff; box-shadow: 0 18px 40px -18px rgba(15,27,45,.35); display: block; text-align: center; }
.thumb--link .browser i { position: absolute; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: #E3E8ED; } .thumb--link .browser i:nth-child(1) { left: 14px; } .thumb--link .browser i:nth-child(2) { left: 28px; } .thumb--link .browser i:nth-child(3) { left: 42px; }
.thumb--link .browser b { font: 800 17px var(--f); color: var(--teal-deep); letter-spacing: -.01em; word-break: break-all; } .thumb--link .arrow { position: absolute; right: 14px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .thumb--pdf .sheet, .thumb--file .docico { transition: none; } }
/* layout: cards keep their own height; every preview sits in the same 16:10 frame */
.cards { align-items: start; }
.thumb--video { aspect-ratio: 16 / 10; background: #0F1B2D; } .thumb--video video { width: 100%; height: 100%; max-height: none; object-fit: contain; background: #0F1B2D; }
.thumb--pdf .sheet { width: 68%; top: 18px; }
.thumb--site .shrink iframe { background: #fff; }

/* ── website preview: desktop window + phone ── */
.thumb--site { aspect-ratio: auto; display: block; padding: 28px 28px 34px; background: radial-gradient(120% 100% at 30% 0%, #F3F7F9, #E1E9EE); }
.thumb--site .mock { position: relative; display: block; padding-right: 15%; }
.thumb--site .win { display: block; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(15,27,45,.08), 0 26px 50px -24px rgba(15,27,45,.45); transition: transform 300ms cubic-bezier(.23,1,.32,1); }
.thumb--site .bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #F1F4F6; border-bottom: 1px solid rgba(15,27,45,.07); }
.thumb--site .bar i { width: 9px; height: 9px; border-radius: 50%; background: #D7DEE4; flex: none; } .thumb--site .bar i:nth-child(1) { background: #F2867A; } .thumb--site .bar i:nth-child(2) { background: #F5C451; } .thumb--site .bar i:nth-child(3) { background: #5FCB7A; }
.thumb--site .bar b { margin: 0 auto; padding: 3px 14px; border-radius: 6px; background: #fff; font: 600 11px var(--f); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.thumb--site .vp { position: relative; display: block; aspect-ratio: var(--w) / var(--h); overflow: hidden; background: #fff; }
.thumb--site .vp iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; transform: scale(var(--k, .5)); pointer-events: none; background: #fff; opacity: 0; transition: opacity 400ms ease; }
.thumb--site .vp iframe.is-in { opacity: 1; }
.thumb--site .vp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.thumb--site .vp::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #F1F4F6 30%, #E6ECF0 50%, #F1F4F6 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.thumb--site .phone { position: absolute; right: 0; bottom: -18px; width: 22%; padding: 6px; border-radius: 22px; background: #0F1B2D; box-shadow: 0 26px 40px -20px rgba(15,27,45,.6); transition: transform 300ms cubic-bezier(.23,1,.32,1); }
.thumb--site .phone .vp { border-radius: 16px; }
.card:hover .thumb--site .win { transform: translateY(-3px); } .card:hover .thumb--site .phone { transform: translateY(-6px); }
.thumb--site .pill { position: absolute; left: 14px; bottom: 12px; right: auto; z-index: 3; padding: 7px 12px; border-radius: 999px; background: var(--teal); color: #fff; font: 800 11.5px var(--f); letter-spacing: .04em; }
.note { position: relative; } .note.is-clamped { max-height: 7.6em; overflow: hidden; } .note.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(to top, #fff, rgba(255,255,255,0)); }
.more { margin: 0 0 10px; padding: 0; border: 0; background: none; font: 700 13px var(--f); color: var(--teal-deep); cursor: pointer; } .more:hover { text-decoration: underline; }
.cov { margin-top: 4px; font-weight: 600; font-size: 12.5px; } .cov small { display: inline; } .cov input { display: block; margin-top: 4px; }
@media (max-width: 600px) { .thumb--site { padding: 18px 18px 26px; } .thumb--site .bar { height: 22px; } .thumb--site .bar b { display: none; } .thumb--site .phone { width: 26%; padding: 4px; border-radius: 14px; } .thumb--site .phone .vp { border-radius: 10px; } }
@media (prefers-reduced-motion: reduce) { .thumb--site .vp::before { animation: none; } }

.lockico { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 18px; border-radius: 14px; background: #E3F4F3; color: var(--teal-deep); } .lockico svg { width: 26px; height: 26px; }

/* the preview pages keep their real size (1440 or 390 wide) and are scaled down, never squeezed: the base rule caps iframes at 100% */
.thumb--site .vp iframe { max-width: none; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); }
.vp--d { --w: 1440; --h: 900; } .vp--m { --w: 390; --h: 844; }
/* owner page on phones: comfortable controls */
input[type=file]::file-selector-button { margin-right: 10px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: 700 12.5px var(--f); color: var(--ink); cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--teal); }
@media (max-width: 600px) { .top nav { gap: 12px; } .top nav .lnk { font-size: 12.5px; } .admin section { padding: 18px; } .admin .two { gap: 16px; } .item .acts { flex-wrap: wrap; gap: 14px; } .space { padding-top: 28px; } h1 { font-size: clamp(24px, 7vw, 30px); } }
