.team-body { height: 100dvh; overflow-y: auto; overflow-x: hidden; }
.team-top { position: sticky; top: 0; z-index: 1; background: var(--panel); border-bottom: 1px solid var(--line); min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 8px clamp(12px, 4vw, 60px); }
.team-top .brand-mark { flex: none; }
.team-top strong { white-space: nowrap; }
#team-identity { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
#team-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#team-identity button { flex: none; }
.team-main { max-width: 1120px; margin: 0 auto; padding: clamp(16px, 4vw, 48px) 16px 88px; }
.team-main h1 { font-size: 24px; margin: 0 0 12px; }
.team-main h2 { font-size: 16px; margin: 0 0 12px; }
.team-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 3vw, 24px); margin: 0 0 16px; overflow-wrap: anywhere; }
.team-auth { max-width: 440px; margin: clamp(12px, 10vh, 100px) auto 0; }
.team-panel p { color: var(--dim); margin: 6px 0 14px; }
.team-form { display: grid; gap: 12px; margin: 0; }
.team-form label { display: grid; gap: 4px; color: var(--dim); }
.team-form input:not([type=checkbox]), .team-form textarea { width: 100%; min-width: 0; min-height: 36px; }
.team-form textarea { resize: vertical; }
.team-form fieldset { border: 1px solid var(--line); padding: 8px 12px; border-radius: 7px; min-width: 0; }
.team-form fieldset label { display: flex; align-items: center; }
.team-form input[type=checkbox] { width: 16px; height: 16px; }
.team-actions, .team-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.team-nav { margin-bottom: 20px; }
.team-actions > button { min-height: 36px; }
.team-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; color: var(--accent); text-decoration: none; border-radius: 7px; }
.team-link:hover { background: var(--surface); }
.team-link:focus-visible { outline: 2px solid var(--accent); }
.team-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.team-cards .team-panel { margin: 0; }
.team-notice { position: fixed; z-index: 2; bottom: 12px; right: 12px; max-width: min(420px, calc(100% - 24px)); padding: 10px 14px; border: 1px solid var(--outline); border-radius: 8px; background: var(--surface); }
.team-notice:empty { display: none; }
.team-form-error { color: var(--danger); }
.team-form-error:empty { display: none; }
.team-create { margin-top: 16px; }
.team-create form { margin-top: 12px; }
.team-account-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.team-cards details { margin: 8px 0; }
.team-cards details ul { padding-left: 20px; }
.team-project-assets { display: flex; flex-wrap: wrap; gap: 8px; }
.team-project-assets img { width: 96px; height: 96px; border-radius: 7px; object-fit: contain; background: var(--bg); }
.team-form select { min-height: 36px; max-width: 100%; }
.team-form input[type=checkbox] { flex: none; }
.team-form .team-check { display: flex; align-items: center; }
.team-panel details form { margin-top: 10px; }
.team-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,130px),1fr)); gap: 12px; margin: 16px 0; }
.team-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.team-stats dt { color: var(--dim); }
.team-stats dd { font-size: 22px; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.team-table { max-width: 100%; overflow: auto; margin: 12px 0; }
.team-table table { width: 100%; border-collapse: collapse; }
.team-table th, .team-table td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.team-table th { color: var(--dim); white-space: nowrap; }
.team-table td small { display: block; margin-top: 4px; color: var(--muted); }
.team-table td details { min-width: 160px; }
.team-usage { margin-top: 16px; }
.team-rate-list { padding-left: 20px; }
.team-text-result { min-width: 12rem; max-width: 32rem; white-space: pre-wrap; }
