@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --navy-950:#06182c; --navy-900:#09213b; --navy-800:#103554; --navy-700:#184869;
  --ink:#12263c; --muted:#66778a; --soft:#eef3f7; --line:#dce5ec; --paper:#fff; --canvas:#f5f7fa;
  --blue:#148bd1; --blue-strong:#0874b8; --cyan:#54d7e4; --gold:#d8a438; --gold-soft:#fff5d8;
  --green:#21956a; --green-soft:#e6f6ef; --orange:#d77928; --red:#c54e51; --red-soft:#fdeced;
  --shadow:0 18px 54px rgba(17,38,60,.12); --radius:18px; --sidebar:258px;
}

*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;background:var(--canvas);color:var(--ink);font:15px/1.6 'DM Sans',system-ui,sans-serif} button,input,textarea,select{font:inherit} button{cursor:pointer} a{color:inherit}.svg-sprite{position:absolute;width:0;height:0;overflow:hidden} svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round} [hidden],.admin-only,.guest-only,.session-only{display:none!important}.is-admin .admin-only,.is-guest .guest-only,.is-authenticated .session-only{display:inline-flex!important}

/* Login */
.login-screen{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.15fr) minmax(430px,.85fr);background:var(--navy-950)}
.login-art{position:relative;overflow:hidden;display:flex;align-items:flex-end;padding:clamp(36px,6vw,90px);isolation:isolate;background:radial-gradient(circle at 65% 35%,#176f92 0,rgba(9,69,99,.45) 28%,transparent 58%),linear-gradient(145deg,#062542,#06182c 70%)}
.login-art:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,20,38,.86),transparent 55%),repeating-linear-gradient(90deg,transparent 0 79px,rgba(100,218,232,.045) 80px);z-index:-1}
.login-art img{position:absolute;height:82%;max-width:76%;object-fit:contain;right:2%;bottom:0;filter:drop-shadow(0 28px 35px rgba(0,0,0,.5));opacity:.88;z-index:-1}
.login-orbit{position:absolute;border:1px solid rgba(84,215,228,.28);border-radius:50%;right:7%;top:11%}.orbit-a{width:390px;height:390px}.orbit-b{width:540px;height:540px;right:-2%;top:2%;border-color:rgba(216,164,56,.16)}
.login-art-copy span,.eyebrow{display:block;color:var(--blue);font-size:11px;font-weight:800;letter-spacing:.17em;text-transform:uppercase}.login-art-copy span{color:var(--cyan)}.login-art-copy strong{display:block;margin-top:10px;color:white;font:800 clamp(40px,6vw,75px)/.98 'Manrope',sans-serif;letter-spacing:-.05em}
.login-panel{display:flex;align-items:center;justify-content:center;padding:48px;background:#f7f9fb}.login-card{width:min(430px,100%)}.brand-mark{width:56px;height:56px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,var(--blue),#52cfe0);color:#fff;box-shadow:0 12px 28px rgba(20,139,209,.27);transform:rotate(-6deg)}.brand-mark span{font:800 29px/1 'Manrope';transform:rotate(6deg)}.brand-mark.small{width:40px;height:40px;border-radius:12px}.brand-mark.small span{font-size:21px}.login-card .eyebrow{margin:30px 0 9px}.login-card h1{margin:0;font:800 39px/1.12 'Manrope';letter-spacing:-.045em}.login-intro{margin:18px 0 30px;color:var(--muted);font-size:16px}.login-card label,.form-label{display:block;margin:17px 0 7px;font-weight:700;font-size:13px}.login-card input,.form-control{width:100%;border:1px solid var(--line);border-radius:11px;background:#fff;padding:12px 14px;outline:none;color:var(--ink);transition:.2s}.login-card input:focus,.form-control:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(20,139,209,.12)}.password-field{position:relative}.password-field input{padding-right:48px}.password-field button{position:absolute;right:4px;top:4px;width:38px;height:38px;border:0;background:transparent;color:var(--muted)}.form-message{min-height:24px;margin:8px 0 3px;color:var(--red);font-size:13px}.login-note{display:flex;gap:8px;align-items:center;margin:22px 0 0;color:var(--muted);font-size:12px}.login-note svg{width:16px;height:16px}

/* Buttons */
.login-cancel{margin-top:9px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 15px;border:1px solid transparent;border-radius:10px;font-weight:700;transition:.18s}.button svg{width:18px;height:18px}.button-primary{background:var(--blue);color:#fff;box-shadow:0 7px 18px rgba(20,139,209,.19)}.button-primary:hover{background:var(--blue-strong);transform:translateY(-1px)}.button-secondary{background:#fff;border-color:var(--line);color:var(--ink)}.button-secondary:hover{background:var(--soft)}.button-danger{background:var(--red-soft);color:var(--red)}.button-wide{width:100%;min-height:48px}.icon-button{width:40px;height:40px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted)}.icon-button:hover{color:var(--ink);border-color:#b6c6d3}

/* Shell */
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);z-index:30;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--navy-950),#071e35 70%,#06192d);color:#fff;box-shadow:12px 0 30px rgba(5,24,44,.06)}.sidebar-brand{height:78px;display:flex;align-items:center;gap:12px;padding:0 21px;border-bottom:1px solid rgba(255,255,255,.08)}.sidebar-brand strong{display:block;font:800 16px/1 'Manrope';letter-spacing:.09em}.sidebar-brand small{color:#8ea8bc;font-size:11px}.sidebar nav{flex:1;overflow:auto;padding:18px 12px}.nav-group{margin-bottom:17px}.nav-group-title{margin:0 10px 6px;color:#6f8ba1;font-size:9px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}.nav-link{width:100%;display:flex;align-items:center;gap:11px;padding:9px 11px;margin:2px 0;border:0;border-radius:10px;background:transparent;color:#adc0cf;text-align:left;font-weight:600}.nav-link svg{width:18px;height:18px}.nav-link span{flex:1}.nav-link small{display:grid;place-items:center;min-width:23px;height:20px;padding:0 6px;border-radius:99px;background:rgba(255,255,255,.08);font-size:10px}.nav-link:hover{background:rgba(255,255,255,.06);color:#fff}.nav-link.active{background:linear-gradient(90deg,rgba(20,139,209,.28),rgba(20,139,209,.11));color:#fff;box-shadow:inset 3px 0 var(--cyan)}.sidebar-footer{padding:14px;border-top:1px solid rgba(255,255,255,.08)}.mini-progress{padding:12px;border-radius:12px;background:rgba(255,255,255,.045)}.mini-progress>div:first-child{display:flex;justify-content:space-between;font-size:11px}.mini-progress small{display:block;color:#7892a7;font-size:9px;line-height:1.35;margin-top:7px}.progress-track{height:5px;margin-top:8px;border-radius:5px;background:rgba(255,255,255,.1);overflow:hidden}.progress-track i{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--blue),var(--cyan));transition:.3s}.nav-logout{width:100%;display:flex;gap:9px;align-items:center;margin-top:8px;padding:9px 11px;border:0;background:transparent;color:#91aabd}.nav-logout svg{width:18px}.nav-logout:hover{color:#fff}.sidebar-scrim,.drawer-scrim{display:none}
.workspace{min-height:100vh;margin-left:var(--sidebar)}.topbar{position:sticky;top:0;z-index:20;height:70px;display:flex;align-items:center;gap:18px;padding:0 clamp(20px,4vw,54px);border-bottom:1px solid var(--line);background:rgba(255,255,255,.93);backdrop-filter:blur(14px)}.global-search{height:40px;min-width:310px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#f7f9fb;color:#8492a0;text-align:left}.global-search span{flex:1}.global-search kbd{border:1px solid #ced8df;border-radius:5px;padding:1px 6px;background:#fff;font:11px 'DM Sans';color:#81909e}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:14px}.user-chip{display:flex;align-items:center;gap:9px}.user-chip>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--navy-900);color:#fff;font-weight:800}.user-chip strong,.user-chip small{display:block;line-height:1.2}.user-chip strong{font-size:13px}.user-chip small{margin-top:3px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.menu-button{display:none}.content{max-width:1600px;margin:auto;padding:38px clamp(24px,4.2vw,68px) 90px;outline:none}

/* Chapter anatomy */
.chapter-head{position:relative;display:grid;grid-template-columns:1fr auto;gap:28px;align-items:end;padding:0 0 25px;border-bottom:1px solid var(--line)}.chapter-head:after{content:"";position:absolute;left:0;bottom:-1px;width:88px;height:3px;background:linear-gradient(90deg,var(--blue),var(--cyan));border-radius:5px}.chapter-index{display:flex;align-items:center;gap:12px;margin-bottom:12px}.chapter-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:#e8f5fb;color:var(--blue)}.chapter-icon svg{width:22px;height:22px}.chapter-head h1{margin:0;font:800 clamp(30px,3.4vw,46px)/1.04 'Manrope';letter-spacing:-.045em}.chapter-head p{max-width:760px;margin:10px 0 0;color:var(--muted);font-size:16px}.chapter-number{font:800 clamp(55px,7vw,92px)/.75 'Manrope';color:#e8edf1;letter-spacing:-.08em;user-select:none}.chapter-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.chapter-body{padding:28px 0 0}.section-end{display:flex;align-items:center;gap:17px;margin-top:44px;color:#a4b1bc;font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.section-end:before,.section-end:after{content:"";height:1px;flex:1;background:var(--line)}.section-end i{width:7px;height:7px;transform:rotate(45deg);background:var(--gold)}

/* Common content */
.grid{display:grid;gap:18px}.grid-4{grid-template-columns:repeat(4,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-2{grid-template-columns:repeat(2,1fr)}.stat-card,.panel,.content-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 5px 18px rgba(18,38,60,.035)}.stat-card{padding:20px}.stat-card-head{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:700}.stat-card-head span:last-child{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:var(--soft);color:var(--blue)}.stat-card strong{display:block;margin:11px 0 2px;font:800 29px/1 'Manrope'}.stat-card small{color:var(--muted)}.panel{overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line)}.panel-head h2,.content-title{margin:0;font:800 17px/1.2 'Manrope';letter-spacing:-.02em}.panel-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.panel-body{padding:20px}.block-title{display:flex;align-items:end;justify-content:space-between;margin:34px 0 14px}.block-title:first-child{margin-top:0}.block-title h2{margin:0;font:800 21px/1.1 'Manrope';letter-spacing:-.03em}.block-title p{margin:5px 0 0;color:var(--muted)}.text-button{display:inline-flex;align-items:center;gap:5px;border:0;background:none;color:var(--blue);font-weight:700}.text-button svg{width:16px;height:16px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:4px 9px;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.badge-blue{background:#e5f4fc;color:#0877b9}.badge-green{background:var(--green-soft);color:var(--green)}.badge-gold{background:var(--gold-soft);color:#9a6c0b}.badge-gray{background:var(--soft);color:#66778a}.badge-red{background:var(--red-soft);color:var(--red)}.status-dot{width:7px;height:7px;border-radius:50%;background:currentColor}.empty{padding:50px 20px;text-align:center;color:var(--muted)}.empty svg{width:38px;height:38px;color:#b5c1ca}.empty strong{display:block;margin-top:8px;color:var(--ink)}
.section-directory{grid-template-columns:repeat(4,1fr)}.directory-card{position:relative;min-height:168px;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;transition:.18s}.directory-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--blue)}.directory-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.directory-card button{position:absolute;inset:0;border:0;background:transparent}.directory-card .chapter-icon{width:36px;height:36px}.directory-card h3{margin:20px 0 6px;font:800 16px 'Manrope'}.directory-card p{margin:0;color:var(--muted);font-size:12px}.directory-card small{position:absolute;right:15px;top:16px;color:#a1adb7;font-weight:700}
.deadline-list,.recent-list{display:grid}.deadline-row,.recent-row{display:grid;grid-template-columns:80px 1fr auto;gap:14px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.deadline-row:last-child,.recent-row:last-child{border-bottom:0}.date-tile{width:64px;border-radius:10px;background:var(--soft);padding:6px 7px;text-align:center;color:var(--muted);font-size:9px;text-transform:uppercase}.date-tile strong{display:block;color:var(--ink);font:800 19px/1 'Manrope'}.deadline-row h3,.recent-row h3{margin:0 0 2px;font-size:13px}.deadline-row p,.recent-row p{margin:0;color:var(--muted);font-size:11px}.recent-row{grid-template-columns:37px 1fr auto}.recent-row .chapter-icon{width:34px;height:34px;border-radius:10px}.recent-row .chapter-icon svg{width:17px;height:17px}

/* Editorial lists */
.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 18px}.toolbar-search{position:relative;min-width:240px;flex:1;max-width:430px}.toolbar-search svg{position:absolute;left:12px;top:11px;width:18px;color:var(--muted)}.toolbar-search input{width:100%;height:41px;padding:0 12px 0 40px;border:1px solid var(--line);border-radius:10px;background:#fff}.toolbar select{height:41px;padding:0 34px 0 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}.count-label{margin-left:auto;color:var(--muted);font-size:12px}.editorial-list{display:grid;gap:10px}.editorial-row{position:relative;display:grid;grid-template-columns:42px minmax(190px,.8fr) minmax(270px,1.4fr) auto;gap:16px;align-items:center;padding:15px 17px;border:1px solid var(--line);border-radius:13px;background:#fff;transition:.16s}.editorial-row:hover{border-color:#bad4e3;box-shadow:0 7px 20px rgba(18,38,60,.06)}.editorial-row .chapter-icon{width:40px;height:40px;border-radius:11px}.editorial-row h3{margin:0;font:800 14px/1.25 'Manrope'}.editorial-row p{margin:3px 0 0;color:var(--muted);font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.editorial-row-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.row-open{position:absolute;inset:0;border:0;background:transparent}.row-actions{position:relative;z-index:1;display:flex;gap:5px}.row-actions .icon-button{width:34px;height:34px}.row-actions svg{width:16px;height:16px}.cards-list{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.creature-card{position:relative;border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden;transition:.18s}.creature-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.creature-image{aspect-ratio:16/10;background:linear-gradient(145deg,#102d46,#071929);overflow:hidden}.creature-image img{width:100%;height:100%;object-fit:cover}.creature-image .image-placeholder{height:100%;display:grid;place-items:center;color:#81a7bd}.creature-image .image-placeholder svg{width:50px;height:50px}.creature-copy{padding:16px}.creature-copy h3{margin:0;font:800 17px 'Manrope'}.creature-copy p{height:42px;margin:7px 0 12px;color:var(--muted);font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.creature-copy .tags{display:flex;flex-wrap:wrap;gap:5px}.creature-card .row-open{z-index:1}.creature-card .row-actions{position:absolute;right:10px;top:10px}

/* Roadmap */
.milestone-strip{display:flex;gap:10px;overflow:auto;padding:0 0 11px;scrollbar-width:thin}.milestone{min-width:220px;padding:14px;border:1px solid var(--line);border-radius:13px;background:#fff}.milestone-index{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.milestone h3{margin:0;font:800 13px 'Manrope'}.milestone p{margin:5px 0 0;color:var(--muted);font-size:11px}.phase-stack{display:grid;gap:15px}.phase-block{border:1px solid var(--line);border-radius:17px;background:#fff;overflow:hidden}.phase-header{width:100%;display:grid;grid-template-columns:58px 1fr auto 30px;gap:15px;align-items:center;padding:18px;border:0;background:linear-gradient(90deg,#f9fbfc,#fff);color:var(--ink);text-align:left}.phase-number{font:800 26px/1 'Manrope';color:var(--blue)}.phase-header h2{margin:0;font:800 16px 'Manrope'}.phase-header p{margin:3px 0 0;color:var(--muted);font-size:11px}.phase-meta{text-align:right}.phase-meta strong,.phase-meta small{display:block}.phase-meta strong{font-size:12px}.phase-meta small{color:var(--muted);font-size:10px}.phase-header .chev{transition:.2s}.phase-block.open .phase-header .chev{transform:rotate(90deg)}.phase-content{display:none;border-top:1px solid var(--line)}.phase-block.open .phase-content{display:block}.phase-goal{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:16px 18px;background:#f8fafc;border-bottom:1px solid var(--line)}.phase-goal small{display:block;color:var(--blue);font-size:9px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.phase-goal p{margin:4px 0 0;color:var(--muted);font-size:11px}.task-row{display:grid;grid-template-columns:32px 1fr 130px 110px 92px auto;gap:12px;align-items:center;padding:12px 18px;border-bottom:1px solid #edf1f4}.task-row:last-child{border:0}.task-check{position:relative;z-index:2;width:23px;height:23px;display:grid;place-items:center;border:1px solid #bac8d2;border-radius:7px;background:#fff;color:transparent}.task-check.checked{background:var(--green);border-color:var(--green);color:#fff}.task-check svg{width:15px}.task-row h3{margin:0;font-size:12px}.task-row p{margin:2px 0 0;color:var(--muted);font-size:10px}.task-progress{display:flex;gap:7px;align-items:center}.task-progress .progress-track{flex:1;height:5px;background:#e9eef2;margin:0}.task-progress small{min-width:28px;color:var(--muted);font-size:9px}.task-row .row-actions{justify-content:flex-end}.unscheduled{border-style:dashed}

/* Timeline */
.timeline-key{display:flex;gap:16px;align-items:center;color:var(--muted);font-size:11px}.timeline-key i{display:inline-block;width:16px;height:5px;border-radius:4px;margin-right:5px}.timeline-shell{position:relative;overflow:auto;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(18,38,60,.04)}.timeline{min-width:1160px}.timeline-axis,.timeline-row{display:grid;grid-template-columns:310px 1fr}.timeline-axis{position:sticky;top:0;z-index:3;border-bottom:1px solid var(--line);background:#f7f9fb}.timeline-axis-label{padding:13px 17px;border-right:1px solid var(--line);font-weight:800;font-size:11px}.year-axis{position:relative;height:48px;background:repeating-linear-gradient(90deg,transparent 0 calc(100% / 12 - 1px),#edf1f4 calc(100% / 12 - 1px) calc(100% / 12))}.year-label{position:absolute;top:0;height:100%;padding:14px 8px;border-left:1px solid #dae3ea;font-size:10px;font-weight:800}.timeline-row{min-height:58px;border-bottom:1px solid #edf1f4}.timeline-row:last-child{border:0}.timeline-label{display:flex;align-items:center;gap:11px;padding:10px 16px;border-right:1px solid var(--line)}.timeline-label strong,.timeline-label small{display:block}.timeline-label strong{font-size:11px}.timeline-label small{color:var(--muted);font-size:9px}.timeline-label .phase-number{font-size:19px;min-width:31px}.timeline-track{position:relative;background:repeating-linear-gradient(90deg,transparent 0 calc(100% / 12 - 1px),#f1f4f6 calc(100% / 12 - 1px) calc(100% / 12))}.gantt-bar{position:absolute;top:17px;height:23px;min-width:5px;border-radius:6px;background:linear-gradient(90deg,var(--blue),#45bad9);box-shadow:0 4px 12px rgba(20,139,209,.2)}.gantt-bar.phase-done{background:var(--green)}.gantt-bar.phase-blocked{background:var(--red)}.gantt-bar span{position:absolute;left:8px;top:3px;white-space:nowrap;color:#fff;font-size:9px;font-weight:800}.deadline-pin{position:absolute;top:0;bottom:0;width:2px;background:var(--gold)}.deadline-pin:after{content:"";position:absolute;top:8px;left:-4px;width:10px;height:10px;background:var(--gold);transform:rotate(45deg)}.timeline-today{position:absolute;z-index:2;top:49px;bottom:0;width:2px;background:var(--red);pointer-events:none}.timeline-today:before{content:"Heute";position:absolute;top:3px;left:4px;padding:1px 5px;border-radius:4px;background:var(--red);color:#fff;font-size:8px}.timeline-note{margin:12px 3px 0;color:var(--muted);font-size:11px}

/* Drawer, search and editor */
.detail-drawer{position:fixed;z-index:55;right:0;top:0;bottom:0;width:min(520px,94vw);background:#fff;box-shadow:-24px 0 65px rgba(6,24,44,.2);transform:translateX(105%);transition:.26s ease}.detail-drawer.open{transform:none}.drawer-scrim{position:fixed;z-index:54;inset:0;border:0;background:rgba(4,18,33,.35);backdrop-filter:blur(2px)}.detail-drawer.open+.drawer-scrim{display:block}.drawer-head{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line)}.drawer-body{height:calc(100% - 72px);padding:24px;overflow:auto}.drawer-hero{margin:-24px -24px 22px;aspect-ratio:16/8;background:var(--navy-900);overflow:hidden}.drawer-hero img{width:100%;height:100%;object-fit:cover}.drawer-body h2{margin:0;font:800 27px/1.15 'Manrope';letter-spacing:-.035em}.drawer-summary{margin:12px 0;color:var(--muted);font-size:15px}.drawer-meta{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 24px}.detail-section{padding:17px 0;border-top:1px solid var(--line)}.detail-section h3{margin:0 0 7px;font:800 13px 'Manrope'}.detail-section p{white-space:pre-line;margin:0;color:#4f6274}.detail-list{margin:0;padding-left:18px;color:#4f6274}.drawer-actions{display:flex;gap:8px;margin-top:20px}
.search-overlay,.modal{position:fixed;z-index:70;inset:0;display:grid;place-items:start center;padding-top:8vh}.modal{z-index:80;place-items:center;padding:20px}.overlay-backdrop{position:absolute;inset:0;border:0;background:rgba(4,18,33,.55);backdrop-filter:blur(5px)}.search-dialog{position:relative;width:min(720px,calc(100% - 30px));max-height:78vh;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:#fff;box-shadow:0 35px 90px rgba(0,0,0,.28);overflow:hidden}.search-input-wrap{height:68px;display:flex;align-items:center;gap:13px;padding:0 16px;border-bottom:1px solid var(--line)}.search-input-wrap>svg{color:var(--blue)}.search-input-wrap input{flex:1;border:0;outline:0;font-size:18px}.search-help{display:flex;justify-content:space-between;padding:8px 18px;background:#f8fafb;color:var(--muted);font-size:10px}.search-results{max-height:58vh;overflow:auto;padding:8px}.search-result{width:100%;display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;padding:11px;border:0;border-radius:10px;background:#fff;text-align:left}.search-result:hover,.search-result.active{background:#edf7fc}.search-result strong,.search-result small{display:block}.search-result small{color:var(--muted);font-size:10px}.search-result>small{padding:3px 7px;border-radius:7px;background:var(--soft)}
.editor-dialog{position:relative;width:min(880px,calc(100% - 24px));max-height:92vh;border-radius:19px;background:#fff;box-shadow:0 35px 90px rgba(0,0,0,.3);overflow:hidden}.editor-dialog>header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 25px;border-bottom:1px solid var(--line)}.editor-dialog h2{margin:2px 0 0;font:800 22px 'Manrope'}.editor-dialog form{display:flex;flex-direction:column;max-height:calc(92vh - 76px)}#editor-fields{padding:22px 25px;overflow:auto}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 18px}.form-field.full{grid-column:1/-1}.form-field label{display:flex;justify-content:space-between;margin:0 0 6px;font-size:11px;font-weight:800}.form-field label small{color:var(--muted);font-weight:400}.form-control{padding:10px 12px;font-size:13px}.form-field textarea{min-height:100px;resize:vertical}.form-field textarea.small{min-height:70px}.upload-box{display:grid;grid-template-columns:1fr auto;gap:9px}.upload-box input[type=file]{padding:8px}.editor-dialog footer{display:grid;grid-template-columns:auto 1fr auto auto;gap:9px;padding:15px 25px;border-top:1px solid var(--line);background:#f8fafb}
.toast-stack{position:fixed;z-index:100;right:22px;bottom:22px;display:grid;gap:9px}.toast{display:flex;align-items:center;gap:10px;width:min(360px,calc(100vw - 36px));padding:12px 14px;border-radius:12px;background:var(--navy-900);color:#fff;box-shadow:var(--shadow);animation:toast-in .25s ease}.toast.error{background:#8e3338}.toast svg{width:18px;color:var(--cyan)}@keyframes toast-in{from{transform:translateY(12px);opacity:0}}

/* Admin */
.admin-banner{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;margin-bottom:18px;padding:18px 20px;border:1px solid #f0d99d;border-radius:15px;background:linear-gradient(100deg,#fffaf0,#fff)}.admin-banner h2{margin:0;font:800 17px 'Manrope'}.admin-banner p{margin:4px 0 0;color:var(--muted);font-size:12px}.admin-table{overflow:auto;border:1px solid var(--line);border-radius:15px;background:#fff}.admin-row{min-width:850px;display:grid;grid-template-columns:minmax(250px,1.5fr) 120px 120px 120px 100px 78px;gap:10px;align-items:center;padding:11px 14px;border-bottom:1px solid #edf1f4}.admin-row:last-child{border:0}.admin-row.head{position:sticky;top:0;background:#f7f9fb;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.admin-row h3{margin:0;font-size:12px}.admin-row p{margin:2px 0 0;color:var(--muted);font-size:9px}.admin-row .row-actions{justify-content:flex-end}.admin-phases{display:grid;gap:9px}.admin-phase{display:grid;grid-template-columns:43px 1fr 130px 130px auto;gap:12px;align-items:center;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:#fff}.admin-phase h3{margin:0;font-size:12px}.admin-phase small{color:var(--muted)}

/* Lore, questions and AI editorial workspace */
.button:disabled{cursor:not-allowed;opacity:.55;transform:none!important}.lore-commandbar,.world-commandbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:14px}.lore-commandbar>span,.world-commandbar>span{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.world-commandbar>span{margin-right:auto}.lore-workspace{display:grid;grid-template-columns:220px minmax(0,1fr) 340px;border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 8px 28px rgba(18,38,60,.045)}.lore-workspace.reader{grid-template-columns:230px minmax(0,1fr)}.lore-rail{padding:11px 0;border-right:1px solid var(--line);background:#fbfcfd}.lore-rail-item{width:100%;display:grid;grid-template-columns:34px 1fr;gap:4px 9px;align-items:center;padding:12px 14px;border:0;border-left:3px solid transparent;background:transparent;color:var(--ink);text-align:left}.lore-rail-item>span{grid-row:1/3;width:32px;height:32px;display:grid;place-items:center;color:var(--muted)}.lore-rail-item svg{width:19px}.lore-rail-item strong{font-size:12px}.lore-rail-item small{color:var(--muted);font-size:9px}.lore-rail-item:hover{background:#f0f6fa}.lore-rail-item.active{border-left-color:var(--blue);background:#eaf5fb;color:var(--navy-900)}.lore-rail-item.active>span{color:var(--blue)}.lore-document{min-width:0;padding:21px 24px;display:flex;flex-direction:column}.review-switch{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:22px;border:1px solid #bac8d3;border-radius:9px;overflow:hidden}.review-switch button{min-height:39px;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-right:1px solid #bac8d3;background:#fff;color:var(--ink);font-size:11px;font-weight:700}.review-switch button:last-child{border:0}.review-switch button.active{background:var(--gold-soft);color:#8a5d00}.review-switch svg{width:15px}.lore-document>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px}.lore-document h2{margin:0;font:800 25px/1.15 'Manrope';letter-spacing:-.035em}.lore-document header p{margin:7px 0 0;color:var(--muted);font-size:13px}.lore-source-line{display:flex;flex-wrap:wrap;align-items:center;gap:15px;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);font-size:10px}.lore-source-line span{display:flex;align-items:center;gap:5px}.lore-source-line svg{width:15px}.lore-source-line strong{margin-left:auto;color:#956a0b}.lore-prose{padding:20px 0 28px;flex:1;color:#324a60;font-size:14px;line-height:1.78}.lore-prose p{margin:0 0 17px}.lore-document>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:13px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}.lore-document>footer span{display:flex;align-items:center;gap:5px}.lore-document>footer svg{width:14px}.lore-inspector{border-left:1px solid var(--line);background:#fbfcfd;padding:12px;display:flex;flex-direction:column;gap:12px}.lore-inspector>section{border:1px solid var(--line);border-radius:11px;background:#fff;overflow:hidden}.ai-suggestions>header{padding:14px 15px;border-bottom:1px solid var(--line)}.ai-suggestions h2,.lore-question h2{display:flex;align-items:center;gap:7px;margin:0;font:800 15px 'Manrope'}.ai-suggestions h2 svg,.lore-question h2 svg{color:var(--blue);width:18px}.ai-suggestions header p{margin:3px 0 0;color:var(--muted);font-size:10px}.suggestion-list article{display:grid;grid-template-columns:23px 1fr;gap:7px;padding:12px 13px;border-bottom:1px solid var(--line)}.suggestion-list article>span{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#e7f4fb;color:var(--blue);font-size:10px;font-weight:800}.suggestion-list article p{margin:0;color:#405568;font-size:11px;line-height:1.5}.suggestion-list article>div{grid-column:2;display:flex;gap:12px}.suggestion-list .text-button{padding:0;font-size:9px}.text-button.danger{color:var(--red)}.ai-suggestion-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px}.ai-suggestion-actions small{max-width:135px;color:var(--muted);font-size:9px}.ai-suggestion-actions .button{min-height:35px;padding:7px 9px;font-size:10px}.lore-question{padding:15px}.lore-question>strong{display:block;margin-top:12px;font-size:12px}.lore-question>p{margin:5px 0 13px;color:var(--muted);font-size:10px}.question-summary{display:grid;grid-template-columns:130px 190px 1fr;gap:0;margin-bottom:18px;border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}.question-summary>div{display:flex;align-items:center;gap:10px;padding:15px 17px;border-right:1px solid var(--line)}.question-summary strong{font:800 25px 'Manrope';color:var(--blue)}.question-summary span{color:var(--muted);font-size:10px;font-weight:700}.question-summary>p{margin:0;padding:16px 20px;color:var(--muted);font-size:11px}.question-list{display:grid;gap:9px}.question-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px 16px;border:1px solid var(--line);border-radius:12px;background:#fff}.question-row.answered{border-left:3px solid var(--green)}.question-state{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#eef4f8;color:var(--blue)}.question-row.answered .question-state{background:var(--green-soft);color:var(--green)}.question-row small{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em}.question-row h3{margin:2px 0;font:800 14px 'Manrope'}.question-row p{margin:4px 0 0;color:var(--muted);font-size:11px}.question-actions{display:flex;align-items:center;gap:7px}.question-actions .button{font-size:11px}.answer-target{display:flex;align-items:center;gap:5px;margin-top:7px;color:var(--green);font-size:9px;font-weight:700}.answer-target svg{width:13px}.question-editor-intro{display:flex;gap:13px;margin-bottom:18px;padding:15px;border:1px solid #c9e1ee;border-radius:12px;background:#f0f8fc}.question-editor-intro>span{width:35px;height:35px;display:grid;place-items:center;color:var(--blue)}.question-editor-intro strong{font-size:13px}.question-editor-intro p{margin:3px 0 0;color:var(--muted);font-size:11px}.form-readonly{min-height:42px;display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px dashed #b9cad5;border-radius:10px;background:#f7f9fb;color:var(--muted);font-size:11px}

/* Island world editor */
.world-workspace{display:grid;grid-template-columns:190px minmax(0,1fr) 320px;border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden}.world-workspace.reader{grid-template-columns:210px minmax(0,1fr)}.island-rail{padding:10px 0;border-right:1px solid var(--line);background:#fbfcfd}.island-rail>h2{margin:0;padding:5px 14px 10px;font:800 13px 'Manrope'}.island-rail-item{width:100%;display:grid;grid-template-columns:43px 1fr auto;gap:9px;align-items:center;padding:8px 12px;border:0;border-left:3px solid transparent;background:transparent;text-align:left}.island-rail-item img,.island-rail-item>span{width:42px;height:42px;border-radius:8px;object-fit:cover}.island-rail-item>span{display:grid;place-items:center;background:#eaf4f9;color:var(--blue)}.island-rail-item strong{font-size:11px}.island-rail-item small{color:var(--muted);font-size:9px}.island-rail-item:hover{background:#f0f6fa}.island-rail-item.active{border-left-color:var(--blue);background:#eaf5fb}.island-main{min-width:0;padding:18px}.island-title{display:flex;align-items:center;gap:13px}.island-title>span{width:48px;height:48px;display:grid;place-items:center;color:var(--gold)}.island-title>span svg{width:33px;height:33px}.island-title>div{flex:1}.island-title h2{margin:0;font:800 23px 'Manrope'}.island-title p{margin:2px 0;color:var(--muted);font-size:12px}.island-facts{display:grid;grid-template-columns:repeat(3,1fr);margin:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.island-facts span{padding:10px 13px;border-right:1px solid var(--line)}.island-facts span:last-child{border:0}.island-facts small,.island-facts strong{display:block}.island-facts small{color:var(--muted);font-size:9px}.island-facts strong{margin-top:2px;font-size:11px}.island-gallery{border:1px solid var(--line);border-radius:11px;overflow:hidden}.gallery-tabs{display:flex;border-bottom:1px solid var(--line)}.gallery-tabs button{position:relative;min-height:43px;display:flex;align-items:center;gap:7px;padding:0 18px;border:0;background:#fff;color:var(--muted);font-size:11px;font-weight:700}.gallery-tabs button.active{color:var(--blue)}.gallery-tabs button.active:after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2px;background:var(--blue)}.gallery-tabs svg{width:17px}.gallery-tabs small{padding:1px 5px;border-radius:8px;background:var(--soft);font-size:8px}.gallery-stage{position:relative;margin:10px;aspect-ratio:16/7;border-radius:8px;background:var(--navy-900);overflow:hidden}.gallery-stage img{width:100%;height:100%;object-fit:cover}.gallery-stage p{position:absolute;left:0;right:0;bottom:0;margin:0;padding:22px 12px 9px;background:linear-gradient(transparent,rgba(5,22,38,.8));color:#fff;font-size:10px}.gallery-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:0 10px 10px}.gallery-thumbs figure{position:relative;margin:0;min-width:0}.gallery-thumbs img{width:100%;aspect-ratio:4/3;border-radius:7px;object-fit:cover}.gallery-thumbs figcaption{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:8px}.gallery-thumbs figure>div{position:absolute;right:4px;top:4px;display:flex;gap:3px}.gallery-thumbs figure button{width:24px;height:24px;display:grid;place-items:center;border:0;border-radius:6px;background:rgba(255,255,255,.9);color:var(--ink)}.gallery-thumbs figure button:last-child{color:var(--red)}.gallery-thumbs svg{width:12px}.gallery-actions{display:flex;justify-content:flex-start;padding:0 10px 10px}.gallery-actions .button{min-height:36px;font-size:10px}.island-collections{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}.island-collections>section{border:1px solid var(--line);border-radius:10px;overflow:hidden}.island-collections header{display:flex;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--line)}.island-collections h3{margin:0;font:800 12px 'Manrope'}.island-collections header span{color:var(--muted);font-size:9px}.collection-list{max-height:190px;overflow:auto;padding:5px}.collection-list>p{padding:7px;color:var(--muted);font-size:10px}.collection-list button{width:100%;display:grid;grid-template-columns:35px 1fr auto 17px;gap:7px;align-items:center;padding:6px;border:0;border-radius:7px;background:#fff;text-align:left}.collection-list button:hover{background:#f1f7fa}.collection-list img,.collection-list button>span:first-child{width:34px;height:34px;border-radius:7px;object-fit:cover}.collection-list button>span:first-child{display:grid;place-items:center;background:var(--soft)}.collection-list strong,.collection-list small{display:block}.collection-list strong{font-size:10px}.collection-list small{color:var(--muted);font-size:8px}.collection-list svg{width:14px}.island-editor{padding:17px;border-left:1px solid var(--line);background:#fbfcfd;overflow:auto}.island-editor>h2{margin:0 0 13px;font:800 17px 'Manrope'}.island-editor form{display:grid;gap:11px}.island-editor label,.island-editor legend{font-size:10px;font-weight:800}.island-editor label>.form-control{display:block;margin-top:4px}.island-editor textarea{min-height:78px;resize:vertical}.island-editor fieldset{min-width:0;margin:0;padding:9px;border:1px solid var(--line);border-radius:9px}.choice-scroll{max-height:145px;overflow:auto}.check-choice{display:flex;gap:7px;padding:5px 3px;font-weight:500!important}.collection-search{margin:4px 0 7px}.archive-choice{display:grid;grid-template-columns:18px 34px 1fr;gap:7px;align-items:center;padding:5px 2px;font-weight:500!important}.archive-choice img,.archive-choice>span:nth-child(2){width:32px;height:32px;display:grid;place-items:center;border-radius:6px;background:var(--soft);object-fit:cover}.archive-choice strong,.archive-choice small{display:block}.archive-choice strong{font-size:9px}.archive-choice small{color:var(--muted);font-size:8px}

/* Monster Archive importer */
.archive-layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:14px}.archive-main,.archive-help{border:1px solid var(--line);border-radius:14px;background:#fff}.archive-main{padding:17px}.archive-dropzone{min-height:145px;display:flex;align-items:center;justify-content:center;gap:22px;padding:24px;border:2px dashed #7dbde2;border-radius:12px;background:#fbfdff;text-align:left}.archive-dropzone.dragging{border-color:var(--blue);background:#eaf6fc}.archive-dropzone>span{width:64px;height:64px;display:grid;place-items:center;color:var(--blue)}.archive-dropzone>span svg{width:54px;height:54px}.archive-dropzone h2{margin:0;font:800 18px 'Manrope'}.archive-dropzone p{margin:3px 0 12px;color:var(--muted);font-size:11px}.archive-compat{padding:9px 4px;color:var(--muted);font-size:10px}.archive-compat strong{color:var(--blue)}.archive-zip{display:grid;grid-template-columns:34px 1fr minmax(160px,230px);gap:10px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:10px;background:#fbfcfd}.archive-zip>span{color:var(--blue)}.archive-zip strong,.archive-zip small{display:block}.archive-zip strong{font-size:11px}.archive-zip small{color:var(--muted);font-size:9px}.archive-zip input{font-size:9px}.archive-empty{padding:65px 20px;text-align:center;color:var(--muted)}.archive-empty>svg{width:44px;height:44px}.archive-empty h2{margin:9px 0 3px;font:800 16px 'Manrope';color:var(--ink)}.archive-empty p{max-width:490px;margin:auto;font-size:10px}.archive-file-state{display:grid;grid-template-columns:45px 1fr auto;gap:12px;align-items:center;margin-top:12px;padding:13px;border:1px solid var(--line);border-radius:10px}.archive-file-state>span{width:42px;height:42px;display:grid;place-items:center;border-radius:8px;background:#eef5f9;color:var(--blue)}.archive-file-state h2{margin:0;font:800 12px 'Manrope';word-break:break-all}.archive-file-state p{margin:3px 0 0;color:var(--muted);font-size:9px}.archive-file-state>strong{display:flex;align-items:center;gap:5px;color:var(--green);font-size:9px}.archive-file-state>strong svg{width:15px}.archive-preview{margin-top:11px;border:1px solid var(--line);border-radius:10px;overflow:hidden}.archive-preview>header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--line)}.archive-preview h2{margin:0;font:800 13px 'Manrope'}.archive-preview h2 small{color:var(--muted);font-weight:500}.archive-preview header>span{color:var(--muted);font-size:9px}.archive-table{max-height:400px;overflow:auto}.archive-preview-row{min-width:700px;display:grid;grid-template-columns:43px 80px minmax(150px,1fr) 120px 90px 90px;gap:8px;align-items:center;padding:7px 10px;border-bottom:1px solid #edf1f4;font-size:9px}.archive-preview-row.head{position:sticky;top:0;background:#f7f9fb;color:var(--muted);font-weight:800}.archive-preview-row img,.archive-preview-row>span:first-child{width:35px;height:35px;display:grid;place-items:center;border-radius:6px;object-fit:cover}.archive-preview-row>span:first-child{background:var(--soft)}.archive-preview-row svg{width:17px}.archive-finish{display:grid;grid-template-columns:1fr auto;gap:13px;align-items:end;margin-top:11px}.archive-finish fieldset{display:flex;gap:16px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:10px}.archive-finish legend{font-size:9px;font-weight:800}.archive-finish label{font-size:9px}.archive-finish>div{display:flex;gap:7px}.archive-help{padding:18px}.archive-help>h2{margin:0;font:800 17px 'Manrope'}.archive-help ol{list-style:none;margin:18px 0;padding:0}.archive-help li{display:grid;grid-template-columns:28px 1fr;gap:9px;padding:11px 0;border-bottom:1px solid var(--line)}.archive-help li>span{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#e8f4fb;color:var(--blue);font-size:10px;font-weight:800}.archive-help strong{font-size:11px}.archive-help p{margin:3px 0 0;color:var(--muted);font-size:9px}.security-note{display:flex;gap:10px;margin:15px 0;padding:12px;border:1px solid #b7d9ed;border-radius:10px;background:#f1f9fd;color:#25516c}.security-note svg{flex:0 0 auto;width:18px;color:var(--blue)}.security-note p{margin:0;font-size:9px;line-height:1.5}

/* AI settings */
.settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px}.settings-main,.settings-side{border:1px solid var(--line);border-radius:14px;background:#fff}.settings-main{padding:18px}.settings-intro{display:flex;gap:12px;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line)}.settings-intro>span{width:43px;height:43px;display:grid;place-items:center;border-radius:11px;background:#eaf5fb;color:var(--blue)}.settings-intro h2{margin:0;font:800 18px 'Manrope'}.settings-intro p{margin:3px 0;color:var(--muted);font-size:10px}.provider-list{display:grid;gap:10px;margin-top:12px}.provider-card{border:1px solid var(--line);border-radius:11px;padding:13px}.provider-card>header{display:grid;grid-template-columns:39px 1fr auto;gap:10px;align-items:center}.provider-mark{width:37px;height:37px;display:grid;place-items:center;border-radius:9px;background:var(--navy-900);color:#fff;font:800 16px 'Manrope'}.provider-card h3{margin:0;font:800 13px 'Manrope'}.provider-card header small{display:block;color:var(--muted);font-size:8px}.provider-state{padding:4px 7px;border-radius:7px;background:var(--soft);color:var(--muted);font-size:8px}.provider-state.ready{background:var(--green-soft);color:var(--green)}.provider-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px;padding-top:11px;border-top:1px solid var(--line)}.provider-fields label,.settings-side label{font-size:9px;font-weight:800}.provider-fields .form-control,.settings-side .form-control{display:block;margin-top:4px}.secret-input{position:relative}.secret-input>span{position:absolute;right:10px;top:13px;color:var(--muted);font-size:9px}.secret-input svg{width:14px}.clear-secret{grid-column:2;display:flex;align-items:center;gap:6px;color:var(--muted);font-weight:500!important}.local-provider{grid-column:1/-1;display:flex;align-items:center;gap:7px;margin:0;color:var(--muted);font-size:9px}.local-provider svg{width:15px}.settings-side{align-self:start;padding:18px;display:grid;gap:14px}.settings-side>h2{margin:0;font:800 17px 'Manrope'}.settings-side .security-note{margin:0}.settings-help{color:var(--muted);font-size:8px}.archive-facts{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0}.archive-facts div{padding:9px;border-radius:8px;background:#f6f8fa}.archive-facts dt{color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.08em}.archive-facts dd{margin:2px 0 0;font-size:11px;font-weight:700}.detail-link{display:flex!important;align-items:center;gap:6px;margin-top:10px!important;color:var(--green)!important;font-size:10px}.detail-link svg{width:14px}

@media (max-width:1380px){.lore-workspace{grid-template-columns:200px minmax(0,1fr) 300px}.world-workspace{grid-template-columns:170px minmax(0,1fr) 290px}.lore-document{padding:19px}.lore-inspector{padding:9px}.island-editor{padding:13px}}
@media (max-width:1120px){.lore-workspace,.world-workspace{grid-template-columns:190px minmax(0,1fr)}.lore-inspector,.island-editor{grid-column:1/-1;border-left:0;border-top:1px solid var(--line)}.lore-inspector{display:grid;grid-template-columns:1fr 1fr}.island-editor form{grid-template-columns:1fr 1fr}.island-editor form>label,.island-editor form>fieldset{min-width:0}.island-editor form>button{grid-column:1/-1}.archive-layout,.settings-layout{grid-template-columns:1fr}.archive-help,.settings-side{order:-1}.archive-help ol{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.archive-help li{border:0}.settings-side{grid-template-columns:1fr 1fr}.settings-side>h2,.settings-side>.security-note,.settings-side>.settings-help{grid-column:1/-1}}

@media (max-width:1180px){.grid-4,.section-directory{grid-template-columns:repeat(2,1fr)}.cards-list{grid-template-columns:repeat(2,1fr)}.task-row{grid-template-columns:32px 1fr 110px 90px auto}.task-row>.badge:first-of-type{display:none}.editorial-row{grid-template-columns:42px 1fr auto}.editorial-row>p{display:none}}
@media (max-width:820px){:root{--sidebar:270px}.login-screen{grid-template-columns:1fr}.login-art{display:none}.sidebar{transform:translateX(-105%);transition:.25s}.sidebar.open{transform:none}.sidebar.open+.sidebar-scrim{display:block;position:fixed;z-index:29;inset:0;border:0;background:rgba(4,18,33,.45)}.workspace{margin:0}.menu-button{display:grid}.topbar{padding:0 16px}.global-search{min-width:0;width:42px;padding:0;justify-content:center}.global-search span,.global-search kbd{display:none}.topbar .button-primary{width:40px;padding:0;font-size:0}.topbar .button-primary svg{margin:0}.user-chip div{display:none}.content{padding:27px 18px 70px}.chapter-head{grid-template-columns:1fr}.chapter-number{display:none}.grid-3,.grid-2{grid-template-columns:1fr}.phase-header{grid-template-columns:43px 1fr 24px}.phase-meta{display:none}.phase-goal{grid-template-columns:1fr}.task-row{grid-template-columns:30px 1fr auto}.task-row>.badge,.task-progress{display:none}.editorial-row{grid-template-columns:40px 1fr auto;padding:12px}.cards-list{grid-template-columns:1fr}.search-help small{display:none}.form-grid{grid-template-columns:1fr}.form-field.full{grid-column:auto}.editor-dialog footer{grid-template-columns:auto 1fr auto}.editor-dialog footer .button-secondary{display:none}.admin-banner{grid-template-columns:1fr}.admin-phase{grid-template-columns:36px 1fr auto}.admin-phase>small{display:none}}
@media (max-width:520px){.login-panel{padding:28px 20px}.login-card h1{font-size:31px}.grid-4,.section-directory{grid-template-columns:1fr}.topbar-actions{gap:7px}.chapter-head h1{font-size:31px}.deadline-row{grid-template-columns:67px 1fr}.deadline-row>.badge{display:none}.section-directory .directory-card{min-height:145px}.editorial-row-meta{display:none}.editorial-row{grid-template-columns:40px 1fr}.row-actions{display:none}.creature-card .row-actions{display:flex}.modal{padding:7px}.editor-dialog{width:100%;max-height:98vh}.editor-dialog form{max-height:calc(98vh - 76px)}#editor-fields{padding:18px 16px}.editor-dialog footer{padding:12px 16px}.editor-dialog footer .button{font-size:11px;padding:8px}.drawer-body{padding:19px}.drawer-hero{margin:-19px -19px 18px}.toolbar select{max-width:47%}}
@media (max-width:820px){.topbar #admin-login-button{width:40px;padding:0;font-size:0}}
@media (max-width:820px){
  .lore-workspace,.lore-workspace.reader,.world-workspace,.world-workspace.reader{display:block}
  .lore-rail,.island-rail{display:flex;overflow:auto;border-right:0;border-bottom:1px solid var(--line);padding:7px;background:#fbfcfd}
  .lore-rail-item{min-width:180px;border-left:0;border-bottom:3px solid transparent;border-radius:8px}.lore-rail-item.active{border-left:0;border-bottom-color:var(--blue)}
  .island-rail>h2{display:none}.island-rail-item{min-width:145px;border-left:0;border-bottom:3px solid transparent;border-radius:8px}.island-rail-item.active{border-left:0;border-bottom-color:var(--blue)}
  .lore-inspector{display:block}.lore-inspector>section+section{margin-top:10px}.island-editor form{display:grid;grid-template-columns:1fr}
  .island-facts{grid-template-columns:1fr}.island-facts span{border-right:0;border-bottom:1px solid var(--line)}.island-facts span:last-child{border:0}.island-collections{grid-template-columns:1fr}
  .archive-layout,.settings-layout{display:block}.archive-help,.settings-side{margin-bottom:12px}.archive-help ol,.settings-side{display:block}.archive-help li{border-bottom:1px solid var(--line)}
  .archive-dropzone{align-items:flex-start;justify-content:flex-start}.archive-zip{grid-template-columns:30px 1fr}.archive-zip input{grid-column:1/-1;width:100%}.archive-finish{grid-template-columns:1fr}.archive-finish fieldset{display:grid}.archive-finish>div{flex-wrap:wrap}
  .provider-fields{grid-template-columns:1fr}.clear-secret{grid-column:auto}.question-summary{grid-template-columns:1fr 1fr}.question-summary>p{grid-column:1/-1;border-top:1px solid var(--line)}.question-row{grid-template-columns:35px 1fr}.question-actions{grid-column:2}
}
@media (max-width:520px){
  .lore-commandbar,.world-commandbar{align-items:stretch;flex-direction:column}.lore-commandbar .button,.world-commandbar .button{width:100%}.world-commandbar>span{margin:0}
  .lore-document{padding:16px}.lore-document h2{font-size:21px}.review-switch button{font-size:9px}.lore-document>footer{align-items:flex-start;flex-direction:column}
  .island-main{padding:12px}.gallery-tabs button{flex:1;justify-content:center;padding:0 7px;font-size:9px}.gallery-thumbs{grid-template-columns:repeat(2,1fr)}
  .archive-main,.archive-help,.settings-main,.settings-side{padding:13px}.archive-dropzone{display:block;text-align:center}.archive-dropzone>span{margin:auto}.archive-file-state{grid-template-columns:40px 1fr}.archive-file-state>strong{grid-column:2}.archive-finish>div .button{width:100%}
  .provider-card>header{grid-template-columns:35px 1fr}.provider-state{grid-column:2;justify-self:start}.archive-facts{grid-template-columns:1fr}.question-summary{grid-template-columns:1fr}.question-summary>div{border-right:0;border-bottom:1px solid var(--line)}.question-summary>p{grid-column:auto}.question-row{padding:12px}.question-actions .button{font-size:9px;padding:7px 9px}
}

.knowledge-title{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}
.world-knowledge-title{margin-bottom:14px}
.world-knowledge-list{margin-bottom:8px}

@media (min-width:1121px){
  .world-workspace{height:740px}
  .island-rail,.island-main,.island-editor{overflow:auto}
}

/* 4.1 · AI idea inbox */
.idea-modal{padding:18px}.idea-dialog{position:relative;width:min(1420px,calc(100vw - 36px));max-height:calc(100vh - 36px);display:flex;flex-direction:column;border:1px solid #31506a;border-radius:18px;background:#081b2d;color:#eaf2f7;box-shadow:0 35px 100px rgba(0,0,0,.48);overflow:hidden}.idea-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 24px 16px;border-bottom:1px solid #29445b}.idea-head h2{margin:2px 0 0;font:800 25px/1.2 'Manrope'}.idea-head p:last-child{margin:5px 0 0;color:#91a9ba;font-size:12px}.idea-head .icon-button{border-color:#36536a;background:#0d263b;color:#b7c8d5}.idea-question-context{display:flex;gap:11px;align-items:center;margin:13px 18px 0;padding:10px 13px;border:1px solid #6d5623;border-radius:10px;background:#2c2415}.idea-question-context>span{color:#e0ae44}.idea-question-context strong,.idea-question-context small{display:block}.idea-question-context small{color:#c9a95f;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.idea-question-context p{margin:2px 0 0;color:#d4c6aa;font-size:10px}.idea-grid{min-height:0;display:grid;grid-template-columns:220px minmax(360px,.9fr) minmax(430px,1.1fr);gap:12px;padding:14px 18px;overflow:auto}.idea-grid>aside,.idea-composer{min-width:0;border:1px solid #29445b;border-radius:12px;background:#0b2135}.idea-scope{padding:13px}.idea-scope h3,.idea-step h3{margin:0 0 11px;font:800 13px 'Manrope'}.idea-scope>button{width:100%;min-height:46px;display:grid;grid-template-columns:22px 1fr 18px;gap:9px;align-items:center;margin:0 0 8px;padding:8px 10px;border:1px solid #29445b;border-radius:9px;background:#0d263b;color:#bdccd7;text-align:left;font-size:11px}.idea-scope>button:hover{border-color:#4f7997}.idea-scope>button.active{border-color:#54d7e4;background:#103149;color:#fff;box-shadow:inset 3px 0 #54d7e4}.idea-scope>button:disabled{cursor:default}.idea-scope svg{width:17px;color:#54d7e4}.idea-provider{display:flex;gap:8px;align-items:center;margin-top:15px;padding:10px;border-top:1px solid #29445b;color:#79d9c0}.idea-provider svg{flex:0 0 auto;width:18px}.idea-provider strong,.idea-provider small{display:block}.idea-provider strong{color:#d9e5ed;font-size:9px}.idea-provider small{color:#7f99ac;font-size:8px}.idea-composer{display:flex;flex-direction:column;padding:14px}.idea-step{display:flex;justify-content:space-between;gap:10px}.idea-step span{color:#6f8da3;font-size:9px}.idea-composer textarea{min-height:270px;flex:1;width:100%;resize:vertical;padding:14px;border:1px solid #32728a;border-radius:9px;background:#071827;color:#eef7fb;outline:none;line-height:1.55}.idea-composer textarea:focus{border-color:#54d7e4;box-shadow:0 0 0 3px rgba(84,215,228,.09)}.idea-composer textarea::placeholder{color:#6e8799}.voice-panel{display:flex;align-items:center;justify-content:center;gap:12px;padding:15px 0}.voice-button{width:58px;height:58px;display:grid;place-items:center;border:2px solid #54d7e4;border-radius:50%;background:#0c2d43;color:#61dce7;box-shadow:0 0 0 7px rgba(84,215,228,.06)}.voice-button svg{width:27px;height:27px}.voice-button.recording{border-color:#f07779;color:#f7999b;animation:voicePulse 1.4s infinite}.voice-panel strong,.voice-panel small{display:block}.voice-panel strong{font-size:11px}.voice-panel small{color:#809aab;font-size:8px}@keyframes voicePulse{50%{box-shadow:0 0 0 13px rgba(240,119,121,.04)}}.idea-compose-actions{display:flex;justify-content:flex-end;gap:8px}.idea-modal .button-secondary{border-color:#39556b;background:#0e293e;color:#d6e1e8}.idea-modal .button-primary{background:#20a8c2}.idea-privacy{display:flex;gap:7px;margin:12px 0 0;color:#728ea1;font-size:8px;line-height:1.45}.idea-privacy svg{flex:0 0 auto;width:13px}.idea-preview{padding:12px;overflow:auto}.idea-preview-empty{min-height:100%;display:grid;place-content:center;text-align:center;color:#7f99ab}.idea-preview-empty>svg{width:38px;height:38px;margin:auto;color:#54d7e4}.idea-preview-empty h3{margin:10px 0 3px;color:#e7f1f6;font:800 16px 'Manrope'}.idea-preview-empty p{max-width:350px;margin:0 auto;font-size:10px}.idea-preview-empty ul{display:inline-block;margin:15px auto 0;padding-left:19px;text-align:left;font-size:9px}.preview-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 3px 10px}.preview-title small{color:#54d7e4;font-size:8px;text-transform:uppercase;letter-spacing:.1em}.preview-title h3{margin:1px 0;font:800 16px 'Manrope'}.preview-title>span{display:flex;align-items:center;gap:5px;color:#8ca3b3;font-size:8px}.preview-title svg{width:14px}.preview-group{margin-bottom:9px;border:1px solid #2a455b;border-radius:9px;background:#0d263a;overflow:hidden}.preview-group>header{display:flex;justify-content:space-between;padding:8px 10px;border-bottom:1px solid #2a455b}.preview-group h3{margin:0;font:800 11px 'Manrope'}.preview-group header span{min-width:19px;height:19px;display:grid;place-items:center;border-radius:6px;background:#173c55;color:#69d8e4;font-size:8px}.preview-change{display:grid;grid-template-columns:18px 1fr;gap:8px;padding:9px 10px;border-bottom:1px solid #203c51;cursor:pointer}.preview-change:last-child{border-bottom:0}.preview-change input{accent-color:#54d7e4}.preview-change strong{font-size:10px}.preview-change p{margin:2px 0;color:#b0c0cb;font-size:9px;line-height:1.4}.preview-change small{display:block;color:#57c9da;font-size:8px}.preview-none{margin:0;padding:10px;color:#718ca0;font-size:9px}.preview-conflicts{margin-bottom:9px;padding:9px 10px;border:1px solid #805d1c;border-radius:9px;background:#332814;color:#efc46b}.preview-conflicts h3{display:flex;gap:7px;align-items:center;margin:0 0 4px;font:800 10px 'Manrope'}.preview-conflicts svg{width:15px}.preview-conflicts p{margin:3px 0;font-size:8px}.idea-applybar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 18px;border-top:1px solid #29445b;background:#071827}.idea-applybar>div{display:flex;align-items:center;justify-content:flex-end;gap:13px}.idea-applybar small{max-width:510px;color:#849daf;font-size:9px;text-align:right}.idea-applybar .button-primary{min-width:240px}.gallery-tabs.custom-tabs{overflow-x:auto;scrollbar-width:thin}.gallery-tabs.custom-tabs>button{flex:0 0 auto;white-space:nowrap}.gallery-tabs .gallery-add-tab{margin-left:auto;padding:0 13px;color:var(--blue);border-left:1px solid var(--line)}.gallery-actions{gap:7px;flex-wrap:wrap}.gallery-actions .danger{color:var(--red)}.island-collections.three{grid-template-columns:repeat(3,minmax(0,1fr))}

@media(max-width:1180px){.idea-grid{grid-template-columns:190px minmax(320px,1fr)}.idea-preview{grid-column:1/-1;max-height:420px}.island-collections.three{grid-template-columns:1fr 1fr}.island-collections.three>section:last-child{grid-column:1/-1}}
@media(max-width:720px){.idea-modal{padding:5px}.idea-dialog{width:100%;max-height:calc(100vh - 10px)}.idea-head{padding:15px}.idea-head h2{font-size:20px}.idea-grid{display:block;padding:9px}.idea-grid>aside,.idea-composer{margin-bottom:9px}.idea-scope{display:flex;gap:6px;overflow:auto}.idea-scope h3,.idea-provider{display:none}.idea-scope>button{min-width:145px;margin:0}.idea-composer textarea{min-height:230px}.idea-compose-actions{display:grid;grid-template-columns:1fr 1fr}.idea-preview{max-height:380px}.idea-applybar{align-items:stretch;flex-direction:column}.idea-applybar>div{align-items:stretch;flex-direction:column}.idea-applybar small{text-align:left}.idea-applybar .button-primary{min-width:0;width:100%}.island-collections.three{grid-template-columns:1fr}.island-collections.three>section:last-child{grid-column:auto}}

@media(min-width:721px){.idea-dialog{height:min(900px,calc(100vh - 36px))}.idea-head{flex:0 0 auto}#idea-content{min-height:0;display:flex;flex:1;flex-direction:column}.idea-grid{flex:1;overflow:hidden}.idea-grid>aside,.idea-composer{overflow:auto}.idea-applybar{flex:0 0 auto}.idea-composer textarea{min-height:180px}}

/* 5.0 · Team, Kategorien, Unity3D und interaktive Planung */
.editor-only{display:none!important}.is-editor .editor-only{display:inline-flex!important}.ai-mini-progress{margin-top:7px}.ai-mini-progress .progress-track i{background:linear-gradient(90deg,var(--gold),var(--orange))}
.category-tags{display:inline-flex;flex-wrap:wrap;gap:5px;vertical-align:middle}.category-tag{display:inline-flex;align-items:center;min-height:20px;padding:2px 8px;border:1px solid color-mix(in srgb,var(--category) 72%,transparent);border-radius:5px;background:color-mix(in srgb,var(--category) 17%,transparent);color:color-mix(in srgb,var(--category) 72%,#12263c);font-size:9px;font-weight:800;line-height:1}.category-tag:before{content:"";width:6px;height:6px;margin-right:5px;border-radius:50%;background:var(--category)}
.category-field{border:0;margin:0;padding:0}.category-field legend{margin-bottom:8px;font-weight:700}.category-field legend small{display:block;color:var(--muted);font-size:10px;font-weight:400}.category-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.category-choices label{cursor:pointer}.category-choices input{position:absolute;opacity:0}.category-choices span{display:flex;align-items:center;justify-content:center;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:11px;font-weight:800}.category-choices input:checked+span{border-color:var(--category);background:color-mix(in srgb,var(--category) 13%,white);box-shadow:inset 3px 0 var(--category)}
.progress-duo{display:grid;grid-template-columns:1fr 1fr;gap:18px}.milestone{position:relative;cursor:pointer;transition:.2s}.milestone:hover{border-color:var(--blue);box-shadow:0 9px 26px rgba(20,139,209,.1);transform:translateY(-2px)}.milestone .category-tags{margin:7px 0}.milestone-actions{position:absolute;right:8px;bottom:8px;display:flex;gap:4px;opacity:0;transition:.2s}.milestone:hover .milestone-actions,.milestone:focus-within .milestone-actions{opacity:1}.task-row .category-tags{margin:3px 0}
.lore-document.lore-complete{max-width:920px}.lore-complete .lore-prose{font-size:15px;line-height:1.85}.lore-complete .lore-prose h3{margin:2.1em 0 .6em;color:var(--navy-900);font:800 20px 'Manrope'}.lore-complete .lore-prose p+ p{margin-top:1.4em}

.route-unity,.route-team,.route-timeline{max-width:none;min-height:calc(100vh - 70px);margin:0;padding-left:clamp(24px,3vw,48px);padding-right:clamp(24px,3vw,48px);background:#071827;color:#e8f0f5}.route-unity .chapter-head,.route-team .chapter-head,.route-timeline .chapter-head{border-color:#274157}.route-unity .chapter-head h1,.route-team .chapter-head h1,.route-timeline .chapter-head h1{color:#e5b256;font-family:Georgia,'Times New Roman',serif;font-weight:600;letter-spacing:-.025em}.route-unity .chapter-head p,.route-team .chapter-head p,.route-timeline .chapter-head p{color:#91a7b7}.route-unity .chapter-number,.route-team .chapter-number,.route-timeline .chapter-number{color:#102c42}.route-unity .section-end,.route-team .section-end,.route-timeline .section-end{color:#5f7b8e}.route-unity .section-end:before,.route-unity .section-end:after,.route-team .section-end:before,.route-team .section-end:after,.route-timeline .section-end:before,.route-timeline .section-end:after{background:#274157}

.unity-progress{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:stretch}.unity-progress>section{padding:14px 17px;border:1px solid #29445b;border-radius:10px;background:#0b2135}.unity-progress>section>div:first-child{display:flex;justify-content:space-between;gap:12px}.unity-progress strong{font-size:12px}.unity-progress span{font-weight:800}.unity-progress small{display:block;margin-top:7px;color:#8fa7b8;font-size:9px}.unity-progress .progress-track{background:#1a3a51}.unity-progress .button{align-self:center}.unity-phase-strip,.unity-log{margin-top:16px;border:1px solid #29445b;border-radius:11px;background:#0a1f32;overflow:hidden}.unity-phase-strip>header,.unity-log>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;border-bottom:1px solid #29445b}.unity-phase-strip h2{margin:0;font:800 14px 'Manrope'}.unity-phase-strip p{margin:2px 0 0;color:#8da4b5;font-size:9px}.unity-phase-strip>header>div:last-child{display:flex;gap:7px}.unity-phase-strip>div{display:flex;overflow:auto}.unity-phase-strip>div>button{min-width:205px;flex:1;display:grid;grid-template-columns:35px 1fr;gap:2px 9px;padding:13px 15px;border:0;border-right:1px solid #29445b;background:#0b2135;color:#e5edf2;text-align:left}.unity-phase-strip>div>button:not(:disabled):hover{background:#103149}.unity-phase-strip>div>button>span{grid-row:1/4;color:#39bfdb;font:800 18px 'Manrope'}.unity-phase-strip>div>button strong{font-size:10px}.unity-phase-strip>div>button small{color:#829bad;font-size:8px}.unity-phase-strip .category-tags{grid-column:2}.unity-tabs{display:flex;gap:20px}.unity-tabs button{display:flex;align-items:center;gap:6px;padding:12px 2px;margin:-13px 0;border:0;border-bottom:3px solid transparent;background:none;color:#9eb0bc;font-weight:700}.unity-tabs button.active{border-color:#2bc0df;color:#fff}.unity-tabs span{display:grid;place-items:center;min-width:18px;height:18px;border-radius:9px;background:#183d56;font-size:8px}.unity-feed{display:grid}.unity-post{display:grid;grid-template-columns:10px minmax(220px,.7fr) minmax(300px,1.3fr) minmax(150px,.7fr) auto;gap:12px;align-items:center;padding:13px 15px;border-bottom:1px solid #233e54}.unity-post:last-child{border-bottom:0}.unity-post-state{width:8px;height:8px;border-radius:50%;background:#ef575d}.unity-post.done .unity-post-state{background:#75c58b}.unity-post.idea .unity-post-state{background:#e5b256}.unity-post.problem .unity-post-state{box-shadow:0 0 0 5px rgba(239,87,93,.1)}.unity-post-title small{color:#819bad;font-size:8px}.unity-post h3{margin:2px 0 4px;font:800 11px 'Manrope'}.unity-post>p{margin:0;color:#b4c3ce;font-size:9px}.unity-attachments{display:flex;gap:6px;min-width:0}.unity-image-attachment img,.unity-video-attachment{display:block;width:110px;height:54px;object-fit:cover;border:1px solid #345267;border-radius:7px}.unity-file-attachment{min-width:175px;display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #345267;border-radius:7px;color:#d8e4eb;text-decoration:none}.unity-file-attachment span{min-width:0;flex:1}.unity-file-attachment strong,.unity-file-attachment small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.unity-file-attachment small{color:#7f99ac}.unity-upload-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.unity-upload-list>span{display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:7px;background:var(--soft);font-size:10px}.unity-upload-list svg{width:14px}.unity-upload-list button{display:grid;place-items:center;border:0;background:none;color:var(--red)}

.team-command{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid #29445b}.team-command h2{margin:0;color:#e5b256;font:600 29px Georgia,serif}.team-command p{margin:4px 0 0;color:#90a7b8;font-size:11px}.team-filters{display:grid;grid-template-columns:180px 180px 180px 1fr;gap:10px;padding:14px 0}.team-filters select,.team-filters label{height:40px;border:1px solid #345168;border-radius:7px;background:#0a1f32;color:#dce7ed}.team-filters select{padding:0 10px}.team-filters label{display:flex;align-items:center;padding:0 10px}.team-filters label svg{width:16px;color:#6f899c}.team-filters input{width:100%;border:0;background:none;color:#e7eff4;outline:none}.team-workspace{min-height:620px;display:grid;grid-template-columns:210px 1fr;border:1px solid #29445b;border-radius:10px;background:#091d2f;overflow:hidden}.team-rail{padding:13px;border-right:1px solid #29445b}.team-rail h3,.change-list>header h3{margin:0;color:#4bd0e2;font:800 11px 'Manrope';text-transform:uppercase;letter-spacing:.08em}.team-member{width:100%;display:grid;grid-template-columns:42px 1fr;gap:2px 9px;align-items:center;padding:11px 7px;border:0;border-bottom:1px solid #233e54;background:none;color:#dce7ed;text-align:left}.team-member>span,.change-avatar,.change-author>span{grid-row:1/3;width:36px;height:36px;display:grid;place-items:center;border:1px solid #31bed4;border-radius:50%;color:#49d3e3;font-weight:800}.team-member strong{font-size:10px}.team-member small{color:#8ea5b5;font-size:8px}.team-member.inactive{opacity:.5}.change-list>header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #29445b}.change-list>header span{color:#6e899c;font-size:9px}.change-row{width:100%;display:grid;grid-template-columns:38px 1fr auto 22px;gap:10px;align-items:center;padding:11px 14px;border:0;border-bottom:1px solid #203b50;background:none;color:#dfe8ed;text-align:left}.change-row:hover{background:#0e2b41}.change-row>span:nth-child(2) strong,.change-row>span:nth-child(2) small{display:block}.change-row strong{font-size:10px}.change-row small{margin-top:3px;color:#849bad;font-size:8px}.change-row>svg{width:16px;color:#6f8a9d}.change-author{display:flex;gap:10px;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid var(--line)}.change-author>span{grid-row:auto;color:var(--blue);border-color:var(--blue)}.change-author strong,.change-author small{display:block}.change-author small{color:var(--muted);font-size:10px}.change-compare-head{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:20px;color:var(--blue);font-size:10px;font-weight:800;text-transform:uppercase}.change-compare-row{padding:12px 0;border-bottom:1px solid var(--line)}.change-compare-row h4{margin:0 0 7px;font-size:10px}.change-compare-row>div{display:grid;grid-template-columns:1fr 1fr;gap:9px}.change-compare-row pre{max-height:180px;overflow:auto;margin:0;padding:10px;border:1px solid var(--line);border-radius:7px;background:#f7f9fb;white-space:pre-wrap;font:10px/1.45 'DM Sans'}

.timeline-command{padding:10px;border:1px solid #29445b;border-radius:10px;background:#0a1f32}.timeline-controls{display:flex;align-items:center;gap:7px}.timeline-controls label{display:flex;align-items:center;gap:6px;color:#b2c2cd;font-size:9px}.timeline-controls input{width:135px;padding:8px;border-color:#345168;background:#071827;color:#e8f0f5}.timeline-controls .next svg{transform:rotate(180deg)}.timeline-view-switch{display:flex;margin-left:auto;border:1px solid #345168;border-radius:7px;overflow:hidden}.timeline-view-switch button{height:36px;padding:0 16px;border:0;border-right:1px solid #345168;background:#091d2f;color:#b6c4ce;font-size:10px}.timeline-view-switch button:last-child{border:0}.timeline-view-switch button.active{background:#169fd0;color:#fff}.timeline-command .timeline-key{margin-top:10px;padding-top:9px;border-top:1px solid #29445b;color:#8da5b6}.timeline-command .timeline-key small{margin-left:auto}.route-timeline .timeline-shell{margin-top:12px;border-color:#29445b;border-radius:9px;background:#091d2f;box-shadow:none}.route-timeline .timeline-axis{border-color:#29445b;background:#0b2135}.route-timeline .timeline-axis-label,.route-timeline .timeline-label{border-color:#29445b}.route-timeline .year-axis,.route-timeline .timeline-track{background-color:#081c2d;background-image:repeating-linear-gradient(90deg,transparent 0 calc(100% / 12 - 1px),#1c374b calc(100% / 12 - 1px) calc(100% / 12))}.route-timeline .year-label{border-color:#29445b;color:#91a8b8}.route-timeline .timeline-row{border-color:#233e54}.route-timeline .timeline-label strong{color:#dbe6ec}.route-timeline .timeline-label small{color:#7892a5}.route-timeline .category-tag{color:#fff}.route-timeline .gantt-bar{top:13px;height:31px;border:1px solid #42c5e2;background:linear-gradient(90deg,#0e76ae,#19a8d0);cursor:grab;touch-action:none}.route-timeline .gantt-bar:active{cursor:grabbing}.route-timeline .gantt-bar.phase-done{border-color:#78d091;background:#267d52}.route-timeline .gantt-bar.phase-blocked{border-color:#ef7477;background:#9f3039}.route-timeline .gantt-bar span{left:15px;right:15px;overflow:hidden;text-overflow:ellipsis}.gantt-handle{position:absolute;z-index:2;top:0;bottom:0;width:10px;background:rgba(255,255,255,.18);cursor:ew-resize}.gantt-handle.start{left:0;border-radius:5px 0 0 5px}.gantt-handle.end{right:0;border-radius:0 5px 5px 0}.timeline-add-row{width:100%;height:44px;border:1px dashed #345168;border-width:1px 0 0;background:#081c2d;color:#8ca5b6;text-align:left;padding-left:325px}.timeline-add-row:hover{color:#55d7e4;background:#0c263b}.route-timeline .timeline-today{top:49px}.route-timeline .timeline-today:before{display:none}.route-timeline .timeline-today span{position:absolute;left:4px;top:4px;padding:2px 6px;border-radius:4px;background:var(--red);color:#fff;font-size:8px}.route-timeline .timeline-note{color:#839bad}

@media(max-width:1100px){.unity-progress{grid-template-columns:1fr 1fr}.unity-progress>.button{grid-column:1/-1}.unity-post{grid-template-columns:10px 1fr auto}.unity-post>p,.unity-attachments{grid-column:2}.team-filters{grid-template-columns:1fr 1fr}.team-workspace{grid-template-columns:180px 1fr}.timeline-controls{flex-wrap:wrap}.timeline-view-switch{margin-left:0}}
@media(max-width:820px){.route-unity,.route-team,.route-timeline{padding:27px 15px 70px}.progress-duo,.unity-progress{grid-template-columns:1fr}.unity-progress>.button{grid-column:auto}.unity-phase-strip>header,.unity-log>header,.team-command{align-items:stretch;flex-direction:column}.unity-phase-strip>header>div:last-child{flex-wrap:wrap}.unity-post{grid-template-columns:10px 1fr auto}.unity-post>p,.unity-attachments{grid-column:2}.team-filters{grid-template-columns:1fr}.team-workspace{display:block}.team-rail{display:flex;gap:6px;overflow:auto;border-right:0;border-bottom:1px solid #29445b}.team-rail h3{display:none}.team-member{min-width:170px;border:1px solid #29445b;border-radius:8px}.change-row{grid-template-columns:35px 1fr 18px}.change-row .category-tags{grid-column:2}.timeline-controls label{width:calc(50% - 4px)}.timeline-controls input{flex:1;width:auto}.timeline-view-switch{width:100%}.timeline-view-switch button{flex:1}.category-choices{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.unity-post{grid-template-columns:8px 1fr}.unity-post>.row-actions{display:flex;grid-column:2}.unity-attachments{flex-direction:column}.unity-image-attachment img,.unity-video-attachment{width:100%;height:auto;max-height:180px}.change-compare-row>div{grid-template-columns:1fr}.change-compare-head{display:none}.team-command h2{font-size:24px}.category-choices{grid-template-columns:1fr}.timeline-controls .button-primary{width:100%}.timeline-add-row{padding-left:20px}}
.history-drawer-list{display:grid;margin-top:20px;border-top:1px solid var(--line)}.history-drawer-list button{display:grid;grid-template-columns:34px 1fr 18px;gap:2px 9px;align-items:center;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);text-align:left}.history-drawer-list button>span{grid-row:1/3;width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#e8f5fb;color:var(--blue);font-weight:800}.history-drawer-list strong{font-size:10px}.history-drawer-list small{color:var(--muted);font-size:9px}.history-drawer-list svg{grid-column:3;grid-row:1/3}

/* ===== Timeline-Achse: Beschriftung sauber begrenzen ===== */
.year-axis{background-image:none}
.year-label{box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 6px;overflow:hidden;white-space:nowrap;text-align:center}
.year-label b{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-weight:800}
.year-label.is-weekend{background:rgba(120,150,175,.10)}
.route-timeline .year-label.is-weekend{background:rgba(255,255,255,.05)}
.timeline-axis .year-axis::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset -1px 0 0 rgba(0,0,0,.04)}

/* ===== Öffentlicher Zugang ===== */
.access-panel-holder{margin-bottom:16px}
.access-panel .panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.access-state{padding:5px 12px;border-radius:100px;font-size:10px;font-weight:800;white-space:nowrap}
.access-state.access-open{background:rgba(45,180,110,.16);color:#1f9b62}
.access-state.access-password{background:rgba(216,167,70,.18);color:#a97a1c}
.access-state.access-team{background:rgba(120,150,175,.18);color:#4c6a84}
.access-modes{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.access-mode{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line);border-radius:12px;cursor:pointer;transition:border-color .2s,background .2s}
.access-mode:hover{border-color:var(--blue)}
.access-mode.is-active{border-color:var(--blue);background:rgba(20,139,209,.06)}
.access-mode input{margin-top:3px}
.access-mode b{display:block;font-size:12px}
.access-mode small{display:block;margin-top:3px;color:var(--muted);font-size:10px;line-height:1.5}
.access-password{display:grid;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.access-password label{display:grid;gap:5px;font-size:11px;font-weight:700}
.access-password em{font-weight:400;color:var(--muted);font-style:normal}
.access-clear{display:flex!important;align-items:center;gap:8px;font-weight:400;color:var(--muted)}
.access-note{margin:12px 0 0;color:var(--muted);font-size:10px}
.access-panel .panel-foot{padding:12px 17px;border-top:1px solid var(--line)}
body.access-gate .login-art-copy strong{font-size:34px}

/* ===== Spielstatus ===== */
.game-badge{font-weight:800}
.badge.game-ingame{background:rgba(45,180,110,.18);color:#177f4f}
.badge.game-prepared{background:rgba(20,139,209,.16);color:#0d6b9e}
.badge.game-data{background:rgba(216,167,70,.18);color:#976c14}
.badge.game-concept{background:rgba(120,150,175,.16);color:#4c6a84}
.game-legend{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.game-legend span{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}
.game-legend i{width:9px;height:9px;border-radius:3px}

/* ===== Galerie je Lumimon oder Figur ===== */
.gallery-note{margin:0 0 10px;color:var(--muted);font-size:10px;line-height:1.5}
.gallery-empty{margin:0 0 10px;color:var(--muted);font-size:11px}
.creature-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:9px;margin-bottom:12px}
.creature-gallery figure{position:relative;margin:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#f7f9fb}
.creature-gallery img{display:block;width:100%;height:96px;object-fit:cover}
.creature-gallery figcaption{padding:6px 8px;font-size:9px;line-height:1.4;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.creature-gallery-actions{position:absolute;top:5px;right:5px;display:flex;gap:4px;opacity:0;transition:opacity .15s}
.creature-gallery figure:hover .creature-gallery-actions{opacity:1}
.creature-gallery-actions button{width:24px;height:24px;display:grid;place-items:center;border:0;border-radius:6px;background:rgba(10,30,48,.82);color:#fff;cursor:pointer}
.creature-gallery-actions button:hover{background:rgba(10,30,48,.96)}
.creature-gallery-actions svg{width:13px}

/* ===== Archiv-Export ===== */
.archive-export{margin-bottom:14px}
.archive-export-row{display:flex;flex-wrap:wrap;gap:9px}
.archive-export-row .button{text-decoration:none}

/* Zugangsschleuse: Trenner zwischen Zugangswort und Team-Anmeldung.
   Beide Formulare stehen jetzt untereinander auf derselben Karte. */
.gate-trenner{display:flex;align-items:center;gap:12px;margin:22px 0 18px}
.gate-trenner i{flex:1;height:1px;background:currentColor;opacity:.18}
.gate-trenner span{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;opacity:.6}
.gate-teamform .eyebrow{margin:0 0 10px}

/* ---------------------------------------------------------------------------
   Antwortvorschlaege der KI bei offenen Fragen
   --------------------------------------------------------------------------- */
.idea-vorschlag-hinweis{margin:10px 0 0;padding:10px 12px;border-radius:12px;border:1px solid rgba(120,200,255,.28);background:rgba(20,52,74,.55);font-size:.86rem;line-height:1.45}
.idea-vorschlag-hinweis.hat-erfundenes{border-color:rgba(216,164,56,.45);background:rgba(74,58,20,.45)}
.idea-vorschlag-hinweis strong{display:flex;align-items:center;gap:6px;font-size:.9rem}
.idea-vorschlag-hinweis svg{width:16px;height:16px;flex:0 0 auto}
.idea-vorschlag-hinweis ul.hinweis-erfunden{margin:6px 0 0;padding-left:18px}
.idea-vorschlag-hinweis ul.hinweis-erfunden li{margin:2px 0}
.idea-vorschlag-hinweis .hinweis-quellen{margin:6px 0 0;opacity:.8}
.idea-vorschlag-hinweis small{display:block;margin-top:6px;opacity:.72}

.preview-frage{border-radius:12px;border:1px solid rgba(255,255,255,.08);margin-bottom:10px;overflow:hidden}
.preview-frage>.preview-change{margin:0;border:0;border-radius:0}
.preview-antwort{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-top:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.preview-antwort>label{display:flex;align-items:baseline;gap:6px;font-size:.82rem;opacity:.85}
.preview-antwort>label small{opacity:.62;font-size:.76rem}
.preview-antwort textarea{width:100%;max-width:100%;min-height:56px;resize:vertical;font:inherit}
.preview-antwort .button{align-self:flex-start}
@media(max-width:640px){.preview-antwort .button{align-self:stretch;justify-content:center}}

/* Anbieter- und Modellwahl direkt im Ideen-Dialog */
.idea-provider-wahl{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.idea-provider-wahl label{display:flex;flex-direction:column;gap:4px;font-size:.8rem;opacity:.9}
.idea-provider-wahl select,.idea-provider-wahl input{width:100%;max-width:100%}
.idea-provider-wahl small{display:flex;align-items:center;gap:6px;opacity:.7}

/* ---------------------------------------------------------------------------
   Ideen-Inbox auf dem Handy: Der Dialog fuellt den Bildschirm, alles steht
   untereinander und laeuft in EINEM Rollbereich. Die aeltere 720px-Regel
   versteckte zudem .idea-provider — dort sitzt inzwischen die Anbieter- und
   Modellwahl; sie muss sichtbar bleiben. Diese Regeln stehen bewusst am
   Dateiende und gewinnen deshalb.
   --------------------------------------------------------------------------- */
@media(max-width:1023px){
  .idea-modal{padding:0}
  .idea-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}
  #idea-content{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
  .idea-grid{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;padding:10px 12px;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .idea-grid>aside,.idea-composer{flex:0 0 auto;margin:0}
  .idea-scope{display:flex;gap:6px;overflow-x:auto;padding:10px}
  .idea-scope h3{display:none}
  .idea-scope>button{min-width:138px;margin:0;flex:0 0 auto}
  .idea-provider{display:flex;margin-top:0;border-top:0;padding:10px}
  .idea-provider-wahl{width:100%}
  .idea-provider-wahl select,.idea-provider-wahl input{min-height:42px;font-size:16px}
  .idea-composer textarea{min-height:160px;font-size:16px}
  .idea-preview{max-height:none;overflow:visible}
  .idea-compose-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .idea-compose-actions .button{min-height:46px}
  .idea-applybar{flex-direction:column;align-items:stretch;gap:10px}
  .idea-applybar>div{flex-direction:column;align-items:stretch}
  .idea-applybar small{max-width:none;text-align:left}
  .idea-applybar .button-primary{min-width:0;width:100%;min-height:48px}
  .idea-question-context{margin:10px 12px 0}
  .preview-antwort textarea{font-size:16px}
}
