/* Adapted from the existing MODX owner shell: 30-AccountOwner.html and
   assets/css/acc-owner-new.css. Scoped to the independent Core portal. */
:root{--paper:#f3fbf6;--muted:#61766f;--line:rgba(1,69,62,.13);--radius:28px;--owner-shadow:0 18px 50px rgba(1,40,36,.08)}
body{background:var(--paper)}
.shell{grid-template-columns:272px minmax(0,1fr);gap:10px;padding:10px}
.sidebar{height:calc(100vh - 20px);top:10px;border:1px solid var(--line);border-radius:28px;padding:0;box-shadow:var(--owner-shadow);overflow:hidden}
.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 12px;min-height:76px}
.sidebar .brand{padding:0}.sidebar .logo{width:142px;height:40px}.close-menu{display:none}
.nav{display:block;padding:6px 10px;overflow-y:auto;flex:1}.nav-overview{margin-bottom:6px}
.nav a{font-size:14px;font-weight:400;border-radius:17px;color:var(--ink)}
.nav .nav-overview.active,.nav-group:has(a.active)>summary{background:var(--ink);color:var(--mint)}
.nav-group{margin-bottom:5px}.nav-group summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:9px 10px;border-radius:17px;cursor:pointer;font-size:14px;list-style:none}
.nav-group summary::-webkit-details-marker{display:none}.nav-group summary::after{content:'⌄';margin-inline-start:auto;font-size:16px}.nav-group[open] summary::after{transform:rotate(180deg)}
.nav-group summary>svg{width:32px;height:32px;padding:6px;border-radius:12px;background:#effcf4;color:var(--green)}
.nav-group:has(a.active) summary>svg{background:var(--accent);color:var(--ink)}
.nav-count{font-size:12px;background:var(--mint);color:var(--ink);padding:3px 8px;border-radius:20px;margin-inline-start:auto}
.nav-children{padding:4px 5px 10px 0;margin-inline-start:40px}.nav-children a{font-size:13px;min-height:36px;padding:8px 10px;color:var(--muted);position:relative}
.nav-children a:before{content:'';position:absolute;inset-inline-start:-12px;top:16px;width:6px;height:6px;background:var(--line);border-radius:50%}
.nav-children a.active{background:#effcf4;color:var(--ink)}.nav-children a.active:before{background:var(--accent);box-shadow:0 0 0 4px #00de711f}
.sidebar-bottom{padding:16px 12px;margin:0 12px 12px;border-top:1px solid var(--line)}.sidebar-name{flex:1;max-width:150px}
.main-shell{min-width:0}.topbar{height:auto;min-height:76px;padding:13px 20px;margin-bottom:8px;border:1px solid var(--line);border-radius:28px;background:#fffffff2;box-shadow:var(--owner-shadow)}
.crumb>div{display:flex;flex-direction:column;gap:3px}.crumb strong{font-size:22px;line-height:1.15}.crumb .muted{font-size:12px;color:var(--muted)}
.header-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.header-add{font-size:13px;white-space:nowrap}
.language-picker{display:flex;flex-direction:column;gap:5px;align-items:flex-start}.language-picker>span{font-size:11px;color:var(--muted)}
.language-options{display:flex;border:1px solid var(--line);border-radius:12px;background:#f3fbf6;padding:3px;gap:2px}
.language-options button{min-height:32px;padding:5px 10px;background:transparent;border:0;border-radius:9px;font-size:12px;color:var(--green);font-weight:600}
.language-options button[aria-pressed=true]{background:var(--green);color:var(--mint)}
.login-form .language-picker{margin-bottom:28px}.page{max-width:none;margin:0;min-height:calc(100vh - 108px);padding:24px;border:1px solid var(--line);border-radius:28px;background:#fffffff2;box-shadow:var(--owner-shadow)}
.page-head{margin-bottom:24px}.page-head h1{font-size:27px}.page-head:has(+.overview-grid){display:none}.page-head a[href$="/new"]{display:none}
.panel{border-radius:22px;box-shadow:none}.button{font-weight:700}.fields input,.fields select,.fields textarea{border-radius:15px;background:#effcf4;padding:14px 16px}.field input:read-only{background:#f2f5f2}
.overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
.overview-grid .hero{grid-column:1/-1;margin:0;border-radius:24px;padding:30px 32px;background:var(--ink)}
.hero h1{font-size:30px}.hero .eyebrow{display:block;letter-spacing:0;text-transform:none;color:var(--mint);margin-bottom:10px;font-size:14px}
.hero .quiet{border-color:#b6fecc66;color:var(--mint)}.hero .quiet:hover{background:var(--green)}.hero p{margin-bottom:20px}
.stat{border-radius:22px;background:#f7fdf9;padding:22px}.stat strong{font-size:36px}.stat small{font-size:12px;color:var(--muted)}
.quick-actions{margin-bottom:24px}.quick-actions .actions{margin-top:16px}.quick-actions .button{background:#effcf4;border-radius:14px;font-size:13px}
.cards{display:flex;flex-direction:column;gap:16px}.object-card{display:grid;grid-template-columns:190px minmax(0,1fr);border-radius:22px}
.object-photo{height:auto;min-height:190px}.object-photo>img{height:100%;min-height:190px}.object-body{padding:22px}.object-body h3{font-size:21px;margin:8px 0}.object-bottom{border-top:1px solid var(--line);padding-top:13px;margin-top:16px}
.types{display:flex;flex-direction:column;gap:12px;margin-top:24px}.type-card{display:grid;grid-template-columns:44px minmax(140px,.6fr) minmax(0,1.4fr) 26px;align-items:center;min-height:105px;padding:22px 24px;gap:20px;border-radius:20px}
.type-card .type-icon{width:44px;height:44px;border-radius:14px;background:#effcf4;grid-row:auto}.type-card svg{width:24px;height:24px}.type-card strong{font-size:21px}.type-card p{font-size:14px}.type-card .arrow{margin:0;display:block}
.wizard{grid-template-columns:190px minmax(0,1fr);gap:24px}.steps{padding:12px;background:#effcf4;border:1px solid var(--line);border-radius:22px}.step{font-size:13px;padding:10px;min-height:48px}.step.current{background:var(--ink)}
.wizard-body .notice{margin-top:0}.review-grid.section-title{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
.sidebar-overlay{position:fixed;inset:0;background:#01282466;border:0;z-index:29}
[dir=rtl] .object-bottom>svg,[dir=rtl] .type-card .arrow svg,[dir=rtl] .quick-actions svg{transform:scaleX(-1)}
@media(max-width:1150px){.shell{grid-template-columns:235px minmax(0,1fr)}.header-actions{gap:12px}.header-add{display:none}.page{padding:20px}.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wizard{grid-template-columns:160px minmax(0,1fr);gap:16px}.object-card{grid-template-columns:160px minmax(0,1fr)}}
@media(max-width:850px){.shell{display:block;padding:8px}.sidebar{position:fixed;top:0;height:100dvh;width:272px;inset-inline-start:0;border-radius:0;transform:translateX(-105%)}[dir=rtl] .sidebar{transform:translateX(105%)}.sidebar.open{transform:none}.sidebar-heading .close-menu{display:flex}.topbar{padding:13px 16px;gap:12px;flex-wrap:wrap}.crumb .mobile-toggle{display:flex;background:var(--ink);border-radius:13px;color:var(--mint)}.crumb strong{font-size:20px}.page{padding:18px;border-radius:22px}.wizard{display:block}.steps{flex-direction:row;padding:8px;border-radius:16px;overflow-x:auto}.step{min-width:max-content}.type-card{grid-template-columns:40px minmax(0,1fr) 24px;gap:8px 16px;padding:20px}.type-card strong{font-size:20px}.type-card p{grid-column:2;grid-row:2}.type-card .type-icon{grid-column:1;grid-row:1/3}.type-card .arrow{grid-column:3;grid-row:1/3}.header-actions{margin-inline-start:auto}}
@media(max-width:560px){.topbar{align-items:flex-start}.header-actions{width:100%;margin:0}.language-picker{flex-direction:row;align-items:center;justify-content:space-between;width:100%}.language-options button{font-size:12px;min-height:36px;padding-inline:10px}.login-form .language-picker{flex-direction:column;align-items:flex-start}.page{padding:16px 14px}.page-head h1{font-size:24px}.hero h1{font-size:26px}.overview-grid{gap:10px}.overview-grid .hero{padding:24px}.stat{padding:16px}.stat strong{font-size:29px}.object-card{grid-template-columns:1fr}.object-photo{height:150px;min-height:150px}.object-photo>img{min-height:150px}.object-body{padding:18px}.type-card{padding:18px;gap:8px 12px}.type-card p{font-size:13px}.quick-actions .actions{display:grid}.field input,.field select,.field textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.object-summary{font-size:14px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:10px}
