:root {
  --bg: #f4f2fb;
  --surface: #ffffff;
  --surface-2: #f9f8fd;
  --text: #1e1a2b;
  --muted: #706b7c;
  --line: #e7e2f0;
  --primary: #6d35d4;
  --primary-2: #8b5cf6;
  --primary-dark: #4c1d95;
  --success: #12805c;
  --warning: #ad6800;
  --danger: #c9384f;
  --info: #2764c7;
  --shadow: 0 18px 55px rgba(45, 27, 78, .09);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; background: linear-gradient(180deg, #24113f 0%, #171024 100%); color: #fff; display: flex; flex-direction: column; z-index: 40; box-shadow: 14px 0 40px rgba(23,16,36,.15); }
.brand { height: 82px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; font-size: 22px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #8b5cf6, #d946ef); box-shadow: 0 9px 25px rgba(139,92,246,.35); }
.brand strong { display: block; font-size: 18px; letter-spacing: -.3px; }
.brand small { display: block; margin-top: 2px; color: #bfb4cf; font-size: 11px; }
.nav-list { padding: 18px 13px; flex: 1; overflow-y: auto; }
.nav-label { display: block; padding: 13px 12px 7px; color: #9589a8; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px; color: #d9d2e3; margin: 3px 0; font-weight: 600; transition: .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(139,92,246,.92), rgba(109,53,212,.78)); box-shadow: 0 9px 20px rgba(49,25,93,.32); }
.nav-item.danger { color: #ffb7c3; }
.nav-icon { width: 24px; text-align: center; font-size: 17px; }
.sidebar-footer { padding: 12px 13px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-close { display: none; margin-left: auto; color: #fff; }
.main-shell { margin-left: 270px; width: calc(100% - 270px); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 82px; display: flex; align-items: center; gap: 18px; padding: 0 28px; background: rgba(255,255,255,.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-title { min-width: 0; }
.topbar-title > span { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.topbar-title small { color: var(--muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.site-switcher select { max-width: 270px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.user-chip strong, .user-chip small { display: block; white-space: nowrap; }
.user-chip small { color: var(--muted); font-size: 11px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #ede7fb; color: var(--primary); font-weight: 800; }
.content { flex: 1; padding: 28px; max-width: 1600px; width: 100%; margin: 0 auto; }
.app-footer { padding: 18px 28px 24px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.sidebar-toggle { display: none; }
.icon-btn { border: 0; background: transparent; width: 38px; height: 38px; border-radius: 10px; font-size: 20px; }
.icon-btn:hover { background: var(--surface-2); }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 25px; letter-spacing: -.6px; }
.page-head p { margin: 5px 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(35,22,58,.045); }
.card-header { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header h2, .card-header h3 { margin: 0; font-size: 16px; }
.card-body { padding: 20px; }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stat-card { padding: 20px; position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: rgba(109,53,212,.08); right: -25px; top: -28px; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.stat-value { font-size: 28px; font-weight: 850; margin-top: 7px; letter-spacing: -.8px; }
.stat-note { margin-top: 5px; color: var(--muted); font-size: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.quick-action { border: 1px solid var(--line); border-radius: 14px; padding: 17px; background: var(--surface-2); color: var(--text); transition: .18s; }
.quick-action:hover { transform: translateY(-2px); border-color: #c9b8eb; box-shadow: var(--shadow); color: var(--primary-dark); }
.quick-action strong { display: block; margin-bottom: 4px; }
.quick-action span { color: var(--muted); font-size: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; min-height: 40px; padding: 9px 15px; font-weight: 750; transition: .16s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 9px 20px rgba(109,53,212,.2); }
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { color: var(--primary); border-color: #cabbed; }
.btn-danger { background: #fff3f5; color: var(--danger); border-color: #f3c7cf; }
.btn-success { background: #eefaf6; color: var(--success); border-color: #bee9d9; }
.btn-sm { min-height: 32px; padding: 6px 10px; border-radius: 8px; font-size: 12px; }
.btn-block { width: 100%; }
label { display: block; color: #3a3445; font-weight: 700; font-size: 12px; }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid #ddd6e8; border-radius: 10px; background: #fff; color: var(--text); padding: 10px 12px; outline: 0; transition: .16s; margin-top: 6px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #9c78df; box-shadow: 0 0 0 3px rgba(109,53,212,.11); }
input[type="checkbox"] { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: var(--primary); }
.checkbox { display: flex; gap: 9px; align-items: flex-start; font-weight: 600; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-grid { display: grid; gap: 15px; }
.form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.form-section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section h2 { font-size: 15px; margin: 0 0 14px; }
.help { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; font-weight: 500; }
.input-group { display: flex; gap: 8px; align-items: flex-end; }
.input-group > label { flex: 1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: var(--surface-2); color: #5f5869; font-size: 11px; text-transform: uppercase; letter-spacing: .55px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
code { padding: 3px 6px; border-radius: 6px; background: #f0ecf7; color: #4b2a84; font-size: 12px; }
.alert { padding: 13px 15px; border-radius: 11px; margin-bottom: 16px; border: 1px solid; transition: opacity .5s, transform .5s; }
.alert ul { margin: 7px 0 0 18px; padding: 0; }
.alert-success { color: #096645; background: #ecfaf4; border-color: #b7e7d5; }
.alert-danger { color: #92263a; background: #fff1f3; border-color: #f3c1ca; }
.alert-warning { color: #815000; background: #fff8e9; border-color: #f2d8a2; }
.alert-info { color: #1f559f; background: #eef5ff; border-color: #bfd6f6; }
.fade-out { opacity: 0; transform: translateY(-5px); }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .45px; background: #eeeaf4; color: #625b6d; }
.badge-active, .badge-success, .badge-completed, .badge-open { background: #e8f8f1; color: #0c7551; }
.badge-suspended, .badge-failed, .badge-danger, .badge-closed { background: #fff0f2; color: #b02d43; }
.badge-warning, .badge-pending, .badge-in_progress, .badge-planned { background: #fff6e5; color: #9a5c00; }
.muted { color: var(--muted); }
.empty-state { text-align: center; padding: 45px 20px; color: var(--muted); }
.empty-state strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 5px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { font-weight: 700; }
.file-name { display: flex; align-items: center; gap: 9px; min-width: 220px; }
.file-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #eee8fa; color: var(--primary); }
.editor { font-family: "SFMono-Regular", Consolas, monospace; min-height: 520px; font-size: 13px; line-height: 1.55; tab-size: 4; }
.progress { height: 9px; border-radius: 999px; background: #ece8f1; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--primary),var(--primary-2)); }
.auth-page { display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(circle at 15% 15%, rgba(139,92,246,.18), transparent 34%), radial-gradient(circle at 85% 80%, rgba(217,70,239,.12), transparent 35%), #f6f3fb; }
.auth-shell, .setup-shell { width: min(440px,100%); }
.setup-shell { width: min(830px,100%); }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 20px; }
.auth-brand small { color: var(--muted); }
.auth-card { padding: 28px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 7px; font-size: 25px; letter-spacing: -.5px; }
.auth-card label { margin-top: 15px; }
.setup-card { padding: 32px; }
.success-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: #e7f8f0; color: var(--success); font-size: 30px; font-weight: 900; }
.info-list { display: grid; gap: 10px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.api-status { display: inline-flex; align-items: center; gap: 7px; }
.api-dot { width: 9px; height: 9px; border-radius: 50%; background: #a59eae; }
.api-dot.online { background: #18a572; box-shadow: 0 0 0 4px rgba(24,165,114,.12); }
.api-dot.offline { background: #d34458; box-shadow: 0 0 0 4px rgba(211,68,88,.12); }
.module-card { padding: 20px; }
.module-card h3 { margin: 0 0 7px; }
.module-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.modal-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.55fr); gap: 18px; }
@media (max-width: 1180px) {
  .grid.cols-4, .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .modal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-102%); transition: .22s ease; width: min(290px,88vw); }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(18,11,28,.55); z-index: 35; }
  .sidebar-open .sidebar-overlay { display: block; }
  .sidebar-close, .sidebar-toggle { display: inline-grid; place-items: center; }
  .main-shell { margin-left: 0; width: 100%; }
  .topbar { padding: 0 16px; height: 70px; }
  .user-chip > div, .site-switcher { display: none; }
  .content { padding: 19px 15px; }
  .app-footer { padding: 16px; flex-direction: column; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .quick-grid { grid-template-columns: 1fr; }
  .form-grid.two, .form-grid.three, .checkbox-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
}
@media (max-width: 520px) {
  .auth-card, .setup-card { padding: 21px; }
  .topbar-title > span { font-size: 17px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
}

/* Existing Projects importer */
.badge-ready, .badge-imported { background: #e8f8f1; color: #0c7551; }
.badge-alias { background: #f1eef8; color: #65567f; }
.checkbox.disabled { opacity: .55; cursor: not-allowed; }
.project-import-list details > summary::-webkit-details-marker { display: none; }
.project-import-list details[open] > summary { border-bottom: 1px solid var(--line); }

/* D-Panel 2.0 interface */
:root { --surface-3:#f2eff8; --sidebar:#1b102b; --sidebar-2:#281244; --focus:rgba(124,58,237,.16); }
body { letter-spacing:-.005em; }
.content { padding:32px; }
.page-head { padding:2px 0 4px; align-items:center; }
.page-head h1 { font-size:clamp(24px,2.2vw,34px); line-height:1.15; }
.page-head p { max-width:760px; line-height:1.6; }
.eyebrow { display:block; margin-bottom:7px; color:var(--primary); font-size:10px; font-weight:900; letter-spacing:1.5px; text-transform:uppercase; }
.card { transition:border-color .18s ease,box-shadow .18s ease; }
.card:hover { border-color:#ddd4ec; }
.card-header > div > p { margin:5px 0 0; }
.top-gap { margin-top:20px; }.top-gap-sm { margin-top:12px; }.stack-sm { display:grid; gap:7px; justify-items:start; }.align-end { align-self:end; }
.card-divider { border-top:1px solid var(--line); }
.form-grid.five { grid-template-columns:repeat(5,minmax(0,1fr)); }.form-grid.six { grid-template-columns:repeat(6,minmax(0,1fr)); }
.input-prefix { display:flex; align-items:center; margin-top:6px; border:1px solid #ddd6e8; border-radius:10px; background:#fff; overflow:hidden; }
.input-prefix span { padding:0 0 0 12px; color:var(--muted); font-family:ui-monospace,SFMono-Regular,Consolas,monospace; white-space:nowrap; }
.input-prefix input { margin:0;border:0;box-shadow:none!important; }
.btn-warning { background:#fff7e7;color:#8c5700;border-color:#efd095; }.btn-ghost { background:transparent;color:#ddd6e8;border-color:rgba(255,255,255,.12); }.btn-ghost:hover{color:#fff;background:rgba(255,255,255,.08);}
.badge-disabled,.badge-error,.badge-expired,.badge-overdue,.badge-unpaid { background:#fff0f2;color:#af2e43; }.badge-paid {background:#e8f8f1;color:#0c7551}.badge-partial{background:#fff6e5;color:#9a5c00}.badge-draft{background:#efedf4;color:#5e5868}
.definition-list { display:grid; gap:0; }.definition-list>div { display:grid;grid-template-columns:minmax(130px,.45fr) 1fr;gap:15px;padding:12px 0;border-bottom:1px solid var(--line); }.definition-list>div:last-child{border:0}.definition-list span{color:var(--muted)}
.checklist { display:grid;gap:11px;line-height:1.5; }
.code-wrap { display:inline-block;max-width:100%;white-space:normal;word-break:break-all;line-height:1.6; }
.cron-grid { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px; }
.popover-form { min-width:300px;max-width:420px;padding:14px;margin-top:8px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);display:grid;gap:11px;position:relative;z-index:10; }
details>summary { list-style:none; }details>summary::-webkit-details-marker{display:none}
.wide { max-width:100%; }.wide table{min-width:900px}.null{color:#9b94a6;font-style:italic}.db-cell{max-width:320px;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;}
.db-browser { display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start; }.db-sidebar{position:sticky;top:102px;max-height:calc(100vh - 130px);overflow:hidden}.db-table-list{overflow:auto;max-height:calc(100vh - 205px);padding:8px}.db-table-list a{display:flex;justify-content:space-between;gap:8px;padding:9px 10px;border-radius:9px;color:var(--text);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}.db-table-list a:hover,.db-table-list a.active{background:#eee8fa;color:var(--primary-dark)}.db-table-list small{color:var(--muted)}.db-main{min-width:0}.tabs{display:flex;gap:5px;padding:5px;margin-bottom:14px;background:#eae5f2;border-radius:12px;width:max-content;max-width:100%;overflow:auto}.tabs a{padding:9px 14px;border-radius:8px;color:var(--muted);font-weight:800;white-space:nowrap}.tabs a.active{background:#fff;color:var(--primary);box-shadow:0 4px 12px rgba(45,27,78,.08)}.sql-editor{min-height:300px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.55;background:#171421;color:#ece6f7;border-color:#2d263b}.pagination{display:flex;gap:6px;padding:15px;justify-content:flex-end}.pagination a{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:#fff}.pagination a.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.metric-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px; }.metric{padding:21px;background:linear-gradient(145deg,#fff,#faf8fd);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 28px rgba(35,22,58,.045);position:relative;overflow:hidden}.metric:after{content:'';position:absolute;right:-30px;top:-35px;width:100px;height:100px;border-radius:50%;background:rgba(109,53,212,.06)}.metric span,.metric small{display:block;color:var(--muted)}.metric strong{display:block;font-size:28px;margin:8px 0 4px;letter-spacing:-.7px}
.module-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px; }.module-card{padding:22px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 9px 30px rgba(35,22,58,.05);display:grid;gap:16px;align-content:start}.module-card h2{font-size:17px;margin:0 0 6px}.module-card p{margin:0;color:var(--muted);line-height:1.55}.module-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#ede7fb,#f8e9fb);color:var(--primary);font-weight:900}.module-card.disabled{opacity:.65}
.credential-card { display:grid;gap:16px;padding:20px;margin-bottom:18px;border:1px solid #cdbcf0;border-radius:var(--radius);background:linear-gradient(145deg,#fff,#f9f5ff);box-shadow:var(--shadow); }.credential-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.credential-grid>div{padding:13px;border-radius:11px;background:#fff;border:1px solid var(--line)}.credential-grid span,.credential-grid strong{display:block}.credential-grid span{font-size:11px;color:var(--muted);margin-bottom:5px}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.segmented{display:flex;gap:6px;padding:5px;background:#ece7f4;border-radius:12px;width:max-content;max-width:100%;margin-bottom:16px}.segmented label{margin:0}.segmented input{position:absolute;opacity:0;pointer-events:none}.segmented span{display:block;padding:9px 13px;border-radius:8px;color:var(--muted)}.segmented input:checked+span{background:#fff;color:var(--primary);box-shadow:0 4px 12px rgba(35,22,58,.09)}
.project-list{display:grid;gap:12px}.project-item{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.code-editor-shell{border-radius:16px;overflow:hidden;background:#171421;border:1px solid #30283e;box-shadow:0 20px 50px rgba(20,12,34,.22)}.editor-toolbar{min-height:54px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#211b2d;border-bottom:1px solid #342b44}.editor-file-chip{display:flex;align-items:center;gap:8px;color:#d8cfe5;font-size:11px}.status-dot{width:8px;height:8px;border-radius:50%;background:#31cf91;box-shadow:0 0 0 4px rgba(49,207,145,.12)}.CodeMirror{height:min(68vh,760px)!important;font-size:13px;line-height:1.55;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace}.editor-status{display:flex;justify-content:space-between;gap:15px;padding:9px 14px;color:#9f94b0;background:#211b2d;border-top:1px solid #342b44;font-size:11px}.revision-card{margin-top:18px}.editor-head{align-items:flex-end}kbd{font-size:10px;padding:2px 4px;border-radius:4px;background:rgba(255,255,255,.16);font-weight:500}
.invoice-sheet{max-width:950px;margin:0 auto;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;padding:42px}.invoice-sheet header{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid var(--text);padding-bottom:25px}.invoice-sheet header h1{display:inline-block;margin:0 0 0 8px}.invoice-sheet header p{margin:5px 0 0;color:var(--muted)}.invoice-title{text-align:right}.invoice-title strong,.invoice-title span{display:block}.invoice-title strong{font-size:26px}.invoice-meta{display:grid;grid-template-columns:1fr 280px;gap:30px;padding:28px 0}.invoice-meta span,.invoice-meta strong{display:block;margin-bottom:5px}.invoice-meta span{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.6px}.invoice-totals{display:flex;justify-content:flex-end;padding-top:20px}.invoice-totals>div{display:grid;grid-template-columns:150px 150px;gap:8px;text-align:right}.invoice-totals span{color:var(--muted)}.invoice-notes{margin-top:26px;padding:18px;background:var(--surface-2);border-radius:12px}
@media(max-width:1250px){.form-grid.six,.form-grid.five{grid-template-columns:repeat(3,minmax(0,1fr))}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.content{padding:20px 16px}.db-browser{grid-template-columns:1fr}.db-sidebar{position:static;max-height:300px}.db-table-list{max-height:230px}.cron-grid,.form-grid.six,.form-grid.five{grid-template-columns:repeat(2,minmax(0,1fr))}.module-grid{grid-template-columns:1fr}.invoice-sheet{padding:24px}.invoice-meta{grid-template-columns:1fr}.editor-toolbar,.editor-status{align-items:flex-start;flex-direction:column}.credential-grid{grid-template-columns:1fr}}
@media(max-width:560px){.metric-grid,.cron-grid,.form-grid.six,.form-grid.five{grid-template-columns:1fr}.invoice-sheet{padding:18px;border-radius:12px}.invoice-sheet header{flex-direction:column}.invoice-title{text-align:left}.invoice-totals>div{grid-template-columns:1fr 1fr;width:100%}.segmented{width:100%;flex-direction:column}.segmented span{text-align:center}.topbar-actions{gap:7px}.user-chip{padding-left:7px}.page-head .actions .btn{width:100%}}
@media print{.sidebar,.topbar,.app-footer,.no-print{display:none!important}.main-shell{margin:0;width:100%}.content{padding:0;max-width:none}.invoice-sheet{box-shadow:none;border:0;max-width:none;padding:0}.app-body{background:#fff}}
.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:15px}.section-title h2,.section-title h3{margin:0}.section-title p{margin:0;color:var(--muted)}.permissions-grid{margin-top:16px;padding:15px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px}.checkbox-grid.compact{gap:8px}.checkbox-grid.compact .checkbox{padding:8px;border:1px solid var(--line);border-radius:9px;background:#fff}.form-card{max-width:1180px}.project-item>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px;cursor:pointer}.project-item>summary strong,.project-item>summary small{display:block}.project-item>summary small{margin-top:5px;color:var(--muted)}.project-item-body{padding:18px}.project-import-list,.project-list{padding:12px}.form-section h4{margin:0 0 10px}.login-note{padding:12px;background:var(--surface-2);border-radius:10px}.no-margin{margin:0}
