:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #172033;
  background: #f3f6fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #1456c0; }
button, input, select { font: inherit; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 5vw; background: #102448; color: #fff; }
.topbar a { color: #fff; text-decoration: none; }
.brand { font-size: 1.15rem; font-weight: 750; letter-spacing: .04em; }
.nav { display: flex; gap: 1rem; align-items: center; }
.nav a { opacity: .9; }
.container { width: min(1120px, 92vw); margin: 2rem auto; }
.panel, .card { background: #fff; border: 1px solid #e3e9f3; border-radius: 16px; padding: 1.4rem; box-shadow: 0 1px 2px rgba(16, 36, 72, .04), 0 8px 24px rgba(16, 36, 72, .06); }
.panel { margin-bottom: 1.25rem; }
.section-space { margin-top: 1.25rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card strong { display: block; margin-top: .5rem; font-size: 1.8rem; color: #1456c0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pppoe-signup-form { background: #fff; border: 1px solid #e0e6ef; border-radius: 12px; padding: 1.25rem; }
.pppoe-signup-form .form-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pppoe-signup-form .form-field { display: flex; flex-direction: column; gap: .35rem; }
.pppoe-signup-form .form-field.is-wide { grid-column: 1 / -1; }
.pppoe-signup-form label { font-weight: 600; }
.pppoe-signup-form input, .pppoe-signup-form select, .pppoe-signup-form textarea { width: 100%; box-sizing: border-box; padding: .55rem .7rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.pppoe-signup-form .gps-status { font-size: .9rem; margin: .35rem 0 0; }
.pppoe-signup-form .form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
.pppoe-signup-form .form-message { margin: 1rem 0 0; }
.pppoe-signup-form .form-message.is-error { color: #b91c1c; }
.pppoe-signup-form .form-message.is-success { color: #166534; }
.field-help { display: block; font-size: .85rem; color: #64748b; font-weight: 400; }
label { display: grid; gap: .4rem; font-weight: 600; color: #334155; font-size: .95rem; }
input, select { width: 100%; padding: .72rem .85rem; border: 1px solid #d3dbe8; border-radius: 10px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, select:focus { outline: none; border-color: #1456c0; box-shadow: 0 0 0 4px rgba(20, 86, 192, .15); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .4rem; min-height: 42px; padding: .6rem 1.1rem; border: 0; border-radius: 10px; background: linear-gradient(135deg, #1456c0, #0ea5c6); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; box-shadow: 0 6px 16px rgba(20, 86, 192, .22); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(20, 86, 192, .28); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-danger { background: linear-gradient(135deg, #b42333, #e0474c); box-shadow: 0 6px 16px rgba(180, 35, 51, .22); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.toolbar input { max-width: 340px; }
.table-wrap { overflow-x: auto; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .9rem .85rem; text-align: left; border-bottom: 1px solid #edf1f7; }
th { color: #64748b; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #f7f9fc; }
tbody tr:hover td { background: #fafcff; }
.status { text-transform: capitalize; }
.message { min-height: 1.5rem; color: #a92d39; }
.message.is-success { color: #0c6b43; }
.profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 0; }
.profile-facts dt { color: #637086; font-size: .85rem; }
.profile-facts dd { margin: .2rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.facts dt { color: #637086; font-size: .85rem; }
.facts dd { margin: .2rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; border-bottom: 1px solid #e3e9f3; }
.tab-button { border: 0; background: none; padding: .7rem 1rem; color: #5c687b; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; }
.tab-button[hidden] { display: none; }
.tab-button[aria-selected="true"] { color: #1456c0; border-bottom-color: #1456c0; }
.panel-section { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e3e9f3; }
.panel-section h2 { margin-top: 0; font-size: 1.15rem; }
.script-box { width: 100%; margin: 1rem 0 .5rem; font-family: Consolas, monospace; font-size: .85rem; border-radius: 10px; padding: .8rem; background: #0f1b2d; color: #d6e4ff; }
.chart-box { position: relative; height: 360px; margin-top: 1rem; }
.permission-matrix th, .permission-matrix td { text-align: center; white-space: nowrap; }
.permission-matrix th:first-child, .permission-matrix td:first-child { text-align: left; }
.permission-matrix input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.toolbar label { display: flex; gap: .5rem; align-items: center; }
.toolbar select { width: auto; }
.form-wide { grid-column: 1 / -1; }
.stepper { list-style: none; display: flex; gap: .5rem; flex-wrap: wrap; padding: 0; margin: 0 0 1.25rem; }
.stepper li { flex: 1 1 160px; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 12px; background: #eef3fb; color: #5c687b; font-weight: 600; }
.stepper .step-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #cfd9ea; color: #1f2a3d; font-size: .85rem; }
.stepper li.is-current { background: #1456c0; color: #fff; }
.stepper li.is-current .step-dot { background: #fff; color: #1456c0; }
.stepper li.is-done { background: #e4f6ec; color: #17653a; }
.stepper li.is-done .step-dot { background: #17653a; color: #fff; }
.section-title { margin: 1.25rem 0 .5rem; font-size: 1.05rem; }
.live-status { margin: 0 0 .5rem; font-size: .9rem; }
.live-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .4rem; border-radius: 50%; background: #17653a; animation: live-pulse 1.5s infinite; }
.rate-cell { font-weight: 600; color: #1456c0; white-space: nowrap; }
h1, h2 { color: #102448; letter-spacing: -.01em; }
h1 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
.table-wrap { background: #fff; box-shadow: inset 0 0 0 1px #e3e9f3; }
th { position: sticky; top: 0; z-index: 1; }
tbody tr:nth-child(even) td { background: #fbfdff; }
tbody tr:hover td { background: #eef5ff; }
.card { transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 36, 72, .05), 0 14px 30px rgba(16, 36, 72, .1); }
@media (max-width: 800px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .toolbar input, .toolbar select { max-width: none; width: 100%; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .panel, .card { padding: 1.1rem; border-radius: 14px; }
  th, td { padding: .7rem .6rem; font-size: .92rem; }
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.panel h3 { margin: 1.4rem 0 .6rem; font-size: 1.05rem; color: #102448; }
.panel h3:first-of-type { margin-top: 0; }
.details { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); margin: 0 0 1rem; border: 1px solid #e3e9f3; border-radius: 12px; overflow: hidden; }
.details dt, .details dd { margin: 0; padding: .65rem .9rem; border-bottom: 1px solid #edf1f7; }
.details dt { background: #f7f9fc; color: #637086; font-size: .85rem; font-weight: 600; }
.details dd { font-weight: 600; color: #102448; overflow-wrap: anywhere; }
.details dt:nth-last-of-type(1), .details dd:last-of-type { border-bottom: 0; }
@media (max-width: 480px) {
  .details { grid-template-columns: 1fr; }
  .details dt { border-bottom: 0; padding-bottom: .2rem; }
  .details dd { padding-top: .1rem; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { display: flex; flex-direction: column; gap: .35rem; background: #fff; border: 1px solid #e3e9f3; border-radius: 16px; padding: 1.1rem 1.25rem; box-shadow: 0 1px 2px rgba(16, 36, 72, .04), 0 8px 24px rgba(16, 36, 72, .06); border-top: 4px solid #1456c0; }
.stat:nth-child(2) { border-top-color: #0ea5c6; }
.stat:nth-child(3) { border-top-color: #17653a; }
.stat:nth-child(4) { border-top-color: #f59e0b; }
.stat strong { font-size: 1.35rem; color: #102448; overflow-wrap: anywhere; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.inline-form label { display: flex; align-items: center; gap: .5rem; }
.inline-form input { width: auto; min-width: 180px; }
@media (max-width: 800px) {
  .inline-form input, .inline-form .button { width: 100%; }
  .inline-form label { width: 100%; }
}

.login-page { min-height: 100vh; margin: 0; background: radial-gradient(900px 500px at 0% 0%, #1e6cc2 0%, transparent 60%), linear-gradient(140deg, #0c1d3d, #102448 55%, #1456c0); }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px); min-height: 100vh; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(1.25rem, 4vw, 3.5rem); max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
.login-brand { color: #e8f0ff; }
.login-brand-logo { width: 88px; height: auto; background: #fff; border-radius: 18px; padding: .5rem; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.login-brand h2 { margin: 1.25rem 0 .6rem; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; color: #fff; }
.login-brand p { margin: 0 0 1.25rem; font-size: 1.05rem; opacity: .85; max-width: 520px; }
.login-features { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.login-features li { position: relative; padding-left: 1.9rem; font-weight: 600; }
.login-features li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #2bd17e; color: #0c1d3d; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.login-card { background: #fff; border-radius: 22px; padding: clamp(1.75rem, 4vw, 2.5rem); box-shadow: 0 30px 60px rgba(4, 12, 30, .35); box-sizing: border-box; width: 100%; }
.login-card-head { text-align: center; margin-bottom: 1.5rem; }
.login-card-logo { display: none; width: 64px; height: auto; margin: 0 auto .75rem; }
.login-card h1 { margin: 0 0 .35rem; font-size: 1.6rem; color: #102448; }
.login-card-head p { margin: 0; }
.login-form { display: grid; gap: 1.05rem; }
.login-form label { font-weight: 600; color: #223050; }
.login-form input { margin-top: .35rem; padding: .8rem .95rem; border-radius: 12px; border: 1px solid #d3dcea; font: inherit; transition: border-color .15s, box-shadow .15s; }
.login-form input:focus { outline: none; border-color: #1456c0; box-shadow: 0 0 0 4px rgba(20, 86, 192, .15); }
.login-submit { width: 100%; padding: .9rem 1rem; font-size: 1rem; border-radius: 12px; }
.login-footer { margin: 1.25rem 0 0; text-align: center; font-size: .9rem; color: #637086; }
.login-card .message:empty { display: none; }
@media (max-width: 800px) {
  .login-shell { grid-template-columns: 1fr; min-height: auto; padding: 1.5rem 1rem 2rem; gap: 1.5rem; }
  .login-brand { display: none; }
  .login-card-logo { display: block; }
}
.muted { color: #637086; }
[hidden] { display: none !important; }

.public-body { background: #fff; color: #172033; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 5vw; background: #102448; color: #fff; }
.site-header a { color: #fff; text-decoration: none; }
.brand-logo { display: block; height: 46px; width: auto; max-width: 60vw; }
.site-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }
.site-nav a { opacity: .9; }
.site-nav a.is-current { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.button-small { min-height: 34px; padding: .4rem .75rem; font-size: .92rem; }
.section { padding: 3.5rem 0; }
.section h2 { margin-top: 0; }
.section-alt { background: #f4f6fa; }
.page-body { min-height: 60vh; }
.lead { font-size: 1.1rem; color: #3a4659; }
.check-list { padding-left: 1.2rem; line-height: 1.9; }

.slideshow { position: relative; height: clamp(260px, 55vh, 520px); overflow: hidden; background: #102448; }
.slides { position: relative; height: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-fallback { background: linear-gradient(120deg, #102448 0%, #1e6cc2 100%); }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 8vw 3.5rem; color: #fff; background: linear-gradient(transparent, #000a); }
.slide-caption h1 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.slide-caption p { margin: 0 0 1rem; max-width: 620px; }
.slide-control { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff9; color: #102448; font-size: 1.1rem; cursor: pointer; }
.slide-prev { left: 1rem; }
.slide-next { right: 1rem; }
.slide-dots { position: absolute; bottom: .9rem; right: 1.5rem; z-index: 2; display: flex; gap: .45rem; }
.slide-dots button { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: #fff8; cursor: pointer; }
.slide-dots button.is-active { background: #fff; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.service-card { background: #fff; border: 1px solid #e0e6ef; border-top: 4px solid #1456c0; border-radius: 12px; padding: 1.25rem; box-shadow: 0 5px 20px #2030500b; }
.service-card h3 { margin: 0 0 .5rem; }
.service-card p { margin: 0; color: #3a4659; }
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.package-card { position: relative; display: flex; flex-direction: column; gap: .4rem; background: #fff; border: 1px solid #e0e6ef; border-radius: 12px; padding: 1.5rem; box-shadow: 0 5px 20px #2030500b; min-width: 0; }
.package-card h3 { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.package-card p { margin: 0; }
.package-card.is-featured { border: 2px solid #1456c0; }
.package-badge { align-self: flex-start; margin-bottom: .25rem; padding: .2rem .6rem; border-radius: 999px; background: #1456c0; color: #fff; font-size: .8rem; }
.package-speed { color: #1456c0; font-weight: 600; }
.package-price { color: #3a4659; }
.package-price strong { color: #102448; font-size: 1.6rem; }
.package-features { margin: .75rem 0 0; padding-left: 1.1rem; color: #3a4659; line-height: 1.7; }
.package-features li { overflow-wrap: anywhere; }
.package-offers { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: auto 0 0; padding: .75rem 0 0; }
.package-offers li { padding: .2rem .65rem; border-radius: 999px; background: #e7f6ef; color: #0c6b43; font-size: .85rem; font-weight: 600; overflow-wrap: anywhere; }
.package-editor { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.package-preview { position: sticky; top: 1rem; }
.package-preview .package-card { max-width: 100%; }
.package-preview-note { margin: 0 0 1rem; color: #5b6880; font-size: .9rem; }

.cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta h2 { margin: 0 0 .4rem; }
.cta p { margin: 0; }

.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.portal-card { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; background: #fff; border: 1px solid #e0e6ef; border-radius: 12px; padding: 1.5rem; box-shadow: 0 5px 20px #2030500b; }
.portal-card h2 { margin: 0; font-size: 1.2rem; }
.portal-card p { margin: 0; color: #3a4659; flex: 1; }
.portal-card.is-disabled { opacity: .75; }

.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: #e7ebf1; color: #5c687b; font-size: .85rem; }
.badge.is-live { background: #d9f2e2; color: #1d6b3a; }
.thumb { width: 96px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid #e0e6ef; }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.form-actions { display: flex; align-items: end; }
.form-actions { gap: .5rem; flex-wrap: wrap; }
.full-width { grid-column: 1 / -1; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; }
.checkbox-label input { width: auto; }

.site-footer { background: #102448; color: #dfe7f5; padding: 2.5rem 0 1rem; margin-top: 2rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: #dfe7f5; }
.site-footer .muted { color: #b8c4d9; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.footer-logo { display: block; height: 52px; width: auto; max-width: 100%; margin-bottom: .75rem; }
.footer-note { text-align: center; margin: 2rem 0 0; color: #b8c4d9; font-size: .9rem; }

@media (max-width: 960px) {
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar { align-items: flex-start; gap: 1rem; flex-direction: column; }
  .nav { flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar input { max-width: none; }
  .site-header { flex-direction: column; align-items: center; text-align: center; padding: .8rem 4vw; }
  .site-nav { justify-content: center; gap: .6rem 1rem; font-size: .95rem; }
  .brand-logo { height: 42px; margin: 0 auto; }
  .slideshow { height: 340px; }
  .slide-caption { padding: 3.25rem 1.25rem 1.25rem; }
  .slide-caption h1 { font-size: 1.5rem; }
  .slide-caption p { font-size: .95rem; }
  .slide-control { top: .5rem; transform: none; width: 36px; height: 36px; }
  .slide-prev { left: .5rem; }
  .slide-next { right: .5rem; }
  .slide-dots { top: .75rem; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); }
  .service-grid, .portal-grid, .footer-grid, .package-grid { grid-template-columns: 1fr; }
  .package-editor { grid-template-columns: 1fr; }
  .package-preview { position: static; }
  .footer-grid > div { text-align: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .cta { flex-direction: column; align-items: flex-start; }
  .section { padding: 2.5rem 0; }
  .container { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
  .slideshow { height: 360px; }
  .package-card { padding: 1.1rem; }
}

.button-secondary { background: #eef3fb; color: #1456c0; box-shadow: none; }
.app-dialog-actions { gap: .5rem; }
.badge.is-ok { background: #d9f2e2; color: #1d6b3a; }
.badge.is-warn { background: #fff4d6; color: #8a5a00; }
.badge.is-bad { background: #fde3e3; color: #a4262c; }
.badge.is-info { background: #e2ecfb; color: #1456c0; }
.service-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; border: 0; padding: 0; margin: 0; }
.service-options legend { margin-bottom: .5rem; font-weight: 600; }
.option-card { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem; border: 1px solid #d7e0ee; border-radius: 12px; cursor: pointer; background: #fff; }
.option-card input { width: auto; margin-top: .2rem; }
.option-card small { display: block; color: #637086; font-weight: 400; }
.option-card:has(input:checked) { border-color: #1456c0; background: #eef4ff; box-shadow: 0 0 0 2px rgba(20, 86, 192, .15); }
.portal-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0; }
.portal-option { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: .75rem; border: 1px solid #d7e0ee; border-radius: 14px; background: #fff; }
.portal-option.is-selected { border-color: #1456c0; box-shadow: 0 0 0 2px rgba(20, 86, 192, .2); }
.portal-option.is-unavailable { opacity: .65; }
.portal-option label { display: flex; gap: .5rem; align-items: center; font-weight: 600; cursor: pointer; }
.portal-option label input { width: auto; }
.portal-thumb { display: grid; place-items: center; gap: .3rem; height: 120px; border-radius: 10px; padding: .6rem; text-align: center; overflow: hidden; }
.portal-thumb img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 50%; padding: 5px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 4px 10px rgba(0, 0, 0, .2); }
.portal-thumb span { font-size: .8rem; font-weight: 700; color: #fff; line-height: 1.2; }
.portal-thumb i { display: block; width: 60%; height: 10px; border-radius: 6px; }
.portal-meta { margin: 0; font-size: .85rem; color: #637086; }
.preview-dialog { width: min(96vw, 480px); padding: 1rem; border: 0; border-radius: 16px; box-shadow: 0 20px 50px rgba(16, 36, 72, .3); }
.preview-dialog::backdrop { background: rgba(16, 36, 72, .45); }
.preview-dialog iframe, .preview-frame { width: 100%; height: 560px; border: 1px solid #e3e9f3; border-radius: 12px; background: #fff; }
.preview-dialog .row-actions { justify-content: flex-end; margin-top: .75rem; }
.portal-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 1.25rem; align-items: start; }
.color-row { display: flex; gap: .6rem; align-items: center; }
.color-row input[type="color"] { width: 52px; height: 42px; padding: .2rem; }
.hint-list { margin: .5rem 0 0; padding-left: 1.2rem; color: #4a5568; }
.hint-list li { margin-bottom: .3rem; }
.conflict-list li { color: #a4262c; }
.code-line { display: block; padding: .45rem .6rem; margin: .3rem 0; border-radius: 8px; background: #0f1b2d; color: #d6e4ff; font-family: Consolas, monospace; font-size: .82rem; overflow-x: auto; white-space: pre; }
.assignment-card + .assignment-card { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #e3e9f3; }
.deploy-targets { display: grid; gap: .4rem; margin: .5rem 0 1rem; }

@media (max-width: 900px) {
  .service-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-layout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .service-options { grid-template-columns: 1fr; }
  .preview-dialog iframe, .preview-frame { height: 480px; }
}

