:root {
    --navy: #0b1f3a;
    --navy-2: #14315c;
    --gold: #c5922c;
    --ink: #1c2430;
    --muted: #5c6778;
    --line: #e4e8ef;
    --paper: #f6f7fa;
    --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Source Sans 3", sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 20px; }
.site-header { background: #fff; color: var(--navy); position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--gold); box-shadow: 0 8px 24px rgba(11, 31, 58, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; min-height: 88px; flex-wrap: wrap; }
.brand { text-decoration: none; }
.brand-logo { height: 68px; width: auto; display: block; }
.nav-links { display: flex; gap: 16px 22px; align-items: center; flex-wrap: wrap; min-width: 0; }
.nav-links a { color: var(--navy); text-decoration: none; font-size: 16px; font-weight: 700; }
.nav-links a.button { background: var(--gold); color: #1a1408; padding: 10px 18px; }
.hero {
    background:
        linear-gradient(105deg, rgba(8, 22, 44, .88) 0%, rgba(8, 22, 44, .62) 48%, rgba(8, 22, 44, .28) 100%),
        url("../sitepad-data/uploads/2022/09/home-header01.jpg") center 30% / cover no-repeat;
    color: white;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 72px 0;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .button { background: var(--gold); color: #1a1408; }
.hero .button.light { background: white; color: var(--navy); }
.hero-card { background: rgba(255,255,255,.96); padding: 8px 8px 16px; }
.hero-item { display: block; padding: 14px 16px; border-radius: 12px; }
.hero-item:hover { background: #f4f7fb; }
.hero-item strong { display: block; font-family: Fraunces, serif; font-size: 18px; margin-bottom: 4px; }
.hero-item span, .text-link { color: var(--muted); font-size: 14px; }
.text-link { display: inline-block; margin: 8px 16px 0; font-weight: 700; color: var(--navy); }
.statbar { background: #fff; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats div { padding: 22px 18px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-family: Fraunces, serif; font-size: 28px; color: var(--navy); }
.stats span { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.event-card { border-top: 4px solid var(--navy); }
.event-zoom { border-top-color: #1d4e89; }
.event-online { border-top-color: var(--gold); }
.band { background: #fff; padding: 0 0 72px; }
.band-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.band-grid img { width: 100%; height: 420px; object-fit: cover; border-radius: 18px; }
.band-steps { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 10px; }
.band-steps li { color: var(--muted); line-height: 1.5; }
.band-steps b { color: var(--navy); }
.page-banner { background: var(--navy); color: white; padding: 48px 0 40px; }
.page-banner h1 { margin: 6px 0 0; font-size: clamp(36px, 4vw, 52px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 28px; }
.footer-logo { height: 58px; width: auto; background: white; border-radius: 10px; padding: 6px 8px; }
.site-footer strong { display: block; color: white; margin-bottom: 8px; }
.site-footer a, .site-footer p { display: block; margin: 0 0 8px; }
.kicker { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
h1, h2, h3 { font-family: Fraunces, serif; font-weight: 560; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin: 8px 0 16px; }
.lede { font-size: 20px; line-height: 1.5; max-width: 640px; color: #e7edf6; }
.hero-card, .card, .panel { background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; }
.hero-card { padding: 22px; }
.section { padding: 64px 0; }
.section h2 { font-size: 36px; margin: 0 0 8px; }
.grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: 1.2fr .8fr; }
.card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card .button { margin-top: auto; align-self: flex-start; }
.card p, .panel p { color: var(--muted); line-height: 1.55; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; background: #eef3f8; color: var(--navy); }
.pill.gold { background: #f8efd8; color: #7a5a10; }
.button, button.button { display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: white; text-decoration: none; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 700; cursor: pointer; }
.button.light { background: white; color: var(--navy); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.filters a { text-decoration: none; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 12px; }
.filters a.active { background: var(--navy); color: white; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: white; }
input[type="checkbox"], input[type="radio"] { width: auto; margin-right: 8px; }
.field { margin-bottom: 14px; }
.flash { background: #e8f6ee; color: #0d5c32; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 8px; }
.flash i { font-size: 18px; line-height: 1.3; }
.error { color: #9b2330; font-size: 14px; }
.site-footer { background: var(--navy); color: #d5deea; padding: 36px 0; }
.site-footer a { color: white; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: white; border-radius: 16px; padding: 18px; border: 1px solid var(--line); }
.step b { display: block; color: var(--gold); font-family: Fraunces, serif; font-size: 28px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-bar { background: var(--navy); color: white; }
.admin-bar .wrap { display: flex; gap: 16px; align-items: center; min-height: 64px; }
.admin-bar a { color: white; text-decoration: none; }
.certificate { background: white; border: 8px solid var(--navy); padding: 48px; text-align: center; }
.certificate h1 { color: var(--navy); }
@media (max-width: 800px) {
    .hero-grid, .grid-2, .steps, .band-grid, .footer-grid, .stats { grid-template-columns: minmax(0, 1fr); }
    .stats div { border-right: 0; border-bottom: 1px solid var(--line); }
    .nav { display: block; min-height: 0; padding: 12px 0; }
    .brand-logo { height: 48px; }
    .nav-links { width: 100%; margin-top: 8px; gap: 10px 14px; }
    .hero { min-height: 0; padding: 36px 0 28px; }
    h1 { font-size: 32px; }
    .lede { font-size: 17px; }
    .band-grid img { height: 240px; }
}

.studio-body { font-family: Poppins, "Source Sans 3", sans-serif; background: #f4f7fb; color: #1c2430; }
.studio { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 22px; min-height: 100vh; background: #f4f7fb; padding: 22px; align-items: start; }
.studio-side { background: #fff; color: #3d4a5c; border: 1px solid #d7e4f5; border-radius: 18px; padding: 18px 14px 16px; box-shadow: 0 12px 32px rgba(16, 40, 70, .05); position: sticky; top: 22px; max-height: calc(100vh - 44px); overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.studio-brand { display: block; padding: 4px 8px 16px; margin: 0 0 8px; border-bottom: 1px solid #e6ebf2; }
.studio-brand img { display: block; width: auto; max-width: 100%; height: 64px; object-fit: contain; object-position: left center; }
.studio-side-label { margin: 16px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8aa0b8; }
.studio-side a { color: #3d4a5c; text-decoration: none; min-height: 42px; padding: 10px 12px; border-radius: 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.studio-side a i { font-size: 20px; width: 22px; color: #1a73e8; flex: 0 0 22px; }
.studio-side a span { flex: 1; min-width: 0; }
.studio-side a.active, .studio-side a:hover { background: #e8f1fd; color: #0d4ea8; }
.side-group { display: grid; gap: 2px; }
.side-group summary { list-style: none; cursor: pointer; min-height: 42px; padding: 10px 12px; border-radius: 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; color: #3d4a5c; }
.side-group summary::-webkit-details-marker { display: none; }
.side-group summary .ph { font-size: 20px; width: 22px; color: #1a73e8; flex: 0 0 22px; }
.side-group summary span { flex: 1; }
.side-group summary .side-caret { margin-left: auto; width: auto; flex: 0 0 auto; font-size: 14px; color: #8aa0b8; transition: transform .15s ease; }
.side-group[open] summary .side-caret { transform: rotate(180deg); }
.side-group summary:hover, .side-group[open] > summary { background: #f4f7fb; color: #0d4ea8; }
.side-group a { min-height: 36px; margin-left: 18px; padding: 8px 12px; font-size: 14px; }
.course-media { display: flex; align-items: center; gap: 14px; margin: 12px 0 4px; }
.course-thumb { width: 148px; height: 96px; flex: 0 0 148px; border-radius: 14px; background: #e8f1fd; color: #1a73e8; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 28px; }
.course-thumb img, .course-row-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-row-thumb { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; }
.photo-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.photo-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1px solid #d7e4f5; background: #fff; color: #1a73e8; font-weight: 600; cursor: pointer; }
.check-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: #3d4a5c; }
.doc-list, #doc-adds { display: grid; gap: 8px; margin: 10px 0; }
.doc-row, .doc-add { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #d7e4f5; border-radius: 12px; background: #f7faff; }
.doc-row i { color: #1a73e8; font-size: 20px; }
.doc-row span, .doc-add { min-width: 0; }
.doc-row strong, .doc-row small { display: block; }
.doc-row strong { font-size: 14px; }
.doc-row small { font-size: 12px; color: #5c6778; }
.doc-row a { margin-left: auto; color: #0d4ea8; font-size: 13px; font-weight: 700; white-space: nowrap; }
.studio .doc-remove, .studio-page .doc-remove { width: 34px; height: 34px; min-height: 34px; padding: 0; border: 0; border-radius: 10px; background: #fdecef; color: #9b2330; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.doc-row .doc-remove i { color: #9b2330; font-size: 16px; width: auto; }
.doc-remove:hover { background: #c5363a; }
.doc-remove:hover i { color: #fff; }
.studio-swal { font-family: Poppins, sans-serif; border-radius: 18px; padding: 8px 8px 22px; }
.studio-swal .swal2-title { font-size: 20px; color: #1c2430; font-weight: 700; }
.studio-swal .swal2-html-container { font-size: 14px; color: #5c6778; }
.studio-swal .swal2-actions { gap: 10px; }
.studio-swal .button { min-height: 42px; padding: 8px 16px; border-radius: 10px; background: #1a73e8; color: #fff; border: 0; font-weight: 600; cursor: pointer; }
.studio-swal .button.light { background: #fff; color: #1a73e8; border: 1px solid #d7e4f5; }
.studio-swal .button.danger { background: #c5363a; color: #fff; }
.doc-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
.doc-add input { width: 100%; }
.studio-side a b { background: #e8f1fd; color: #1a73e8; border-radius: 999px; min-width: 22px; text-align: center; font-size: 12px; padding: 1px 7px; flex: 0 0 auto; }
.studio-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.studio-top { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; background: #fff; border: 1px solid #d7e4f5; border-radius: 18px; position: sticky; top: 22px; z-index: 30; overflow: visible; box-shadow: 0 12px 32px rgba(16, 40, 70, .04); }
.studio-burger { display: none; width: 44px; height: 44px; border: 1px solid #d7e4f5; border-radius: 10px; background: #fff; font-size: 22px; cursor: pointer; color: #0b1f3a; flex: 0 0 auto; }
.studio-top-title { flex: 0 0 auto; min-width: 132px; }
.studio-top-title p { margin: 0; color: #1a73e8; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.studio-top-title strong { display: block; font-family: Poppins, sans-serif; font-size: 20px; color: #1c2430; line-height: 1.2; }
.studio-search { position: relative; flex: 1 1 240px; min-width: 180px; }
.studio-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #1a73e8; }
.studio-search input { width: 100%; min-height: 44px; border-radius: 12px; background: #f4f7fb; border: 1px solid #d7e4f5; padding: 10px 14px 10px 40px; }
.studio-menu { position: relative; flex: 0 0 auto; }
.studio-menu summary { list-style: none; cursor: pointer; background: #f4f7fb; border: 1px solid #d7e4f5; border-radius: 12px; min-height: 44px; padding: 6px 12px; display: flex; align-items: center; gap: 8px; font-weight: 700; color: #1c2430; }
.studio-alerts summary { position: relative; width: 44px; height: 44px; padding: 0; justify-content: center; }
.studio-alerts summary b { position: absolute; top: 2px; right: 2px; }
.studio-menu summary::-webkit-details-marker { display: none; }
.studio-menu summary i { font-size: 20px; color: #1a73e8; }
.studio-menu summary b { background: #1a73e8; color: #fff; border-radius: 999px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 11px; padding: 0 5px; }
.studio-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; background: #fff; border: 1px solid #d7e4f5; border-radius: 14px; padding: 8px; box-shadow: 0 18px 44px rgba(16, 40, 70, .16); z-index: 40; }
.studio-pop-title { margin: 6px 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8aa0b8; }
.studio-pop-empty { margin: 4px 10px 8px; color: #5c6778; font-size: 14px; }
.studio-menu a, .studio-menu button { display: flex; align-items: flex-start; gap: 8px; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; font: inherit; cursor: pointer; color: #1c2430; font-weight: 600; border-radius: 10px; line-height: 1.4; white-space: normal; }
.studio-menu a:hover, .studio-menu button:hover { background: #e8f1fd; color: #0d4ea8; }
.studio-menu a i, .studio-menu button i { color: #1a73e8; font-size: 18px; flex: 0 0 18px; margin-top: 1px; }
.studio-alerts .studio-pop { width: 400px; padding: 0; border-radius: 16px; overflow: hidden; }
.studio-alerts .studio-pop-head, .studio-alerts .studio-pop-list { position: static; top: auto; right: auto; width: auto; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.studio-alerts .studio-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #e6eef8; }
.studio-alerts .studio-pop-title { margin: 0; font-size: 12px; letter-spacing: .08em; }
.studio-alerts .studio-pop-head > span { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #e8f1fd; color: #1a73e8; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.studio-alerts .studio-pop-list { display: grid; gap: 2px; padding: 8px; }
.studio-alerts .studio-pop a { align-items: center; gap: 12px; padding: 10px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.studio-alerts .studio-pop a span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.studio-alerts .studio-pop a strong { font-size: 14px; font-weight: 600; color: #1c2430; line-height: 1.3; }
.studio-alerts .studio-pop a small { font-size: 12px; font-weight: 500; color: #5c6778; line-height: 1.35; }
.studio-alerts .studio-pop a i { width: 36px; height: 36px; flex: 0 0 36px; margin: 0; border-radius: 10px; background: #e8f1fd; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.studio-alerts .studio-pop a i::before { line-height: 1; }
.studio-alerts .studio-pop a:hover { background: #f4f7fb; color: #1c2430; }
.studio-alerts .studio-pop a:hover strong { color: #0d4ea8; }
.studio-alerts .studio-pop a:hover small { color: #5c6778; }
.studio-alerts .studio-pop-empty { margin: 8px 10px; font-size: 13px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #1a73e8; color: #fff; display: inline-flex; align-items: center; justify-content: center; object-fit: cover; flex: 0 0 36px; }
.avatar svg { width: 18px; height: 18px; display: block; }
.studio-menu summary .avatar, .studio-menu summary .avatar i { color: #fff; }
.studio-user-name { display: flex; flex-direction: column; line-height: 1.2; max-width: 148px; }
.studio-user-name, .studio-user-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-user-name small { color: #5c6778; font-size: 11px; font-weight: 600; }
.studio-page { padding: 0; display: flex; flex-direction: column; gap: 18px; }
.studio-card, .studio-page .panel { background: #fff; border: 1px solid #d7e4f5; border-radius: 18px; padding: 20px 22px 22px; box-shadow: 0 12px 32px rgba(16, 40, 70, .04); }
.studio-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.studio-head h1, .studio-page h1 { margin: 0; font-size: 28px; font-family: Poppins, sans-serif; }
.studio-crumb { color: #8aa0b8; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; }
.studio-page h2 { font-size: 18px; margin: 0 0 14px; font-family: Poppins, sans-serif; }
.studio-panel h2:not(:first-child) { margin-top: 22px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dash-links { display: grid; gap: 12px; }
.dash-links h2 { margin: 0; font-size: 18px; }
.shortcut-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shortcut-row a { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 14px; background: #fff; border: 1px solid #d7e4f5; border-radius: 14px; color: #1c2430; font-weight: 600; font-size: 14px; }
.shortcut-row a i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: #e8f1fd; color: #1a73e8; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.shortcut-row a:hover { background: #f7faff; color: #0d4ea8; }
.chart-box { height: 260px; margin-top: 8px; }
.kpi { background: #fff; border: 1px solid #d7e4f5; border-radius: 16px; padding: 16px; color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; min-height: 104px; }
.kpi > i { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; background: #e8f1fd; color: #1a73e8; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.kpi-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kpi-copy b { display: block; font-family: Poppins, sans-serif; font-size: 22px; font-weight: 700; color: #1c2430; line-height: 1.15; }
.kpi-copy span, .kpi-copy strong { display: block; font-weight: 600; color: #3d4a5c; font-size: 14px; line-height: 1.35; }
.kpi-copy small { display: block; color: #5c6778; font-size: 12px; line-height: 1.4; }
.studio-note, .bar-label { color: #5c6778; font-size: 12px; line-height: 1.4; }
.studio-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #e8f1fd; color: #0d4ea8; border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-weight: 600; }
.studio-filter a { color: #0d4ea8; font-weight: 700; }
.studio-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 18px; align-items: start; }
.studio-panel { padding: 20px 22px; overflow: auto; }
.pipeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pipeline li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; padding: 0; }
.pipeline li > i { width: 42px; height: 42px; border-radius: 12px; background: #e8f1fd; color: #1a73e8; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }
.pipeline li > i::before { display: block; line-height: 1; }
.pipeline strong { display: block; margin: 0 0 2px; color: #1c2430; }
.pipeline small { display: block; color: #5c6778; font-size: 13px; font-weight: 500; line-height: 1.45; }
.bar { height: 8px; background: #e8f1fd; border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.bar span { display: block; height: 100%; background: #1a73e8; }
.studio-page table { width: 100%; border-collapse: collapse; }
.studio-page th, .studio-page td { text-align: left; padding: 12px 8px; border-bottom: 1px solid #e6ebf2; vertical-align: top; }
.studio-page th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8aa0b8; }
.studio-page td small { color: #5c6778; }
.studio .button, .studio button.button, .studio-page .button { background: #1a73e8; color: #fff; border-radius: 10px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.studio-page td a:not(.button) { color: #0d4ea8; font-weight: 700; }
.studio-feed { list-style: none; margin: 0; padding: 0; }
.studio-feed li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e6ebf2; }
.studio-feed li:last-child { border-bottom: 0; padding-bottom: 0; }
.studio-feed li:first-child { padding-top: 2px; }
.studio-feed > li > i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: #e8f1fd; color: #1a73e8; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.studio-feed-copy { min-width: 0; flex: 1; }
.studio-feed-copy a { display: block; font-size: 14px; font-weight: 600; color: #1c2430; line-height: 1.35; }
.studio-feed-copy a:hover { color: #0d4ea8; }
.studio-feed-copy small, .studio-feed-empty { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: #5c6778; line-height: 1.35; }
.studio-feed-empty { margin: 0; padding: 4px 0 0; }
.studio-feed-side { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.studio-feed-side b { min-width: 22px; text-align: right; font-size: 13px; font-weight: 600; color: #3d4a5c; }
.studio-feed .pill { font-size: 11px; font-weight: 600; padding: 3px 8px; }
.feed-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #1a73e8; color: #fff; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; }
.feed-avatar svg { width: 18px; height: 18px; display: block; }
.feed-tile { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: #e8f1fd; color: #1a73e8; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.row-pills { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-pills .cell-title { display: inline; }
.cell-message { display: block; max-width: 420px; font-size: 13px; font-weight: 500; color: #3d4a5c; line-height: 1.45; }
.studio-page .button.light, .studio .button.light { background: #fff; color: #1a73e8; border: 1px solid #d7e4f5; }
.brand-logo { height: 56px; width: auto; display: block; }
.dataTables_wrapper { width: 100%; font-size: 13px; color: #5c6778; }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { margin: 0 0 14px; }
.dataTables_wrapper .dataTables_filter { text-align: right; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { width: auto; border: 1px solid #d7e4f5; border-radius: 10px; background: #f4f7fb; min-height: 36px; padding: 6px 10px; margin-left: 8px; color: #1c2430; }
.dataTables_wrapper .dataTables_filter input { min-width: 180px; }
table.dataTable { width: 100% !important; border-collapse: collapse; border-bottom: 0; }
table.dataTable thead th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8aa0b8; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid #e6eef8; background: transparent; }
table.dataTable tbody td { padding: 14px 12px; border-bottom: 1px solid #eef3f8; font-size: 14px; color: #1c2430; vertical-align: middle; white-space: normal !important; }
table.dataTable.no-footer { border-bottom: 0; }
table.dataTable tbody tr:hover { background: #f7faff; }
table.dataTable td form { display: inline-flex; margin: 0; }
.person { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.person strong, .cell-title { display: block; font-size: 14px; font-weight: 600; color: #1c2430; line-height: 1.35; }
.person small, .cell-muted { display: block; font-size: 12px; font-weight: 500; color: #5c6778; line-height: 1.35; }
.cell-link { font-size: 13px; font-weight: 600; color: #0d4ea8; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.row-actions .button { min-height: 34px; padding: 6px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; border-radius: 8px; }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: 8px !important; border: 1px solid #d7e4f5 !important; background: #fff !important; color: #1c2430 !important; margin-left: 4px !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background: #1a73e8 !important; color: #fff !important; border-color: #1a73e8 !important; }
.studio-page .button.light { background: #fff; color: #1a73e8; border: 1px solid #d7e4f5; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 16px; align-items: start; }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.certificate .badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
table.dataTable thead th { text-align: left; }
@media (max-width: 1100px) {
    .studio-split { grid-template-columns: 1fr; }
    .studio-user-name { display: none; }
    .dash-kpis, .shortcut-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .studio { grid-template-columns: 1fr; }
    .studio-side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 40; top: 0; max-height: 100vh; border-radius: 0; transform: translateX(-105%); transition: transform .2s ease; overflow: auto; }
    body.studio-open .studio-side { transform: none; }
    body.studio-open .studio-backdrop { display: block; position: fixed; inset: 0; background: rgba(11, 31, 58, .45); z-index: 35; }
    .studio-burger { display: inline-flex; align-items: center; justify-content: center; }
    .studio-top { flex-wrap: wrap; }
    .studio-search { flex: 1 1 100%; }
}
@media (max-width: 640px) {
    .kpi-grid, .dash-kpis, .shortcut-row { grid-template-columns: 1fr; }
    .studio-page { padding: 14px; }
    .studio-head { align-items: stretch; flex-direction: column; }
    .studio-alerts .studio-pop { width: min(400px, calc(100vw - 28px)); }
}
@media print {
    .site-header, .site-footer, .no-print, form { display: none !important; }
    .certificate, .cert-sheet, .invoice-sheet { border-color: #0d2f6b; box-shadow: none; }
    .invoice-band, .invoice-status, .pay-note, .cert-sheet, .cert-seal { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.studio-form { display: flex; flex-direction: column; gap: 18px; }
.finance-grid, .field-grid, .style-picks { display: grid; gap: 16px; }
.finance-grid, .style-picks { grid-template-columns: 1fr 1fr; }
.field-grid { grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-grid .wide { grid-column: 1 / -1; }
.studio-page .panel-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.studio-page .panel-head > i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: #e8f1fd; color: #1a73e8; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.studio-page .panel-head h2, .studio-page .panel-head .studio-crumb { margin: 0; }
.studio-page .panel-head h2 { font-size: 20px; }
.panel-lead { margin: 0 0 14px; color: #5c6778; line-height: 1.55; }
.block-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 15px; }
.block-title i { color: #1a73e8; font-size: 18px; }
.step-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.step-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; margin: 0; padding: 0; }
.step-list li > span, .step-list li > i { width: 28px; height: 28px; border-radius: 50%; background: #e8f1fd; color: #1a73e8; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; line-height: 1; }
.step-list li > span::before, .step-list li > i::before, .panel-head > i::before, .style-pick > i::before, .pay-choice > i::before, .status-chip > i::before, .lead-note > i::before, .block-title > i::before, .endpoint-row > i::before, .invoice-meta > div > i::before, .due-box > i::before, .pay-note > i::before, .fee-note > i::before { display: block; line-height: 1; }
.step-list p { margin: 0; color: #3d4a5c; line-height: 1.45; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.studio-page .field-icon > i { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.studio-page .field-icon > i::before { display: block; line-height: 1; }
.studio-page .cert-preview .cert-sheet p,
.studio-page .cert-preview .certificate p { margin: 8px 0 0; color: #3d4a5c; line-height: 1.5; }
.studio-page .cert-preview .cert-sheet h1,
.studio-page .cert-preview .certificate h1 { margin: 14px 0 0; font-size: var(--cert-heading, 26px); letter-spacing: .12em; color: var(--cert-ink, #0d2f6b); }
.studio-page .cert-preview .cert-sheet h2,
.studio-page .cert-preview .certificate h2 { margin: 8px 0; font-size: var(--cert-name, 34px); font-weight: 600; color: var(--cert-ink, #0d2f6b); }
.panel-lead { margin: 0 0 16px; }
.step-list a { color: #1a73e8; font-weight: 700; }
.endpoint-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 12px 14px; background: #f4f7fb; border: 1px dashed #1a73e8; border-radius: 12px; }
.endpoint-row > i { color: #1a73e8; font-size: 20px; flex: 0 0 auto; }
.endpoint-row code { flex: 1; min-width: 0; color: #0d4ea8; font-weight: 700; word-break: break-all; }
.endpoint-row .button { flex: 0 0 auto; min-height: 36px; }
.switch-row { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid #d7e4f5; border-radius: 14px; background: #f7faff; cursor: pointer; }
.switch-row input { width: 18px; height: 18px; margin: 3px 0 0; }
.switch-row strong, .switch-row small, .style-pick strong, .style-pick small, .pay-choice strong, .pay-choice small { display: block; }
.switch-row small, .style-pick small, .pay-choice small, .field small { color: #5c6778; font-size: 12px; font-weight: 500; line-height: 1.45; }
.field small { margin-top: 6px; }
.studio-page .field-icon { position: relative; }
.studio-page .field-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #1a73e8; font-size: 18px; pointer-events: none; }
.studio-page .field-icon input { padding-left: 42px; }
.style-pick, .pay-choice { display: grid; grid-template-columns: 18px 42px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0; padding: 14px; border: 1px solid #d7e4f5; border-radius: 14px; background: #fff; cursor: pointer; }
.style-pick > i, .pay-choice > i { width: 42px; height: 42px; border-radius: 12px; background: #e8f1fd; color: #1a73e8; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.style-pick:has(input:checked), .pay-choice:has(input:checked) { border-color: #1a73e8; background: #f7faff; box-shadow: 0 0 0 3px rgba(26, 115, 232, .12); }
.style-pick input, .pay-choice input { width: 18px; height: 18px; margin: 0; }
.status-chip { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: #e8f6ee; color: #0d5c32; font-weight: 600; }
.status-chip.wait { background: #fff6e5; color: #8a5a00; }
.status-chip i { font-size: 18px; }
.lead-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 14px; background: #f4f7fb; border-radius: 12px; color: #3d4a5c; line-height: 1.5; }
.lead-note i { color: #1a73e8; font-size: 18px; margin-top: 1px; }
.form-actions { display: flex; justify-content: flex-end; }
.form-actions .button { min-height: 46px; padding: 10px 18px; }
.cert-preview { background: #f4f7fb; border: 1px solid #d7e4f5; border-radius: 16px; padding: 28px 16px; overflow: auto; }
.cert-preview .cert-sheet { margin: 0 auto; }
.cert-sheet { position: relative; max-width: 860px; margin: 28px auto; background: var(--cert-paper, #fff); border: 10px solid var(--cert-border, #0d2f6b); padding: 12px; color: var(--cert-ink, #1c2430); text-align: center; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cert-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; pointer-events: none; }
.cert-sheet.is-full-bg .cert-bg { opacity: 1; }
.cert-sheet.is-full-bg .cert-frame { background: transparent; }
.cert-frame { position: relative; z-index: 1; border: 2px solid var(--cert-accent, #c6a15b); padding: 36px 42px 28px; }
.cert-sheet.is-open .cert-frame { border-color: transparent; }
.cert-facts:not(:has(li:not(.is-hidden))) { display: none; }
.cert-sign { justify-content: center; }
.cert-sheet:has(.cert-seal:not(.is-hidden)) .cert-sign { justify-content: space-between; }
.cert-logo { height: 72px; width: auto; }
.cert-institute { margin: 12px 0 0; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; font-weight: 700; color: var(--cert-ink, #0d2f6b); }
.cert-sheet h1 { margin: 16px 0 0; letter-spacing: .12em; text-transform: uppercase; font-size: var(--cert-heading, 28px); color: var(--cert-ink, #0d2f6b); }
.cert-rule { width: 120px; height: 0; margin: 16px auto; background: none; border: 0; border-top: 3px solid var(--cert-accent, #c6a15b); }
.cert-rule.is-dashed { border-top-style: dashed; }
.cert-rule.is-dotted { border-top-style: dotted; }
.cert-rule.is-double { border-top-style: double; }
.cert-sheet.is-classic .cert-rule { display: none; }
.cert-intro, .cert-attended, .cert-note { margin: 8px 0 0; color: var(--cert-ink, #3d4a5c); line-height: 1.5; }
.cert-sheet h1, .cert-sheet h2, .cert-event, .cert-institute, .cert-note { overflow-wrap: anywhere; }
.cert-sheet h2 { margin: 10px 0; font-size: var(--cert-name, 40px); font-weight: 600; color: var(--cert-ink, #0d2f6b); }
.cert-event { margin: 8px 0 0; font-size: 20px; font-weight: 700; color: var(--cert-ink, #0d2f6b); }
.cert-facts { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; padding: 0; margin: 22px 0 0; }
.cert-facts b { display: block; color: var(--cert-ink, #0d2f6b); }
.cert-facts span { color: #5c6778; font-size: 12px; }
.cert-ictaz { margin: 16px 0 0; color: #0d4ea8; font-weight: 600; }
.cert-sign { display: flex; justify-content: center; align-items: flex-end; gap: 24px; margin-top: 36px; text-align: center; }
.certificate .cert-sign { justify-content: center; margin-top: 28px; }
.cert-seal { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 50%; border: 2px solid var(--cert-accent, #c6a15b); display: flex; align-items: center; justify-content: center; color: var(--cert-ink, #0d2f6b); font-weight: 700; letter-spacing: .08em; }
.cert-sheet .is-hidden { display: none !important; }
.cert-signature { display: block; max-width: 180px; max-height: 64px; margin: 0 auto 4px; object-fit: contain; }
.cert-line { display: block; width: 180px; border-top: 1px solid #1c2430; margin: 8px auto 6px; }
.cert-sign strong, .cert-sign > div > span { display: block; }
.cert-note { margin-top: 28px; font-size: 13px; }
.cert-print { text-align: center; margin: 18px 0 0; }
.cert-print .button { display: inline-flex; align-items: center; gap: 8px; }
.invoice-sheet { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid #d7e4f5; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 32px rgba(16, 40, 70, .05); }
.invoice-band { display: flex; align-items: center; gap: 16px; background: #1a73e8; color: #fff; padding: 22px 28px; }
.invoice-band img { height: 56px; background: #fff; border-radius: 12px; padding: 6px 10px; }
.invoice-band p { margin: 0; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; font-weight: 700; color: #d6e6ff; }
.invoice-band strong { display: block; margin-top: 2px; font-size: 26px; line-height: 1.15; }
.invoice-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #0d4ea8; border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.invoice-status.paid { color: #0d5c32; }
.invoice-status.unpaid { color: #8a5a00; }
.invoice-status.void { color: #9b2330; }
.invoice-body { padding: 22px 28px 26px; }
.invoice-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.invoice-meta > div { display: flex; gap: 10px; align-items: flex-start; min-width: 0; background: #f4f7fb; border-radius: 14px; padding: 14px; }
.invoice-meta > div > i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: #e8f1fd; color: #1a73e8; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.invoice-meta p { margin: 0; color: #5c6778; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.invoice-meta strong, .invoice-meta span { display: block; }
.invoice-meta span { color: #5c6778; font-size: 13px; line-height: 1.4; }
.invoice-table { width: 100%; border-collapse: collapse; }
.invoice-table th, .invoice-table td { text-align: left; padding: 14px 8px; border-bottom: 1px solid #e6ebf2; vertical-align: top; }
.invoice-table th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8aa0b8; }
.invoice-table td:last-child, .invoice-table th:last-child, .invoice-table tfoot th:last-child { text-align: right; }
.invoice-table small { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: #5c6778; }
.invoice-table tfoot th { font-size: 16px; color: #1c2430; text-transform: none; letter-spacing: 0; }
.pay-note { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 18px; padding: 14px; background: #fff8eb; border-radius: 14px; }
.pay-note > i { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: #8a5a00; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.pay-note strong { display: block; margin-bottom: 4px; }
.pay-note p { margin: 0; color: #3d4a5c; line-height: 1.55; }
.pay-note.paid { background: #e8f6ee; }
.pay-note.paid > i { color: #0d5c32; }
.pay-note.void { background: #fdecef; }
.pay-note.void > i { color: #9b2330; }
.invoice-foot { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: #5c6778; font-size: 13px; }
.invoice-foot i { color: #1a73e8; }
.invoice-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.invoice-actions .button, .due-actions .button { display: inline-flex; align-items: center; gap: 8px; width: auto; min-height: 42px; border-radius: 10px; }
.invoice-actions form, .due-actions form { margin: 0; }
.pay-choices { display: grid; gap: 10px; margin: 12px 0; }
.due-box { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; margin-top: 12px; padding: 14px; background: #fff8eb; border: 1px solid #f3e2b8; border-radius: 14px; }
.due-box > i { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: #8a5a00; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.due-box strong { display: block; }
.due-box p { margin: 4px 0 0; color: #3d4a5c; line-height: 1.5; }
.row-pills .pill { display: inline-flex; align-items: center; gap: 4px; }
.register-card .error { display: flex; align-items: flex-start; gap: 8px; }
@media (max-width: 1100px) {
    .finance-grid, .style-picks, .invoice-meta, .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .field-grid { grid-template-columns: 1fr; }
    .cert-frame { padding: 22px 16px; }
    .cert-sheet h1 { font-size: var(--cert-heading, 22px); }
    .cert-sheet h2 { font-size: var(--cert-name, 28px); }
    .cert-sign { flex-direction: column; align-items: center; }
    .invoice-band, .invoice-body { padding-left: 16px; padding-right: 16px; }
    .invoice-band { flex-wrap: wrap; }
    .invoice-status { margin-left: 0; }
    .endpoint-row { flex-wrap: wrap; }
}
.cert-designer { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.cert-tools { position: sticky; top: 118px; max-height: calc(100vh - 140px); overflow: auto; background: #fff; border: 1px solid #d7e4f5; border-radius: 18px; padding: 16px 16px 18px; box-shadow: 0 12px 32px rgba(16, 40, 70, .04); }
.cert-tools .panel-head { margin-bottom: 8px; }
.cert-tools .button { width: 100%; min-height: 44px; margin-top: 12px; }
.cert-label { margin: 14px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8aa0b8; }
.cert-styles { grid-template-columns: 1fr; }
.cert-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cert-swatches label, .cert-toggles label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; color: #3d4a5c; }
.cert-swatches input { width: 36px; height: 32px; padding: 2px; border-radius: 8px; }
.cert-swatches span { display: block; }
.cert-piece { margin-top: 12px; padding: 10px; border: 1px solid transparent; border-radius: 12px; }
.cert-piece.is-current, .cert-swatches.is-current { border-color: #1a73e8; background: #f7faff; }
.cert-piece label { margin-bottom: 6px; }
.size-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: #5c6778; }
.size-line input { flex: 1; width: auto; padding: 0; }
.size-line b { min-width: 22px; color: #1c2430; }
.cert-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.cert-toggles label { min-height: 28px; }
.cert-stage { background: #e7eef8; border: 1px solid #d7e4f5; border-radius: 18px; padding: 18px 16px 28px; }
.cert-stage-note { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #3d4a5c; font-size: 13px; font-weight: 600; }
.cert-stage-note i { color: #1a73e8; font-size: 18px; }
.cert-designer .cert-sheet { margin: 0 auto; }
.cert-designer [data-part] { cursor: grab; touch-action: none; }
.cert-designer .cert-sheet { user-select: none; }
.cert-designer .cert-sheet.is-dragging [data-part] { cursor: grabbing; }
.cert-designer [data-part].is-on { box-shadow: inset 0 0 0 2px #1a73e8, 0 0 0 3px rgba(26, 115, 232, .25); border-radius: 8px; }
.cert-designer .cert-el-box, .cert-designer .cert-el.is-back { pointer-events: none; }
.cert-designer .cert-el-box::before, .cert-designer .cert-el.is-back::before { content: ""; pointer-events: auto; position: absolute; top: -7px; left: -7px; width: 16px; height: 16px; border-radius: 6px; background: #1a73e8; box-shadow: 0 0 0 2px #fff; }
#el-inspector { margin: 12px 0; padding: 12px; border: 1px solid #1a73e8; border-radius: 14px; background: #f7faff; }
#el-inspector[hidden], #el-inspector [hidden], #el-list[hidden] { display: none; }
.cert-sheet.is-placed .cert-frame { aspect-ratio: var(--cert-ratio, 0.78); }
.cert-sheet.is-placed .cert-facts,
.cert-sheet.is-placed .cert-sign,
.cert-sheet.is-placed .cert-sign-block { display: contents; }
.cert-sheet.is-placed .cert-facts:not(:has(li:not(.is-hidden))) { display: none; }
.cert-sheet.is-placed [data-part]:not(.cert-el) { position: absolute; margin: 0; z-index: 2; max-width: 92%; }
.cert-frame > :not(.cert-el) { position: relative; z-index: 1; }
.cert-sheet.is-placed [data-part="accent"] { height: 0; max-width: none; background: none; }
.cert-sheet.is-placed [data-part="logo"] { height: 72px; width: auto; object-fit: contain; }
.cert-sheet.is-placed [data-part="points"],
.cert-sheet.is-placed [data-part="date"],
.cert-sheet.is-placed [data-part="code"] { white-space: nowrap; }
.cert-designer .cert-rule { position: relative; }
.cert-designer .cert-rule::after { content: ""; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; }
.cert-sheet.is-placed [data-part="signature"] .cert-line { margin: 0 auto 4px; }
.cert-sheet.is-placed [data-part="seal"] { height: auto; aspect-ratio: 1; flex: none; max-width: none; }
.cert-sheet.is-placed [data-part="signature"] .cert-line,
.cert-sheet.is-placed [data-part="signature"] .cert-signature { width: 100%; max-width: none; }
.cert-sheet.is-placed .cert-ictaz { position: absolute; left: 50%; bottom: 3%; z-index: 2; width: max-content; max-width: 80%; margin: 0; transform: translateX(-50%); }
.studio-page .cert-sheet h1 { background: none; border: 0; box-shadow: none; padding: 0; line-height: 1.25; }
#part-size[hidden] { display: none; }
.align-current { margin: 0 0 8px; color: #3d4a5c; font-size: 12px; font-weight: 600; }
.align-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.align-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 54px; padding: 6px 4px; border: 1px solid #d7e4f5; border-radius: 10px; background: #fff; color: #1c2430; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.align-grid button i { width: 18px; height: 18px; color: #1a73e8; font-size: 18px; line-height: 1; }
.align-grid button:hover { border-color: #1a73e8; background: #f7faff; }
.align-reset { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 40px; margin-top: 8px; border: 1px solid #d7e4f5; border-radius: 10px; background: #fff; color: #1c2430; font: inherit; font-weight: 600; cursor: pointer; }
.align-reset i { color: #1a73e8; font-size: 16px; }
.add-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.add-grid button, .line-picks button, .style-row button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 52px; padding: 6px 2px; border: 1px solid #d7e4f5; border-radius: 10px; background: #fff; color: #1c2430; font: inherit; font-size: 10px; font-weight: 600; line-height: 1.15; cursor: pointer; }
.add-grid button i, .line-picks button i { width: 18px; height: 18px; color: #1a73e8; font-size: 18px; line-height: 1; }
.add-grid button:hover, .line-picks button:hover, .style-row button:hover, .line-picks button.is-on, .style-row button.is-on { border-color: #1a73e8; background: #f7faff; }
.line-picks, .style-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.style-row { grid-template-columns: 44px 44px 44px minmax(0, 1fr); }
.style-row button { min-height: 40px; font-size: 16px; font-weight: 700; }
#el-font, #el-text { margin-top: 8px; }
.el-list { list-style: none; display: grid; gap: 6px; margin: 8px 0 0; padding: 0; }
.el-list li { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px; border: 1px solid #d7e4f5; border-radius: 10px; background: #fff; cursor: pointer; }
.el-list li.is-on { border-color: #1a73e8; background: #f7faff; }
.el-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.el-list button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: #fdecef; color: #9b2330; cursor: pointer; }
.cert-el { position: absolute; margin: 0; max-width: none; }
.cert-el-text { line-height: 1.3; }
.cert-el-line { height: 0; }
.cert-el-image { height: auto; display: block; object-fit: contain; }
.cert-el-image.is-fill { object-fit: cover; }
.cert-el-box { box-sizing: border-box; }
#el-inspector[hidden], #el-inspector [hidden], #el-list[hidden] { display: none; }
#el-inspector [data-for="layer"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#el-inspector [data-for="layer"] button { min-height: 40px; font-size: 12px; }
.cert-piece { min-width: 0; }
.cert-piece input, .cert-piece textarea { max-width: 100%; }
@media (max-width: 1280px) {
    .cert-designer { grid-template-columns: 1fr; }
    .cert-tools { position: static; max-height: none; }
}

