:root{color-scheme:light;--portal-bg:#f4f6fb;--portal-surface:#fff;--portal-surface-2:#f8fafc;--portal-sidebar:#111827;--portal-sidebar-soft:#1f2937;--portal-text:#172033;--portal-muted:#6b7280;--portal-line:#e5e7eb;--portal-primary:#2563eb;--portal-primary-soft:#eaf1ff;--portal-success:#16835f;--portal-danger:#d33b4a;--portal-warning:#b7791f;--portal-shadow:0 18px 55px rgba(15,23,42,.09);--portal-radius:22px;--portal-sidebar-width:280px}
html[data-portal-theme="dark"],body[data-portal-theme="dark"]{color-scheme:dark;--portal-bg:#0b1120;--portal-surface:#111827;--portal-surface-2:#172033;--portal-sidebar:#070b14;--portal-sidebar-soft:#111827;--portal-text:#eef2ff;--portal-muted:#9ca3af;--portal-line:#293345;--portal-primary:#6d8dff;--portal-primary-soft:#1c2d57;--portal-success:#48c99a;--portal-danger:#ff7584;--portal-warning:#f2bd66;--portal-shadow:0 18px 55px rgba(0,0,0,.28)}
*{box-sizing:border-box}html,body{min-height:100%;margin:0}.portal-layout{background:var(--portal-bg);color:var(--portal-text);font-family:"Plus Jakarta Sans",Inter,Arial,sans-serif;transition:background .2s,color .2s}.portal-layout a{color:inherit}.portal-layout button,.portal-layout input,.portal-layout select,.portal-layout textarea{font:inherit}.portal-layout main{max-width:none;margin:0;padding:0}.portal-layout .site-button{background:var(--portal-primary);color:#fff;border:0;border-radius:12px;padding:12px 18px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-weight:800}.portal-layout .site-button.secondary{background:var(--portal-surface-2);color:var(--portal-text);border:1px solid var(--portal-line)}
.portal-guest-theme-toggle{position:fixed;right:20px;top:20px;z-index:90;width:44px;height:44px;border:1px solid var(--portal-line);border-radius:14px;background:var(--portal-surface);color:var(--portal-text);box-shadow:var(--portal-shadow);cursor:pointer}.portal-app~.portal-guest-theme-toggle,.portal-app .portal-guest-theme-toggle{display:none}.portal-layout:has(.portal-app)>.portal-guest-theme-toggle{display:none}
.portal-flash-stack{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:300;width:min(680px,calc(100% - 36px));display:grid;gap:9px;pointer-events:none}.portal-flash{padding:14px 18px;border-radius:14px;background:var(--portal-surface);border:1px solid var(--portal-line);box-shadow:var(--portal-shadow);font-weight:700;animation:portalFlash .22s ease both;pointer-events:auto}.portal-flash.success{border-color:rgba(22,131,95,.4)}.portal-flash.error{border-color:rgba(211,59,74,.45)}.portal-flash.warning{border-color:rgba(183,121,31,.45)}@keyframes portalFlash{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
.portal-app{min-height:100vh;display:grid;grid-template-columns:var(--portal-sidebar-width) minmax(0,1fr);background:var(--portal-bg)}.portal-sidebar{position:sticky;top:0;height:100vh;background:var(--portal-sidebar);color:#e8edf7;padding:20px 16px;display:flex;flex-direction:column;overflow:auto;z-index:80}.portal-sidebar>header{display:flex;align-items:center;justify-content:space-between;padding:0 6px 20px}.portal-sidebar>header>button{display:none;border:0;background:transparent;color:#fff;font-size:28px;cursor:pointer}.portal-brand{display:flex;align-items:center;gap:12px;text-decoration:none}.portal-brand>span{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#4f74ff,#8d5cf6);font-weight:900;box-shadow:0 10px 28px rgba(79,116,255,.35)}.portal-brand strong,.portal-brand small{display:block}.portal-brand strong{font-size:14px}.portal-brand small{font-size:10px;color:#9ca3af;margin-top:3px;letter-spacing:.04em}.portal-sidebar-profile{display:flex;align-items:center;gap:12px;margin:4px 4px 20px;padding:14px;border:1px solid rgba(255,255,255,.09);border-radius:17px;background:rgba(255,255,255,.045)}.portal-sidebar-profile strong,.portal-sidebar-profile small{display:block;min-width:0}.portal-sidebar-profile strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portal-sidebar-profile small{color:#9ca3af;font-size:11px;margin-top:4px}.portal-sidebar nav{display:grid;gap:5px}.portal-sidebar nav a,.portal-sidebar footer>button,.portal-sidebar footer form button{min-height:47px;border:0;border-radius:13px;background:transparent;color:#cbd5e1;text-decoration:none;padding:0 13px;display:grid;grid-template-columns:25px 1fr auto;align-items:center;gap:9px;text-align:left;cursor:pointer}.portal-sidebar nav a:hover,.portal-sidebar nav a.active,.portal-sidebar footer>button:hover,.portal-sidebar footer form button:hover{background:rgba(255,255,255,.09);color:#fff}.portal-sidebar nav a.active{background:linear-gradient(90deg,rgba(79,116,255,.27),rgba(79,116,255,.08));box-shadow:inset 3px 0 #7892ff}.portal-sidebar nav a span,.portal-sidebar footer span{font-size:18px;text-align:center}.portal-sidebar nav a strong,.portal-sidebar footer strong{font-size:13px}.portal-sidebar nav a b{min-width:22px;height:22px;border-radius:11px;padding:0 6px;display:grid;place-items:center;background:#ef476f;color:#fff;font-size:10px}.portal-sidebar footer{margin-top:auto;padding-top:18px;border-top:1px solid rgba(255,255,255,.08);display:grid;gap:4px}.portal-sidebar footer form{margin:0}.portal-theme-toggle{width:100%}.portal-sidebar-backdrop{display:none}.portal-mobile-menu{display:none}
.portal-stage{min-width:0;min-height:100vh}.portal-topbar{min-height:112px;padding:26px clamp(22px,4vw,55px) 18px;display:flex;align-items:center;justify-content:space-between;gap:30px;border-bottom:1px solid var(--portal-line);background:color-mix(in srgb,var(--portal-bg) 92%,transparent);backdrop-filter:blur(16px);position:sticky;top:0;z-index:40}.portal-topbar h1{font-size:clamp(24px,2.5vw,36px);line-height:1.1;margin:4px 0 7px;color:var(--portal-text)}.portal-topbar p{margin:0;color:var(--portal-muted);font-size:13px}.portal-eyebrow{color:var(--portal-primary);font-size:10px;text-transform:uppercase;font-weight:900;letter-spacing:.14em}.portal-topbar-actions{display:flex;align-items:center;gap:12px}.portal-topbar-actions>a{position:relative;width:44px;height:44px;border-radius:14px;border:1px solid var(--portal-line);background:var(--portal-surface);display:grid;place-items:center;text-decoration:none;font-size:20px}.portal-topbar-actions>a b{position:absolute;right:-5px;top:-5px;min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;background:#ef476f;color:#fff;border-radius:12px;font-size:9px}.portal-main{padding:28px clamp(18px,4vw,55px) 55px}.portal-card{background:var(--portal-surface);border:1px solid var(--portal-line);border-radius:var(--portal-radius);box-shadow:var(--portal-shadow);padding:24px}.portal-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.portal-section-heading h2{margin:5px 0 7px;font-size:22px}.portal-section-heading p{margin:0;color:var(--portal-muted);font-size:13px}.portal-text-link{font-size:12px;color:var(--portal-primary);font-weight:800}.portal-empty{padding:42px 24px;border:1px dashed var(--portal-line);border-radius:16px;text-align:center;color:var(--portal-muted)}.portal-empty.compact{padding:22px 12px}.portal-summary-badge{padding:8px 11px;border-radius:999px;background:var(--portal-primary-soft);color:var(--portal-primary);font-size:11px;font-weight:800}.portal-button{border:0;border-radius:12px;background:var(--portal-primary);color:#fff;padding:11px 16px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.portal-button.secondary{background:var(--portal-surface-2);color:var(--portal-text);border:1px solid var(--portal-line)}.portal-button.danger{background:var(--portal-danger);color:#fff}.portal-button:disabled{opacity:.55;cursor:not-allowed}
.portal-avatar{flex:0 0 auto;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#4f74ff,#8d5cf6);display:grid;place-items:center;color:#fff;font-weight:900;border:2px solid color-mix(in srgb,var(--portal-surface) 88%,transparent)}.portal-avatar img{width:100%;height:100%;object-fit:cover}.portal-avatar-small{width:42px;height:42px;font-size:11px}.portal-avatar-contact{width:47px;height:47px;font-size:11px}.portal-avatar-large{width:49px;height:49px;font-size:12px}.portal-avatar-xlarge{width:96px;height:96px;font-size:24px}.portal-avatar-directory{width:82px;height:82px;font-size:20px}.portal-avatar-normal{width:54px;height:54px}.portal-presence{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800}.portal-presence:before{content:"";width:8px;height:8px;border-radius:50%}.portal-presence.online:before,.portal-directory-presence.online,.portal-chat-contact i.online{background:#2dd4a0}.portal-presence.offline:before,.portal-directory-presence.offline,.portal-chat-contact i.offline{background:#94a3b8}
.portal-permission-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 20px;background:color-mix(in srgb,var(--portal-warning) 10%,var(--portal-surface));border:1px solid color-mix(in srgb,var(--portal-warning) 35%,var(--portal-line));border-radius:17px;margin-bottom:20px}.portal-permission-card strong,.portal-permission-card p{display:block;margin:0}.portal-permission-card p{margin-top:4px;color:var(--portal-muted);font-size:12px}
/* Authentication */
.portal-auth-page,.portal-choice-page{min-height:100vh;display:grid;place-items:center;padding:70px 20px;background:radial-gradient(circle at 20% 10%,color-mix(in srgb,var(--portal-primary) 15%,transparent),transparent 36%),radial-gradient(circle at 90% 80%,rgba(139,92,246,.13),transparent 34%),var(--portal-bg)}.portal-auth-card,.portal-choice-card{width:min(480px,100%);background:var(--portal-surface);border:1px solid var(--portal-line);border-radius:28px;padding:clamp(28px,5vw,48px);box-shadow:var(--portal-shadow)}.portal-auth-card h1,.portal-choice-card h1{font-size:clamp(27px,4vw,40px);line-height:1.1;margin:9px 0 13px}.portal-auth-card>p,.portal-choice-card>p{color:var(--portal-muted);line-height:1.65;font-size:13px}.member-kicker{color:var(--portal-primary);text-transform:uppercase;font-size:10px;font-weight:900;letter-spacing:.14em}.member-auth-form{display:grid;gap:15px;margin-top:27px}.member-auth-form label,.portal-form label,.member-mail-compose label,.member-mail-inline-reply label{display:grid;gap:7px;font-size:11px;font-weight:800;color:var(--portal-muted)}.member-auth-form input,.portal-form input,.portal-form select,.portal-form textarea,.member-mail-compose input,.member-mail-compose textarea,.member-mail-inline-reply input,.member-mail-inline-reply textarea{width:100%;border:1px solid var(--portal-line);border-radius:12px;background:var(--portal-surface-2);color:var(--portal-text);padding:12px 13px;outline:none}.member-auth-form input:focus,.portal-form input:focus,.portal-form select:focus,.portal-form textarea:focus{border-color:var(--portal-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--portal-primary) 13%,transparent)}.member-auth-note{text-align:center;margin-top:22px!important}.member-auth-note a{color:var(--portal-primary);font-weight:800}.portal-choice-card{width:min(720px,100%)}.portal-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:30px}.portal-choice-grid form{margin:0}.portal-choice-button{width:100%;height:100%;min-height:170px;border:1px solid var(--portal-line);border-radius:20px;background:var(--portal-surface-2);color:var(--portal-text);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;text-align:left;padding:23px;cursor:pointer;transition:.2s}.portal-choice-button:hover{transform:translateY(-3px);border-color:var(--portal-primary);box-shadow:var(--portal-shadow)}.portal-choice-button span{font-size:29px;color:var(--portal-primary);margin-bottom:auto}.portal-choice-button strong{font-size:19px}.portal-choice-button small{color:var(--portal-muted);margin-top:7px}
/* Directory */
.portal-directory{position:relative}.member-directory-filter{display:grid;grid-template-columns:minmax(220px,1fr) 180px 180px auto;gap:10px;margin-bottom:20px}.member-directory-filter input,.member-directory-filter select{min-width:0;border:1px solid var(--portal-line);border-radius:12px;background:var(--portal-surface-2);color:var(--portal-text);padding:12px}.member-directory-summary{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px;font-size:12px}.member-directory-summary span{color:var(--portal-muted)}.member-directory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:15px}.member-directory-card{position:relative;border:1px solid var(--portal-line);border-radius:18px;padding:20px;background:var(--portal-surface-2);display:grid;justify-items:center;text-align:center}.portal-directory-presence{position:absolute;top:76px;left:calc(50% + 24px);width:13px;height:13px;border-radius:50%;border:3px solid var(--portal-surface-2)}.member-card-copy h2{font-size:16px;margin:13px 0 5px}.member-card-copy strong{font-size:11px;color:var(--portal-primary)}.member-card-copy p{font-size:12px;margin:7px 0;color:var(--portal-muted)}.member-card-copy small{font-size:10px;color:var(--portal-muted)}.member-card-actions{display:flex;gap:7px;margin-top:16px;flex-wrap:wrap;justify-content:center}.member-card-actions a{padding:8px 10px;border:1px solid var(--portal-line);border-radius:10px;text-decoration:none;font-size:10px;font-weight:800}.member-card-actions a:last-child{background:var(--portal-primary);border-color:var(--portal-primary);color:#fff}.member-pagination{display:flex;justify-content:center;gap:6px;margin-top:24px}.member-pagination a{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;border:1px solid var(--portal-line);text-decoration:none;font-size:11px}.member-pagination a.active{background:var(--portal-primary);color:#fff;border-color:var(--portal-primary)}.member-profile-drawer{position:fixed;right:0;top:0;bottom:0;width:min(420px,94vw);background:var(--portal-surface);z-index:150;padding:35px 28px;box-shadow:-25px 0 70px rgba(0,0,0,.2);overflow:auto}.member-profile-backdrop{position:fixed;inset:0;background:rgba(4,8,16,.56);z-index:140}.member-drawer-close{position:absolute;right:20px;top:16px;font-size:30px;text-decoration:none}.member-profile-drawer .portal-button{width:100%;margin-top:20px}
/* Chat */
.portal-chat-workspace{height:calc(100vh - 168px);min-height:560px;display:grid;grid-template-columns:340px minmax(0,1fr);position:relative;background:var(--portal-surface);border:1px solid var(--portal-line);border-radius:var(--portal-radius);overflow:hidden;box-shadow:var(--portal-shadow)}.portal-chat-contacts{border-right:1px solid var(--portal-line);display:flex;flex-direction:column;min-height:0;background:var(--portal-surface)}.portal-chat-contacts>header{display:flex;align-items:center;justify-content:space-between;padding:21px 20px 10px}.portal-chat-contacts h2{margin:3px 0 0;font-size:20px}.portal-chat-count{font-size:10px;font-weight:900;background:var(--portal-primary-soft);color:var(--portal-primary);padding:6px 9px;border-radius:999px}.portal-chat-search{margin:10px 15px 13px;display:flex;align-items:center;gap:8px;background:var(--portal-surface-2);border:1px solid var(--portal-line);border-radius:12px;padding:0 12px}.portal-chat-search input{width:100%;border:0;background:transparent;color:var(--portal-text);outline:0;padding:11px 0;font-size:12px}.portal-chat-contact-list{overflow:auto;min-height:0;padding:0 8px 15px}.portal-chat-contact-row{display:grid;grid-template-columns:minmax(0,1fr) 35px;align-items:center;border-radius:14px}.portal-chat-contact-row:hover,.portal-chat-contact-row.active{background:var(--portal-primary-soft)}.portal-chat-contact{min-width:0;display:grid;grid-template-columns:47px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 7px 11px 11px;text-decoration:none;position:relative}.portal-chat-contact i{position:absolute;left:47px;bottom:11px;width:10px;height:10px;border-radius:50%;border:2px solid var(--portal-surface)}.portal-chat-contact div{min-width:0}.portal-chat-contact strong,.portal-chat-contact p{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-chat-contact strong{font-size:12px}.portal-chat-contact p{font-size:10px;color:var(--portal-muted);margin:5px 0 0}.portal-chat-contact>b{min-width:20px;height:20px;display:grid;place-items:center;border-radius:10px;background:#ef476f;color:#fff;font-size:9px}.portal-chat-profile-button{border:0;background:transparent;color:var(--portal-muted);font-size:16px;cursor:pointer}.portal-chat-panel{min-width:0;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--portal-surface-2),var(--portal-bg))}.portal-chat-header{min-height:74px;padding:12px 18px;border-bottom:1px solid var(--portal-line);background:var(--portal-surface);display:grid;grid-template-columns:47px minmax(0,1fr) auto;align-items:center;gap:12px}.portal-chat-header h2{font-size:14px;margin:0}.portal-chat-header small{font-size:10px;color:var(--portal-muted)}.portal-chat-header button{border:1px solid var(--portal-line);background:var(--portal-surface-2);color:var(--portal-text);border-radius:10px;padding:8px 10px;font-size:10px;font-weight:800;cursor:pointer}.portal-chat-log{flex:1;min-height:0;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:8px;scroll-behavior:smooth}.portal-chat-bubble{max-width:min(72%,650px);display:flex;flex-direction:column}.portal-chat-bubble.mine{align-self:flex-end;align-items:flex-end}.portal-chat-bubble.theirs{align-self:flex-start;align-items:flex-start}.portal-chat-bubble-content{border:1px solid var(--portal-line);border-radius:17px 17px 17px 5px;background:var(--portal-surface);padding:10px 13px;box-shadow:0 6px 18px rgba(15,23,42,.05);min-width:70px;overflow:hidden}.portal-chat-bubble.mine .portal-chat-bubble-content{background:var(--portal-primary);border-color:var(--portal-primary);color:#fff;border-radius:17px 17px 5px 17px}.portal-chat-bubble time{font-size:8px;color:var(--portal-muted);margin:4px 4px 0}.portal-chat-text{font-size:12px;line-height:1.55;overflow-wrap:anywhere}.portal-audio-player{display:block;width:min(300px,58vw);height:38px}.portal-chat-image{display:block;max-width:330px}.portal-chat-image img{display:block;width:100%;max-height:340px;object-fit:cover;border-radius:12px}.portal-chat-file,.portal-chat-location{display:flex;align-items:center;gap:10px;min-width:210px;text-decoration:none}.portal-chat-file>span,.portal-chat-location>span{width:34px;height:34px;border-radius:10px;background:color-mix(in srgb,var(--portal-primary) 14%,var(--portal-surface));display:grid;place-items:center}.portal-chat-file strong{font-size:11px;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portal-chat-location strong,.portal-chat-location small{display:block}.portal-chat-location strong{font-size:11px}.portal-chat-location small{font-size:9px;opacity:.72;margin-top:3px}.portal-chat-composer{min-height:78px;padding:11px 13px;border-top:1px solid var(--portal-line);background:var(--portal-surface);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;position:relative}.portal-chat-composer textarea{grid-row:1;grid-column:1;border:0;background:var(--portal-surface-2);border-radius:15px;padding:14px 130px 14px 14px;color:var(--portal-text);resize:none;min-height:52px;max-height:140px;outline:none}.portal-chat-tools{position:absolute;right:80px;bottom:24px;display:flex;align-items:center;gap:3px}.portal-chat-tools label,.portal-chat-tools button{width:31px;height:31px;border:0;border-radius:9px;background:transparent;color:var(--portal-muted);display:grid;place-items:center;cursor:pointer}.portal-chat-tools label:hover,.portal-chat-tools button:hover{background:var(--portal-primary-soft);color:var(--portal-primary)}.portal-chat-tools input{display:none}.portal-chat-tools button.is-recording{background:rgba(239,71,111,.15);color:#ef476f;animation:portalPulse 1s infinite}.portal-chat-tool-status{position:absolute;right:0;bottom:36px;transform:translateY(100%);font-size:8px;white-space:nowrap;color:var(--portal-muted);max-width:190px;overflow:hidden;text-overflow:ellipsis}@keyframes portalPulse{50%{transform:scale(.87)}}.portal-chat-send{grid-column:2;grid-row:1;width:48px;height:48px;border:0;border-radius:15px;background:var(--portal-primary);color:#fff;font-size:18px;cursor:pointer}.portal-chat-empty{margin:auto;padding:24px;text-align:center;color:var(--portal-muted);font-size:12px}.portal-chat-welcome{height:100%;display:grid;place-items:center;align-content:center;text-align:center;padding:30px;color:var(--portal-muted)}.portal-chat-welcome>span{width:70px;height:70px;border-radius:24px;background:var(--portal-primary-soft);color:var(--portal-primary);display:grid;place-items:center;font-size:30px}.portal-chat-welcome h2{color:var(--portal-text);margin:18px 0 8px}.portal-chat-welcome p{max-width:430px;font-size:12px;line-height:1.7}.portal-chat-profile-drawer{position:fixed;right:0;top:0;bottom:0;width:min(410px,94vw);background:var(--portal-surface);z-index:180;padding:35px;box-shadow:-25px 0 70px rgba(0,0,0,.25);overflow:auto}.portal-chat-profile-drawer>button{position:absolute;right:18px;top:14px;border:0;background:transparent;color:var(--portal-text);font-size:30px;cursor:pointer}.portal-chat-profile-backdrop{position:fixed;inset:0;background:rgba(3,7,18,.56);z-index:170}.portal-chat-profile-card{text-align:center}.portal-chat-profile-card .portal-avatar{margin:10px auto 13px}.portal-chat-profile-card h3{font-size:20px;margin:10px 0 4px}.portal-chat-profile-card>strong{font-size:12px;color:var(--portal-primary)}.portal-chat-profile-card>p{font-size:12px;color:var(--portal-muted)}.portal-chat-profile-card dl{text-align:left;margin:25px 0 0;display:grid;gap:9px}.portal-chat-profile-card dl>div{padding:11px 13px;border:1px solid var(--portal-line);border-radius:12px}.portal-chat-profile-card dt{font-size:9px;color:var(--portal-muted)}.portal-chat-profile-card dd{font-size:11px;margin:4px 0 0;overflow-wrap:anywhere}.portal-profile-bio{text-align:left;line-height:1.7}
/* Leave */
.portal-leave-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:20px;align-items:start}.portal-leave-grid>.portal-card{min-width:0}.portal-leave-create{border:1px solid var(--portal-line);border-radius:16px;background:var(--portal-surface-2);margin-bottom:17px}.portal-leave-create summary,.portal-leave-item details summary{cursor:pointer;padding:14px 16px;font-weight:800;font-size:11px}.portal-leave-create form,.portal-leave-item details form{padding:0 16px 16px}.portal-form{display:grid;gap:13px}.portal-form.compact{margin-top:13px;padding:13px;background:var(--portal-surface-2);border-radius:13px}.portal-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.portal-form-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.portal-form-actions form{padding:0;margin:0}.portal-leave-list{display:grid;gap:11px}.portal-leave-item{border:1px solid var(--portal-line);border-radius:16px;padding:15px;background:var(--portal-surface-2)}.portal-leave-item>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.portal-leave-item header strong,.portal-leave-item header small{display:block}.portal-leave-item header strong{font-size:12px}.portal-leave-item header small{font-size:9px;color:var(--portal-muted);margin-top:5px}.portal-leave-item>p{font-size:11px;color:var(--portal-muted);line-height:1.6}.portal-status{padding:6px 8px;border-radius:999px;font-size:8px;font-weight:900;white-space:nowrap}.portal-status.pending{background:rgba(183,121,31,.14);color:var(--portal-warning)}.portal-status.approved{background:rgba(22,131,95,.14);color:var(--portal-success)}.portal-status.rejected,.portal-status.cancelled{background:rgba(211,59,74,.12);color:var(--portal-danger)}.portal-review-note{border-left:3px solid var(--portal-primary);padding:9px 12px;background:var(--portal-primary-soft);border-radius:0 10px 10px 0;margin:10px 0}.portal-review-note strong{font-size:9px}.portal-review-note p{font-size:10px;margin:4px 0 0}
/* Notifications */
.portal-notification-list{display:grid;gap:8px;margin-bottom:18px}.portal-notification-item{display:grid;grid-template-columns:9px minmax(0,1fr);gap:12px;padding:15px;border:1px solid var(--portal-line);border-radius:14px;text-decoration:none;background:var(--portal-surface-2)}.portal-notification-item.is-unread{border-color:color-mix(in srgb,var(--portal-primary) 45%,var(--portal-line));background:var(--portal-primary-soft)}.portal-notification-dot{width:8px;height:8px;border-radius:50%;margin-top:5px;background:var(--portal-line)}.portal-notification-item.is-unread .portal-notification-dot{background:var(--portal-primary)}.portal-notification-item strong{font-size:12px}.portal-notification-item p{font-size:11px;color:var(--portal-muted);margin:5px 0}.portal-notification-item time{font-size:9px;color:var(--portal-muted)}
/* Existing process, assets and webmail inside portal */
.portal-main .process-portal-grid,.portal-main .asset-team-grid,.portal-main .process-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.portal-main [class*="process-"] article,.portal-main [class*="asset-"] article{border-color:var(--portal-line);background:var(--portal-surface);color:var(--portal-text)}.member-mail-shell{display:grid;grid-template-columns:210px minmax(0,1fr);background:var(--portal-surface);border:1px solid var(--portal-line);border-radius:var(--portal-radius);box-shadow:var(--portal-shadow);overflow:hidden;min-height:560px}.member-mail-nav{padding:16px;background:var(--portal-surface-2);border-right:1px solid var(--portal-line);display:flex;flex-direction:column;gap:6px}.member-mail-nav a{padding:11px 12px;border-radius:11px;text-decoration:none;font-size:11px;font-weight:800}.member-mail-nav a.active{background:var(--portal-primary-soft);color:var(--portal-primary)}.member-mail-nav .compose{background:var(--portal-primary);color:#fff;text-align:center;margin-bottom:9px}.member-mail-main,.member-mail-compose,.member-mail-message,.member-mail-unlock{padding:24px;min-width:0}.member-mail-toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid var(--portal-line);padding-bottom:15px}.member-mail-toolbar h2{margin:0}.member-mail-toolbar form{display:flex;gap:8px}.member-mail-toolbar input{border:1px solid var(--portal-line);background:var(--portal-surface-2);color:var(--portal-text);border-radius:10px;padding:10px}.member-mail-list{display:grid}.member-mail-row{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(200px,1.3fr) auto;gap:14px;align-items:center;padding:14px 5px;border-bottom:1px solid var(--portal-line);text-decoration:none;font-size:11px}.member-mail-row.unread{font-weight:900}.member-mail-row time{font-size:9px;color:var(--portal-muted)}.member-mail-person{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-mail-message header dl{display:grid;gap:7px;font-size:10px}.member-mail-message header dl>div{display:grid;grid-template-columns:70px 1fr}.member-mail-message dt{color:var(--portal-muted)}.member-mail-message dd{margin:0}.member-mail-body{padding:22px 0;line-height:1.75;font-size:12px}.member-mail-actions,.member-mail-reply-actions{display:flex;gap:9px}.member-mail-inline-reply{margin-top:20px;padding:18px;border:1px solid var(--portal-line);border-radius:16px}.member-mail-inline-reply header{display:flex;justify-content:space-between}.member-mail-inline-reply header button{border:0;background:transparent;color:var(--portal-text);font-size:24px}.member-mail-inline-reply form,.member-mail-compose form{display:grid;gap:12px}.member-mail-error{background:rgba(211,59,74,.12);color:var(--portal-danger);padding:12px;border-radius:12px;margin:12px 0}
@media(max-width:1100px){.portal-leave-grid{grid-template-columns:1fr}.member-directory-filter{grid-template-columns:1fr 1fr}.member-directory-filter input{grid-column:1/-1}.portal-chat-workspace{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:820px){:root{--portal-sidebar-width:272px}.portal-app{display:block}.portal-sidebar{position:fixed;left:0;top:0;transform:translateX(-105%);transition:transform .22s ease;width:var(--portal-sidebar-width);box-shadow:30px 0 65px rgba(0,0,0,.3)}.portal-layout.portal-menu-open .portal-sidebar{transform:none}.portal-sidebar>header>button{display:block}.portal-sidebar-backdrop{display:block;position:fixed;inset:0;z-index:70;background:rgba(3,7,18,.5);opacity:0;pointer-events:none;transition:.2s}.portal-layout.portal-menu-open .portal-sidebar-backdrop{opacity:1;pointer-events:auto}.portal-mobile-menu{display:grid;place-items:center;position:fixed;left:14px;top:15px;z-index:65;width:43px;height:43px;border:1px solid var(--portal-line);border-radius:13px;background:var(--portal-surface);color:var(--portal-text);box-shadow:var(--portal-shadow)}.portal-topbar{padding-left:70px;min-height:90px}.portal-topbar p{display:none}.portal-main{padding:18px 13px 35px}.portal-chat-workspace{height:calc(100vh - 127px);min-height:520px;grid-template-columns:120px minmax(0,1fr)}.portal-chat-contacts>header div,.portal-chat-search,.portal-chat-contact div,.portal-chat-contact>b,.portal-chat-profile-button{display:none}.portal-chat-contacts>header{justify-content:center;padding:13px 4px}.portal-chat-contact-list{padding:0 5px}.portal-chat-contact-row{display:block}.portal-chat-contact{display:grid;grid-template-columns:47px;justify-content:center;padding:10px}.portal-chat-contact i{left:calc(50% + 12px);bottom:9px}.portal-chat-contact-row.active{background:var(--portal-primary-soft)}.portal-chat-log{padding:16px 11px}.portal-chat-bubble{max-width:88%}.portal-chat-composer textarea{padding-right:95px}.portal-chat-tools{right:68px}.portal-chat-tools label,.portal-chat-tools button{width:26px}.member-mail-shell{grid-template-columns:1fr}.member-mail-nav{border-right:0;border-bottom:1px solid var(--portal-line);flex-direction:row;overflow:auto}.member-mail-nav a{white-space:nowrap}.portal-choice-grid{grid-template-columns:1fr}}
@media(max-width:560px){.portal-topbar{padding-right:14px}.portal-topbar h1{font-size:21px}.portal-topbar-actions>a{display:none}.portal-card{padding:17px;border-radius:17px}.portal-section-heading{display:block}.portal-chat-workspace{border-radius:0;margin:-18px -13px -35px;height:calc(100vh - 90px);grid-template-columns:78px minmax(0,1fr);border-left:0;border-right:0;border-bottom:0}.portal-chat-contacts>header{display:none}.portal-chat-contact{grid-template-columns:43px;padding:8px 5px}.portal-avatar-contact{width:43px;height:43px}.portal-chat-contact i{left:calc(50% + 10px)}.portal-chat-header{grid-template-columns:43px minmax(0,1fr) auto;padding:10px}.portal-chat-header button{padding:7px}.portal-chat-log{padding:12px 8px}.portal-chat-bubble{max-width:94%}.portal-audio-player{width:min(240px,58vw)}.portal-chat-composer{padding:8px;min-height:70px}.portal-chat-composer textarea{padding:12px 104px 12px 12px;min-height:48px}.portal-chat-tools{right:62px;bottom:21px}.portal-chat-tool-status{display:none}.portal-chat-send{width:45px;height:45px}.member-directory-filter{grid-template-columns:1fr}.member-directory-filter input{grid-column:auto}.member-directory-summary{display:block}.member-directory-summary span{display:block;margin-top:5px}.portal-form-grid{grid-template-columns:1fr}.member-mail-main,.member-mail-compose,.member-mail-message,.member-mail-unlock{padding:16px}.member-mail-row{grid-template-columns:1fr auto}.member-mail-row strong{grid-column:1/-1}.portal-permission-card{align-items:flex-start;flex-direction:column}.portal-flash-stack{top:10px}.portal-auth-page,.portal-choice-page{padding:65px 13px}.portal-auth-card,.portal-choice-card{padding:27px 20px;border-radius:22px}.portal-guest-theme-toggle{right:13px;top:13px}}
.portal-live-notification{display:grid;gap:3px;text-decoration:none}.portal-live-notification strong{font-size:12px}.portal-live-notification span{font-size:10px;color:var(--portal-muted);line-height:1.45}
.portal-inline-cancel{margin-top:10px}.portal-inline-cancel .portal-button{padding:8px 11px;font-size:10px}
/* Portal kayıt ekranı: genel web sitesi üyelik kartından bağımsız görünüm */
.portal-layout .member-auth-page{width:min(940px,calc(100% - 28px));min-height:100vh;margin:0 auto;padding:64px 0 80px;display:grid;place-items:center}.portal-layout .member-auth-card{width:100%;padding:34px;border:1px solid var(--portal-line);border-radius:24px;background:var(--portal-surface);color:var(--portal-text);box-shadow:var(--portal-shadow)}.portal-layout .member-auth-card h1{margin:0 0 8px;font-size:30px}.portal-layout .member-auth-card>p{color:var(--portal-muted);margin:0}.portal-layout .member-kicker{color:var(--portal-primary);font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.portal-layout .member-auth-form{display:grid;gap:14px;margin-top:24px}.portal-layout .member-auth-form label{display:grid;gap:7px;color:var(--portal-muted);font-size:11px;font-weight:800}.portal-layout .member-auth-form input,.portal-layout .member-auth-form textarea,.portal-layout .member-auth-form select{width:100%;border:1px solid var(--portal-line);border-radius:12px;background:var(--portal-surface-2);color:var(--portal-text);padding:12px 13px;font:inherit;outline:none}.portal-layout .member-auth-form input:focus,.portal-layout .member-auth-form textarea:focus,.portal-layout .member-auth-form select:focus{border-color:var(--portal-primary);box-shadow:0 0 0 3px var(--portal-primary-soft)}.portal-layout .member-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.portal-layout .member-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:9px}.portal-layout .member-check input{width:auto}.portal-layout .member-honeypot{position:absolute!important;left:-9999px!important}.portal-layout .member-auth-note{color:var(--portal-muted)}
@media(max-width:620px){.portal-layout .member-auth-page{width:min(100% - 20px,940px);padding:54px 0 30px}.portal-layout .member-auth-card{padding:24px 18px;border-radius:20px}.portal-layout .member-auth-card h1{font-size:25px}.portal-layout .member-form-grid{grid-template-columns:1fr}}

/* v4.6 Aidat yönetimi ve üye aidat raporları */
.dues-manager-workspace,.member-dues-page{display:grid;gap:16px}.dues-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.dues-summary-grid>article{padding:17px;border:1px solid var(--portal-line);border-radius:16px;background:var(--portal-surface);box-shadow:var(--portal-shadow)}.dues-summary-grid span,.dues-summary-grid strong{display:block}.dues-summary-grid span{color:var(--portal-muted);font-size:10px;font-weight:800}.dues-summary-grid strong{margin-top:7px;font-size:clamp(1.25rem,2.4vw,1.85rem)}.dues-create-period,.dues-period-card{padding:0!important;overflow:hidden}.dues-create-period>summary,.dues-period-card>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px;cursor:pointer;list-style:none}.dues-create-period>summary::-webkit-details-marker,.dues-period-card>summary::-webkit-details-marker{display:none}.dues-create-period>summary strong,.dues-create-period>summary small,.dues-period-card>summary strong,.dues-period-card>summary small,.dues-period-card>summary span,.dues-period-card>summary b{display:block}.dues-create-period>summary small,.dues-period-card>summary small{margin-top:4px;color:var(--portal-muted);font-size:10px}.dues-create-period>.portal-form,.dues-period-body{padding:18px;border-top:1px solid var(--portal-line)}.dues-period-list,.dues-assignment-list{display:grid;gap:11px}.dues-period-card>summary>div:last-child{text-align:right}.dues-period-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-bottom:12px}.portal-form{display:grid;gap:12px}.portal-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.portal-form label{display:grid;gap:6px;color:var(--portal-muted);font-size:10px;font-weight:800}.portal-form input,.portal-form select,.portal-form textarea{width:100%;min-width:0;border:1px solid var(--portal-line);border-radius:11px;background:var(--portal-surface-2);color:var(--portal-text);padding:11px 12px;outline:none}.portal-form input:focus,.portal-form select:focus,.portal-form textarea:focus{border-color:var(--portal-primary);box-shadow:0 0 0 3px var(--portal-primary-soft)}.portal-button{display:inline-flex;align-items:center;justify-content:center;width:max-content;border:0;border-radius:11px;padding:10px 14px;background:var(--portal-primary);color:#fff!important;font-weight:850;text-decoration:none;cursor:pointer}.portal-button.secondary{background:var(--portal-surface-2);color:var(--portal-text)!important;border:1px solid var(--portal-line)}.portal-button.danger{background:var(--portal-danger)}.portal-check{display:flex!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center;gap:8px}.portal-check input{width:auto}.dues-member-selector{display:grid;gap:9px}.dues-member-selector-toolbar{display:flex;gap:8px;flex-wrap:wrap}.dues-member-selector-toolbar input{flex:1;min-width:190px}.dues-member-checkboxes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:285px;overflow:auto;padding-right:4px}.dues-member-checkboxes label{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:8px;padding:9px;border:1px solid var(--portal-line);border-radius:10px;background:var(--portal-surface-2)}.dues-member-checkboxes input{width:auto}.dues-member-checkboxes strong,.dues-member-checkboxes small{display:block;color:var(--portal-text)}.dues-member-checkboxes small{margin-top:2px;color:var(--portal-muted);font-weight:500}.dues-notify-options{display:flex;align-items:center;gap:15px;flex-wrap:wrap;border:1px solid var(--portal-line);border-radius:12px;padding:12px}.dues-notify-options legend{padding:0 6px;font-weight:900}.dues-notify-options label{display:flex;align-items:center;gap:7px}.dues-notify-options input{width:auto}.dues-assignment-row{padding:14px;border:1px solid var(--portal-line);border-radius:14px;background:var(--portal-surface-2)}.dues-assignment-row>header,.dues-own-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.dues-assignment-row>header strong,.dues-assignment-row>header small,.dues-own-card>header strong,.dues-own-card>header small{display:block}.dues-assignment-row>header small,.dues-own-card>header small{margin-top:3px;color:var(--portal-muted);font-size:9px}.dues-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:var(--portal-surface);font-size:9px;font-weight:900;white-space:nowrap}.dues-status.paid{background:rgba(22,131,95,.14);color:var(--portal-success)}.dues-status.overdue{background:rgba(211,59,74,.14);color:var(--portal-danger)}.dues-status.partial{background:rgba(183,121,31,.15);color:var(--portal-warning)}.dues-status.exempt{background:var(--portal-primary-soft);color:var(--portal-primary)}.dues-status.cancelled{color:var(--portal-muted)}.dues-assignment-metrics,.dues-own-amounts{display:flex;gap:8px;flex-wrap:wrap;margin:11px 0}.dues-assignment-metrics span,.dues-own-amounts span{padding:7px 9px;border:1px solid var(--portal-line);border-radius:9px;background:var(--portal-surface);color:var(--portal-muted);font-size:9px}.dues-assignment-metrics b,.dues-own-amounts b{color:var(--portal-text)}.dues-assignment-metrics .notice{border-color:rgba(183,121,31,.38);color:var(--portal-warning);font-weight:900}.dues-assignment-row details>summary,.dues-own-card details>summary{cursor:pointer;color:var(--portal-primary);font-size:10px;font-weight:850}.dues-assignment-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:11px}.dues-payment-notices{display:grid;gap:9px}.dues-payment-notice{padding:13px;border:1px solid rgba(183,121,31,.35);border-radius:13px;background:rgba(183,121,31,.08)}.dues-payment-notice header{display:flex;justify-content:space-between;gap:8px}.dues-payment-notice-actions{display:flex;gap:8px;flex-wrap:wrap}.dues-own-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px}.dues-own-toolbar h2,.dues-own-toolbar p{margin:0}.dues-own-toolbar p{margin-top:5px;color:var(--portal-muted);font-size:10px}.dues-own-toolbar>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.dues-own-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:13px}.dues-own-card{margin:0!important}.dues-own-card>p{color:var(--portal-muted);font-size:10px;line-height:1.55}.dues-payment-history{display:grid;gap:7px;padding-top:9px}.dues-payment-history>div{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;padding:9px;border:1px solid var(--portal-line);border-radius:10px}.dues-payment-history small{grid-column:1/-1;color:var(--portal-muted)}.dues-payment-notice-form{margin-top:10px}.dues-payment-notice-form>.portal-form{padding-top:11px}.dues-message-box>div{display:grid;gap:8px}.dues-message-box article{padding:12px;border:1px solid var(--portal-line);border-radius:12px;background:var(--portal-surface-2)}.dues-message-box article p{margin:6px 0;color:var(--portal-muted);font-size:10px;line-height:1.55}.dues-message-box article small{color:var(--portal-muted);font-size:8px}.dues-member-manager-divider{display:flex;align-items:center;gap:12px;color:var(--portal-muted);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.dues-member-manager-divider:before,.dues-member-manager-divider:after{content:"";height:1px;background:var(--portal-line);flex:1}
@media(max-width:1180px){.portal-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dues-member-checkboxes{grid-template-columns:repeat(2,minmax(0,1fr))}.dues-assignment-actions{grid-template-columns:1fr}}
@media(max-width:760px){.dues-summary-grid{grid-template-columns:1fr 1fr}.dues-period-card>summary,.dues-own-toolbar{align-items:flex-start;flex-direction:column}.dues-period-card>summary>div:last-child{text-align:left}.dues-member-checkboxes,.portal-form-grid{grid-template-columns:1fr}.dues-own-list{grid-template-columns:1fr}}
.dues-notice-list{display:grid;gap:9px}.dues-notice-list>article{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.75fr);gap:12px;padding:13px;border:1px solid rgba(183,121,31,.35);border-radius:13px;background:rgba(183,121,31,.08)}.dues-notice-list>article strong,.dues-notice-list>article small{display:block}.dues-notice-list>article small{margin-top:3px;color:var(--portal-warning)}.dues-notice-list>article p{color:var(--portal-muted)}.dues-notice-list>article form{display:flex;align-items:end;gap:7px;flex-wrap:wrap}.dues-notice-list>article form input{flex:1;min-width:150px;border:1px solid var(--portal-line);border-radius:10px;background:var(--portal-surface);color:var(--portal-text);padding:10px}@media(max-width:850px){.dues-notice-list>article{grid-template-columns:1fr}}
.dues-inline-report{display:inline-flex;margin:0 0 9px;color:var(--portal-primary);font-size:9px;font-weight:900;text-decoration:none}.dues-inline-report:hover{text-decoration:underline}


/* v4.7 portal yerleşimi, süreç ilerlemesi ve talep bildirimleri */
.portal-topbar-actions{align-items:center;flex-wrap:wrap;justify-content:flex-end}.portal-permission-compact{display:flex;align-items:center;gap:10px;max-width:360px;margin:0!important;padding:8px 10px!important;border-radius:12px!important;box-shadow:none!important}.portal-permission-compact div{display:grid;gap:1px}.portal-permission-compact strong{font-size:10px}.portal-permission-compact p{margin:0!important;font-size:8px!important}.portal-permission-compact .portal-button{padding:8px 10px;font-size:9px;white-space:nowrap}.portal-layout .process-progress>div>span{display:block!important;background:linear-gradient(90deg,var(--portal-primary),#60a5fa)!important}.portal-layout .process-progress>strong,.portal-layout .process-progress-number{color:var(--portal-primary)!important}.portal-asset-requests{display:grid;gap:14px;margin-bottom:16px}.portal-asset-request-create>summary{cursor:pointer;font-weight:850}.portal-asset-request-create>.portal-form{padding-top:12px}.portal-asset-request-list{display:grid;gap:9px}.portal-asset-request-list>h3{margin:6px 0 0}.portal-asset-request-list>article{padding:13px;border:1px solid var(--portal-line);border-radius:13px;background:var(--portal-surface-2)}.portal-asset-request-list>article>header{display:flex;justify-content:space-between;gap:10px}.portal-asset-request-list strong,.portal-asset-request-list small{display:block}.portal-asset-request-list small{margin-top:3px;color:var(--portal-muted);font-size:9px}.portal-asset-request-list p{color:var(--portal-muted);font-size:10px}.portal-status.pending{background:rgba(183,121,31,.15);color:var(--portal-warning)}.portal-status.approved{background:rgba(22,131,95,.14);color:var(--portal-success)}.portal-status.rejected{background:rgba(211,59,74,.14);color:var(--portal-danger)}
@media(max-width:900px){.portal-permission-compact{max-width:none;order:3;width:100%}.portal-topbar-actions{width:100%}}

/* v4.7 sohbet alanını görünür ekran yüksekliğinde tut */
.portal-chat-workspace{height:calc(100vh - 195px);height:calc(100dvh - 195px);min-height:420px}
@media(max-width:900px){
 .portal-permission-compact{max-width:260px!important;width:auto!important;order:0!important}
 .portal-permission-compact p{display:none}
 .portal-topbar-actions{width:auto!important;flex-wrap:nowrap!important}
}
@media(max-width:820px){
 .portal-chat-workspace{height:calc(100vh - 143px);height:calc(100dvh - 143px);min-height:400px}
}
@media(max-width:560px){
 .portal-permission-compact{padding:6px!important;gap:5px!important}
 .portal-permission-compact>div{display:none!important}
 .portal-permission-compact .portal-button{padding:7px 8px;font-size:8px}
 .portal-chat-workspace{height:calc(100vh - 90px);height:calc(100dvh - 90px);min-height:360px}
}

/* v4.7 canlı bildirim toast konumu */
.portal-flash-stack{left:auto;right:18px;transform:none;width:min(390px,calc(100% - 36px))}
@media(max-width:560px){.portal-flash-stack{left:10px;right:10px;width:auto}}


/* v5.2 çevrim durumu profil görselinin altında */
.portal-directory-avatar-block{display:grid;justify-items:center;gap:7px}
.portal-directory-avatar-block .portal-presence{font-size:9.5px;color:var(--portal-muted)}
.portal-directory-avatar-block .portal-presence.online{color:#059669}
.portal-directory-avatar-block .portal-presence.offline{color:#64748b}
.portal-directory-presence{display:none!important}

.portal-flash-toast{transition:opacity .26s ease,transform .26s ease}.portal-flash-toast.is-hiding{opacity:0;transform:translateY(-10px);pointer-events:none}

/* v5.6 portal iletişim merkezi */
.portal-communication-center .communication-recipient-builder{display:grid;gap:14px;margin-top:18px}
.portal-communication-center .communication-person-checks{display:grid;gap:8px;max-height:340px;overflow:auto;padding:10px;border:1px solid var(--portal-border);border-radius:14px}
.portal-communication-center .communication-person-checks label{display:flex;align-items:center;gap:8px;padding:8px;border-radius:10px;background:var(--portal-surface-soft)}
.portal-communication-center .communication-person-checks small{margin-left:auto;color:var(--portal-muted)}
