/* Team directory and membership sheets use the shared mobile theme. */
.phone .page.tmm-page{min-width:0;padding:18px 20px 28px;color:var(--color-text-primary)}
.phone :is(.tmm-page,.tmm-sheet,.tmm-form,.tmm-confirm) :is(div,section,article,header,form,label,button,span){min-width:0}
.phone :is(.tmm-page,.tmm-sheet,.tmm-form,.tmm-confirm) [hidden]{display:none!important}
.phone :is(.tmm-page,.tmm-sheet,.tmm-form,.tmm-confirm) button:focus-visible{outline:2px solid var(--color-link);outline-offset:3px}
.phone .tmm-hero{display:flex;align-items:flex-start;flex-wrap:wrap;gap:13px;padding:19px;margin-bottom:22px;border:1px solid color-mix(in srgb,var(--color-link) 15%,var(--color-border));border-radius:var(--radius-lg);background:var(--color-primary-soft)}
.phone .tmm-hero-icon{display:grid;place-items:center;flex:0 0 45px;width:45px;height:45px;border-radius:14px;background:var(--color-surface);color:var(--color-link)}
.phone .tmm-hero-icon>.ico{width:25px;height:25px}
.phone .tmm-hero>div:not(.tmm-hero-icon):not(.tmm-hero-stats){flex:1;align-self:center}
.phone .tmm-hero h2{font-size:17px;line-height:1.6;overflow-wrap:anywhere}
.phone .tmm-hero p{margin-top:4px;color:var(--color-text-secondary);font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.phone .tmm-hero-stats{display:flex;flex:0 0 100%;gap:22px;margin-top:2px;padding-top:14px;border-top:1px solid color-mix(in srgb,var(--color-link) 13%,var(--color-border))}
.phone .tmm-hero-stats>span{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;color:var(--color-text-secondary);font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.phone .tmm-hero-stats strong{color:var(--color-link);font-size:19px;font-weight:600;font-variant-numeric:tabular-nums}
.phone .tmm-toolbar,.phone .tmm-member-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.phone .tmm-toolbar h2,.phone .tmm-member-toolbar h3{flex:1;font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.phone :is(.tmm-toolbar,.tmm-member-toolbar)>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 1 auto;min-height:42px;max-width:54%;padding:9px 12px;border-radius:var(--radius-sm);font-size:12px;line-height:1.6;text-align:center;overflow-wrap:anywhere;box-shadow:none}
.phone :is(.tmm-toolbar,.tmm-member-toolbar)>button .ico{width:15px;height:15px;flex:0 0 15px}
.phone .tmm-search{display:flex;align-items:center;gap:8px;min-height:44px;padding-inline-start:12px;margin-bottom:15px;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface)}
.phone .tmm-search>.ico{width:17px;height:17px;flex:0 0 17px;color:var(--color-text-tertiary)}
.phone .tmm-search input{width:100%;min-width:0;flex:1;min-height:42px;padding:0;border:0;border-radius:0;background:transparent;color:var(--color-text-primary);font-size:12px;outline:none;box-shadow:none}
.phone .tmm-search input::placeholder,.phone .tmm-picker-filters input::placeholder{color:var(--color-text-disabled)}
.phone .tmm-search>button{display:grid;place-items:center;flex:0 0 42px;min-height:42px;padding:0;color:var(--color-link)}
.phone .tmm-search>button .ico{width:17px;height:17px}
.phone .tmm-search:focus-within{border-color:var(--color-link);box-shadow:var(--shadow-focus)}
.phone .tmm-team-list,.phone .tmm-members{display:grid;gap:13px}
.phone .tmm-result-count{margin:2px 0 11px;color:var(--color-text-tertiary);font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.phone article.tmm-team-card{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;padding:17px;border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface);box-shadow:var(--shadow-card)}
.phone .tmm-team-card>header{display:flex;grid-column:1/-1;align-items:flex-start;gap:11px;margin:0;padding:0;border:0;background:transparent}
.phone .tmm-team-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:var(--color-primary-soft);color:var(--color-link)}
.phone .tmm-team-icon>.ico{width:22px;height:22px}
.phone .tmm-team-title{flex:1;align-self:center}
.phone .tmm-team-title h3{margin:0;font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.phone .tmm-team-title small{display:block;margin-top:3px;color:var(--color-text-tertiary);font-size:10px;line-height:1.7;overflow-wrap:anywhere}
.phone .tmm-team-card>header>button,.phone .tmm-detail-head>button{display:grid;place-items:center;flex:0 0 42px;width:42px;min-height:42px;margin:-4px -7px 0 0;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--color-text-tertiary)}
.phone .tmm-team-card>header>button:active,.phone .tmm-detail-head>button:active{background:var(--color-surface-subtle)}
.phone :is(.tmm-team-card>header,.tmm-detail-head)>button .ico{width:18px;height:18px}
.phone .tmm-team-count{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;margin-top:16px;color:var(--color-text-tertiary);font-size:11px;line-height:1.7}
.phone .tmm-team-count b{color:var(--color-text-primary);font-size:23px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.4}
.phone .tmm-avatar-stack{display:flex;grid-column:2;grid-row:2;flex-wrap:wrap;row-gap:4px;align-self:center;justify-content:flex-end;align-items:center;max-width:130px;padding-inline-start:3px;margin:16px 0 0;min-height:29px}
.phone .tmm-avatar{display:inline-grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border-radius:var(--radius-circle);background:var(--color-primary-soft);color:var(--color-link);font-size:14px;line-height:1;font-weight:500;overflow:hidden}
.phone .tmm-avatar img{width:100%;height:100%;object-fit:cover}
.phone .tmm-avatar-stack .tmm-avatar{flex-basis:30px;width:30px;height:30px;margin-inline-start:-3px;border:2px solid var(--color-surface);font-size:10px}
.phone .tmm-avatar-stack>small{padding-inline-start:7px;color:var(--color-text-tertiary);font-size:10px;line-height:1.7;overflow-wrap:anywhere}
.phone .tmm-created{display:block;grid-column:1/-1;margin:11px 0 12px;color:var(--color-text-tertiary);font-size:10px;line-height:1.8;overflow-wrap:anywhere}
.phone button.tmm-manage{display:flex;grid-column:1/-1;align-items:center;justify-content:center;gap:6px;width:100%;min-height:42px;padding:9px 12px;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);color:var(--color-link);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.phone button.tmm-manage>.ico{width:15px;height:15px;flex:0 0 15px}
.phone .tmm-detail-head{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:21px;padding:18px;border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface);box-shadow:var(--shadow-card)}
.phone .tmm-detail-head>div:not(.tmm-team-icon){flex:1;align-self:center}
.phone .tmm-detail-head h2{font-size:17px;line-height:1.65;overflow-wrap:anywhere}
.phone .tmm-detail-head small{display:block;margin-top:4px;color:var(--color-text-tertiary);font-size:10px;line-height:1.8;overflow-wrap:anywhere}
.phone article.tmm-member-card{display:flex;align-items:flex-start;gap:10px;padding:14px 12px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface)}
.phone .tmm-member-card>.tmm-avatar{margin-top:2px}
.phone .tmm-person-copy{flex:1;align-self:center}
.phone .tmm-person-copy strong{display:block;color:var(--color-text-primary);font-size:12px;font-weight:600;line-height:1.7;overflow-wrap:anywhere}
.phone .tmm-person-copy p{margin-top:2px;color:var(--color-text-secondary);font-size:10px;line-height:1.8;overflow-wrap:anywhere}
.phone .tmm-person-copy small{display:block;margin-top:2px;color:var(--color-text-tertiary);font-size:10px;line-height:1.8;overflow-wrap:anywhere}
.phone .tmm-roles{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:5px}
.phone .tmm-roles>span{max-width:100%;padding:2px 5px;border-radius:4px;background:var(--color-surface-subtle);color:var(--color-text-tertiary);font-size:9px;font-weight:400;line-height:1.7;overflow-wrap:anywhere}
.phone button.tmm-remove{display:grid;place-items:center;flex:0 0 42px;width:42px;min-height:42px;padding:0;border-radius:var(--radius-sm);color:var(--color-error-text)}
.phone button.tmm-remove>.ico{width:19px;height:19px}
.phone button.tmm-remove:active{background:var(--color-error-soft)}
.phone .tmm-danger-zone{margin-top:21px;padding-top:17px;border-top:1px solid var(--color-border)}
.phone .tmm-danger-zone>.danger-btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--color-error) 22%,var(--color-border));border-radius:var(--radius-sm);background:var(--color-error-soft);color:var(--color-error-text);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.phone .tmm-danger-zone>.danger-btn .ico{width:16px;height:16px}
.phone .tmm-note{margin:12px 0;color:var(--color-text-tertiary);font-size:10px;line-height:1.85;overflow-wrap:anywhere}
.phone .tmm-empty{display:flex;flex-direction:column;align-items:center;padding:32px 18px;border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface);color:var(--color-text-tertiary);text-align:center}
.phone .tmm-empty>.ico{width:33px;height:33px;margin-bottom:12px;color:var(--color-text-disabled)}
.phone .tmm-empty h3{color:var(--color-text-primary);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.phone .tmm-empty p{margin-top:7px;font-size:11px;line-height:1.85;overflow-wrap:anywhere}
.phone .tmm-empty>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%;min-height:42px;margin-top:15px;padding:9px 14px;border-radius:var(--radius-sm);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.phone .tmm-sheet{color:var(--color-text-primary);min-width:0}
.phone .tmm-picked-head{margin-bottom:16px;padding:12px 13px;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-primary-soft);font-size:13px;font-weight:600;line-height:1.75;overflow-wrap:anywhere}
.phone .tmm-picked-head small{display:block;margin-top:3px;color:var(--color-text-tertiary);font-size:10px;font-weight:400;line-height:1.75}
.phone .tmm-picked-head>strong{display:block}
.phone .tmm-picked-head>span{display:inline-flex;max-width:100%;margin-top:8px;padding:2px 6px;border-radius:5px;background:var(--color-surface);color:var(--color-link);font-size:9px;font-weight:400;line-height:1.7}
.phone .tmm-picker-filters{display:grid;gap:10px;margin-bottom:15px}
.phone .tmm-picker-filters input:not([type="checkbox"]),.phone .tmm-form :is(input,textarea){display:block;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);color:var(--color-text-primary);font-size:12px;line-height:1.8;outline:none}
.phone .tmm-picker-filters input:not([type="checkbox"]):focus,.phone .tmm-form :is(input,textarea):focus{border-color:var(--color-link);box-shadow:var(--shadow-focus)}
.phone .tmm-picker-filters .tmm-search{margin-bottom:0}
.phone .tmm-picker-filters .tmm-search input{min-height:42px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.phone .tmm-picker-filters details{padding:0 11px;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface)}
.phone .tmm-picker-filters summary{min-height:42px;padding:11px 0;cursor:pointer;color:var(--color-text-secondary);font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.phone .tmm-picker-filters summary>.ico{width:15px;height:15px;margin-inline-start:4px;vertical-align:middle}
.phone .tmm-picker-filters .field{margin:12px 0}
.phone .tmm-picker-filters .field>span{margin-bottom:7px;color:var(--color-text-secondary);font-size:11px;line-height:1.8}
.phone .tmm-picker-filters details input{margin-bottom:10px}
.phone #tmm-candidate-list{display:grid;gap:9px}
.phone .tmm-candidate{display:flex;align-items:flex-start;gap:9px;padding:13px 11px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);color:var(--color-text-primary);cursor:pointer}
.phone .tmm-candidate>label{display:flex;align-items:flex-start;flex:1;gap:9px;cursor:pointer}
.phone .tmm-candidate input[type="checkbox"]{flex:0 0 16px;width:16px;height:16px;min-height:0;margin:11px 1px 0 0;padding:0;accent-color:var(--color-primary);cursor:pointer}
.phone .tmm-candidate .tmm-avatar{flex-basis:35px;width:35px;height:35px;margin-top:1px;font-size:12px}
.phone .tmm-candidate.is-selected,.phone .tmm-candidate:has(input:checked){border-color:var(--color-link);background:var(--color-primary-soft)}
.phone .tmm-picker-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--color-text-tertiary);font-size:11px;line-height:1.7}
.phone .tmm-picker-footer>span{flex:1;overflow-wrap:anywhere}
.phone .tmm-picker-footer>button{min-width:0;min-height:44px;max-width:65%;padding:10px 15px;border-radius:var(--radius-sm);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.phone .tmm-form .field{margin:0 0 16px}
.phone .tmm-form .field>label,.phone .tmm-form .field>span{display:block;margin-bottom:7px;color:var(--color-text-secondary);font-size:12px;line-height:1.8}
.phone .tmm-form textarea{min-height:100px;max-height:220px;resize:vertical}
.phone .tmm-form [aria-invalid="true"]{border-color:var(--color-error)}
.phone .tmm-field-error{margin-top:6px;color:var(--color-error-text);font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.phone .tmm-field-error:empty{display:none}
.phone .tmm-confirm p{color:var(--color-text-secondary);font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.phone .tmm-confirm strong{color:var(--color-text-primary);font-weight:600}
.phone .tmm-warning{margin-top:13px;padding:11px 12px;border-radius:var(--radius-sm);background:var(--color-warning-soft);color:var(--color-warning-text);font-size:11px;line-height:1.85;overflow-wrap:anywhere}
.phone .tmm-confirm p.tmm-warning{color:var(--color-warning-text)}
.phone .sheet:has(:is(.tmm-sheet,.tmm-form,.tmm-confirm)) .sheet-footer>button{min-width:0;min-height:44px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.phone :is(.tmm-page,.tmm-sheet,.tmm-form,.tmm-confirm) button:disabled{cursor:default;color:var(--color-text-disabled);box-shadow:none}
@media(max-width:360px){.phone .page.tmm-page{padding-inline:16px}.phone .tmm-hero{padding:16px;gap:10px}.phone .tmm-hero-icon{width:40px;height:40px;flex-basis:40px;border-radius:12px}.phone .tmm-hero h2{font-size:16px}.phone .tmm-hero-stats{gap:17px}.phone article.tmm-team-card{padding:14px}.phone .tmm-team-title h3{font-size:14px}.phone .tmm-toolbar>button,.phone .tmm-member-toolbar>button{padding-inline:10px;font-size:11px;max-width:55%}.phone .tmm-detail-head{padding:15px;gap:9px}.phone .tmm-detail-head h2{font-size:16px}.phone article.tmm-member-card{padding:12px 10px;gap:8px}.phone .tmm-member-card>.tmm-avatar{width:35px;height:35px;flex-basis:35px;font-size:12px}.phone .tmm-candidate{padding:12px 9px;gap:8px}.phone .tmm-candidate>label{gap:8px}.phone .tmm-candidate .tmm-avatar{flex-basis:31px;width:31px;height:31px;font-size:11px}.phone .tmm-candidate .tmm-person-copy strong{font-size:11px}.phone .tmm-picker-footer{gap:8px}}
