:root {
  --accent: #e5007d;
  --accent-dark: #b60063;
  --accent-soft: #fff0f7;
  --ink: #111117;
  --ink-2: #252531;
  --muted: #6e6e7b;
  --line: #e7e7ec;
  --canvas: #f5f5f7;
  --white: #fff;
  --success: #0a8f5b;
  --danger: #c92c3c;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(21, 18, 30, .09);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topline { height: 5px; background: linear-gradient(90deg, var(--accent), #ff5aa5 55%, #7e153f); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--accent); color: white; font-size: 14px; font-weight: 900; letter-spacing: -.04em; transform: skew(-7deg); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 18px; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 700; }
.main-nav a:hover { color: var(--accent); }
.main-nav .nav-accent { color: var(--accent); }
.account-menu { display: flex; align-items: center; gap: 10px; padding-left: 24px; border-left: 1px solid var(--line); }
.user-badge { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-weight: 800; }
.account-name { font-size: 13px; font-weight: 700; }
.link-button { border: 0; padding: 0; background: transparent; color: var(--muted); font-size: 13px; }
.link-button:hover { color: var(--accent); }
.messages { position: relative; z-index: 60; }
.message { margin-top: 14px; padding: 13px 16px; border-radius: 12px; background: #eaf8f1; border: 1px solid #c6ead8; color: #12603f; font-weight: 650; }
.site-footer { margin-top: 90px; padding: 38px 0; background: #17171d; color: white; }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer-inner p { margin: 7px 0 0; color: #aaaab5; font-size: 13px; }
.footer-inner > span { color: #8f8f9a; font-size: 13px; }

.hero { position: relative; overflow: hidden; min-height: 430px; color: white; background: radial-gradient(circle at 78% 26%, rgba(229,0,125,.75), transparent 30%), radial-gradient(circle at 35% 120%, rgba(105,0,58,.9), transparent 45%), linear-gradient(115deg, #101016 0%, #17131a 50%, #250915 100%); }
.hero::before { content: ""; position: absolute; inset: 82px 0 auto; height: 430px; pointer-events: none; opacity: .32; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 50px 50px; mask-image: linear-gradient(90deg, transparent, black 38%, black 85%, transparent); }
.hero-inner { position: relative; min-height: 430px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 58px; padding: 56px 0 82px; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.eyebrow.light { color: #ff82bd; }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: .98; letter-spacing: -.045em; }
.hero p { max-width: 610px; margin: 24px 0 30px; color: #d2ced4; font-size: 18px; line-height: 1.55; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; font-weight: 800; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: white; box-shadow: 0 8px 24px rgba(229,0,125,.24); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { background: white; border-color: #d9d9df; color: var(--ink); }
.button-secondary:hover, .button-ghost:hover { border-color: var(--accent); color: var(--accent); }
.button-ghost { background: transparent; border-color: #d9d9df; }
.button-dark { background: var(--ink); color: white; }
.button-danger { background: var(--danger); color: white; }
.button-danger-outline { border-color: #eccbd0; background: white; color: var(--danger); }
.button-wide { width: 100%; }
.hero-code { display: flex; justify-content: flex-end; }
.code-window { width: min(100%, 480px); padding: 18px; border: 1px solid rgba(255,255,255,.18); background: rgba(11,10,14,.78); box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: rotate(1.4deg); }
.code-dots, .browser-dots { display: flex; gap: 6px; }
.code-dots i, .browser-dots i { width: 8px; height: 8px; border-radius: 50%; background: #777782; }
.code-dots i:first-child, .browser-dots i:first-child { background: var(--accent); }
.code-window pre { margin: 28px 8px 10px; color: #d7d7de; font: 14px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.code-window pre span { color: #ff5cac; }
.dashboard-offset { position: relative; margin-top: -44px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.metric-card { min-height: 120px; display: grid; align-content: center; padding: 24px 34px; border-right: 1px solid var(--line); }
.metric-card:last-child { border-right: 0; }
.metric-card strong { font-size: 34px; line-height: 1; }
.metric-card span { margin-top: 10px; color: var(--muted); font-size: 13px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 64px 0 24px; }
.section-heading h2 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.page-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.page-card { overflow: hidden; background: white; border: 1px solid var(--line); box-shadow: 0 9px 30px rgba(20,19,25,.055); transition: transform .18s ease, box-shadow .18s ease; }
.page-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.preview-thumb { position: relative; display: block; height: 190px; overflow: hidden; background: #ececf0; border-bottom: 1px solid var(--line); }
.preview-thumb iframe { width: 1440px; height: 900px; border: 0; transform: scale(.26); transform-origin: top left; pointer-events: none; background: white; }
.preview-shield { position: absolute; inset: 0; }
.page-card-body { padding: 20px; }
.card-status-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 850; }
.status-public { color: #087149; background: #e6f7ef; }
.status-private { color: #686875; background: #f0f0f3; }
.file-size { color: var(--muted); font-size: 12px; }
.page-card h3 { margin: 17px 0 7px; font-size: 19px; line-height: 1.25; }
.page-card h3 a:hover { color: var(--accent); }
.page-card p { overflow: hidden; margin: 0; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.card-footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; }
.card-footer time { color: var(--muted); }
.card-footer a { color: var(--accent); font-weight: 800; }
.empty-state { display: grid; justify-items: center; padding: 70px 30px; text-align: center; background: white; border: 1px dashed #cfcfd7; }
.empty-icon { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 900; }
.empty-state h3 { margin: 22px 0 8px; font-size: 26px; }
.empty-state p { max-width: 540px; margin: 0 0 24px; color: var(--muted); line-height: 1.6; }

.content-page { padding-top: 38px; }
.breadcrumbs { display: flex; gap: 10px; margin-bottom: 34px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--accent); }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 34px; align-items: start; }
.page-title { margin: 0; font-size: clamp(36px, 5vw, 54px); line-height: 1.03; letter-spacing: -.045em; }
.page-lead { max-width: 720px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.panel { margin-top: 28px; padding: 30px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-stack { display: grid; gap: 22px; }
.form-stack label > span:first-child { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.form-stack input[type="text"], .form-stack input[type="password"], .copy-row input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #d6d6dd; border-radius: 4px; background: white; color: var(--ink); outline: none; }
.form-stack input:focus, .copy-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229,0,125,.1); }
.file-drop { position: relative; min-height: 230px; display: grid; place-items: center; align-content: center; padding: 30px; border: 2px dashed #cfcfd7; background: #fafafd; text-align: center; transition: border-color .15s ease, background .15s ease; }
.file-drop:hover, .file-drop.is-dragging { border-color: var(--accent); background: var(--accent-soft); }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop-icon { width: 48px; height: 48px; display: grid !important; place-items: center; margin: 0 0 13px !important; border-radius: 50%; background: var(--accent); color: white; font-size: 24px !important; }
.file-drop strong { font-size: 18px; }
.file-drop small { margin-top: 7px; color: var(--muted); }
.file-drop em { margin-top: 14px; color: #9696a1; font-size: 11px; font-style: normal; }
.switch-row { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; }
.switch-ui { position: relative; flex: 0 0 48px; width: 48px; height: 26px; margin: 0 !important; border-radius: 999px; background: #c9c9d0; transition: background .18s ease; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: left .18s ease; }
.switch-row input:checked + .switch-ui { background: var(--accent); }
.switch-row input:checked + .switch-ui::after { left: 25px; }
.switch-row > span:last-child { display: grid; gap: 4px; }
.switch-row small { color: var(--muted); line-height: 1.4; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 8px; }
.form-error, .field-error { display: block; color: var(--danger); font-size: 12px; font-weight: 700; }
.info-panel { position: sticky; top: 110px; padding: 34px; color: white; background: linear-gradient(145deg, #17171d, #300d20); box-shadow: var(--shadow); }
.info-panel h2 { margin: 0 0 16px; font-size: 31px; line-height: 1.08; letter-spacing: -.035em; }
.info-panel p { color: #c4c0c6; line-height: 1.6; }
.check-list { display: grid; gap: 14px; margin: 27px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; font-size: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #ff58aa; font-weight: 900; }

.detail-heading { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; }
.detail-heading p { color: var(--muted); }
.title-status { margin-bottom: 13px; }
.heading-actions { display: flex; gap: 10px; }
.viewer-panel { overflow: hidden; margin-top: 30px; border: 1px solid #d8d8df; background: white; box-shadow: var(--shadow); }
.viewer-toolbar { height: 48px; display: grid; grid-template-columns: 90px 1fr 32px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); background: #f8f8fa; color: var(--muted); font-size: 12px; }
.viewer-toolbar > span { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.viewer-toolbar > a { color: var(--accent); font-size: 19px; font-weight: 900; }
.page-viewer { display: block; width: 100%; height: min(72vh, 820px); border: 0; background: white; }
.access-panel { display: grid; grid-template-columns: 1fr auto; gap: 22px 30px; align-items: center; margin-top: 30px; padding: 30px; background: white; border: 1px solid var(--line); }
.access-copy h2 { margin: 0 0 7px; font-size: 28px; letter-spacing: -.03em; }
.access-copy p { margin: 0; color: var(--muted); }
.share-box { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
.share-box > label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.share-actions { display: flex; justify-content: space-between; gap: 18px; margin-top: 12px; font-size: 13px; }
.share-actions a { color: var(--accent); font-weight: 800; }
.danger-text { color: var(--danger); }

.login-shell { min-height: calc(100vh - 81px); display: grid; grid-template-columns: 1.2fr .8fr; background: white; }
.login-visual { display: grid; align-items: center; min-height: 700px; padding: 70px; color: white; background: radial-gradient(circle at 65% 30%, rgba(229,0,125,.75), transparent 30%), linear-gradient(140deg, #121218, #2e0c1f); }
.login-visual-inner { width: min(690px, 100%); margin-left: auto; }
.login-visual h1 { margin: 0; font-size: clamp(46px, 5.4vw, 76px); line-height: .98; letter-spacing: -.05em; }
.login-visual p { max-width: 660px; color: #cfccd1; font-size: 18px; line-height: 1.6; }
.login-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 54px; border: 1px solid rgba(255,255,255,.18); }
.login-metrics div { display: grid; gap: 6px; padding: 22px; border-right: 1px solid rgba(255,255,255,.18); }
.login-metrics div:last-child { border-right: 0; }
.login-metrics strong { font-size: 26px; }
.login-metrics span { color: #b8b4bb; font-size: 11px; line-height: 1.35; }
.login-panel { display: grid; place-items: center; padding: 48px; }
.login-card { width: min(440px, 100%); }
.login-card h2 { margin: 0; font-size: 38px; letter-spacing: -.04em; }
.muted { color: var(--muted); line-height: 1.55; }
.security-note { margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: #6d3452; font-size: 12px; line-height: 1.5; }

.public-body { height: 100vh; overflow: hidden; background: white; }
.public-header { height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 0 24px; border-top: 4px solid var(--accent); border-bottom: 1px solid var(--line); background: white; }
.brand.compact .brand-mark { width: 34px; height: 34px; }
.brand.compact .brand-copy strong { font-size: 14px; }
.public-header > div:last-child { display: grid; text-align: right; }
.public-header > div:last-child strong { font-size: 13px; }
.public-header > div:last-child span { color: var(--muted); font-size: 11px; }
.public-viewer { display: block; width: 100%; height: calc(100vh - 64px); border: 0; background: white; }

.narrow-page { min-height: 65vh; display: grid; place-items: center; padding-top: 60px; }
.confirm-card { width: min(620px, 100%); padding: 44px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.danger-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: #fff0f2; color: var(--danger); font-size: 26px; font-weight: 900; }
.confirm-card h1 { margin: 0 0 12px; font-size: 34px; }
.confirm-card p { color: var(--muted); line-height: 1.6; }
.confirm-actions { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }

@media (max-width: 1000px) {
  .main-nav { display: none; }
  .account-menu { margin-left: auto; }
  .hero-inner, .split-layout, .login-shell { grid-template-columns: 1fr; }
  .hero-code { display: none; }
  .page-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .info-panel { position: static; }
  .login-visual { min-height: auto; padding: 70px 40px; }
  .login-visual-inner { margin: 0; }
  .login-panel { min-height: 560px; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 24px, 1180px); }
  .header-inner { height: 68px; }
  .account-name { display: none; }
  .hero-inner { min-height: 390px; padding: 48px 0 72px; }
  .hero h1 { font-size: 43px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 92px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-card:last-child { border-bottom: 0; }
  .page-grid { grid-template-columns: 1fr; }
  .section-heading, .detail-heading, .footer-inner { align-items: stretch; flex-direction: column; }
  .heading-actions { flex-wrap: wrap; }
  .heading-actions .button { flex: 1; }
  .panel, .access-panel { padding: 20px; }
  .access-panel { grid-template-columns: 1fr; }
  .share-box { grid-column: 1; }
  .copy-row { grid-template-columns: 1fr; }
  .share-actions { align-items: flex-start; flex-direction: column; }
  .login-visual { padding: 54px 24px; }
  .login-visual h1 { font-size: 45px; }
  .login-metrics { grid-template-columns: 1fr; }
  .login-metrics div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .login-panel { padding: 44px 24px; }
  .public-header > div:last-child { display: none; }
  .confirm-card { padding: 30px 22px; }
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  font-size: 13px;
}
.pagination a { color: var(--accent); font-weight: 800; }
.pagination a:last-child { text-align: right; }
.pagination strong { color: var(--muted); }
