/* 顧客画面専用。情報は保ち、装飾とコントラストの強弱を整理する。 */
.customer-portal { background:radial-gradient(ellipse at 8% 18%,rgba(109,220,238,.13),transparent 38%),radial-gradient(ellipse at 92% 72%,rgba(244,165,213,.12),transparent 40%),linear-gradient(125deg,#f5fcff,#fff8fc); }
.customer-portal .bg-deco { display:block; position:fixed; inset:0; pointer-events:none; overflow:hidden; }
.customer-portal .bg-deco span, .customer-portal .bg-deco i { z-index:0; opacity:.10; animation:none; }
.customer-portal .bg-deco span { font-size:32px; }
.customer-portal .bg-deco i { width:170px; height:170px; border-color:rgba(74,172,199,.55); }
.customer-portal .app-shell { position:relative; }
.customer-portal .app-shell { --portal-sidebar:216px; --portal-radius-lg:20px; --portal-shadow:0 5px 20px rgba(70,100,130,.06); }
.customer-portal .main { min-width:0; }
.customer-portal .topbar { background:transparent; border:0; box-shadow:none; padding:8px 4px 14px; }
.customer-portal .eyebrow { color:#77869b; font-size:10px; letter-spacing:.1em; }
.customer-portal .dashboard, .customer-portal .setup-steps, .customer-portal .runner-panel,
.customer-portal .plugin-row, .customer-portal .request-accordion, .customer-portal .account-panel { background:rgba(255,255,255,.93); box-shadow:0 4px 18px rgba(70,100,130,.045); border-color:#e0e9f0; }
.customer-portal .dashboard::before, .customer-portal .dashboard::after,
.customer-portal .setup-steps::before, .customer-portal .setup-steps::after { display:none; }
.customer-portal p, .customer-portal small, .customer-portal .plugin-description { font-weight:500; line-height:1.75; }
.customer-portal .runner-download small { font-size:12px; }
.customer-portal .runner-safety-guide { box-sizing:border-box; max-width:440px; padding:8px 11px; border:1px solid #badfe8; border-radius:11px; background:#f2fbfd; }
.customer-portal .runner-safety-guide summary { color:#176c84; }
.customer-portal #homeFeed { gap:20px; }
.customer-portal #homeFeed + #homeRequestLayout { margin-top:22px; }
.customer-portal .plugin-install-cta { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; padding:10px 14px; border:1px solid #cce8ed; border-radius:14px; background:rgba(245,253,255,.93); color:#455b71; font-size:13px; font-weight:700; }
.customer-portal .plugin-install-cta button, .customer-portal .updates-plugin-link, .customer-portal .setup-page-link { border:0; background:none; color:#127a99; cursor:pointer; font:inherit; font-weight:850; text-align:left; }
.customer-portal .plugin-install-cta button { flex-shrink:0; }
.customer-portal .plugin-install-cta button:hover, .customer-portal .updates-plugin-link:hover, .customer-portal .setup-page-link:hover { text-decoration:underline; }
.customer-portal .updates-plugin-link { margin:0 0 10px; padding:0; }
.customer-portal .setup-page-link { display:block; margin:0 0 10px; padding:0; font-size:12px; }
.customer-portal .setup-restore-btn { display:block; margin:12px 0 0 auto; padding:0; border:0; background:none; color:#127a99; cursor:pointer; font:inherit; font-size:12px; font-weight:800; }
.customer-portal .setup-restore-btn[hidden], .customer-portal .download-complete-panel[hidden], .customer-portal .download-complete-status[hidden] { display:none; }
.customer-portal .setup-restore-btn:hover { text-decoration:underline; }
.customer-portal .runner-install-block { display:grid; gap:10px; justify-items:start; }
.customer-portal .download-complete-panel { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:#52657b; font-size:12px; font-weight:700; }
.customer-portal .download-complete-panel button { padding:7px 11px; border:1px solid #badfe8; border-radius:10px; background:#f2fbfd; color:#176c84; cursor:pointer; font:inherit; font-weight:800; }
.customer-portal .download-complete-panel button:hover { background:#e2f6fa; }
.customer-portal .download-complete-status { margin:0; color:#176c84; font-size:12px; font-weight:700; }
.customer-portal .nav-release-badge { margin-left:4px; padding:2px 5px; border-radius:5px; background:#167b9b; color:#fff; font-size:10px; font-weight:900; }
.customer-portal .nav-release-badge[hidden] { display:none; }
.customer-portal .plugin-row { padding:18px; border-radius:18px; }
.customer-portal .plugin-icon { width:64px; height:64px; background:transparent; border-radius:0; }
.customer-portal .plugin-icon img { display:block; width:100%; height:100%; object-fit:contain; }
.customer-portal .plugin-icon-fallback { color:#477f95; font-size:22px; border:1px solid #d6e8ef; border-radius:16px; background:#f3faff; }
.customer-portal .sidebar nav button { background:transparent; border-color:transparent; border-radius:12px; text-align:left; }
.customer-portal .sidebar nav button.active { background:linear-gradient(100deg,#e2f9fd,#fce5f4); color:#25304a; border-color:#d6ebf0; box-shadow:none; }
.customer-portal .sidebar-foot { opacity:.7; font-size:10px; }
.release-notice { display:flex; align-items:center; gap:12px; padding:14px 16px; margin-bottom:16px; border:1px solid #bbdfe9; border-radius:16px; background:#f1fbfd; }
.release-notice[hidden] { display:none; }
.release-notice > div { flex:1; }
.release-notice p { margin:4px 0 0; font-size:12px; color:#5d6d81; }
.release-notice button { flex-shrink:0; font-size:12px; padding:8px 12px; }
.release-badge { background:#167b9b; color:white; border-radius:6px; padding:4px 7px; font-size:11px; font-weight:800; }
@media(min-width:921px) {
  .customer-portal .sidebar { position:fixed; top:20px; bottom:20px; width:var(--portal-sidebar); height:auto; overflow-y:auto; }
  .customer-portal .main { grid-column:2; }
}
@media(max-width:920px) {
  .customer-portal .sidebar { position:sticky; top:0; z-index:30; padding:10px; max-height:40vh; overflow:auto; background:#fafdff; }
  .customer-portal .sidebar > .brand-logo, .customer-portal .sidebar .brand, .customer-portal .sidebar-foot { display:none; }
  .customer-portal .sidebar nav { margin:0; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
  .customer-portal .sidebar nav button { text-align:center; padding:8px 4px; font-size:12px; }
  .release-notice { flex-wrap:wrap; }
  .release-notice > div { flex-basis:75%; }
}
@media(max-width:640px) {
  .customer-portal .plugin-install-cta { align-items:flex-start; flex-direction:column; gap:5px; }
}
