/* Spacious iOS-inspired composition; motion changes opacity/transform, never layout. */
:root { --accent:#e31c5f; --accent-soft:#fff0f4; --panel2:#f7f7f8; --line:#e9e9ec; --radius:24px; --shadow:0 8px 30px #20202b08; }
[data-theme=dark] { --bg:#171719; --panel:#222225; --panel2:#2c2c30; --line:#3b3b41; --text:#f5f5f7; --muted:#b1b1bc; --accent:#ff839f; --accent-soft:#412735; --input:#222225; --nav-bg:#222225f5; }
body { letter-spacing:-.15px; }
.app-shell { max-width:1340px; padding-inline:calc(36px + var(--safe-left)) calc(36px + var(--safe-right)); }
.brand { letter-spacing:-.7px; font-size:21px; }
.brand-icon { background:none; color:var(--accent); border:0; box-shadow:none; }
.brand-icon .icon { width:30px; height:30px; stroke-width:2; }
.topbar { padding-top:22px; border-bottom:0; }
.header-actions { padding-top:8px; }
.header-actions > span { font-size:12px; letter-spacing:.2px; }
.app-refresh { border:0; border-radius:28px; background:var(--panel2); color:var(--text); padding-inline:18px; }
.nav { gap:38px; margin-bottom:40px; }
.nav button { color:var(--muted); font-weight:600; }
.nav button.active { color:var(--text); }
.nav button.active::after { background:var(--text); height:3px; }
.page-heading { margin-bottom:28px; align-items:center; }
.page-heading .eyebrow { color:var(--muted); letter-spacing:.9px; font-size:10px; margin-bottom:9px; }
.page-heading h1 { font-size:clamp(30px,3.6vw,44px); letter-spacing:-1.6px; line-height:1.12; font-weight:750; }
.page-heading p { font-size:14px; line-height:1.6; margin-top:12px; }
.btn { border-radius:14px; min-height:48px; font-weight:650; transition:background-color .2s,box-shadow .2s,border-color .2s; }
.btn.primary { background:linear-gradient(110deg,#ff385c,#df1762); color:#fff; border:0; box-shadow:0 5px 14px #e31c5f16; }
[data-theme=dark] .btn.primary { background:#ff839f; color:#20151a; box-shadow:none; }
.btn.primary:hover { background:#df1762; }
[data-theme=dark] .btn.primary:hover { background:#ffa2b6; }
.btn.text { background:none; box-shadow:none; }
#new-task { border-radius:28px; padding-inline:22px; }
.workspace-search { position:relative; margin-bottom:32px; }
.workspace-search input { height:70px; border-radius:40px; padding:16px 28px 16px 60px; font-size:16px; font-weight:600; box-shadow:0 4px 18px #1e1e280b; }
.workspace-search > .icon { left:24px; color:var(--text); width:22px; height:22px; }
.search-hint { position:absolute; right:26px; top:25px; font-size:12px; color:var(--muted); pointer-events:none; }
.project-heading { display:flex; justify-content:space-between; gap:12px; margin:0 0 16px; font-size:18px; font-weight:650; }
.project-scroll-hint { display:none; }
.project-heading .small { font-weight:400; font-size:12px; align-self:center; }
.project-grid { display:grid; grid-template-columns:repeat(var(--project-total,5),minmax(0,1fr)); gap:12px; margin-bottom:26px; padding:2px; border:0; }
.project-card { padding:18px 12px 14px; text-align:center; border:1px solid transparent; background:var(--panel2); border-radius:22px; box-shadow:none; min-height:152px; transition:background-color .3s,border-color .3s,box-shadow .3s; }
.project-card.active { background:var(--panel); border:1px solid var(--text); border-radius:22px; padding:18px 12px 14px; box-shadow:0 4px 18px #22222208; }
.project-card::after,.project-card .check { display:none; }
.project-symbol { display:grid; place-items:center; width:52px; height:52px; margin:0 auto 10px; border-radius:17px; background:linear-gradient(140deg,color-mix(in srgb,var(--project-color) 32%,var(--panel)),color-mix(in srgb,var(--project-color) 12%,var(--panel))); color:color-mix(in srgb,var(--project-color) 65%,var(--text)); box-shadow:inset 0 1px 1px #ffffff60,0 4px 7px #22222208; transition:transform .4s cubic-bezier(.16,1,.3,1),background-color .4s; }
.project-symbol .icon { width:28px; height:28px; stroke-width:1.6; }
.project-card.active .project-symbol { transform:scale(1.07); }
.project-mark { min-height:21px; padding:0; font-size:13px; font-weight:650; line-height:1.4; color:var(--text); display:block; }
.project-count { display:flex; justify-content:center; align-items:center; gap:4px; margin-top:5px; font-size:11px; font-weight:500; line-height:1.4; color:var(--muted); letter-spacing:0; }
.project-count span { font-size:11px; }
.project-grid:has(>.project-card:only-child) .project-card { display:grid; grid-template-columns:52px minmax(0,1fr); column-gap:16px; min-height:88px; padding:16px 22px; text-align:left; }
.project-grid:has(>.project-card:only-child) .project-symbol { grid-row:1/3; margin:0; }
.project-grid:has(>.project-card:only-child) .project-mark { align-self:end; }
.project-grid:has(>.project-card:only-child) .project-count { justify-content:flex-start; margin-top:2px; }
.overview { gap:14px; background:none; padding:0; margin-bottom:34px; }
.stat { background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:18px; gap:14px; }
.stat-icon,.stat-icon.orange,.stat-icon.green { display:grid; width:40px; height:40px; border-radius:13px; background:var(--blue-soft); }
.stat-icon.orange { background:var(--orange-soft); }.stat-icon.green { background:var(--green-soft); }
.stat strong { font-size:26px; line-height:1.15; font-weight:700; letter-spacing:-.8px; }
.stat small { font-size:12px; line-height:1.4; }
.content-grid { gap:28px; grid-template-columns:minmax(0,1fr) 268px; }
.section-head h2 { font-size:23px; letter-spacing:-.6px; }
.task-toolbar { align-items:center; margin-bottom:20px; }
.tabs { display:flex; gap:4px; border:0; padding:5px; border-radius:28px; background:var(--panel2); }
.tabs button { border:0; flex:1 1 0; padding:11px 12px; border-radius:24px; background:none; color:var(--muted); font-size:13px; font-weight:600; white-space:nowrap; transition:background-color .25s,color .25s,box-shadow .25s; }
.tabs button.active { background:var(--panel); color:var(--text); box-shadow:0 2px 7px #2222220e; }
.switch-row { font-size:12px; }
.task-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.task-list>.empty,.task-list>.error-message { grid-column:1/-1; }
.task-card { border:1px solid var(--line); padding:22px; border-radius:24px; background:var(--panel); box-shadow:0 4px 20px #22222205; display:flex; flex-direction:column; height:100%; }
.task-card:hover { border-color:color-mix(in srgb,var(--text) 45%,var(--line)); box-shadow:0 9px 28px #2222220a; }
.task-top { width:100%; gap:10px; align-items:center; }
.task-code { display:flex; align-items:center; gap:8px; font-size:11px; font-weight:600; color:var(--muted); }
.task-symbol { display:grid; place-items:center; width:32px; height:32px; flex-shrink:0; border-radius:11px; background:color-mix(in srgb,var(--project-color) 16%,var(--panel)); color:var(--text); }
.task-symbol .icon { width:18px; height:18px; }
.task-title { font-size:18px; line-height:1.4; margin:17px 0 9px; font-weight:700; letter-spacing:-.45px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.task-description { -webkit-line-clamp:2; font-size:13px; line-height:1.65; margin-bottom:20px; }
.task-people { display:flex; align-items:center; gap:9px; margin-top:auto; color:var(--muted); font-size:10px; }
.task-people>span:last-child { min-width:0; overflow-wrap:anywhere; }
.task-people strong { display:block; color:var(--text); font-size:11px; font-weight:500; }
.person-avatar { display:grid; place-items:center; flex:0 0 auto; width:30px; height:30px; border-radius:50%; background:var(--panel2); font-size:10px; font-weight:600; color:var(--text); }
.task-footer { width:100%; flex-direction:column; align-items:flex-start; gap:8px; font-size:11px; border-top:1px solid var(--line); padding-top:15px; margin-top:18px; }
.task-footer .icon { width:15px; height:15px; }
.priority { font-size:10px; padding:5px 8px; border-radius:8px; }
.priority.normal { color:var(--muted); background:var(--panel2); }
.panel { border-radius:24px; padding:24px; }
.side-stack .panel { background:var(--panel2); border:0; }
.side-stack .eyebrow { font-size:9px; letter-spacing:.7px; }
.side-stack .mini-stat { padding-block:13px; }
.side-stack .tip { display:none; }
.empty { padding:48px 20px; border:1px dashed var(--line); border-radius:24px; background:var(--panel2); }
.empty>.icon { padding:16px; width:66px; height:66px; border-radius:22px; background:var(--panel); color:var(--muted); margin-bottom:18px; }
.footer-note { margin-top:28px; font-size:11px; }
.team-overview { display:flex; gap:18px; align-items:center; padding:24px; margin-bottom:26px; border-radius:24px; background:var(--panel2); }
.team-overview-icon { width:56px; height:56px; display:grid; place-items:center; border-radius:18px; background:var(--panel); box-shadow:var(--shadow); color:var(--accent); }
.team-overview-icon .icon { width:28px; height:28px; }
.team-overview>div { display:grid; gap:5px; min-width:0; }.team-overview strong { font-size:20px; letter-spacing:-.4px; }
.team-overview-note { margin-left:auto; color:var(--muted); font-size:13px; }
.admin-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; padding:5px; background:var(--panel2); border-radius:18px; margin-bottom:24px; }
.admin-tabs button { min-width:0; min-height:48px; border-radius:14px; font-size:13px; font-weight:600; color:var(--muted); transition:background-color .25s,box-shadow .25s,color .25s; }
.admin-tabs [aria-selected=true] { background:var(--panel); color:var(--text); box-shadow:0 3px 12px #22222209; }
.admin-tabs .badge { padding:1px 5px; font-size:10px; margin-left:5px; }
.member-search { margin-bottom:20px; }.member-search input { border-radius:18px; height:54px; background:var(--panel); }
#admin-pane-members>section { border:0; padding:0; background:none; }
#admin-pane-members .team-summary { margin-bottom:24px; }
.member-card { margin:12px 0; padding:22px; border:1px solid var(--line); border-radius:22px; grid-template-columns:minmax(0,1fr) 190px; gap:18px; background:var(--panel); }
.member-card:last-child { border-bottom:1px solid var(--line); padding-bottom:22px; }
.member-card>div:first-child { position:relative; padding-left:58px; min-height:44px; }
.member-avatar { position:absolute; left:0; top:0; display:grid; place-items:center; width:42px; height:42px; background:var(--panel2); border-radius:50%; font-size:13px; font-weight:650; }
.member-avatar.analyst { background:var(--blue-soft); color:var(--blue); }.member-avatar.admin { background:var(--accent-soft); color:var(--accent); }.member-avatar.devops { background:var(--green-soft); color:var(--green); }
.member-card select { border-radius:14px; height:48px; background:var(--panel2); border-color:transparent; font-size:13px; }
.member-projects { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-top:14px; border-top:1px solid var(--line); }
.project-tags { display:flex; flex-wrap:wrap; gap:7px; min-width:0; }.project-tags>span { display:inline-flex; align-items:center; gap:7px; padding:7px 11px; border:1px solid var(--line); border-radius:10px; font-size:11px; background:var(--panel2); overflow-wrap:anywhere; }
.project-tags .icon { width:15px; height:15px; }
.member-projects .btn { min-height:40px; padding:7px 0; font-size:12px; }
.project-picker { border:0; padding:0; margin:24px 0; min-width:0; }.project-picker legend { font-size:14px; font-weight:650; margin-bottom:14px; }
.project-picker legend .muted { display:block; font-weight:400; font-size:12px; margin-top:4px; }
.project-options { display:grid; gap:10px; }
.project-option { position:relative; display:flex; align-items:center; gap:14px; padding:16px; margin:0; min-height:72px; border:1px solid var(--line); border-radius:18px; background:var(--panel); cursor:pointer; font-size:14px; transition:border-color .25s,background-color .25s; }
.project-option:has(input:checked) { border-color:var(--text); background:var(--panel2); }
.project-option input { position:absolute; width:1px; height:1px; opacity:0; min-height:0; padding:0; left:20px; }
.project-option:has(input:focus-visible) { outline:2px solid var(--accent); outline-offset:3px; }
.option-symbol { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:color-mix(in srgb,var(--project-color) 18%,var(--panel)); flex-shrink:0; }
.option-check { margin-left:auto; width:22px; height:22px; border:1px solid var(--line); border-radius:7px; flex-shrink:0; display:grid; place-items:center; transition:background-color .25s; }
.option-check .icon { width:16px; height:16px; opacity:0; transform:scale(.6); transition:opacity .2s,transform .3s cubic-bezier(.16,1,.3,1); }
.project-option:has(input:checked) .option-check { background:var(--text); color:var(--panel); border-color:var(--text); }
.project-option:has(input:checked) .option-check .icon { opacity:1; transform:scale(1); }
.access-person { display:flex; gap:14px; align-items:center; padding:16px; background:var(--panel2); border-radius:18px; }.access-person>div { min-width:0; overflow-wrap:anywhere; }
.registration-item { padding:24px 0; }.registration-item-head strong { font-size:16px; }.registration-actions { gap:10px; }.registration-actions .btn { padding-inline:22px; }
.admin-project { margin-top:14px; border:1px solid var(--line); border-radius:18px; padding:0 18px; }.admin-project summary { padding:18px 0; font-size:14px; }.admin-project form { padding-bottom:20px; }
.profile-head { flex-direction:column; align-items:center; text-align:center; padding:20px 0 30px; }.profile-head .avatar { width:90px; height:90px; font-size:28px; background:var(--accent-soft); color:var(--accent); border:0; }.profile-head h2 { font-size:24px; margin-top:10px; }.profile-projects { margin-top:24px; }.profile-projects .project-tags { margin-top:20px; }
.admin-account { display:flex; justify-content:flex-end; gap:10px; margin:26px 0; flex-wrap:wrap; }
.member-discord { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:14px; border-top:1px solid var(--line); }.member-discord>div { min-width:0; flex:1; overflow-wrap:anywhere; }.member-discord strong { font-size:12px; }.member-discord .btn { min-height:48px; min-width:124px; padding:12px 16px; gap:10px; font-size:14px; flex:0 0 auto; white-space:nowrap; background:var(--panel2); }.discord-identity-status { display:block; margin-top:3px; font-size:11px; }
.profile-discord { margin-top:12px; }.discord-help { margin:18px 0 24px; padding:16px; background:var(--panel2); border-radius:16px; font-size:13px; }.discord-help summary { cursor:pointer; font-weight:600; }.discord-help p { margin-top:10px; color:var(--muted); line-height:1.6; }
.discord-project { border-top:1px solid var(--line); padding:22px 0; }.discord-project-heading { display:flex; align-items:center; gap:12px; margin-bottom:14px; }.discord-project-heading .avatar { color:#5865f2; background:#5865f214; }.discord-project-heading h3 { font-size:16px; }.discord-project-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }.discord-project-actions .btn { flex:1 1 140px; }
.discord-all-projects { display:flex; gap:12px; align-items:center; padding:16px; border:1px solid var(--line); border-radius:16px; font-size:13px; }.discord-all-projects input { width:22px; height:22px; min-height:22px; flex-shrink:0; margin:0; accent-color:var(--accent); }
.notification-channels { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr)); gap:12px; margin:20px 0; }.notification-channels>div { padding:16px; background:var(--panel2); border-radius:16px; }.notification-channels strong { display:block; margin-bottom:6px; }
.modal-surface { border-radius:28px; box-shadow:0 20px 80px #0003; }.modal-head { padding:22px 26px; border-bottom:1px solid var(--line); }.modal-body { padding:26px; }.modal-head h2 { font-size:21px; letter-spacing:-.5px; }
input,textarea,select { border-radius:14px; min-height:50px; }.field>label { font-size:13px; margin-bottom:9px; }.form-actions { padding-top:10px; }
.detail-title { font-size:27px; line-height:1.3; letter-spacing:-.7px; margin-top:20px; }.detail-meta { gap:20px; padding:22px; border-radius:20px; }.event { border-left-color:var(--line); }
.auth-card { border-radius:30px; box-shadow:0 12px 50px #20202b08; }.auth-card h1 { letter-spacing:-1.2px; }
.report-metric { background:var(--panel2); border:0; }.report-metric strong { letter-spacing:-1.6px; }
.theme-switching .project-option,.theme-switching .admin-tabs,.theme-switching .team-overview,.theme-switching .member-card,.theme-switching .project-symbol { transition:background-color .6s,color .6s,border-color .6s; }
@media (max-width:1100px) { .content-grid { grid-template-columns:minmax(0,1fr); }.side-stack { grid-template-columns:repeat(2,minmax(0,1fr)); }.search-hint { display:none; } }
@media (max-width:760px) {
  .app-shell { padding-inline:calc(20px + var(--safe-left)) calc(20px + var(--safe-right)); }.topbar { padding-top:14px; }.brand { font-size:18px; }.header-actions { padding-top:6px; }.app-refresh { min-height:44px; font-size:12px; }
  .nav { gap:6px; margin:0; padding-top:5px; border-top-color:var(--line); }.nav button.active { color:var(--accent); }.nav button { font-size:10px; }.nav .icon { width:23px; height:23px; stroke-width:1.7; }
  .main { padding-top:30px; }.page-heading { margin-bottom:24px; gap:12px; }.page-heading h1 { font-size:32px; letter-spacing:-1.2px; }.page-heading p { font-size:12px; max-width:240px; margin-top:10px; }.page-heading .eyebrow { font-size:9px; letter-spacing:.8px; }
  #new-task { width:48px; height:48px; padding:0; border-radius:50%; flex-shrink:0; margin-top:0; }
  .workspace-search { margin-bottom:28px; }.workspace-search input { height:60px; min-height:60px; padding-left:51px; font-size:14px; }.workspace-search>.icon { left:20px; width:20px; height:20px; }
  .project-scroll-hint { display:inline; }
  .project-heading { font-size:17px; margin-bottom:14px; }.project-heading .small { font-size:10px; }
  .project-grid { grid-template-columns:repeat(var(--project-total,5),minmax(112px,1fr)); gap:10px; overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width:none; margin-bottom:22px; padding:2px 2px 8px; scroll-snap-type:x proximity; }.project-grid::-webkit-scrollbar { display:none; }
  .project-card,.project-card.active { min-height:128px; padding:12px 8px 10px; border-radius:20px; scroll-snap-align:start; }.project-symbol { width:42px; height:42px; border-radius:14px; margin-bottom:8px; }.project-symbol .icon { width:25px; height:25px; }.project-mark { font-size:11px; min-height:30px; display:flex; justify-content:center; align-items:center; }.project-count,.project-count span { font-size:10px; margin-top:2px; }
  .project-grid:has(>.project-card:only-child) { grid-template-columns:minmax(0,1fr); }.project-grid:has(>.project-card:only-child) .project-mark { justify-content:flex-start; min-height:0; }
  .overview { gap:8px; margin-bottom:26px; }.stat { border-radius:16px; padding:12px 8px; gap:8px; flex-direction:row; align-items:center; }.stat>div { display:flex; flex-direction:column; }.stat-icon,.stat-icon.orange,.stat-icon.green { display:grid; width:26px; height:26px; border-radius:9px; }.stat-icon .icon { width:16px; height:16px; }.stat strong { font-size:22px; }.stat small { font-size:9px; }
  .section-head h2 { font-size:21px; }.tabs { padding:4px; gap:2px; border-radius:24px; }.tabs button { padding:10px 4px; font-size:11px; }.task-toolbar { gap:12px; }.task-list { grid-template-columns:minmax(0,1fr); gap:14px; }.task-card { padding:20px; border-radius:22px; }.task-title { font-size:18px; margin-top:15px; }.task-description { font-size:12px; margin-bottom:18px; }.task-footer { flex-direction:row; flex-wrap:wrap; gap:10px 16px; font-size:10px; }.task-footer>span { min-width:0; overflow-wrap:anywhere; }
  .side-stack { gap:12px; }.side-stack .panel { padding:16px; border-radius:20px; }.side-stack h3 { font-size:14px; }.side-stack .mini-stat { font-size:11px; }.side-stack .eyebrow { font-size:8px; }
  .team-overview { padding:20px; gap:12px; border-radius:22px; margin-bottom:22px; }.team-overview-icon { width:46px; height:46px; border-radius:15px; flex-shrink:0; }.team-overview strong { font-size:18px; }.team-overview .small { font-size:11px; }.team-overview-note { display:none; }
  .admin-tabs { padding:4px; gap:2px; border-radius:16px; margin-bottom:20px; }.admin-tabs button { font-size:10px; min-height:46px; padding:6px 2px; border-radius:12px; }.admin-tabs .badge { display:none; }
  .panel { padding:20px; border-radius:22px; }.member-card { padding:18px; border-radius:20px; grid-template-columns:minmax(0,1fr); gap:16px; }.member-card:last-child { padding-bottom:18px; }.member-card>div:first-child { padding-left:53px; }.member-card strong { font-size:14px; }.member-card small { font-size:10px; }.member-card select { font-size:16px; }.member-projects { gap:6px; padding-top:12px; }.project-tags>span { font-size:10px; padding:6px 9px; }
  .member-discord { display:grid; grid-template-columns:minmax(0,1fr); }.member-discord .btn { width:100%; min-width:0; }
  .project-option { padding:14px; gap:11px; min-height:68px; font-size:13px; }.project-option input { font-size:16px; }.option-symbol { width:34px; height:34px; border-radius:11px; }.project-picker legend { font-size:13px; }.access-person { padding:14px; }.access-person .small { font-size:11px; }
  .modal-surface { border-radius:26px; }.modal-head { padding:18px; }.modal-body { padding:20px 18px; }.modal-head h2 { font-size:19px; }.detail-title { font-size:24px; }.detail-meta { padding:18px; gap:16px; }.auth-card { border-radius:26px; }
  .registration-actions .btn { padding-inline:16px; }.registration-item-head strong { font-size:14px; }.report-filters { gap:14px; }.report-metric { border-radius:20px; padding:20px; }
}
@media (max-width:360px) { .app-shell { padding-inline:calc(16px + var(--safe-left)) calc(16px + var(--safe-right)); }.page-heading h1 { font-size:28px; }.page-heading p { max-width:200px; }.project-grid { grid-template-columns:repeat(var(--project-total,5),minmax(108px,1fr)); }.stat { padding:11px 7px; }.team-overview { padding:17px; }.member-card { padding:16px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }
