:root {
    --bg: #f5f6fa;
    --surface: #ffffff;
    --surface-soft: #f9fafc;
    --text: #202235;
    --muted: #70758c;
    --line: #e7e9f1;
    --primary: #6c4cff;
    --primary-dark: #5537e8;
    --primary-soft: #eeeaff;
    --green: #19a974;
    --green-soft: #e9f9f2;
    --red: #dc4c64;
    --red-soft: #fff0f3;
    --amber: #b7791f;
    --amber-soft: #fff7df;
    --shadow: 0 14px 36px rgba(34, 37, 55, .08);
    --radius: 16px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 260px; padding: 22px 18px; background: #191a2b; color: #fff; display: flex; flex-direction: column; box-shadow: 8px 0 30px rgba(20,20,35,.08); }
.brand { display: flex; align-items: center; gap: 12px; padding: 3px 8px 23px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; font-weight: 900; font-size: 21px; background: linear-gradient(135deg, #8a6cff, #4e2bd8); box-shadow: 0 8px 20px rgba(108,76,255,.35); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; letter-spacing: -.03em; }
.brand small { color: #a9adc0; margin-top: 2px; font-size: 12px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; padding-right: 3px; }
.nav-link { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: #b9bdcd; font-size: 14px; font-weight: 650; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(108,76,255,.34), rgba(108,76,255,.13)); box-shadow: inset 3px 0 0 #8f79ff; }
.nav-icon { width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 5px; opacity: .95; }
.nav-divider { margin: 17px 12px 8px; color: #676b80; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 15px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px; }
.user-chip strong, .user-chip small { display: block; max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { font-size: 13px; }
.user-chip small { color: #8f93a5; font-size: 11px; margin-top: 2px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); font-weight: 800; }
.logout-link { display: block; padding: 8px 7px 0; color: #8f93a5; font-size: 12px; }
.logout-link:hover { color: #fff; }
.app-main { width: calc(100% - 260px); margin-left: 260px; min-height: 100vh; }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 34px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.topbar h1 { font-size: 24px; letter-spacing: -.04em; margin: 2px 0 0; }
.eyebrow { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 800; }
.content { max-width: 1450px; margin: 0 auto; padding: 30px 34px 60px; }
.mobile-menu { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 750; font-size: 13px; box-shadow: 0 2px 4px rgba(30,32,50,.03); }
.button:hover { transform: translateY(-1px); border-color: #d7d9e5; }
.button-primary { border-color: var(--primary); color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-dark); }
.button-danger { color: var(--red); border-color: #f2c7cf; background: var(--red-soft); }
.button-small { min-height: 32px; padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.icon-button { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 22px; }
.page-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.page-heading p { margin: 7px 0 0; color: var(--muted); max-width: 700px; line-height: 1.5; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 20px rgba(35,38,58,.035); }
.card-header { min-height: 62px; padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.card-header h3 { margin: 0; font-size: 15px; }
.card-body { padding: 20px; }
.stat-card { padding: 20px; position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; width: 80px; height: 80px; border-radius: 50%; right: -25px; top: -25px; background: var(--primary-soft); }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-value { margin: 8px 0 4px; font-size: 28px; font-weight: 850; letter-spacing: -.05em; }
.stat-note { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .075em; background: var(--surface-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfcfe; }
.link { color: var(--primary); font-weight: 750; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.badge-success { color: #08764f; background: var(--green-soft); }
.badge-danger { color: #b72a43; background: var(--red-soft); }
.badge-warning { color: #875512; background: var(--amber-soft); }
.badge-neutral { color: #5f6477; background: #f0f1f5; }
.alert { position: relative; padding: 13px 44px 13px 16px; margin-bottom: 18px; border-radius: 11px; font-size: 13px; border: 1px solid; }
.alert button { position: absolute; right: 11px; top: 8px; border: 0; background: transparent; font-size: 20px; color: inherit; }
.alert-success { color: #08764f; border-color: #bcebd9; background: var(--green-soft); }
.alert-error { color: #a8233b; border-color: #f0c4cc; background: var(--red-soft); }
.alert-warning { color: #875512; border-color: #f1dda4; background: var(--amber-soft); }
.form-card { max-width: 1050px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #4f5368; font-weight: 700; }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea, .search-box input { width: 100%; border: 1px solid #dfe2eb; background: #fff; color: var(--text); border-radius: 10px; padding: 10px 11px; outline: none; font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus, .search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field textarea { resize: vertical; min-height: 90px; }
.checkbox-row { flex-direction: row; align-items: center; gap: 8px; min-height: 40px; }
.checkbox-row input { width: auto; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.section-heading { grid-column: 1 / -1; margin: 8px 0 -3px; padding-top: 11px; border-top: 1px solid var(--line); }
.section-heading:first-child { border-top: 0; padding-top: 0; }
.section-heading h3 { margin: 0; font-size: 14px; }
.filters { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.search-box { min-width: 280px; flex: 1; }
.search-box label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.empty-state { padding: 55px 25px; text-align: center; }
.empty-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 15px; background: var(--primary-soft); color: var(--primary); font-size: 24px; }
.empty-state h3 { margin: 0 0 7px; }
.empty-state p { color: var(--muted); margin: 0 auto 18px; max-width: 470px; line-height: 1.5; }
.detail-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 20px; }
.detail-item span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.detail-item strong { display: block; margin-top: 4px; font-size: 13px; white-space: pre-wrap; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 13px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-time { font-weight: 800; color: var(--primary); }
.line-items { width: 100%; }
.line-items input, .line-items select { width: 100%; min-width: 80px; padding: 8px; border: 1px solid #dfe2eb; border-radius: 8px; }
.line-items .description { min-width: 230px; }
.totals-box { margin-left: auto; width: min(100%, 370px); padding-top: 18px; }
.total-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; }
.total-row.grand { border-top: 2px solid var(--text); margin-top: 7px; padding-top: 12px; font-size: 18px; font-weight: 850; }
.auth-shell { background: radial-gradient(circle at 10% 10%, #eeeaff 0, transparent 34%), radial-gradient(circle at 90% 90%, #e5fff6 0, transparent 35%), #f7f7fb; }
.auth-main { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.auth-card { width: min(100%, 460px); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.auth-card h1 { margin: 0 0 7px; font-size: 25px; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 24px; color: var(--muted); line-height: 1.5; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .button { width: 100%; margin-top: 5px; }
.auth-foot { margin-top: 20px; font-size: 11px; color: var(--muted); text-align: center; }
.calendar-day { padding: 16px; }
.calendar-day h3 { margin: 0 0 12px; }
.day-group { margin-bottom: 18px; }
.import-map { display: grid; grid-template-columns: minmax(140px,1fr) minmax(220px,1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.import-map code { background: #f2f3f7; border-radius: 6px; padding: 3px 6px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; font-size: 11px; background: var(--surface-soft); }
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
    .sidebar { transform: translateX(-105%); transition: transform .22s ease; }
    .sidebar.open { transform: translateX(0); }
    .app-main { width: 100%; margin-left: 0; }
    .mobile-menu { display: inline-grid; place-items: center; }
    .topbar { padding: 17px 18px; }
    .topbar-actions { display: none; }
    .content { padding: 22px 16px 50px; }
    .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
    .field-full, .section-heading { grid-column: auto; }
    .page-heading { flex-direction: column; }
    .page-actions { justify-content: flex-start; }
    .detail-list { grid-template-columns: 1fr; }
    .timeline-item { grid-template-columns: 65px 1fr; }
    .timeline-item > :last-child { grid-column: 2; }
    .auth-card { padding: 26px 22px; }
}
@media print {
    .sidebar, .topbar, .page-actions, .button, form, .alert { display: none !important; }
    .app-main { width: 100% !important; margin: 0 !important; }
    .content { max-width: none; padding: 0; }
    .card { box-shadow: none; break-inside: avoid; }
    body { background: #fff; }
}

/* NoBarz public website, plans and storage */
.public-site { background:#fff; color:#202235; }
.public-container { width:min(1180px,calc(100% - 40px)); margin:0 auto; }
.public-header { position:sticky; top:0; z-index:60; background:rgba(255,255,255,.92); backdrop-filter:blur(16px); border-bottom:1px solid rgba(31,34,54,.08); }
.public-nav { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.public-brand { display:flex; align-items:center; gap:11px; }
.public-brand .brand-mark { width:40px; height:40px; }
.public-brand strong,.public-brand small { display:block; }
.public-brand strong { font-size:19px; letter-spacing:-.04em; }
.public-brand small { margin-top:1px; color:var(--muted); font-size:11px; }
.public-links { display:flex; align-items:center; gap:24px; font-size:14px; font-weight:700; }
.public-links>a:not(.button):hover { color:var(--primary); }
.public-menu-button { display:none; border:0; background:transparent; font-size:24px; }
.public-main { overflow:hidden; }
.hero-section { padding:82px 0 88px; background:radial-gradient(circle at 85% 10%,rgba(108,76,255,.13),transparent 30%),linear-gradient(180deg,#fbfaff,#fff); }
.hero-grid { display:grid; grid-template-columns:1.02fr .98fr; gap:58px; align-items:center; }
.public-kicker { display:inline-block; color:var(--primary); font-size:12px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.hero-copy h1,.public-page-hero h1 { margin:18px 0 20px; max-width:760px; font-size:clamp(42px,5.3vw,68px); line-height:1.01; letter-spacing:-.065em; }
.hero-lead { margin:0; max-width:650px; font-size:19px; line-height:1.65; color:#62677d; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.button-large { min-height:51px; padding:14px 20px; font-size:15px; }
.button-secondary { background:#fff; border:1px solid #dddfee; color:#303348; }
.button-secondary:hover { border-color:#beb7ee; background:#faf9ff; }
.hero-trust { display:flex; flex-wrap:wrap; gap:15px 24px; margin-top:23px; color:#62677d; font-size:13px; font-weight:650; }
.launch-note { margin-top:22px; padding:13px 15px; border:1px solid #eadba6; border-radius:12px; background:#fff9e9; color:#74591c; font-size:13px; line-height:1.5; }
.launch-note-wide { max-width:760px; margin:28px auto 0; text-align:center; }
.product-preview { perspective:1200px; }
.preview-window { min-height:515px; display:grid; grid-template-columns:70px 1fr; overflow:hidden; border:1px solid rgba(87,69,175,.14); border-radius:24px; background:#f5f6fa; box-shadow:0 35px 75px rgba(52,42,105,.2); transform:rotateY(-2deg) rotateX(1deg); }
.preview-sidebar { padding:20px 15px; background:#191a2b; display:flex; align-items:center; flex-direction:column; gap:24px; }
.preview-logo { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; color:#fff; font-weight:900; background:linear-gradient(135deg,#8a6cff,#4e2bd8); }
.preview-sidebar span { width:26px; height:7px; border-radius:5px; background:#36384e; }
.preview-sidebar span:nth-child(2) { background:#8068f5; }
.preview-main { padding:24px; }
.preview-top { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.preview-top small,.preview-top strong { display:block; }
.preview-top small { color:#777c91; font-size:10px; text-transform:uppercase; letter-spacing:.1em; }
.preview-top strong { margin-top:5px; font-size:18px; }
.preview-top button { border:0; padding:10px 12px; border-radius:9px; color:#fff; background:#6c4cff; font-size:11px; }
.preview-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:11px; margin-top:25px; }
.preview-stats article,.preview-schedule,.preview-storage { border:1px solid #e7e9f1; border-radius:14px; background:#fff; box-shadow:0 8px 25px rgba(30,32,48,.045); }
.preview-stats article { padding:14px; }
.preview-stats small,.preview-stats strong,.preview-stats span { display:block; }
.preview-stats small { color:#74798d; font-size:9px; text-transform:uppercase; letter-spacing:.08em; }
.preview-stats strong { margin:7px 0 4px; font-size:25px; }
.preview-stats span { color:#888da0; font-size:9px; }
.preview-content { display:grid; grid-template-columns:1.45fr .75fr; gap:11px; margin-top:11px; }
.preview-schedule,.preview-storage { padding:16px; }
.preview-schedule h3,.preview-storage h3 { margin:0 0 14px; font-size:13px; }
.preview-schedule>div { display:grid; grid-template-columns:38px 1fr auto; align-items:center; gap:10px; padding:12px 0; border-top:1px solid #eff0f5; }
.preview-schedule time { font-size:10px; color:#72778d; }
.preview-schedule strong,.preview-schedule small { display:block; }
.preview-schedule strong { font-size:10px; }
.preview-schedule small { margin-top:3px; color:#858a9e; font-size:8px; }
.preview-schedule em { padding:4px 6px; border-radius:6px; background:#eeeaff; color:#6045d9; font-size:7px; font-style:normal; }
.preview-storage>strong,.preview-storage>small { display:block; }
.preview-storage>strong { margin-top:22px; font-size:25px; }
.preview-storage>small { color:#83889b; font-size:9px; }
.preview-storage>div { height:7px; margin:12px 0 18px; overflow:hidden; border-radius:10px; background:#eceef4; }
.preview-storage>div span { display:block; width:37%; height:100%; border-radius:inherit; background:#6c4cff; }
.preview-storage p { color:#787d90; font-size:9px; line-height:1.55; }
.logo-strip { padding:25px 0; border-top:1px solid #eff0f5; border-bottom:1px solid #eff0f5; background:#fff; }
.logo-strip p { margin:0 0 17px; text-align:center; color:#888da0; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.12em; }
.logo-strip>div>div { display:flex; justify-content:center; flex-wrap:wrap; gap:16px 38px; color:#555a70; font-weight:800; }
.public-section { padding:96px 0; }
.public-section-tight { padding-top:56px; }
.public-section-soft { background:#f7f7fb; }
.section-intro { max-width:760px; margin:0 auto 48px; text-align:center; }
.section-intro h2,.split-section h2,.cta-card h2,.contact-copy h2 { margin:13px 0 17px; font-size:clamp(31px,4vw,48px); line-height:1.08; letter-spacing:-.055em; }
.section-intro p,.split-section>div>p,.contact-copy>p { color:#686d82; font-size:17px; line-height:1.65; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.feature-card { min-height:240px; padding:27px; border:1px solid #e9eaf1; border-radius:18px; background:#fff; transition:.2s ease; }
.feature-card:hover { transform:translateY(-4px); box-shadow:0 20px 45px rgba(35,37,55,.08); }
.feature-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:#eeeaff; color:#6548e7; font-size:12px; font-weight:900; }
.feature-card h3 { margin:25px 0 10px; font-size:19px; letter-spacing:-.025em; }
.feature-card p { margin:0; color:#6d7286; font-size:14px; line-height:1.7; }
.split-section { display:grid; grid-template-columns:.82fr 1.18fr; gap:75px; align-items:center; }
.text-link { color:var(--primary); font-weight:800; }
.use-case-stack { display:grid; gap:12px; }
.use-case-stack article { display:flex; gap:16px; padding:20px; border:1px solid #e7e9f1; border-radius:16px; background:#fff; }
.use-case-stack article>span { width:43px; height:43px; flex:0 0 43px; display:grid; place-items:center; border-radius:13px; background:#f1efff; font-size:21px; }
.use-case-stack h3 { margin:0 0 5px; font-size:16px; }
.use-case-stack p { margin:0; color:#72778b; font-size:13px; line-height:1.55; }
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:stretch; }
.price-card { position:relative; display:flex; flex-direction:column; padding:30px; border:1px solid #e5e7ef; border-radius:20px; background:#fff; box-shadow:0 12px 35px rgba(32,34,53,.04); }
.price-card.featured { border:2px solid #765dff; box-shadow:0 23px 55px rgba(89,65,213,.16); transform:translateY(-8px); }
.popular-label { position:absolute; top:-13px; right:22px; padding:6px 10px; border-radius:30px; color:#fff; background:#6c4cff; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.plan-name { color:#6b7085; font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.12em; }
.price-card h3 { margin:13px 0 10px; font-size:38px; letter-spacing:-.05em; }
.price-card h3 small { color:#777c8f; font-size:14px; font-weight:650; letter-spacing:0; }
.price-card p { color:#72778b; font-size:14px; line-height:1.6; }
.price-card ul { flex:1; display:grid; gap:11px; margin:23px 0 28px; padding:0; list-style:none; }
.price-card li { position:relative; padding-left:22px; color:#51566b; font-size:13px; line-height:1.4; }
.price-card li:before { content:'✓'; position:absolute; left:0; color:#18a472; font-weight:900; }
.pricing-note { max-width:880px; margin:34px auto 0; padding:20px 23px; border-radius:15px; background:#f6f5fc; text-align:center; }
.pricing-note strong { font-size:15px; }
.pricing-note p { margin:7px 0 0; color:#6c7185; line-height:1.55; }
.faq-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:45px; }
.faq-grid article { padding:22px; border:1px solid #e8eaf0; border-radius:15px; }
.faq-grid h3 { margin:0 0 9px; font-size:16px; }
.faq-grid p { margin:0; color:#6d7286; font-size:14px; line-height:1.6; }
.cta-section { padding:0 0 96px; }
.cta-card { display:flex; align-items:center; justify-content:space-between; gap:35px; padding:45px 48px; border-radius:24px; color:#fff; background:linear-gradient(135deg,#2b234c,#6c4cff); box-shadow:0 25px 65px rgba(83,57,203,.25); }
.cta-card .public-kicker { color:#c9bdff; }
.cta-card h2 { max-width:700px; margin-bottom:8px; }
.cta-card p { margin:0; color:#ddd8f9; }
.cta-card>div:last-child { display:flex; flex-wrap:wrap; gap:10px; }
.button-light { background:#fff; color:#44329e; }
.button-ghost-light { border:1px solid rgba(255,255,255,.35); color:#fff; background:transparent; }
.public-page-hero { padding:82px 0 62px; background:radial-gradient(circle at 75% 0,rgba(108,76,255,.12),transparent 34%),#faf9ff; text-align:center; }
.public-page-hero h1 { margin-left:auto; margin-right:auto; }
.public-page-hero p { max-width:760px; margin:0 auto; color:#686d82; font-size:18px; line-height:1.65; }
.contact-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:55px; align-items:start; }
.contact-points { display:grid; gap:18px; margin-top:30px; }
.contact-points div { padding-left:17px; border-left:3px solid #765dff; }
.contact-points strong,.contact-points span { display:block; }
.contact-points span { margin-top:4px; color:#73788c; font-size:13px; }
.contact-form { padding:28px; }
.honeypot { position:absolute!important; left:-9999px!important; }
.legal-hero h1 { font-size:50px; }
.legal-copy { max-width:860px; }
.legal-copy h2 { margin:34px 0 10px; font-size:22px; }
.legal-copy p { color:#62677c; line-height:1.75; }
.legal-copy a { color:var(--primary); text-decoration:underline; }
.public-footer { padding:62px 0 25px; background:#191a2b; color:#fff; }
.footer-grid { display:grid; grid-template-columns:1.7fr repeat(3,1fr); gap:45px; }
.footer-grid>div { display:flex; align-items:flex-start; flex-direction:column; gap:10px; }
.footer-grid .public-brand small,.footer-grid p,.footer-grid a,.footer-grid span { color:#9ea2b4; font-size:13px; line-height:1.55; }
.footer-grid p { max-width:340px; }
.footer-grid a:hover { color:#fff; }
.footer-bottom { margin-top:48px; padding-top:20px; border-top:1px solid rgba(255,255,255,.08); color:#767b90; font-size:12px; }
.auth-card-wide { max-width:540px; }
.selected-plan { display:flex; align-items:center; justify-content:space-between; gap:15px; margin:0 0 20px; padding:13px 15px; border-radius:11px; background:#f0edff; color:#5842bc; }
.selected-plan span { font-weight:800; }
.auth-choice { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.check-field { display:flex; align-items:flex-start; gap:9px; margin:8px 0 17px; color:#696e82; font-size:13px; line-height:1.5; }
.check-field input { margin-top:3px; }
.storage-meter { margin-bottom:18px; }
.storage-meter-head { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:7px; font-size:12px; }
.storage-meter-head span { color:var(--muted); font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.storage-track { height:10px; overflow:hidden; border-radius:20px; background:#e9ebf2; }
.storage-track span { display:block; min-width:0; height:100%; border-radius:inherit; background:var(--primary); }
.storage-warning .storage-track span { background:#d99a2b; }
.storage-danger .storage-track span { background:#dc4c64; }
.storage-meter-compact { margin:0; }
.storage-meter-compact .storage-meter-head { color:#b7bbcd; }
.storage-meter-compact .storage-meter-head span { color:#7f849a; font-size:9px; }
.storage-meter-compact .storage-meter-head strong { font-size:10px; }
.storage-meter-compact .storage-track { height:5px; background:rgba(255,255,255,.1); }
.sidebar-storage { margin:14px 6px 2px; padding:11px; border-radius:10px; background:rgba(255,255,255,.04); }
.stat-value-text { font-size:28px!important; }
.upload-form { margin-top:18px; }
.table-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.billing-hero { display:grid; grid-template-columns:.8fr 1.2fr; gap:45px; align-items:center; padding:30px; margin-bottom:18px; }
.billing-hero h2 { margin:8px 0; font-size:37px; letter-spacing:-.05em; }
.billing-hero p { color:var(--muted); }
.billing-price { margin-top:20px; font-size:20px; font-weight:900; }
.storage-numbers { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.storage-numbers span { padding:12px; border-radius:10px; background:#f7f8fb; color:var(--muted); font-size:11px; }
.storage-numbers strong { display:block; margin-bottom:4px; color:var(--text); font-size:15px; }
.plan-app-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.plan-app-card .card-header { align-items:center; }
.plan-app-card .card-header strong { font-size:16px; }
.featured-app { border:2px solid var(--primary); }
.clean-list { display:grid; gap:9px; padding:0; list-style:none; color:#686d82; font-size:13px; }
.clean-list li:before { content:'✓'; margin-right:8px; color:var(--green); font-weight:900; }
.plan-app-card textarea { width:100%; margin-top:10px; }
.platform-edit-card { margin-bottom:18px; border:2px solid #dcd7ff; }
.storage-admin-summary { display:flex; flex-wrap:wrap; gap:10px 30px; margin-bottom:15px; padding:13px; border-radius:10px; background:#f6f5fb; }
.mini-storage { min-width:145px; }
.mini-storage>div { height:6px; overflow:hidden; border-radius:8px; background:#e8eaf1; }
.mini-storage>div span { display:block; height:100%; background:var(--primary); }
.mini-storage small { display:block; margin-top:5px; color:var(--muted); font-size:10px; }
.enquiry-list { display:grid; gap:12px; padding:16px; }
.enquiry-card { padding:18px; border:1px solid var(--line); border-radius:13px; }
.enquiry-head,.enquiry-meta,.inline-form { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.enquiry-head { justify-content:space-between; }
.enquiry-head strong,.enquiry-head span { display:block; }
.enquiry-head span { margin-top:3px; color:var(--muted); font-size:11px; }
.enquiry-meta { margin-top:11px; color:var(--muted); font-size:12px; }
.enquiry-meta>*:not(:last-child):after { content:'·'; margin-left:10px; }
.enquiry-card p { color:#555a6e; line-height:1.6; }
.inline-form select { min-width:130px; }
button:disabled { opacity:.45; cursor:not-allowed; }

@media (max-width:1050px) {
    .hero-grid,.split-section,.contact-layout { grid-template-columns:1fr; }
    .hero-copy { text-align:center; }
    .hero-copy h1,.hero-lead { margin-left:auto; margin-right:auto; }
    .hero-actions,.hero-trust { justify-content:center; }
    .product-preview { max-width:720px; margin:0 auto; }
    .feature-grid { grid-template-columns:repeat(2,1fr); }
    .pricing-grid,.plan-app-grid { grid-template-columns:1fr; max-width:720px; margin-left:auto; margin-right:auto; }
    .price-card.featured { transform:none; }
    .billing-hero { grid-template-columns:1fr; }
    .footer-grid { grid-template-columns:1.5fr repeat(2,1fr); }
}
@media (max-width:760px) {
    .public-container { width:min(100% - 28px,1180px); }
    .public-menu-button { display:block; }
    .public-links { display:none; position:absolute; top:76px; left:14px; right:14px; align-items:stretch; flex-direction:column; gap:4px; padding:15px; border:1px solid #e4e5ed; border-radius:14px; background:#fff; box-shadow:0 20px 45px rgba(30,32,48,.14); }
    .public-links.open { display:flex; }
    .public-links a { padding:10px; }
    .hero-section { padding:58px 0 64px; }
    .hero-copy h1,.public-page-hero h1 { font-size:41px; }
    .preview-window { min-height:390px; grid-template-columns:48px 1fr; }
    .preview-sidebar { padding:15px 9px; }
    .preview-logo { width:30px; height:30px; }
    .preview-sidebar span { width:20px; }
    .preview-main { padding:15px; }
    .preview-stats { grid-template-columns:1fr 1fr; }
    .preview-stats article:last-child { display:none; }
    .preview-content { grid-template-columns:1fr; }
    .preview-storage { display:none; }
    .public-section { padding:68px 0; }
    .feature-grid,.faq-grid { grid-template-columns:1fr; }
    .cta-card { align-items:flex-start; flex-direction:column; padding:32px 25px; }
    .footer-grid { grid-template-columns:1fr 1fr; }
    .footer-grid>div:first-child { grid-column:1/-1; }
    .storage-numbers { grid-template-columns:1fr; }
}
@media (max-width:520px) {
    .hero-copy h1,.public-page-hero h1 { font-size:36px; }
    .hero-actions .button,.cta-card .button { width:100%; justify-content:center; }
    .product-preview { margin-left:-8px; margin-right:-8px; }
    .preview-top button { display:none; }
    .footer-grid { grid-template-columns:1fr; }
    .footer-grid>div:first-child { grid-column:auto; }
}

/* v3 plan usage: customer-record and uploaded-file allowances */
.sidebar-storage .storage-meter + .storage-meter { margin-top:11px; }
.usage-summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.usage-summary-grid span { padding:12px; border-radius:10px; background:#f7f8fb; color:var(--muted); font-size:11px; }
.usage-summary-grid strong { display:block; margin-bottom:4px; color:var(--text); font-size:15px; }
.quota-strip { margin-bottom:18px; padding:16px 18px; }
.quota-strip .storage-meter { margin-bottom:0; }
.quota-strip p { margin:9px 0 0; }
.quota-overview { display:grid; grid-template-columns:minmax(150px,.7fr) minmax(300px,1.5fr) auto; gap:24px; align-items:center; padding:20px; }
.quota-overview h3 { margin:0 0 5px; }
.quota-overview p { margin:0; }
.quota-overview-meters { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.quota-overview-meters .storage-meter { margin:0; }
.mini-storage.storage-warning>div span { background:#d99a2b; }
.mini-storage.storage-danger>div span { background:#dc4c64; }

@media (max-width:900px) {
    .usage-summary-grid { grid-template-columns:1fr 1fr; }
    .quota-overview { grid-template-columns:1fr; }
    .quota-overview-meters { grid-template-columns:1fr; }
}

/* v4 invoice branding, generated PDFs and launch legal pages */
.invoice-logo-preview { display:flex; align-items:center; gap:14px; margin:8px 0 12px; padding:12px; border:1px solid var(--line); border-radius:11px; background:#fafbfc; }
.invoice-logo-preview img { display:block; max-width:170px; max-height:70px; object-fit:contain; }
.invoice-logo-preview div { display:grid; gap:3px; }
.field-help { display:block; margin-top:7px; color:var(--muted); font-size:11px; line-height:1.5; }
.compact-check { margin:8px 0 10px; }
.invoice-pdf-note { margin-bottom:18px; }
.legal-copy h3 { margin:26px 0 8px; font-size:17px; }
.legal-copy ul { display:grid; gap:8px; padding-left:22px; color:#62677c; line-height:1.7; }
.legal-copy li::marker { color:var(--primary); }
.legal-table-wrap { overflow-x:auto; margin:18px 0; border:1px solid #e3e5ed; border-radius:13px; }
.legal-table { width:100%; border-collapse:collapse; background:#fff; }
.legal-table th,.legal-table td { padding:14px 16px; border-bottom:1px solid #e8eaf1; text-align:left; vertical-align:top; line-height:1.6; }
.legal-table th { background:#f6f5fb; color:#33364a; font-size:12px; }
.legal-table td { color:#62677c; font-size:13px; }
.legal-table tr:last-child td { border-bottom:0; }

/* v5 audit history and authentication security logs */
.audit-filter-card { margin-bottom:18px; }
.audit-filters { display:grid; grid-template-columns:minmax(180px,1.4fr) repeat(5,minmax(130px,1fr)); gap:12px; align-items:end; }
.audit-filter-actions { display:flex; gap:8px; align-items:center; }
.audit-list { display:grid; }
.audit-event { padding:18px 20px; border-bottom:1px solid var(--line); }
.audit-event:last-child { border-bottom:0; }
.audit-event-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.audit-event-head>div { display:flex; flex-wrap:wrap; gap:8px 10px; align-items:center; }
.audit-event-head time { flex:0 0 auto; color:var(--muted); font-size:12px; }
.audit-meta { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:10px; color:var(--muted); font-size:12px; }
.audit-details { margin-top:12px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.audit-details>summary,.audit-raw>summary { padding:10px 12px; cursor:pointer; color:var(--primary); font-weight:700; font-size:12px; }
.audit-details[open] { padding-bottom:12px; }
.audit-change-list { display:grid; gap:8px; padding:0 12px 4px; }
.audit-change { display:grid; grid-template-columns:minmax(130px,.45fr) 1fr; gap:12px; padding:9px 0; border-top:1px solid #eceef3; }
.audit-change>strong { font-size:12px; }
.audit-change>div { display:grid; grid-template-columns:1fr auto 1fr; gap:9px; align-items:start; color:#5e6375; font-size:12px; }
.audit-change b { color:var(--primary); }
.audit-raw { margin:8px 12px 0; border-top:1px solid #e6e8ef; }
.audit-raw h5 { margin:12px 0 5px; }
.audit-raw pre { max-height:360px; overflow:auto; margin:0 0 10px; padding:12px; border-radius:8px; background:#202332; color:#f4f5f8; font-size:11px; line-height:1.55; white-space:pre-wrap; word-break:break-word; }
.audit-details>p { padding:0 12px; }
.audit-user-agent { min-width:220px; max-width:420px; color:var(--muted); font-size:11px; line-height:1.45; }
.pagination { display:flex; justify-content:flex-end; align-items:center; gap:10px; padding:14px 18px; border-top:1px solid var(--line); }
.pagination span { color:var(--muted); font-size:12px; }
.tiny { font-size:10px!important; }
code { padding:3px 6px; border-radius:5px; background:#f0f1f5; color:#3d4153; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:11px; }
@media (max-width:1150px) { .audit-filters { grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px) { .audit-filters { grid-template-columns:1fr; } .audit-event-head { flex-direction:column; } .audit-change { grid-template-columns:1fr; } }

/* Customer record management */
.record-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.record-tab { display:inline-flex; align-items:center; gap:8px; padding:9px 13px; border:1px solid var(--border); border-radius:10px; color:var(--muted); background:#fff; font-size:13px; font-weight:800; }
.record-tab span { min-width:24px; padding:2px 7px; border-radius:20px; background:#f0f1f6; color:#676c80; text-align:center; font-size:11px; }
.record-tab:hover,.record-tab.active { border-color:#cfc5ff; color:var(--primary); background:#f3f0ff; }
.record-tab.active span { color:#fff; background:var(--primary); }
.bulk-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:13px 15px; border-bottom:1px solid var(--border); background:#fafafe; }
.bulk-toolbar-summary { display:flex; align-items:baseline; flex-wrap:wrap; gap:10px; }
.bulk-toolbar-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.bulk-toolbar-actions select { min-width:210px; }
.select-column { width:42px; text-align:center; }
.select-column input { width:17px; height:17px; cursor:pointer; }
.selectable-table tbody tr { transition:background .15s ease; }
.selectable-table tbody tr.row-selected { background:#f1eeff; }
.selectable-table tbody tr.row-archived:not(.row-selected) { background:#fafafa; }
.selectable-table tbody tr.row-archived td { color:#767b8c; }
.row-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.pagination-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:14px 16px; border-top:1px solid var(--border); }
.pagination-links { display:flex; align-items:center; gap:9px; }
.pagination-current { color:var(--muted); font-size:12px; font-weight:800; }
.record-actions-card .card-header p { margin:5px 0 0; }
.record-actions-row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.danger-dialog { width:min(590px,calc(100vw - 30px)); padding:0; border:0; border-radius:18px; background:transparent; box-shadow:0 30px 90px rgba(29,22,44,.32); }
.danger-dialog::backdrop { background:rgba(23,20,35,.6); backdrop-filter:blur(3px); }
.danger-dialog-card { padding:28px; border:1px solid #f1ccd3; border-radius:18px; background:#fff; }
.danger-dialog-card h2 { margin:13px 0 10px; font-size:23px; letter-spacing:-.025em; }
.danger-dialog-card>p { color:var(--muted); line-height:1.6; }
.danger-dialog-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:50%; color:#fff; background:var(--red); font-size:22px; font-weight:900; }
.danger-dialog .form-actions { margin-top:22px; }
.danger-dialog [hidden] { display:none!important; }

@media (max-width:720px) {
    .bulk-toolbar,.pagination-bar { align-items:stretch; flex-direction:column; }
    .bulk-toolbar-actions { width:100%; }
    .bulk-toolbar-actions select { min-width:0; flex:1; }
    .pagination-links { justify-content:space-between; }
    .row-actions { justify-content:flex-start; }
}
