/* Separate home pages and personal theme chooser; all colors inherit the active theme. */
.ce059-homepage{display:grid;gap:20px;min-width:0}.ce059-homepage>section{min-width:0;margin:0}.ce059-home-welcome .hero-content h1{overflow-wrap:anywhere}.ce059-home-welcome .hero-content p{overflow-wrap:anywhere}.ce059-homepage-traditional .ce059-home-welcome{min-height:0;padding:28px 30px}.ce059-homepage-traditional .ce059-home-welcome .hero-content{max-width:850px}.ce059-homepage-traditional .ce059-home-welcome h1{font-size:clamp(24px,3vw,42px);line-height:1.12}.ce059-home-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ce059-home-links>a{display:flex;align-items:center;gap:12px;min-width:0;padding:14px;border:1px solid var(--line,#35516d);border-radius:12px;background:var(--surface,#14273d);text-decoration:none}.ce059-home-links>a>span{flex:1;min-width:0;display:grid;gap:4px}.ce059-home-links strong{font-size:14px}.ce059-home-links small,.ce059-check-row small{color:var(--muted,#96b1ca);font-size:12px;font-weight:400;line-height:1.5}.ce059-home-links>a:hover{border-color:var(--brand-accent,#39d1ee)}.ce059-home-notice-body{padding:16px;overflow-wrap:anywhere;line-height:1.6}.ce059-choice-default{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.ce059-choice-default p{margin:4px 0 0}.ce059-choice-grid .ce059-choice-card{display:flex;flex-direction:column;gap:12px}.ce059-choice-card form{margin-top:auto}.ce059-home-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.ce059-home-admin>form{display:grid;gap:14px;width:100%;margin:0;white-space:normal}.ce059-home-admin h2{font-size:18px;margin:12px 0 0}.ce059-check-list{display:grid;gap:8px}.ce059-check-row{display:flex!important;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line,#35516d);border-radius:9px;background:var(--surface,#14273d);margin:0!important;cursor:pointer}.ce059-check-row input[type=checkbox]{flex:none;width:17px;height:17px;margin:0;accent-color:var(--brand-accent,#39d1ee)}.ce059-check-row>span{display:grid;gap:4px;min-width:0}.ce059-home-order{display:grid;grid-template-columns:minmax(0,1fr) 85px;gap:10px;align-items:center}.ce059-home-order>label:last-child{font-size:11px}.ce059-home-order input[type=number]{width:100%}.ce059-home-admin button{justify-self:start}.ce059-theme-link{display:inline-flex;align-items:center;gap:6px;text-decoration:none!important;white-space:nowrap}.ce059-theme-link svg{width:15px;height:15px}.ce059-choice-grid{margin-bottom:22px}.ce059-homepage .ce059-home-links svg{flex:none;width:20px;height:20px;color:var(--brand-accent,#39d1ee)}
@media(max-width:600px){.ce059-home-links{grid-template-columns:1fr}.ce059-homepage-traditional .ce059-home-welcome{padding:20px}.ce059-home-order{grid-template-columns:minmax(0,1fr) 70px}.ce059-homepage{gap:14px}}

.ce058-footer .ce058-footer-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ce058-footer .ce059-theme-link{font-size:.75rem;color:var(--muted,inherit);padding:5px 7px;border-radius:6px}.ce058-footer .ce059-theme-link:hover{color:var(--ink,inherit);background:var(--surface-2,transparent)}

/* Beta 9 portal and theme gallery. Scoped to keep existing themes and editors intact. */
.ce059-chooser{display:grid;gap:18px;min-width:0;max-width:1180px;margin-inline:auto}.ce059-chooser .section-heading{margin:0}.ce059-choice-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:18px;border:1px solid var(--line);background:var(--surface);border-radius:14px}.ce059-choice-current,.ce059-choice-reset{display:flex;align-items:center;gap:12px;min-width:0}.ce059-choice-current>.ui-icon{flex:none;width:38px;height:38px;padding:9px;background:var(--surface-3);color:var(--accent);border-radius:10px}.ce059-choice-current>div,.ce059-choice-reset>div{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.ce059-choice-current strong{font-size:1.15rem}.ce059-choice-current small,.ce059-choice-current span,.ce059-choice-reset small{font-size:.78rem;color:var(--muted)}.ce059-choice-reset{justify-content:space-between;border-left:1px solid var(--line);padding-left:16px;flex-wrap:wrap}.ce059-choice-reset form{margin:0}.ce059-choice-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ce059-choice-tile{display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:14px}.ce059-choice-tile.is-current{border-color:var(--accent);box-shadow:inset 0 2px 0 var(--accent)}.ce059-choice-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.78rem;font-weight:700;color:var(--muted)}.ce059-choice-state{display:inline-flex;align-items:center;gap:5px;color:var(--accent)}.ce059-choice-state svg{width:14px;height:14px}.ce059-choice-tile .ce059-style-thumb{height:124px;margin:0}.ce059-choice-copy{display:grid;gap:5px;overflow-wrap:anywhere}.ce059-choice-copy h2{font-size:1.15rem;margin:0}.ce059-choice-copy p{color:var(--muted);font-size:.88rem;line-height:1.5;margin:0}.ce059-choice-tile form{display:block;margin:auto 0 0;width:100%}.ce059-choice-tile button{width:100%;white-space:normal}.ce059-chooser button:disabled{cursor:default;opacity:.7}.ce059-choice-help{display:flex;gap:8px;align-items:flex-start;color:var(--muted);font-size:.8rem;line-height:1.5;margin:0}.ce059-choice-help svg{width:17px;height:17px;flex:none}
.ce059-portal{display:grid;gap:14px;min-width:0}.ce059-portal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.ce059-portal-head h2{font-size:clamp(1.25rem,2vw,1.75rem);margin:5px 0}.ce059-portal-head p{margin:0;font-size:.85rem}.ce059-portal-feed{display:grid;gap:14px;min-width:0}.ce059-portal-article{display:grid;gap:13px;min-width:0;padding:clamp(16px,2.3vw,26px);background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow-wrap:anywhere}.ce059-portal-kicker{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;color:var(--muted);font-size:.76rem}.ce059-portal-kicker a{color:var(--accent);font-weight:700;background:var(--surface-3);padding:4px 8px;border-radius:6px;text-decoration:none}.ce059-portal-article h3{font-size:clamp(1.15rem,2vw,1.5rem);line-height:1.35;margin:0}.ce059-portal-article h3 a{color:inherit;text-decoration:none}.ce059-portal-article h3 a:hover,.ce059-portal-author a:hover{color:var(--accent)}.ce059-portal-author{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.82rem}.ce059-portal-author .avatar{width:30px;height:30px;flex:none}.ce059-portal-excerpt{font-size:.94rem;line-height:1.75;margin:0;white-space:normal;color:inherit}.ce059-portal-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:13px;border-top:1px solid var(--line)}.ce059-portal-bottom .btn,.ce059-portal-head .btn,.ce059-portal-comments{display:inline-flex;align-items:center;gap:6px}.ce059-portal-bottom svg,.ce059-portal-head svg{width:15px;height:15px;flex:none}.ce059-portal-comments{color:var(--muted);font-size:.8rem;text-decoration:none}.ce059-portal-pagination{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:.85rem}.ce059-portal-empty{text-align:center;display:grid;justify-items:center;gap:8px}.ce059-portal-empty svg{width:26px;height:26px;color:var(--accent)}.ce059-portal-empty p{margin:0}.ce059-portal-settings{display:grid;gap:12px;padding:16px;border:1px solid var(--line);background:var(--surface-2);border-radius:12px}.ce059-portal-settings h2{display:flex;align-items:center;gap:8px;margin:0}.ce059-portal-settings h2 svg{width:19px;height:19px;color:var(--accent)}.ce059-portal-settings p{margin:0}.ce059-portal-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ce059-portal-sources{max-height:260px;overflow:auto;display:grid;gap:6px;padding:4px}.ce059-portal-sources .ce059-check-row{padding:9px 12px}.ce059-portal-settings small{display:block;line-height:1.5;font-weight:400}.ce059-portal-settings label{min-width:0}.ce059-portal-settings input[type=number]{width:100%}
@media(max-width:760px){.ce059-choice-summary{grid-template-columns:1fr}.ce059-choice-reset{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:12px}}@media(max-width:600px){.ce059-choice-gallery,.ce059-portal-fields{grid-template-columns:1fr}.ce059-choice-tile{padding:13px}.ce059-portal-article{gap:10px}.ce059-choice-summary{padding:13px}.ce059-choice-reset .btn{white-space:normal}}
