/* JOYNET common PHP UI, using the freee Vibes palette. Real React components stay unmodified.
   This file is loaded only on the explicitly selected common portal routes. */
/* Independent portal foundation: these structural rules do not require portal-legacy. */
body.portal-vibes{--bg:#ebf3ff;--panel:#fff;--text:#323232;--blue2:#ebf3ff;--green:#006e2d;--green2:#cdebd7;--amber:#825a0f;--amber2:#fff0d2;--red:#a51428;--red2:#fad2d7;--nav:#fff;min-width:0;min-height:100vh}
.portal-vibes *,.portal-vibes *::before,.portal-vibes *::after{box-sizing:border-box}
.portal-vibes a{text-decoration:none}.portal-vibes a:hover{text-decoration:underline}
.portal-vibes img{max-width:100%}.portal-vibes button,.portal-vibes input,.portal-vibes select,.portal-vibes textarea{font-family:inherit;font-size:inherit;line-height:inherit}
.portal-vibes button,.portal-vibes .button{cursor:pointer}.portal-vibes button:disabled{cursor:default}
.portal-vibes h1,.portal-vibes h2,.portal-vibes h3{font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.portal-vibes h1{font-size:1.625rem;margin:0 0 1rem}.portal-vibes h2{font-size:1.25rem;margin:0 0 .75rem}.portal-vibes h3{font-size:1.125rem;margin:1rem 0 .5rem}
.portal-vibes p{margin:.75rem 0}.portal-vibes pre{max-width:100%;overflow:auto;font-size:.875rem}
.portal-vibes label{display:block;font-size:.875rem;font-weight:600;color:#464343;margin-bottom:.375rem}
.portal-vibes textarea{min-height:6rem;resize:vertical}.portal-vibes input[type=checkbox],.portal-vibes input[type=radio]{width:1rem;height:1rem;margin:0 .375rem 0 0;vertical-align:middle;flex-shrink:0}
.portal-vibes input:disabled,.portal-vibes select:disabled,.portal-vibes textarea:disabled{color:#8c8989;background:#f0eded;cursor:default}
.portal-vibes .topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.portal-vibes .topbar-actions,.portal-vibes .toolbar,.portal-vibes .table-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
.portal-vibes .table-actions{justify-content:flex-end}
.portal-vibes .section-head{display:flex;align-items:center;justify-content:space-between}
.portal-vibes .section>h2{margin:0;padding:1rem 1.25rem;border-bottom:1px solid #f0eded;font-size:1.125rem}
.portal-vibes .section summary.section-head{cursor:pointer;list-style:none}
.portal-vibes .section summary.section-head::-webkit-details-marker{display:none}
.portal-vibes .section summary.section-head::after{content:"開く";flex-shrink:0;margin-left:auto;color:#6e6b6b;font-size:.875rem;font-weight:500}
.portal-vibes .section[open]>summary.section-head::after{content:"閉じる"}
.portal-vibes .form-grid,.portal-vibes .stats,.portal-vibes .attention-list{display:grid}
.portal-vibes .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.portal-vibes .stat span,.portal-vibes .stat b{display:block}.portal-vibes .stat b{margin-top:.25rem;line-height:1.3;overflow-wrap:anywhere}
.portal-vibes .ux-toolbar,.portal-vibes .crm-toolbar,.portal-vibes .server-refresh-bar{display:flex;flex-wrap:wrap}
.portal-vibes .crm-toolbar,.portal-vibes .server-refresh-bar{align-items:center;justify-content:space-between;gap:.75rem}
.portal-vibes .control-field{display:grid;gap:.375rem}.portal-vibes .control-field.search-field{width:min(22.5rem,100%)}
.portal-vibes .ux-toolbar select{width:auto;min-width:9rem;max-width:100%}.portal-vibes .search{width:min(22.5rem,100%)}
.portal-vibes .control-field.search-field .search{width:100%}
.portal-vibes .table-wrap{max-width:100%;min-width:0}.portal-vibes th,.portal-vibes td{text-align:left}
.portal-vibes table{min-width:44rem}.portal-vibes table.compact{min-width:0}
.portal-vibes .nav a,.portal-vibes .nav-submenu summary{display:flex;align-items:center;gap:.625rem}
.portal-vibes .nav a:hover,.portal-vibes .view-tab:hover,.portal-vibes .admin-tile:hover{text-decoration:none}
.portal-vibes .nav-dot{display:inline-block;flex-shrink:0;border-radius:50%}
.portal-vibes .nav-submenu summary{list-style:none;cursor:pointer}.portal-vibes .nav-submenu summary::-webkit-details-marker{display:none}
.portal-vibes .nav-submenu summary::after{content:"▾";margin-left:auto;font-size:.875rem;color:#6e6b6b}
.portal-vibes .nav-submenu-list{display:none;gap:.125rem}.portal-vibes .nav-submenu[open]>.nav-submenu-list,.portal-vibes .nav-submenu:hover>.nav-submenu-list{display:grid}
.portal-vibes .view-tab{display:inline-flex;align-items:center;justify-content:center}
.portal-vibes .badge,.portal-vibes .status{display:inline-flex;align-items:center;align-self:start;gap:.25rem;border-radius:.25rem;padding:.1875rem .5rem;font-size:.875rem;font-weight:500;line-height:1.5;white-space:nowrap}
.portal-vibes .off{background:#f0eded;color:#555252}.portal-vibes .danger{color:#a51428}
.portal-vibes .ip{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;font-size:.875rem}
.portal-vibes .nowrap{white-space:nowrap}.portal-vibes .note{max-width:28rem}.portal-vibes .muted-detail{font-size:.875rem}.portal-vibes .data-time{font-size:.875rem;margin-top:.5rem}
.portal-vibes .admin-tile{display:block;min-width:0}.portal-vibes .admin-tile span,.portal-vibes .admin-tile strong{display:block}
.portal-vibes .admin-tile span{font-size:.875rem;color:#555252}.portal-vibes .admin-tile strong{overflow-wrap:anywhere}
body.portal-vibes{--primary:#285ac8;--blue:#285ac8;--teal:#285ac8;--line:#e1dcdc;--line2:#f0eded;--muted:#6e6b6b;--nav-width:232px;background:#ebf3ff;color:#323232;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;font-size:1rem;font-weight:400;line-height:1.65;margin:0;padding:0}
.portal-vibes .app-main{box-sizing:border-box;max-width:none;width:auto;margin:0 0 0 var(--nav-width);padding:88px 32px 40px;min-height:100vh}
.portal-vibes .portal-global-header{position:fixed;inset:0 0 auto;z-index:90;height:64px;background:white;border-bottom:1px solid var(--line)}
.portal-vibes .portal-brand{display:flex;align-items:baseline;gap:12px;color:#285ac8;font-size:23px;font-weight:700;letter-spacing:.015em;text-decoration:none}
.portal-vibes .portal-brand span{font-size:.875rem;font-weight:400;color:#6e6b6b;letter-spacing:0}
.portal-vibes .portal-user{display:flex;align-items:center;gap:20px;color:#5a5a5a;font-size:.875rem}
.portal-vibes .nav{box-sizing:border-box;position:fixed;top:64px;bottom:0;left:0;width:var(--nav-width);height:auto;max-height:none;margin:0;padding:16px 12px 24px;background:#fff;border-right:1px solid var(--line);box-shadow:none;display:flex;flex-direction:column;gap:3px;overflow:auto;z-index:80}
.portal-vibes .nav-brand{display:block;padding:8px 12px 14px;margin:0 0 8px;border-bottom:1px solid var(--line2)}
.portal-vibes .nav-brand b{display:none}
.portal-vibes .nav-brand span{color:#6e6b6b;font-size:.875rem;font-weight:500}
.portal-vibes .nav>a,.portal-vibes .nav-submenu summary{box-sizing:border-box;min-height:40px;padding:9px 12px;border-radius:4px;color:#464343;font-size:.9375rem;font-weight:500;line-height:1.5;text-decoration:none;border:0;transition:background .12s}
.portal-vibes .nav>a:hover,.portal-vibes .nav-submenu summary:hover{background:#f7f5f5;color:#285ac8}
.portal-vibes .nav>a.active,.portal-vibes .nav-submenu.active summary{background:#ebf3ff;color:#285ac8;font-weight:700;box-shadow:inset 3px 0 #285ac8}
.portal-vibes .nav-dot{width:6px;height:6px;background:#aaa7a7}
.portal-vibes .nav>a.active .nav-dot{background:#285ac8}
.portal-vibes .nav-submenu[open] summary{background:#f7f5f5;color:#464343}
.portal-vibes .nav-submenu-list a{font-size:.875rem;font-weight:400;min-height:36px;border-radius:4px;color:#464343;padding:7px 10px;text-decoration:none}
.portal-vibes .nav-submenu-list a:hover{background:#ebf3ff;color:#285ac8}
.portal-vibes .portal-page-header{position:static;border:0;border-radius:0;background:transparent;box-shadow:none;padding:0;margin:0 0 24px;align-items:center;gap:16px;min-height:84px}
.portal-vibes .portal-page-header:after{display:none}
.portal-vibes .portal-title-fallback{font-size:26px;line-height:1.4;font-weight:700;color:#323232;margin:8px 0 0}
.portal-vibes .portal-breadcrumbs{font-size:.875rem;line-height:20px;color:#6e6b6b}
.portal-vibes .admin-lead{background:transparent;border:0;border-radius:0;padding:0;margin:0 0 24px;box-shadow:none;display:block}
.portal-vibes .admin-lead h2{font-size:20px;line-height:1.5;margin:0 0 4px}
.portal-vibes .admin-lead p{font-size:.9375rem;color:#6e6b6b;line-height:1.7;margin:4px 0 0}
.portal-vibes .section{border:1px solid #e1dcdc;background:#fff;border-radius:6px;box-shadow:none;margin:0 0 24px;min-width:0;overflow:hidden}
.portal-vibes .section-head{background:#fff;padding:18px 24px;min-height:62px;border-bottom:1px solid #f0eded;gap:12px}
.portal-vibes .section-head h2{font-size:18px;line-height:1.5;margin:0;font-weight:700;color:#323232}
.portal-vibes .section-body{padding:24px}
.portal-vibes .top-meta,.portal-vibes .muted,.portal-vibes .muted-detail,.portal-vibes .data-time{color:#6e6b6b;font-weight:400}
.portal-vibes .section-head .top-meta{font-size:.875rem;margin-top:4px}
.portal-vibes .view-tabs{display:flex;flex-wrap:wrap;gap:0;border-bottom:1px solid #bebaba;margin-bottom:24px;grid-template-columns:none}
.portal-vibes .view-tab{background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;box-shadow:none;padding:12px 20px;font-weight:500;color:#6e6b6b;text-decoration:none;min-height:46px}
.portal-vibes .view-tab.active{border-color:#285ac8;color:#285ac8;background:transparent}
.portal-vibes .view-tab:hover{background:#dce8ff;color:#285ac8}
.portal-vibes .ux-toolbar{background:#f7f5f5;border:1px solid #f0eded;border-radius:4px;padding:16px;gap:16px;margin:0 0 20px;align-items:flex-end}
.portal-vibes .control-field label,.portal-vibes form>label,.portal-vibes .form-grid label{font-size:.875rem;font-weight:600;color:#464343;margin-bottom:6px}
.portal-vibes input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),.portal-vibes select,.portal-vibes textarea{border:1px solid #aaa7a7;border-radius:4px;background:#fff;color:#323232;min-height:40px;font:inherit;padding:8px 12px;box-shadow:none}
.portal-vibes input[type=checkbox],.portal-vibes input[type=radio]{accent-color:#285ac8}
.portal-vibes input:focus,.portal-vibes select:focus,.portal-vibes textarea:focus{outline:2px solid #73a5ff;outline-offset:2px;border-color:#285ac8}
.portal-vibes button:not(:where(.vb-button)),.portal-vibes a.button:not(:where(.vb-button)){border-radius:4px;min-height:36px;padding:7px 16px;font-size:.9375rem;font-weight:500;line-height:1.5;border:1px solid #285ac8;background:#285ac8;color:#fff;box-shadow:none;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.portal-vibes button:not(:where(.vb-button)):hover,.portal-vibes a.button:not(:where(.vb-button)):hover{background:#23418c;color:#fff}
.portal-vibes button:not(:where(.vb-button)):disabled{background:#f0eded;color:#8c8989;border-color:#d7d2d2;cursor:default}
.portal-vibes a{color:#285ac8}
.portal-vibes :focus-visible{outline:2px solid #73a5ff;outline-offset:3px}
.portal-vibes .table-wrap{border-top:0;overflow:auto}
.portal-vibes table{border-collapse:collapse;width:100%;font-size:.9375rem}
.portal-vibes th,.portal-vibes td{border:0;border-bottom:1px solid #f0eded;padding:14px 16px;line-height:1.6;color:#323232;vertical-align:top;background:#fff;box-shadow:none}
.portal-vibes thead th{background:#f7f5f5;color:#464343;font-weight:600;border-bottom:1px solid #d7d2d2;font-size:.875rem;white-space:normal}
.portal-vibes table tbody tr:hover td{background:#f7f5f5}
.portal-vibes table tbody tr:last-child td,.portal-vibes table tbody tr:last-child th{border-bottom:0}
.portal-vibes .status{border-radius:4px;padding:3px 8px;font-size:.875rem;font-weight:500;line-height:1.5}
.portal-vibes .ok{background:#cdebd7;color:#006e2d}
.portal-vibes .warn{background:#fff0d2;color:#825a0f}
.portal-vibes .danger-bg{background:#fad2d7;color:#a51428}
.portal-vibes .info{background:#ebf3ff;color:#285ac8}
.portal-vibes .domain-card,.portal-vibes .contract-card,.portal-vibes .quick-link,.portal-vibes .setting-card,.portal-vibes .server-card,.portal-vibes .admin-tile,.portal-vibes .game-tile{border:1px solid #e1dcdc;border-radius:4px;box-shadow:none;background:#fff;font-weight:400}
.portal-vibes .admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.portal-vibes .admin-tile{padding:20px;min-height:102px;position:relative;text-decoration:none;transition:background .12s,border-color .12s}
.portal-vibes .admin-tile:hover{border-color:#285ac8;background:#ebf3ff;transform:none;box-shadow:none}
.portal-vibes .admin-tile strong{font-size:16px;line-height:1.5;color:#285ac8;font-weight:600}
.portal-vibes .admin-tile p,.portal-vibes .game-tile p{font-size:.875rem;line-height:1.6;color:#6e6b6b;margin-top:8px}
.portal-vibes .portal-home-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.portal-vibes .portal-home-kpi{background:#fff;border:1px solid #e1dcdc;border-radius:6px;padding:20px 24px;text-decoration:none;display:flex;flex-direction:column;gap:6px}
.portal-vibes .portal-home-kpi span{color:#6e6b6b;font-size:.875rem}
.portal-vibes .portal-home-kpi strong{font-size:30px;line-height:1.3;font-weight:600;color:#323232}
.portal-vibes .portal-home-kpi small{font-size:.875rem;color:#285ac8}
.portal-vibes .portal-home-kpi:hover{border-color:#285ac8;background:#fbfbff}
.portal-vibes .portal-home-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:start}
.portal-vibes .portal-home-grid .section{margin-bottom:24px}
.portal-vibes .portal-home-grid .admin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.portal-vibes .portal-home-grid .admin-tile{padding:16px;min-height:100px}
.portal-vibes .attention-row{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px 16px;padding:16px 0;border:0;border-bottom:1px solid #f0eded;background:#fff;border-radius:0;align-items:start}
.portal-vibes .attention-row:last-child{border-bottom:0}
.portal-vibes .attention-target{color:#323232;font-size:.9375rem;font-weight:600;overflow-wrap:anywhere}
.portal-vibes .attention-reason{grid-column:2;color:#6e6b6b;font-size:.875rem;line-height:1.7}
.portal-vibes .attention-action{grid-column:2;margin-top:4px;justify-self:start}
.portal-vibes .attention-list{gap:0}
.portal-vibes .portal-home-grid .focus-section .section-body{padding:0 24px 8px}
.portal-vibes .settings-hero,.portal-vibes .quick-links{gap:16px}
.portal-vibes .ux4-process-step,.portal-vibes .ux4-gate{border-color:#e1dcdc;box-shadow:none;background:#fff;border-radius:4px}
.portal-vibes .ux4-process-step.current{border-color:#aac8ff;background:#ebf3ff}
.portal-vibes .ux4-process-step.current b{color:#285ac8}
.portal-vibes .ux-empty,.portal-vibes .focus-empty,.portal-vibes .empty{color:#6e6b6b;background:#f7f5f5;border-radius:4px;font-weight:400}
.portal-vibes .modal{z-index:150}.portal-vibes .modal-box{border-radius:6px}.portal-vibes .site-access-switch input:checked+span{background:#285ac8}
.portal-vibes .admin-message{background:#ebf3ff;color:#285ac8;border-color:#aac8ff}
.portal-vibes .ux4-settings-table th{background:#f7f5f5;color:#464343;font-weight:500}
.portal-vibes .ux4-user-name,.portal-vibes .control-field,.portal-vibes .server-card,.portal-vibes .setting-card{min-width:0}
.portal-vibes .mobile-nav-toggle,.portal-vibes .mobile-nav-close{display:none}
.portal-vibes .sort-button{display:inline-flex;border:0;background:transparent;color:#464343;padding:0;min-height:24px;justify-content:flex-start;font-size:.875rem;font-weight:600}
.portal-vibes .sort-button:hover{background:transparent;color:#285ac8}
.portal-vibes [hidden]{display:none!important}
.portal-vibes .stats{gap:16px;margin:0 0 24px}
.portal-vibes .stat{background:#fff;border:1px solid #e1dcdc;border-radius:6px;padding:20px}
.portal-vibes .stat span{color:#6e6b6b;font-size:.875rem;font-weight:400}
.portal-vibes .stat b{font-size:28px;font-weight:600;color:#323232}
.portal-vibes textarea[data-homepage-editor]{height:auto;min-height:280px;resize:vertical}
.portal-vibes .ux4-copy-notice:empty{display:none}
@media(min-width:1600px){.portal-vibes .app-main{padding-left:40px;padding-right:40px}.portal-vibes .portal-home-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}}
@media(max-width:1120px){.portal-vibes .app-main{padding-left:24px;padding-right:24px}.portal-vibes .portal-home-grid{grid-template-columns:1fr}.portal-vibes .portal-home-kpi{padding:16px}.portal-vibes .portal-home-grid .admin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.portal-vibes .nav.mobile-collapsible.is-open{transform:translateX(0)}
@media(max-width:760px){.portal-vibes .nav.mobile-collapsible .mobile-nav-close{display:inline-flex;align-self:flex-end;min-width:36px;padding:6px}.portal-vibes .stats{gap:12px}.portal-vibes .stat{padding:16px}}

body.portal-vibes{--portal-layer-nav:80;--portal-layer-header:90;--portal-layer-dialog:200;--portal-space-panel:1.5rem}
.portal-vibes .portal-global-header{z-index:var(--portal-layer-header)}
.portal-vibes .nav{z-index:var(--portal-layer-nav)}
.portal-vibes .portal-shared-header{box-sizing:border-box;width:100%;height:4rem;padding:.75rem 1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.portal-vibes .portal-breadcrumb-slot{margin-bottom:.5rem}
.portal-vibes .portal-page-header{margin-bottom:0;align-items:flex-start;min-width:0}
.portal-vibes [data-vibes-headline]{min-width:0;flex:1}
.portal-vibes .portal-title-fallback{padding-bottom:2rem}
.portal-vibes .topbar-actions{flex:0 0 auto;padding-top:1.5rem}
.portal-vibes .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:1rem;margin-bottom:1rem}
.portal-vibes .form-grid>*,.portal-vibes .portal-field{min-width:0}
.portal-vibes .portal-form-grid-single{grid-template-columns:minmax(0,1fr)}
.portal-vibes .portal-field{display:flex;flex-direction:column;gap:.375rem;margin-bottom:1rem}
.portal-vibes .form-grid .portal-field{margin-bottom:0}
.portal-vibes .portal-field>label{margin:0;font-size:.875rem;font-weight:600;color:#464343}
.portal-vibes .portal-field-help{color:#6e6b6b;font-size:.875rem;line-height:1.5}
.portal-vibes input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.portal-vibes select,.portal-vibes textarea{box-sizing:border-box;min-width:0;max-width:100%;width:100%;height:auto}
.portal-vibes input[type=file]{min-height:2.5rem;padding:.375rem;border:1px solid #aaa7a7;border-radius:.25rem;background:#fff;color:#323232;font:inherit}
.portal-vibes input[type=file]::file-selector-button{border:0;border-radius:.1875rem;background:#ebf3ff;color:#285ac8;font:inherit;padding:.1875rem .625rem;margin-right:.5rem;cursor:pointer}
.portal-vibes select{min-height:2.5rem}
.portal-vibes textarea[data-homepage-editor]{min-height:17.5rem;resize:vertical}
.portal-vibes .section-head{flex-wrap:wrap}
.portal-vibes .section-head>div{min-width:0}
.portal-vibes .actions,.portal-vibes .lead-actions,.portal-vibes .crm-toolbar-left,.portal-vibes .crm-toolbar-right{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
.portal-vibes .lead-actions{margin-top:1rem}
.portal-vibes .ux4-process,.portal-vibes .ux4-publish-summary{margin-bottom:var(--portal-space-panel)}
.portal-vibes [data-domain-board]>.section-body .ux-toolbar{margin-bottom:1rem}
.portal-vibes .portal-sort-toolbar{margin:0}
.portal-vibes .sort-button:not(:where(.vb-button)){border:1px solid #bebaba;background:#fff;color:#464343;padding:.4375rem .75rem;min-height:2.25rem;font-size:.875rem}
.portal-vibes .sort-button:not(:where(.vb-button))[aria-pressed=true]{background:#ebf3ff;border-color:#285ac8;color:#285ac8!important}
.portal-vibes th .sort-button:not(:where(.vb-button)),.portal-vibes th .table-sort-button:not(:where(.vb-button)){border:0;background:transparent;color:#464343;padding:0;min-height:1.5rem;width:100%;justify-content:flex-start;font-size:.875rem}
.portal-vibes th .sort-button:not(:where(.vb-button)):hover,.portal-vibes th .table-sort-button:not(:where(.vb-button)):hover{background:transparent;color:#285ac8}
.portal-vibes button:not(:where(.vb-button)).ghost,.portal-vibes a.button:not(:where(.vb-button)).ghost,.portal-vibes button:not(:where(.vb-button))[type=button]:not(:where(.sort-button,.table-sort-button)){background:#fff;color:#285ac8;border:1px solid #bebaba}
.portal-vibes button:not(:where(.vb-button)).danger{background:#fad2d7;color:#a51428;border-color:#d799a1}
.portal-vibes button:not(:where(.vb-button)):disabled{background:#f0eded;color:#8c8989;border-color:#d7d2d2;cursor:default}
.portal-vibes .ux4-editor-toolbar{margin:0}
.portal-vibes .portal-dns-table{table-layout:fixed;min-width:0}
.portal-vibes .portal-dns-table th:nth-child(1){width:28%}
.portal-vibes .portal-dns-table th:nth-child(2){width:9%}
.portal-vibes .portal-dns-table th:nth-child(3){width:33%}
.portal-vibes .portal-dns-table th:nth-child(4){width:30%}
.portal-vibes .portal-dns-value{white-space:normal;overflow-wrap:anywhere}
.portal-vibes .portal-dns-actions{align-items:flex-start}
.portal-vibes .portal-dns-actions .detail-fold[open]{flex:1 0 100%;min-width:0}
.portal-vibes .detail-drawer,.portal-vibes .modal{z-index:var(--portal-layer-dialog)}
.portal-vibes .detail-panel{position:relative;max-width:100%;overscroll-behavior:contain}
.portal-vibes .detail-head{position:sticky;top:0;background:#fff;z-index:1}
.portal-vibes .modal-box{border-radius:.375rem}
.portal-vibes .site-access-switch input:checked+span{background:#285ac8}
.portal-vibes .ux4-admin-fields{align-items:start}
.portal-vibes .ux4-admin-fields label:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:.5rem;padding-top:1.625rem}
@media(max-width:1120px){.portal-vibes .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-vibes .portal-form-grid-single{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 .portal-vibes .app-main{margin:0;padding:5.25rem 1rem 1.5rem;width:auto}
 .portal-vibes .portal-shared-header{padding:.625rem 1rem}
 .portal-vibes .portal-brand{font-size:1.3125rem}.portal-vibes .portal-brand span,.portal-vibes .portal-user>span{display:none}
 .portal-vibes .portal-user{gap:.5rem}
 .portal-vibes .nav.mobile-collapsible{top:4rem;height:calc(100dvh - 4rem);bottom:0;width:16.25rem;transform:translateX(-100%)}
 .portal-vibes .nav.mobile-collapsible.is-open{transform:translateX(0)}
 .portal-vibes .mobile-nav-toggle{display:inline-flex}
 .portal-vibes .portal-page-header{margin-bottom:0;min-height:4.75rem}
 .portal-vibes .section{margin-bottom:1.25rem}.portal-vibes .section-head,.portal-vibes .section-body{padding:1rem}
 .portal-vibes .portal-home-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
 .portal-vibes .portal-home-kpi strong{font-size:1.625rem}
 .portal-vibes .portal-home-grid{gap:0}
 .portal-vibes .portal-home-grid .admin-grid,.portal-vibes .admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .portal-vibes .portal-home-grid .focus-section .section-body{padding:0 1rem .5rem}
 .portal-vibes .view-tab{padding:.625rem .875rem;font-size:.875rem}
 .portal-vibes .ux-toolbar{padding:.75rem;gap:.75rem}.portal-vibes .portal-home-grid .admin-tile{padding:.875rem}
 .portal-vibes .ux4-responsive-table td{background:#fff}.portal-vibes .settings-tabs{display:flex}
 .portal-vibes .form-grid{grid-template-columns:minmax(0,1fr)}
 .portal-vibes .portal-dns-table thead{display:none}
 .portal-vibes .portal-dns-table,.portal-vibes .portal-dns-table tbody,.portal-vibes .portal-dns-table tr,.portal-vibes .portal-dns-table td{display:block;width:100%}
 .portal-vibes .portal-dns-table tr{border-bottom:1px solid #d7d2d2}
 .portal-vibes .portal-dns-actions{gap:.5rem}
 .portal-vibes .ux4-admin-fields label:has(input[type=checkbox]){padding-top:0}
 .portal-vibes .ux4-publish-step>span:last-child{min-width:0}.portal-vibes .ux4-publish-step .button{white-space:normal;max-width:100%}
}
@media(max-width:420px){.portal-vibes .portal-home-grid .admin-grid,.portal-vibes .admin-grid{grid-template-columns:1fr}.portal-vibes .portal-brand{font-size:1.1875rem}.portal-vibes .attention-row{grid-template-columns:44px minmax(0,1fr);gap:.5rem .75rem}}

@media(max-width:760px){.portal-vibes .nav.mobile-collapsible{display:none}.portal-vibes .nav.mobile-collapsible.is-open{display:flex}}


/* Japanese workplace reading and task order. Only portal-owned selectors. */
.portal-vibes .portal-page-header{min-height:0}
.portal-vibes .admin-lead{margin-bottom:1.25rem}
.portal-vibes .admin-lead p{max-inline-size:60em;font-size:1rem;color:#555252}
.portal-vibes .section-head,.portal-vibes .section-body{padding:1rem 1.25rem}
.portal-vibes .section-head{min-height:3.5rem}
.portal-vibes .section-head .top-meta,.portal-vibes .portal-field-help,.portal-vibes .ux4-confirm-note{font-size:.875rem;color:#555252}
.portal-vibes .portal-grouped-nav{gap:.25rem;padding:.75rem .75rem 1rem}
.portal-vibes .portal-nav-group{display:grid;gap:.125rem;margin-top:.5rem}
.portal-vibes .portal-nav-group-title{font-size:.875rem;font-weight:700;line-height:1.5;padding:.375rem .75rem .25rem;color:#555252}
.portal-vibes .nav .portal-nav-group>a{box-sizing:border-box;display:flex;align-items:center;gap:.625rem;min-height:2.375rem;padding:.5rem .75rem;border-radius:.25rem;color:#464343;font-size:.9375rem;font-weight:500;line-height:1.5;text-decoration:none;transition:background .12s}
.portal-vibes .nav .portal-nav-group>a:hover{background:#f7f5f5;color:#285ac8}
.portal-vibes .nav .portal-nav-group>a.active{background:#ebf3ff;color:#285ac8;font-weight:700;box-shadow:inset 3px 0 #285ac8}
.portal-vibes .nav .portal-nav-group>a.active .nav-dot{background:#285ac8}
.portal-vibes .nav-submenu-list{padding-left:.75rem}
.portal-vibes .portal-home-kpis{gap:.75rem;margin-bottom:1.25rem}
.portal-vibes .portal-home-kpi{padding:.875rem 1rem;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem .5rem;align-items:center}
.portal-vibes .portal-home-kpi span{font-size:.875rem;color:#555252}
.portal-vibes .portal-home-kpi strong{grid-column:2;grid-row:1 / 3;font-size:1.75rem;line-height:1.3}
.portal-vibes .portal-home-kpi small{font-size:.875rem}
.portal-vibes .portal-home-grid{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:1.25rem}
.portal-vibes .portal-home-grid .admin-grid{gap:0;grid-template-columns:1fr}
.portal-vibes .portal-home-tools .admin-tile{display:block;min-height:0;padding:.75rem .25rem;border:0;border-bottom:1px solid #f0eded;border-radius:0}
.portal-vibes .portal-home-tools .admin-tile:last-child{border-bottom:0}
.portal-vibes .portal-home-tools .admin-tile p{margin:.125rem 0 0;font-size:.875rem}
.portal-vibes .portal-home-tools .section-body{padding:.25rem 1.25rem}
.portal-vibes .attention-row{grid-template-columns:minmax(10rem,.85fr) minmax(0,1.4fr) auto;gap:.625rem 1rem;padding:1rem 0;align-items:center}
.portal-vibes .attention-target{font-size:1rem;margin-top:.375rem}
.portal-vibes .attention-reason{margin:0;font-size:.9375rem;line-height:1.6;color:#464343}
.portal-vibes .attention-deadline{font-size:.875rem;color:#555252;margin-top:.25rem}
.portal-vibes .attention-action{grid-column:auto;margin:0;max-width:100%;white-space:normal}
.portal-vibes .attention-action .button{white-space:normal}
.portal-vibes .attention-info,.portal-vibes .attention-identity{min-width:0}
.portal-vibes .portal-editor-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(16rem,1fr);gap:1.25rem;align-items:start;margin-bottom:1.5rem}
.portal-vibes .portal-editor-layout>.section{margin-bottom:0}
.portal-vibes .portal-editor-form form{max-inline-size:64rem}
.portal-vibes .portal-editor-form .portal-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.portal-vibes .portal-editor-form .portal-form-grid .portal-field:first-child{grid-column:1 / -1}
.portal-vibes .portal-site-name{font-weight:700;font-size:1rem;margin:0 0 1rem}
.portal-vibes .portal-definition-list{margin:0}
.portal-vibes .portal-definition-list>div{padding:.625rem 0;border-bottom:1px solid #f0eded}
.portal-vibes .portal-definition-list>div:last-child{border-bottom:0}
.portal-vibes .portal-definition-list dt{font-size:.875rem;font-weight:600;color:#555252}
.portal-vibes .portal-definition-list dd{margin:.25rem 0 0;font-size:.9375rem;overflow-wrap:anywhere}
.portal-vibes .portal-quiet-details{border:0;border-top:1px solid #e1dcdc;border-radius:0;margin:1rem 0 0;background:transparent}
.portal-vibes .portal-quiet-details .section-head{padding:.75rem 0;min-height:0;border:0}
.portal-vibes .portal-quiet-details .section-body{padding:0}
.portal-vibes .portal-quiet-details .section-head:after{font-size:.875rem}
.portal-vibes .ux4-process-step{border:0;border-left:3px solid #d7d2d2;border-radius:0;padding:.5rem .75rem;background:transparent}
.portal-vibes .ux4-process-step.current{border-color:#285ac8;background:#ebf3ff}
.portal-vibes .ux4-process-step span,.portal-vibes .ux4-process-step b{font-size:.875rem}
.portal-vibes .decision-table{table-layout:fixed;min-width:0}
.portal-vibes .decision-table th:nth-child(1){width:13rem}
.portal-vibes .decision-table th:nth-child(2){width:17rem}
.portal-vibes .decision-table th:nth-child(3){width:auto}
.portal-vibes .decision-table th:nth-child(4){width:12rem}
.portal-vibes .decision-table td{overflow-wrap:anywhere}
.portal-vibes .portal-decision-reason p{margin:0 0 .5rem;max-inline-size:48rem}
.portal-vibes .portal-decision-deadline{white-space:normal}
.portal-vibes .portal-deadline-overdue{font-size:.875rem;font-weight:600;color:#a51428;margin-top:.125rem}
.portal-vibes .ux4-confirm-note,.portal-vibes .ux4-section-meta,.portal-vibes .server-card-status time,.portal-vibes .decision-card-labels,.portal-vibes .detail-list dt{font-size:.875rem}
.portal-vibes .ux4-gate span,.portal-vibes .server-metric span{font-size:.875rem}
.portal-vibes .setting-card span{font-size:.875rem;font-weight:600}
.portal-vibes .ux4-process,.portal-vibes .ux4-publish-summary{margin-bottom:1.25rem}
@media(max-width:1600px){.portal-vibes .attention-row{grid-template-columns:minmax(0,1fr) auto}.portal-vibes .attention-identity{grid-column:1}.portal-vibes .attention-info{grid-column:1}.portal-vibes .attention-action{grid-column:2;grid-row:1 / 3}.portal-vibes .decision-table th:nth-child(1){width:10rem}.portal-vibes .decision-table th:nth-child(2){width:13rem}.portal-vibes .decision-table th:nth-child(4){width:10rem}}
@media(max-width:1280px){.portal-vibes .portal-home-grid{grid-template-columns:1fr}.portal-vibes .portal-home-tools .admin-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1rem}.portal-vibes .portal-home-tools .admin-tile:last-child{border-bottom:1px solid #f0eded}}
@media(max-width:1120px){.portal-vibes .portal-editor-layout{grid-template-columns:1fr}.portal-vibes .portal-editor-context .section-body{max-inline-size:64rem}.portal-vibes .decision-table th:nth-child(1){width:8rem}.portal-vibes .decision-table th:nth-child(2){width:11rem}.portal-vibes .decision-table th:nth-child(4){width:9rem}}
@media(max-width:760px){.portal-vibes .section-head,.portal-vibes .section-body{padding:1rem}.portal-vibes .portal-home-kpi{padding:.75rem}.portal-vibes .portal-home-kpi strong{font-size:1.5rem}.portal-vibes .portal-home-tools .admin-grid{grid-template-columns:1fr}.portal-vibes .attention-row{grid-template-columns:1fr}.portal-vibes .attention-info,.portal-vibes .attention-identity,.portal-vibes .attention-action{grid-column:1;grid-row:auto}.portal-vibes .portal-editor-form .portal-form-grid{grid-template-columns:1fr}.portal-vibes .portal-home-grid{gap:0}.portal-vibes .portal-editor-layout{gap:1rem}.portal-vibes .portal-home-tools .section-body{padding:.25rem 1rem}}

@media(max-width:1120px){.portal-vibes .decision-table-wrap{display:none}.portal-vibes .decision-cards{display:block;padding:0 1.25rem 1.25rem}.portal-vibes .decision-card-labels span{white-space:normal;overflow:visible;text-overflow:clip}}
@media(max-width:760px){.portal-vibes .decision-cards{padding:0 1rem 1rem}}

/* Portal components and their existing DOM/JavaScript state contracts. */
.portal-vibes .domain-grid,.portal-vibes .contract-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:1rem}
.portal-vibes .domain-card,.portal-vibes .contract-card{padding:1rem;min-width:0}
.portal-vibes .domain-card h3,.portal-vibes .contract-card h3{margin:0 0 .75rem;font-size:1rem}
.portal-vibes .domain-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;padding:.75rem 0;border-top:1px solid #f0eded;align-items:start}
.portal-vibes .domain-row:first-of-type{border-top:0}
.portal-vibes .domain-row-main{min-width:0;overflow-wrap:anywhere}
.portal-vibes .contract-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;align-items:start}
.portal-vibes .contract-title,.portal-vibes .domain-title{font-weight:700;color:#285ac8;overflow-wrap:anywhere}
.portal-vibes .contract-meta{font-size:.875rem;color:#6e6b6b;margin-top:.375rem;overflow-wrap:anywhere}
.portal-vibes .quick-links,.portal-vibes .settings-hero{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.portal-vibes .quick-link,.portal-vibes .setting-card{padding:1rem;min-width:0}
.portal-vibes .quick-link strong,.portal-vibes .setting-card span,.portal-vibes .setting-card strong{display:block}
.portal-vibes .quick-link strong{margin-bottom:.25rem}.portal-vibes .setting-card strong{margin-top:.25rem;font-size:1rem;overflow-wrap:anywhere}
.portal-vibes .game-tile{min-width:0;padding:1rem}.portal-vibes .game-tile h3{margin:0 0 .25rem;font-size:1rem}
.portal-vibes .game-tile-links{display:grid;gap:.375rem}
.portal-vibes .game-tile-links a{display:flex;align-items:center;min-height:2.5rem;padding:.5rem .625rem;border:1px solid #e1dcdc;border-radius:.25rem;font-size:.9375rem;font-weight:500;color:#285ac8;text-decoration:none}
.portal-vibes .game-tile-links a:hover{background:#ebf3ff;border-color:#285ac8}
.portal-vibes .detail-fold{margin-top:.5rem;border:1px solid #f0eded;border-radius:.25rem;background:#f7f5f5;overflow:hidden}
.portal-vibes .detail-fold>summary{cursor:pointer;padding:.5rem .625rem;font-size:.875rem;font-weight:600;color:#464343}
.portal-vibes .detail-fold-body{padding:0 .625rem .625rem;color:#555252;font-size:.875rem;overflow-wrap:anywhere}
.portal-vibes .focus-list{display:grid;gap:.5rem}.portal-vibes .focus-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem;border:1px solid #e1dcdc;border-radius:.25rem;padding:.75rem;background:#fff}
.portal-vibes .focus-item-title{font-weight:700;overflow-wrap:anywhere}.portal-vibes .focus-item-next{margin-top:.25rem;color:#464343}
.portal-vibes .focus-item-meta{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem;font-size:.875rem;color:#6e6b6b}.portal-vibes .focus-item-action{text-align:right}
.portal-vibes .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.75rem;margin:0 0 1rem}
.portal-vibes .card{display:block;padding:1rem;border:1px solid #e1dcdc;border-radius:.25rem;background:#fff;color:#323232;min-width:0}
.portal-vibes .card b{display:block;font-size:1.5rem;margin-top:.25rem;overflow-wrap:anywhere}
.portal-vibes .server-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:1rem}
.portal-vibes .server-card{display:grid;gap:.75rem;padding:1rem}
.portal-vibes .server-card-head,.portal-vibes .server-card-foot,.portal-vibes .server-card-status{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.portal-vibes .server-card-head{align-items:flex-start}.portal-vibes .server-card-head>div{min-width:0}.portal-vibes .server-card h3{margin:0;font-size:1.125rem}
.portal-vibes .server-card-foot{flex-wrap:wrap}.portal-vibes .server-card-status time{color:#6e6b6b}
.portal-vibes .server-card.is-loading{opacity:.72}.portal-vibes .server-board-status{font-size:.9375rem;color:#555252}
.portal-vibes .server-metrics,.portal-vibes .crm-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}
.portal-vibes .server-metric,.portal-vibes .crm-kpi{padding:.75rem;border:1px solid #f0eded;border-radius:.25rem;background:#f7f5f5;min-width:0}
.portal-vibes .server-metric span,.portal-vibes .server-metric b,.portal-vibes .crm-kpi span,.portal-vibes .crm-kpi b{display:block;overflow-wrap:anywhere}
.portal-vibes .server-metric span,.portal-vibes .crm-kpi span{font-size:.875rem;color:#6e6b6b}
.portal-vibes .server-metric b{margin-top:.25rem;font-size:1rem}.portal-vibes .crm-kpi b{margin-top:.25rem;font-size:1.375rem;line-height:1.4;color:#323232}
.portal-vibes .crm-count,.portal-vibes .ux-count{display:inline-flex;align-items:center;flex-shrink:0;font-size:.875rem;color:#555252;min-height:2rem}
.portal-vibes .crm-count{padding:.25rem .5rem;border:1px solid #e1dcdc;border-radius:.25rem;background:#f7f5f5}
.portal-vibes .server-kpis .crm-kpi b{font-size:1.3125rem}
.portal-vibes .connections-fold{margin-top:1.5rem}
.portal-vibes .connections-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:.75rem;list-style:none;cursor:pointer;padding:1rem 1.25rem;border:1px solid #e1dcdc;border-radius:.375rem;background:#fff;font-weight:600}
.portal-vibes .connections-fold>summary::-webkit-details-marker{display:none}
.portal-vibes .connections-fold>summary::after{content:"開く";font-size:.875rem;color:#6e6b6b;font-weight:400;flex-shrink:0}
.portal-vibes .connections-fold[open]>summary::after{content:"閉じる"}
.portal-vibes .connections-fold-body{padding-top:1rem}
.portal-vibes .readable-note{max-width:60em;overflow-wrap:anywhere}
.portal-vibes .flow-history{padding:1rem;border:1px solid #f0eded;border-radius:.25rem;background:#f7f5f5;white-space:pre-wrap;overflow-wrap:anywhere;max-height:32rem;overflow:auto;margin:0}
.portal-vibes .admin-message{border:1px solid #aac8ff;border-radius:.25rem;padding:.75rem 1rem;margin-bottom:1rem;white-space:pre-wrap;overflow-wrap:anywhere}

/* An aria-hidden overlay must never cover a page before its open event. */
.portal-vibes .modal,.portal-vibes .detail-drawer{display:none;position:fixed;inset:0;background:rgb(50 50 50 / 42%);z-index:var(--portal-layer-dialog)}
.portal-vibes .modal{align-items:center;justify-content:center;padding:1.25rem}
.portal-vibes .modal.open,.portal-vibes .detail-drawer.open{display:flex}
.portal-vibes .modal[aria-hidden=true],.portal-vibes .detail-drawer[aria-hidden=true]{display:none}
.portal-vibes .modal-box{width:min(47.5rem,100%);max-height:calc(100dvh - 2.5rem);overflow:auto;border:1px solid #e1dcdc;border-radius:.375rem;background:#fff;box-shadow:0 .75rem 2rem rgb(50 50 50 / 20%);overscroll-behavior:contain}
.portal-vibes .modal-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid #f0eded}
.portal-vibes .modal-head strong{min-width:0;overflow-wrap:anywhere}.portal-vibes .modal-head button{flex-shrink:0}
.portal-vibes .modal-content{padding:1.25rem}.portal-vibes .modal-content>:first-child{margin-top:0}
.portal-vibes .modal-content pre{max-height:46vh;white-space:pre-wrap;overflow-wrap:anywhere}
.portal-vibes .loading{padding:.75rem 0;font-size:.9375rem;color:#6e6b6b}
.portal-vibes .detail-drawer{justify-content:flex-end}
.portal-vibes .detail-panel{width:min(35rem,100%);height:100%;overflow:auto;background:#fff;border-left:1px solid #e1dcdc;box-shadow:-.75rem 0 2rem rgb(50 50 50 / 15%)}
.portal-vibes .detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.25rem;border-bottom:1px solid #f0eded}
.portal-vibes .detail-head>div{min-width:0}.portal-vibes .detail-head h2{margin:0;font-size:1.25rem}.portal-vibes .detail-head button{flex-shrink:0}
.portal-vibes .detail-content{padding:1.25rem}
.portal-vibes .detail-list{display:grid;grid-template-columns:minmax(8rem,1fr) minmax(0,2fr);margin:0;border:1px solid #f0eded;border-radius:.25rem;overflow:hidden}
.portal-vibes .detail-list dt,.portal-vibes .detail-list dd{padding:.75rem;border-bottom:1px solid #f0eded;font-size:.875rem;overflow-wrap:anywhere}
.portal-vibes .detail-list dt{background:#f7f5f5;color:#555252;font-weight:600}.portal-vibes .detail-list dd{margin:0}
.portal-vibes .detail-list dt:last-of-type,.portal-vibes .detail-list dd:last-of-type{border-bottom:0}
.portal-vibes .site-access-badges{display:flex;flex-wrap:wrap;gap:.25rem;max-width:24rem}.portal-vibes .site-access-row-action{margin-top:.5rem}
.portal-vibes .site-access-modal .modal-box{width:min(39rem,100%)}
.portal-vibes .site-access-toggle-list{display:grid;gap:.5rem}
.portal-vibes .site-access-toggle{display:grid;grid-template-columns:minmax(0,1fr) 2.75rem;align-items:center;gap:.75rem;margin:0;padding:.75rem;border:1px solid #f0eded;border-radius:.25rem;background:#fff;cursor:pointer}
.portal-vibes .site-access-toggle strong,.portal-vibes .site-access-toggle small{display:block;overflow-wrap:anywhere}
.portal-vibes .site-access-toggle small{font-size:.875rem;font-weight:400;color:#6e6b6b}
.portal-vibes .site-access-toggle.is-maintenance{background:#f7f5f5;color:#6e6b6b;cursor:default}
.portal-vibes .site-access-switch{display:block;position:relative;width:2.75rem;height:1.5rem}
.portal-vibes .site-access-switch input[type=checkbox]{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:1}
.portal-vibes .site-access-switch>span{display:block;width:100%;height:100%;border-radius:1rem;background:#aaa7a7;transition:background .15s}
.portal-vibes .site-access-switch>span::after{content:"";position:absolute;top:.1875rem;left:.1875rem;width:1.125rem;height:1.125rem;border-radius:50%;background:#fff;transition:transform .15s}
.portal-vibes .site-access-switch input:checked+span{background:#285ac8}.portal-vibes .site-access-switch input:checked+span::after{transform:translateX(1.25rem)}
.portal-vibes .site-access-switch input:disabled{cursor:default}.portal-vibes .site-access-switch input:disabled+span{opacity:.55}
.portal-vibes .site-access-switch input:focus-visible+span{outline:2px solid #73a5ff;outline-offset:3px}
.portal-vibes .site-access-modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.5rem;padding:1rem 1.25rem;border-top:1px solid #f0eded}

/* Filtered-empty, mobile decision cards, and role-gated fields use class state. */
.portal-vibes .ux-empty,.portal-vibes .decision-card-empty{display:none;padding:1.25rem;text-align:center;border:1px dashed #bebaba;background:#f7f5f5}
.portal-vibes .ux-empty.show,.portal-vibes .decision-card-empty.show{display:block}
.portal-vibes .focus-empty,.portal-vibes .empty{padding:1.25rem;text-align:center;overflow-wrap:anywhere}
.portal-vibes .focus-empty{border:1px dashed #bebaba}
.portal-vibes .empty-row{display:none}.portal-vibes .empty-row.show{display:table-row}
.portal-vibes .is-hidden,.portal-vibes .ux-hidden{display:none!important}
.portal-vibes .decision-cards{display:none}
.portal-vibes .decision-card{border:1px solid #e1dcdc;border-radius:.25rem;margin-bottom:.75rem;background:#fff;overflow:hidden}
.portal-vibes .decision-card>summary{cursor:pointer;list-style:none}.portal-vibes .decision-card>summary::-webkit-details-marker{display:none}
.portal-vibes .decision-card-summary{padding:1rem}.portal-vibes .decision-card-top{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.75rem}
.portal-vibes .decision-card-action{font-weight:600;color:#323232;margin-top:.5rem}
.portal-vibes .decision-card-labels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.375rem;margin-top:.75rem}
.portal-vibes .decision-card-labels span{padding:.375rem;border:1px solid #f0eded;border-radius:.25rem;background:#f7f5f5;color:#555252;overflow-wrap:anywhere}
.portal-vibes .decision-card-body{padding:1rem;border-top:1px solid #f0eded;background:#fff}
.portal-vibes .decision-table tr[data-decision-row]{cursor:pointer}
.portal-vibes .domain-primary-table{min-width:0}
.portal-vibes .table-sort-control{display:none;margin-bottom:.75rem}
.portal-vibes .table-sort-control label{margin-bottom:.375rem}
.portal-vibes .table-wrap th[data-sort-key] .sort-button::after{content:"↕";margin-left:.375rem;font-size:.75rem;color:#6e6b6b}
.portal-vibes .table-wrap th[data-sort-key] .sort-button[aria-sort=ascending]::after{content:"↑";color:#285ac8}
.portal-vibes .table-wrap th[data-sort-key] .sort-button[aria-sort=descending]::after{content:"↓";color:#285ac8}
.portal-vibes .ux4-admin-fields{display:none;grid-template-columns:minmax(0,1fr) auto;gap:1rem;margin-top:.75rem;padding:1rem;border:1px solid #dfc795;border-radius:.25rem;background:#fff0d2}
.portal-vibes .ux4-admin-fields.show{display:grid}
.portal-vibes .ux4-image-preview{display:none;grid-template-columns:6rem minmax(0,1fr);align-items:center;gap:.75rem;margin-top:.75rem;padding:.75rem;border:1px solid #f0eded;border-radius:.25rem;background:#f7f5f5}
.portal-vibes .ux4-image-preview.show{display:grid}
.portal-vibes .ux4-image-preview img{width:6rem;height:4.5rem;object-fit:contain;background:#fff;border:1px solid #f0eded}
.portal-vibes .ux4-image-preview b,.portal-vibes .ux4-image-preview span{display:block;overflow-wrap:anywhere}
.portal-vibes .ux4-editor-toolbar{display:flex;flex-wrap:wrap;gap:.375rem;margin:0 0 .5rem}
.portal-vibes .ux4-editor-toolbar [data-editor-action=strong]{font-weight:700}
.portal-vibes .ux4-table-detail{margin-top:.375rem}
.portal-vibes .ux4-publish-summary{border:1px solid #e1dcdc;border-left:.25rem solid #825a0f;border-radius:.375rem;background:#fff;padding:1.25rem}
.portal-vibes .ux4-publish-summary.ready{border-left-color:#006e2d}.portal-vibes .ux4-publish-summary h2{margin:0 0 .375rem}.portal-vibes .ux4-publish-summary p{color:#555252}
.portal-vibes .ux4-gates{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem;margin-top:1rem}
.portal-vibes .ux4-gate{padding:.75rem;min-width:0}.portal-vibes .ux4-gate span,.portal-vibes .ux4-gate b{display:block;overflow-wrap:anywhere}.portal-vibes .ux4-gate span{color:#555252}.portal-vibes .ux4-gate b{margin-top:.25rem}
.portal-vibes .ux4-gate.ok{border-color:#a2ccaf;background:#cdebd7}.portal-vibes .ux4-gate.warn{border-color:#dfc795;background:#fff0d2}
.portal-vibes .ux4-process-step span,.portal-vibes .ux4-process-step b{display:block}.portal-vibes .ux4-process-step.done{border-color:#006e2d;background:#cdebd7}
.portal-vibes .ux4-process{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}
.portal-vibes .ux4-next-list{padding-left:1.25rem;margin:.75rem 0 0}
.portal-vibes .ux4-publish-steps{display:grid;gap:.75rem;counter-reset:portal-publish-step}
.portal-vibes .ux4-publish-step{display:grid;grid-template-columns:2rem minmax(0,1fr) auto;align-items:center;gap:.75rem;border:1px solid #e1dcdc;border-radius:.25rem;background:#fff;padding:.75rem}
.portal-vibes .ux4-publish-step::before{counter-increment:portal-publish-step;content:counter(portal-publish-step);display:flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:50%;background:#f0eded;color:#555252;font-weight:600}
.portal-vibes .ux4-publish-step.done::before{background:#006e2d;color:#fff}.portal-vibes .ux4-publish-step.current::before{background:#825a0f;color:#fff}
.portal-vibes .ux4-publish-step b,.portal-vibes .ux4-publish-step span{display:block}.portal-vibes .ux4-publish-step span{font-size:.875rem;color:#555252}
.portal-vibes .ux4-status-change>summary{cursor:pointer;color:#464343;font-weight:600}
.portal-vibes .ux4-status-change form{display:grid;gap:.5rem;min-width:13rem;margin-top:.5rem}
.portal-vibes .ux4-copy-cell{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}
.portal-vibes .ux4-copy-value{min-width:0;overflow-wrap:anywhere;white-space:normal}.portal-vibes .ux4-copy-button{flex-shrink:0}
.portal-vibes .ux4-section-meta{margin:0 0 .75rem;color:#555252}.portal-vibes .ux4-section-meta.stale{color:#825a0f;font-weight:600}
.portal-vibes .ux4-copy-notice{min-height:1.5rem;color:#006e2d;font-size:.875rem}.portal-vibes .ux4-confirm-note{margin:.5rem 0 0}
.portal-vibes .settings-tabs{margin-bottom:0}
.portal-vibes .button.secondary:not(:where(.vb-button)),.portal-vibes button.secondary:not(:where(.vb-button)){background:#ebf3ff;color:#285ac8;border-color:#aac8ff}
.portal-vibes a.button:not(:where(.vb-button)).danger{background:#fad2d7;color:#a51428;border-color:#d799a1}
.portal-vibes button:not(:where(.vb-button)).ghost:hover,.portal-vibes a.button:not(:where(.vb-button)).ghost:hover,.portal-vibes button.secondary:not(:where(.vb-button)):hover{background:#ebf3ff;color:#285ac8;border-color:#285ac8}
.portal-vibes .button:not(:where(.vb-button)){white-space:nowrap}

/* Login, permission, invalid-request, and loading responses have their own small shell. */
body.portal-vibes.portal-standalone{background:#ebf3ff}
.portal-vibes .app-main.portal-standalone-main{margin:0;padding:6.5rem 1.5rem 2rem;min-height:100vh}
.portal-vibes .portal-standalone-header{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;height:4rem;padding:.75rem 1.5rem;background:#fff;border-bottom:1px solid #e1dcdc}
.portal-vibes .portal-state-panel{width:min(42rem,100%);margin:0 auto;border:1px solid #e1dcdc;border-radius:.375rem;padding:1.5rem;background:#fff;overflow-wrap:anywhere}
.portal-vibes .portal-state-panel h1{font-size:1.5rem;margin:0 0 1rem}.portal-vibes .portal-state-panel>:last-child{margin-bottom:0}
.portal-vibes .portal-state-panel .actions{margin-top:1rem}

@media(max-width:1120px){
 .portal-vibes .decision-table-wrap{display:none}.portal-vibes .decision-cards{display:block;padding:0 1.25rem 1.25rem}
 .portal-vibes .ux4-gates{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-vibes .server-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .portal-vibes .stats,.portal-vibes .crm-kpi-grid,.portal-vibes .ux4-process{grid-template-columns:repeat(2,minmax(0,1fr))}
 .portal-vibes .crm-toolbar,.portal-vibes .server-refresh-bar{align-items:flex-start}.portal-vibes .control-field.search-field{width:100%}
 .portal-vibes .ux-toolbar>.control-field{flex:1 1 10rem}.portal-vibes .ux-toolbar>.control-field.search-field{flex-basis:100%}
 .portal-vibes .ux-toolbar select{width:100%;min-width:0}
 .portal-vibes .contract-grid,.portal-vibes .domain-grid,.portal-vibes .server-cards,.portal-vibes .settings-hero{grid-template-columns:1fr}
 .portal-vibes .modal{padding:.75rem}.portal-vibes .modal-box{max-height:calc(100dvh - 1.5rem)}
 .portal-vibes .modal-head,.portal-vibes .modal-content,.portal-vibes .detail-head,.portal-vibes .detail-content{padding:1rem}
 .portal-vibes .site-access-modal-actions{padding:1rem}
 .portal-vibes .detail-drawer{align-items:flex-end}.portal-vibes .detail-panel{width:100%;height:min(88dvh,48rem);border-left:0;border-top:1px solid #e1dcdc;border-radius:.375rem .375rem 0 0}
 .portal-vibes .detail-list{grid-template-columns:1fr}.portal-vibes .detail-list dt{border-bottom:0;padding-bottom:.25rem}.portal-vibes .detail-list dd{padding-top:0}
 .portal-vibes .decision-cards{padding:0 1rem 1rem}.portal-vibes .decision-card-labels{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-vibes .decision-card-labels span:last-child{grid-column:1 / -1}
 .portal-vibes .table-sort-control{display:block}
 .portal-vibes .table-wrap{overflow:visible;padding:1rem}
 .portal-vibes .table-wrap table:not(.decision-table){display:block;width:100%;min-width:0}
 .portal-vibes .table-wrap table:not(.decision-table) thead{display:none}
 .portal-vibes .table-wrap table:not(.decision-table) tbody,.portal-vibes .table-wrap table:not(.decision-table) tr,.portal-vibes .table-wrap table:not(.decision-table) th,.portal-vibes .table-wrap table:not(.decision-table) td{display:block;width:100%}
 .portal-vibes .table-wrap table:not(.decision-table) tr{margin-bottom:.75rem;border:1px solid #e1dcdc;border-radius:.25rem;overflow:hidden}
 .portal-vibes .table-wrap table:not(.decision-table) th,.portal-vibes .table-wrap table:not(.decision-table) td{padding:.625rem .75rem;white-space:normal;overflow-wrap:anywhere}
 .portal-vibes .table-wrap table:not(.decision-table) td[data-label]::before{content:attr(data-label);display:block;margin-bottom:.25rem;font-size:.875rem;font-weight:600;color:#555252}
 .portal-vibes .table-wrap .empty-row{display:none}.portal-vibes .table-wrap .empty-row.show{display:block}
 .portal-vibes .ux4-admin-fields{grid-template-columns:1fr}.portal-vibes .ux4-admin-fields label:has(input[type=checkbox]){padding-top:0}
 .portal-vibes .ux4-publish-step{grid-template-columns:2rem minmax(0,1fr)}.portal-vibes .ux4-publish-step>span:last-child{grid-column:2}
 .portal-vibes .ux4-status-change form{min-width:0}
 .portal-vibes .focus-item{grid-template-columns:1fr}.portal-vibes .focus-item-action{text-align:left}
 .portal-vibes .app-main.portal-standalone-main{padding:5.25rem 1rem 1.5rem}.portal-vibes .portal-standalone-header{padding:.75rem 1rem}.portal-vibes .portal-state-panel{padding:1.25rem}
 .portal-vibes .nowrap{white-space:normal}
}
@media(prefers-reduced-motion:reduce){.portal-vibes *,.portal-vibes *::before,.portal-vibes *::after{transition:none!important}}

/* Information appears when its task needs it; native details retain all controls. */
.portal-vibes .portal-dirty-badge{display:inline-flex;align-items:center;flex:none;padding:2px 8px;border:1px solid #e1bc68;border-radius:4px;background:#fff4d6;color:#614600;font-size:12px;font-weight:600;white-space:nowrap;margin-left:8px}
.portal-vibes .portal-dirty-badge[hidden]{display:none}
.portal-vibes form>.portal-dirty-badge{margin:12px 0 0}
.portal-vibes .portal-error-summary{padding:16px;margin:0 0 16px;border:2px solid #c43838;border-radius:6px;background:#fff6f6;color:#802323}
.portal-vibes .portal-error-summary a{color:inherit;text-decoration:underline}
.portal-vibes .portal-error-summary ul{margin:8px 0 0;padding-left:24px}
.portal-vibes .portal-error-summary:focus{outline:3px solid #0069b5;outline-offset:2px}
.portal-vibes [aria-invalid=true]{border-color:#c43838}
.portal-vibes details>summary:focus-visible{outline:3px solid #0069b5;outline-offset:2px}
.portal-vibes .portal-editor-context{margin-bottom:16px}
.portal-vibes .portal-editor-context>.section-body{display:flex;align-items:start;gap:16px;flex-wrap:wrap}
.portal-vibes .portal-editor-context .portal-site-name{margin:0;min-width:180px}
.portal-vibes .portal-editor-context .portal-definition-list{margin:0;flex:1;min-width:240px}
.portal-vibes .portal-editor-context .portal-quiet-details{flex-basis:100%;margin:0}
.portal-vibes .portal-quiet-details>.section-head{padding:10px 14px}
.portal-vibes .portal-quiet-details>.section-head h2{font-size:14px}
.portal-vibes .settings-tabs+.ux4-copy-notice:empty{display:none}
.portal-vibes .ux4-status-change[open]{min-width:190px}
@media(max-width:700px){.portal-vibes .portal-editor-context>.section-body{display:block}.portal-vibes .portal-editor-context .portal-definition-list{margin:12px 0}}

.portal-vibes .portal-editor-context>.section-body>.portal-definition-list{display:flex;flex-wrap:wrap;gap:12px 32px}.portal-vibes .portal-editor-context>.section-body>.portal-definition-list>div{padding:0;border:0}
