body.auth-required .app-shell{visibility:hidden}
.stat-card{display:block;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}
.stat-card:hover{border-color:#b7c8b6;box-shadow:0 3px 12px #36594312;transform:translateY(-1px)}
.stat-card:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.game-cover{position:relative;overflow:hidden}
.game-cover img{width:100%;height:100%;object-fit:cover;display:block}
.game-cover>span:not(.cover-symbol){position:absolute;inset:auto 8px 11px;text-align:center}
.game-cover .cover-symbol{z-index:1;position:relative}
.source-label a{color:var(--green);text-decoration:underline;text-underline-offset:2px}
.preview-image{width:52px;height:52px;object-fit:cover;border-radius:5px;float:right;margin:0 0 6px 10px}
.attached-downloads{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.attached-downloads a{font-size:8px;color:var(--green);text-decoration:underline;text-underline-offset:2px}
.community-switch{min-height:44px;max-width:240px;padding:4px 8px;border-radius:8px;text-align:left}
.community-switch[hidden],.group-switch-list[hidden],#group-switch-login [hidden]{display:none}
.community-switch:hover{background:var(--green-light)}
.community-switch-copy{display:grid;gap:2px;min-width:0}
.community-switch-copy strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.community-switch-copy small{font-size:10px;color:var(--green-dark)}
.community-switch .chevron{font-size:14px}
.community-switch .community-avatar{font-size:8px;font-family:var(--display);font-weight:800;letter-spacing:-.5px;background:#e9f0e7;color:var(--green-dark)}
.group-switch-list{display:grid;gap:8px}
.group-switch-choice{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:46px;padding:10px 12px;text-align:left;font:inherit;color:var(--green-dark);background:var(--white);border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere}
.group-switch-choice:not(:disabled):hover,.group-switch-choice[aria-current]{background:var(--green-light);border-color:#b7c8b6}
.group-switch-choice small{flex:none;color:var(--green-dark)}
.group-switch-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:16px}
#group-switch-target{font-size:15px;overflow-wrap:anywhere}
@media(max-width:760px){
 .community-switch{max-width:min(45vw,180px)}
 .community-switch .community-avatar{display:none}
 .community-switch-copy strong{font-size:11px}
}
.game-cover img{position:relative;z-index:1}
.cover-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:12px;background:linear-gradient(135deg,#e6eee4,#f6f2e7);color:var(--green-dark);font-family:var(--display);font-size:12px;font-weight:700;letter-spacing:0}
.cover-placeholder .cover-symbol{position:static;font-size:26px;color:var(--green)}
.event-detail a,.proposal-meta a{color:var(--green-dark);text-decoration:underline;text-decoration-color:#b9c9b8;text-underline-offset:2px}
.form-error{margin:12px 0 0;padding:10px 12px;border:1px solid #efc7b8;border-radius:7px;background:#fff5f1;color:#9f4931;font-size:11px;line-height:1.45}
.form-error[hidden]{display:none}
.library-search-feedback{margin:12px 0 7px;padding:0 1px;border:0;font-size:10px}
.library-search-feedback.error{color:#a34d36}
.library-search-results{display:grid;gap:8px;max-height:45vh;overflow:auto}
.library-result{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;border:1px solid #e9ece6;border-radius:8px;background:#fff}
.library-result-art{width:48px;height:48px;display:grid;place-items:center;overflow:hidden;border-radius:6px;background:linear-gradient(135deg,#e6eee4,#f6f2e7);color:var(--green);font-size:22px}
.library-result-art img{width:100%;height:100%;object-fit:cover}
.library-result-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.library-result-copy strong{font-size:11px}
.library-result-copy small{font-size:9px;line-height:1.35;color:#818a80;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-result .button{padding:8px 10px;font-size:9px;white-space:nowrap}
.library-result .button:disabled{opacity:.75;cursor:default}
.library-owner-option{margin:12px 0 14px;align-items:flex-start;padding:10px;border:1px solid #e8ece5;border-radius:6px;background:#f8faf6}
.library-owner-option .checkmark{margin-top:1px}
.library-owner-option strong{font-size:9px}
.library-owner-option small{max-width:340px;line-height:1.4}
.bgg-sync-button{width:100%;margin-top:12px}
.bgg-sync-button:disabled{opacity:.5;cursor:not-allowed}
.game-ownership{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;border-top:1px solid #f0f1ed;padding-top:9px;margin-top:10px;font-size:8px;line-height:1.5;color:#69756a}
.game-ownership>span{min-width:0;overflow-wrap:anywhere}
.game-ownership strong{color:#526052}
.owner-source{display:inline-block;padding:1px 4px;margin-left:2px;border-radius:8px;background:#edf3eb;color:#4b7659;font-size:7px}
.owner-actions{display:grid;justify-items:end;gap:4px;flex:none}
.owner-action{flex:none;max-width:110px;border:0;background:transparent;padding:0;color:#4b7659;font-size:8px;font-weight:700;cursor:pointer;text-align:right;white-space:normal}
.owner-action:hover{text-decoration:underline}
.view-toolbar{gap:10px;flex-wrap:wrap}
.view-toolbar .search-box{margin-left:auto}
.view-toolbar [data-action="add-game"]{white-space:nowrap}
@media(max-width:700px){.library-result{grid-template-columns:40px minmax(0,1fr);}.library-result-art{width:40px;height:40px}.library-result .button{grid-column:2;justify-self:start}.view-toolbar .search-box{margin-left:0}}
.modal{overflow:auto}
.manual-game{margin-top:16px;border-top:1px solid #ecefe9;padding-top:12px}
.manual-game summary{cursor:pointer;color:var(--green-dark);font-size:10px;font-weight:700}
.manual-game-form{padding:12px 0 0!important}
.manual-game-form .field{font-size:9px}
.manual-game-form input,.manual-game-form select,.manual-game-form textarea{font-size:11px}
.manual-game-form .button{margin-top:4px}
.address-field{position:relative;z-index:1}
.address-field:focus-within{z-index:8}
.address-field>label{display:block;margin-bottom:7px;color:#687268;font-size:10px}
.address-input-wrap{position:relative}
.address-input-wrap>input{width:100%}
.address-suggestions{position:absolute;z-index:12;top:calc(100% + 5px);left:0;right:0;padding:5px;border:1px solid #dfe5dc;border-radius:8px;background:#fff;box-shadow:0 12px 28px #26372920}
.address-suggestions[hidden]{display:none}
.address-suggestion{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border:0;border-radius:5px;background:#fff;text-align:left;cursor:pointer}
.address-suggestion:hover,.address-suggestion.active{background:#f1f5ef}
.address-suggestion>span:first-child{min-width:0;display:flex;flex-direction:column;gap:3px}
.address-suggestion strong{font-size:11px;font-weight:600;color:#27332a}
.address-suggestion small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#727c72}
.address-pin{flex:0 0 auto;color:var(--green);font-size:16px}
.address-attribution{margin:4px 5px 2px;padding-top:6px;border-top:1px solid #edf0eb;text-align:right;font-family:Arial,sans-serif;font-size:11px;font-weight:400;letter-spacing:normal;white-space:nowrap;color:#5e5e5e}
.address-attribution a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.address-field .error{color:#a34d36}
.game-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}
.game-title-row h3{min-width:0;margin:0 0 7px}
.remove-item-button{border:1px solid #e5e8e2;border-radius:6px;background:#fff;color:#7b847b;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.remove-item-button:hover{border-color:#e4b8a9;background:#fff5f1;color:#a34d36}
.remove-game-button{flex:0 0 auto;width:25px;height:25px;padding:0;font-size:16px;line-height:1}
.remove-proposal-button{align-self:flex-end;padding:7px 9px;font-size:9px}
.remove-item-button:focus-visible,.address-suggestion:focus-visible{outline:2px solid #6b9274;outline-offset:2px}

@media(max-width:760px){
  .app-shell{min-height:100vh;min-height:100dvh;padding-bottom:calc(62px + env(safe-area-inset-bottom))}
  .sidebar{position:fixed;z-index:30;inset:auto 0 0;width:auto;height:auto;min-height:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;padding:4px 6px calc(4px + env(safe-area-inset-bottom));border:0;border-top:1px solid #e8e9e4;background:#fff;box-shadow:0 -5px 18px #202b2412}
  .sidebar>.brand,.sidebar>.group-label{display:none}
  .sidebar .main-nav,.sidebar .sidebar-bottom{display:contents}
  .sidebar .invite-card{display:none}
  .sidebar .nav-item{position:relative;width:auto;min-width:0;height:auto;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 1px;border-radius:7px;font-size:9px;line-height:1.1;text-align:center;white-space:normal}
  .sidebar .nav-item .nav-icon{width:auto;font-size:17px;line-height:18px}
  .sidebar .nav-count{top:2px;right:calc(50% - 20px);min-width:14px;padding:1px 3px;font-size:8px;line-height:1.2}
  .sidebar .profile-button{width:auto;min-width:0;min-height:52px;flex-direction:column;justify-content:center;gap:3px;padding:4px 1px 0;border:0;border-radius:7px;text-align:center}
  .sidebar .profile-button::after{content:"Account";font-size:9px;line-height:1.1;color:#737b73}
  .sidebar .profile-button .avatar{width:22px;height:22px;font-size:7px}
  .sidebar .profile-copy,.sidebar .profile-more{display:none}
  .topbar{position:sticky;top:0;z-index:15}
  .top-actions .icon-button{min-width:40px;min-height:40px;display:grid;place-items:center}
  .view-root{padding-bottom:38px}
  .button,.tab-button,.vote-date,.event-join,.vote-button{min-height:40px;touch-action:manipulation}
  .field input,.field select,.field textarea,.search-box input{font-size:16px}
  .field input,.field select{min-height:44px}
  .field textarea{min-height:72px}
  .view-toolbar{align-items:stretch;gap:8px}
  .view-toolbar>.tabs{max-width:100%;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  .view-toolbar>.tabs .tab-button{flex:0 0 auto;padding:8px 10px;white-space:nowrap}
  .view-toolbar .search-box{flex:1 1 100%;min-width:0;min-height:44px}
  .view-toolbar .search-box input{width:100%;min-width:0}
  .view-toolbar [data-action="add-game"]{flex:1 1 100%;justify-content:center}
  .event-row{grid-template-columns:42px minmax(0,1fr);gap:6px 9px;align-items:start}
  .event-date{grid-row:1/span 2;width:42px;height:46px}
  .event-main{grid-column:2;min-width:0}
  .event-detail{flex-wrap:wrap;line-height:1.45}
  .event-attendance{grid-column:2;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
  .event-avatars{display:none}
  .event-status{white-space:normal}
  .event-join{padding:8px 10px;font-size:9px}
  .proposal-card{grid-template-columns:minmax(0,1fr)}
  .proposal-aside{flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;min-width:0}
  .vote-button{flex:1 1 100%;padding:9px 11px}
  .calendar-full .view-toolbar{align-items:center}
  .calendar-full .calendar-grid{gap:2px}
  .calendar-full .cal-weekday{overflow:hidden;text-overflow:clip;white-space:nowrap}
  .calendar-full .cal-day{min-width:0;overflow:hidden}
  .member-row{grid-template-columns:minmax(0,1fr) minmax(82px,.65fr) 20px;gap:7px}
  .member-row>:nth-child(3),.member-header>:nth-child(3){display:none}
  .member-person{min-width:0}
  .member-person strong,.member-person small{overflow-wrap:anywhere}
  .modal{max-height:calc(100dvh - 12px)}
  .modal form{padding-bottom:calc(15px + env(safe-area-inset-bottom))}
}

@media(max-width:480px){
  .app-shell{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
  .sidebar{padding-right:3px;padding-left:3px}
  .sidebar .nav-item,.sidebar .profile-button{min-height:50px;font-size:8px}
  .sidebar .nav-item .nav-icon{font-size:16px}
  .view-root{padding-left:12px;padding-right:12px}
  .page-head{gap:8px}
  .page-head>.button{min-width:42px;min-height:42px}
  .page-head p{max-width:230px}
  .mini-calendar .cal-day{height:38px;font-size:10px}
  .event-row{grid-template-columns:38px minmax(0,1fr);padding:11px 3px;gap:6px 8px}
  .event-date{width:38px;height:43px}
  .event-name{white-space:normal;overflow-wrap:anywhere}
  .event-detail{font-size:8px}
  .calendar-full{padding:8px 4px}
  .calendar-full .calendar-grid{gap:1px}
  .calendar-full .cal-weekday{padding:5px 0;font-size:7px}
  .calendar-full .cal-day{height:54px;padding:4px 2px;font-size:9px}
  .day-chip{left:1px;right:1px;top:20px;padding:2px 1px;font-size:6px;white-space:normal;line-height:1.1;max-height:27px}
  .calendar-legend{gap:10px;flex-wrap:wrap;font-size:8px}
  .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .game-info{padding:10px}
  .game-info h3{overflow-wrap:anywhere}
  .game-ownership{flex-direction:column}
  .owner-actions{justify-items:start}
  .owner-action{text-align:left}
  .vote-row{display:grid;grid-template-columns:1fr}
  .vote-date{justify-content:space-between;padding:8px 10px;font-size:9px}
  .roles-panel{grid-template-columns:1fr 1fr;padding:12px}
  .role-item p{font-size:8px}
  .modal{position:fixed;inset:auto 0 0;width:100vw;max-width:none;max-height:calc(100dvh - env(safe-area-inset-top) - 8px);margin:0;border-radius:16px 16px 0 0}
  .modal form{padding:19px 16px calc(15px + env(safe-area-inset-bottom))}
  .modal-head h2{font-size:20px}
  .form-grid{grid-template-columns:1fr}
  .field-wide{grid-column:auto}
  .poll-dates{grid-template-columns:1fr}
  .library-result{grid-template-columns:40px minmax(0,1fr);gap:8px}
  .library-result .button{grid-column:2}
}

@media(max-width:760px) and (display-mode:standalone){
  .topbar{height:calc(57px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
}

.member-row{grid-template-columns:minmax(160px,1.4fr) minmax(100px,.8fr) minmax(100px,.7fr) 36px}
.member-action-button{justify-self:center;width:32px;height:32px;border:0;border-radius:6px;background:transparent;color:#718071;font-size:16px;line-height:1;letter-spacing:1px;cursor:pointer}
.member-action-button:hover,.member-action-button:focus-visible{background:#edf3ec;color:var(--green-dark);outline:0}
.member-actions-dialog-body{padding:23px 25px 20px}
.member-remove-action:hover{border-color:#e4c3b7;background:#fff8f5}
.tab-button:not(.active):hover{background:#f7f8f5;color:var(--ink)}
.tab-button:focus-visible{outline:2px solid #6b9274;outline-offset:2px}
@media(max-width:760px){.member-row{grid-template-columns:minmax(0,1fr) minmax(82px,.65fr) 36px}}
@media(max-width:480px){.member-row{grid-template-columns:minmax(0,1fr) minmax(72px,.65fr) 36px}.member-actions-dialog-body{padding:19px 16px 15px}}

[hidden]{display:none!important}
.telegram-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
#telegram-guide,#telegram-status{font-size:12px;line-height:1.5}
#telegram-connect-link{margin:8px 0}

#telegram-launch-help{margin:12px 0;padding:12px;border:1px solid #e3e8df;border-radius:7px;font-size:12px;line-height:1.5}
#telegram-launch-help summary{cursor:pointer;font-weight:700;color:var(--green-dark)}
#telegram-launch-help ol{padding-left:20px}
#telegram-launch-help .button{margin-top:8px}
#telegram-link-command{font-family:monospace;font-size:12px}

/* Calendar and proposal flows share real, keyboard-accessible controls. */
[hidden]{display:none!important}
button.cal-day{font:inherit;color:inherit;background:transparent;border:0;cursor:pointer;text-align:left;position:relative}
.mini-calendar button.cal-day{text-align:center}
button.cal-day:hover,button.cal-day:focus-visible{background:#edf3eb;outline:2px solid var(--green);outline-offset:-2px}
.calendar-full button.cal-day{border:1px solid var(--line)}
.calendar-full button.cal-day.today{background:#edf3eb}
.day-count{position:absolute;right:4px;bottom:3px;font-size:10px;background:var(--green);color:white;border-radius:10px;padding:1px 4px}
.calendar-agenda{display:grid;gap:10px;padding:12px}
.agenda-day{display:grid;gap:8px;width:100%;text-align:left;border:1px solid var(--line);border-radius:10px;padding:15px;background:white;cursor:pointer;line-height:1.6}
.agenda-day b{color:var(--green-dark);font-size:12px}
.day-dialog-body{padding:24px}
.calendar-day-dialog{width:min(860px,94vw)}
.calendar-day-dialog .proposal-card{margin:12px 0;grid-template-columns:minmax(0,1fr)}
.calendar-day-dialog .event-row{padding:16px 0}
.calendar-day-dialog .event-note{white-space:pre-line;overflow-wrap:anywhere;color:#626e63;padding:0 8px;font-size:14px;line-height:1.6}
.proposal-game-results{display:grid;gap:8px;max-height:300px;overflow-y:auto;overscroll-behavior:contain;padding:2px}
.proposal-game-result{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;text-align:left;background:white;border:1px solid #dce4d9;border-radius:9px;padding:10px;cursor:pointer;min-height:70px}
.proposal-game-result>span{min-width:0;display:grid;gap:5px}
.proposal-game-result strong{font-size:14px;overflow-wrap:anywhere}
.proposal-game-result small{font-size:12px;color:#667365}
.proposal-game-result img,.result-placeholder{width:48px;height:48px;object-fit:contain;border-radius:5px;background:#f1f3ec;display:grid!important;place-items:center}
.proposal-game-result>b{font-size:12px;color:var(--green-dark)}
.proposal-game-result:disabled{background:#edf3eb;opacity:.75;cursor:default}
.chosen-game{display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:7px;background:#edf3eb;padding:8px 12px;margin-bottom:6px;font-size:14px}
.chosen-game button{background:transparent;border:0;min-width:44px;min-height:44px;cursor:pointer;font-size:22px}
.genre-picker{border:1px solid var(--line);padding:14px;border-radius:9px;min-width:0}
.genre-picker legend{font-size:14px;font-weight:700}
.genre-picker p,.game-poll p{font-size:13px;line-height:1.6;color:#657164}
#genre-options{display:flex;flex-wrap:wrap;gap:8px}
#genre-options label{display:flex;align-items:center;gap:7px;padding:10px;background:#f5f7f2;border-radius:7px;min-height:44px;font-size:14px;cursor:pointer}
#genre-options input{width:18px;height:18px;accent-color:var(--green)}
.game-poll{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}
.game-poll h3,.vote-instruction{font-size:14px;margin:12px 0 8px}
.game-poll-options{display:grid;gap:8px}
.game-poll-option{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:46px;border:1px solid #dce4d9;background:#fff;border-radius:8px;padding:10px 12px;font-size:14px;text-align:left;cursor:pointer}
.game-poll-option.selected{border-color:var(--green);background:#edf3eb}
.game-poll-option span{overflow-wrap:anywhere}
.game-poll-option b{background:#edf3eb;border-radius:12px;min-width:26px;text-align:center;padding:3px}
.game-poll .poll-outcome{color:var(--green-dark)}
#game-preview{max-height:180px;overflow:auto;line-height:1.6}

/* Mobile layouts: readable copy, generous targets, no clipped columns. */
@media(max-width:760px){
 body{font-size:15px}
 .main-area,.panel,.right-column,.form-grid>*{min-width:0}
 .view-root{padding:22px 16px 32px}
 .page-head{flex-wrap:wrap;align-items:center;margin-bottom:20px}
 .page-head h1{font-size:27px;line-height:1.2}
 .page-head p{font-size:14px;line-height:1.55;max-width:none}
 .page-head>div{flex:1 1 100%}
 .page-head>.button{font-size:14px;width:100%;justify-content:center;min-height:46px;gap:8px}
 .page-head>.button span{font-size:20px}
 .eyebrow{font-size:10px;line-height:1.5}
 .panel-title{font-size:17px}
 .panel-subtitle,.text-link{font-size:12px;line-height:1.5}
 .panel-head{gap:10px;align-items:start;flex-wrap:wrap;padding:16px}
 .stats-grid{gap:10px}
 .stat-card{padding:16px;min-height:122px;text-align:left}
 .stat-top{font-size:12px;gap:6px;line-height:1.45}
 .stat-value{font-size:29px}
 .stat-sub{font-size:11px;line-height:1.5;white-space:normal}
 .right-column{grid-template-columns:1fr}
 .poll-question{font-size:17px}
 .poll-meta,.poll-footer{font-size:12px;line-height:1.6}
 .poll-option{font-size:13px;min-height:48px;gap:8px}
 .event-name{font-size:15px;line-height:1.45;white-space:normal}
 .event-detail,.event-status,.event-join{font-size:12px;line-height:1.5}
 .event-detail .dot{display:none}
 .event-detail>span{max-width:100%;overflow-wrap:anywhere}
 .event-row{padding:15px 4px;gap:8px 12px}
 .event-join{min-height:44px}
 .proposal-title-line{align-items:start;gap:10px;flex-wrap:wrap}
 .proposal-title{font-size:18px;overflow-wrap:anywhere;line-height:1.4}
 .proposal-meta,.proposal-description,.vote-progress{font-size:13px;line-height:1.65;overflow-wrap:anywhere}
 .proposal-card{padding:16px}
 .tag{font-size:11px;line-height:1.5;white-space:normal}
 .vote-row{display:grid;grid-template-columns:1fr}
 .vote-date{display:flex;align-items:center;justify-content:space-between;min-height:46px;font-size:14px;padding:10px 12px}
 .vote-button,.remove-proposal-button{font-size:13px;min-height:44px}
 .tab-button{font-size:13px;min-height:44px}
 .view-toolbar>.tabs{width:100%;gap:3px}
 .view-toolbar>.tabs .tab-button{padding:10px 11px}
 .calendar-full .view-toolbar{gap:14px;padding:10px 8px}
 .calendar-full .month-controls{width:100%;justify-content:space-between;gap:2px;flex-wrap:wrap}
 .month-controls strong{font-size:15px;min-width:120px}
 .cal-arrow{min-width:44px;min-height:44px;font-size:23px}
 .month-controls .button{font-size:12px}
 .calendar-full .cal-weekday{font-size:11px;padding:10px 0}
 .calendar-full .cal-day{height:76px;min-height:44px;padding:6px;font-size:14px}
 .calendar-full .day-chip{left:3px;right:3px;top:30px;padding:3px;font-size:10px;line-height:1.25;max-height:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .calendar-legend{font-size:12px;gap:12px;padding:12px 6px;line-height:1.5}
 .calendar-full .cal-weekday{font-size:0}
 .calendar-full .cal-weekday::first-letter{font-size:12px}
 .field,.catalog-hint,.field small{font-size:13px;line-height:1.5}
 .modal-head p,.private-hint,.check-row strong,.check-row small{font-size:13px;line-height:1.55}
 .field input,.field select,.field textarea{padding:12px;min-height:46px}
 .modal-head h2{font-size:24px}
 .modal-close{min-width:44px;min-height:44px}
 .modal-foot .button{font-size:15px;min-height:48px}
 .upload-field strong,.upload-field small{font-size:12px;line-height:1.5}
 .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .game-info h3{font-size:15px;line-height:1.45}
 .game-info p,.source-label,.owner-action,.ownership-label,.game-owners{font-size:12px;line-height:1.5}
 .game-cover{height:145px}
 .member-person strong,.member-person small,.member-pending,.role-badge{font-size:12px;line-height:1.5}
 .member-person .avatar{display:none}
 .role-item strong{font-size:14px}
 .role-item p{font-size:12px;line-height:1.6}
 .account-action strong,.channel-option b{font-size:15px}
 .account-action small,.channel-option small,.notification-entry p{font-size:13px;line-height:1.55}
 .account-logout,.notification-entry strong{font-size:14px}
 .dialog-content,.day-dialog-body{padding:20px 16px}
 .calendar-day-dialog{width:100%;max-width:100%}
 .day-dialog-body .modal-head{margin-bottom:12px}
 .calendar-day-dialog .proposal-card{padding:14px}
 .calendar-day-dialog .event-row{grid-template-columns:38px minmax(0,1fr)}
 .sidebar .nav-item,.sidebar .profile-button{font-size:10px;min-height:54px}
 .sidebar .profile-button::after{font-size:10px}
 .empty-state{font-size:14px;line-height:1.6;padding:24px 16px}
}
@media(max-width:380px){
 .view-root{padding-left:10px;padding-right:10px}
 .catalog-grid{grid-template-columns:1fr}
 .calendar-full .cal-day{height:68px;padding:4px}
 .calendar-full .day-chip{font-size:9px;padding:2px;top:28px}
 .proposal-game-result{grid-template-columns:40px minmax(0,1fr) auto;gap:8px;padding:8px}
 .proposal-game-result img,.result-placeholder{width:40px;height:44px}
 .view-toolbar>.tabs .tab-button{font-size:12px;padding:10px 8px}
}
@media(max-width:760px){
 .vote-date b{font-size:13px}
 .game-meta,.game-ownership>span,.owner-source{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
 .game-info .source-label{font-size:11px;line-height:1.6;flex-wrap:wrap;overflow-wrap:anywhere}
 .game-tags:has(.tag:empty){display:none}
 .library-result-copy strong{font-size:15px}
 .library-result-copy small{font-size:12px;line-height:1.55}
 .library-result .button{font-size:14px;min-height:44px}
 .modal-head{position:sticky;top:-1px;z-index:4;background:white;padding-bottom:12px}
 .event-row[data-event]{cursor:pointer}
}
.calendar-full button.cal-day.today,.mini-calendar button.cal-day.today{color:var(--green-dark);font-weight:800;background:#eaf1e9}
.event-title-button{border:0;background:transparent;text-align:left;padding:0;cursor:pointer;font-family:inherit;display:block;max-width:100%;color:var(--ink)}
.event-title-button:hover,.event-title-button:focus-visible{color:var(--green-dark);text-decoration:underline;text-underline-offset:3px}
@media(min-width:761px) and (max-width:1020px){
 .dashboard-grid{grid-template-columns:minmax(0,1fr)}
 .right-column{display:grid;grid-template-columns:minmax(0,1fr)}
 .view-toolbar{flex-wrap:wrap;gap:10px}
 .view-toolbar>.tabs{max-width:100%;overflow-x:auto}
 .calendar-full .cal-day{min-width:0}
 .roles-panel{grid-template-columns:repeat(2,minmax(0,1fr))}
}

#poll-dates{margin-top:12px}
#poll-date-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;margin:10px 0}
.poll-date-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
.poll-date-row input{width:100%;min-width:0}
.poll-date-row button,#add-poll-date{min-height:44px}
.activity-card{padding:16px;min-width:0}
.activity-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.activity-controls{display:flex;gap:4px}
.activity-controls button{min-width:40px;min-height:44px}
.activity-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}
.activity-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;padding:14px;border-radius:10px;background:#f5f7f2;overflow-wrap:anywhere}
.activity-slide h3{margin:8px 0;font-size:18px}
.activity-slide p{margin:0 0 12px;line-height:1.5;color:#59665a}
.activity-slide button{min-height:44px}
.proposal-card{scroll-margin-top:76px}

.storage-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:0 0 18px}
.storage-summary div{padding:12px;border-radius:8px;background:#f2f5ef}
.storage-summary dt,.storage-file small{font-size:13px;color:#59665a;line-height:1.45}
.storage-summary dd{margin:5px 0 0;font-size:19px;font-weight:750}
#storage-quota-form{padding:0;margin-bottom:16px}
#storage-orphans{margin:12px 0;padding:10px 12px;background:#f7f3e8;border-radius:8px}
.storage-file{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.storage-file a,.storage-file strong{overflow-wrap:anywhere}
.storage-file small{display:block;margin-top:4px}
.storage-file button,#storage-quota-form button,#storage-orphans button{min-height:44px}

.mini-day-markers{position:absolute;inset:auto 0 2px;display:flex;justify-content:center;gap:3px;pointer-events:none}
.mini-day-markers .legend-dot{width:6px;height:6px;border-radius:50%}
.mini-day-markers .legend-dot.poll{border-radius:1px}
.mini-calendar-legend{flex-wrap:wrap;gap:6px 12px;font-size:11px;color:#59665a}
.mini-calendar-legend span{display:inline-flex;align-items:center;gap:5px}

.backup-options{display:grid;gap:10px}
.backup-options a{min-height:76px;text-decoration:none}
.backup-options a>span:first-child{display:grid;gap:7px}
.backup-note,#backup-schedule{font-size:13px;line-height:1.65;color:#5f6e62}
#backup-platform{margin-top:20px;border-top:1px solid var(--line);padding-top:10px}
#backup-list{margin-top:12px}
.backup-restore-info{margin:20px 0;padding:14px;border-radius:8px;background:#f2f5ef;font-size:13px;line-height:1.6}
.backup-restore-info summary{cursor:pointer;font-weight:700;min-height:30px}
#restore-upload-form,#restore-confirm-form{padding:0;margin:12px 0}
#restore-confirm-form{display:grid;gap:12px}
#restore-summary{font-size:14px;padding:12px;background:white;border-radius:6px;line-height:1.65}
#restore-progress{font-size:14px;line-height:1.65;color:#365943;white-space:pre-line}
.backup-file-actions{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:480px){.backup-file-actions{display:grid;grid-template-columns:1fr}}

/* Group ownership and role filters */
.member-owner-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px clamp(14px, 3vw, 24px);
  border: 1px solid #d9e6d9;
  border-radius: 12px;
  background: #edf4eb;
  color: var(--green-dark);
}
.member-owner-banner .avatar { width: 42px; height: 42px; font-size: 13px; }
.member-owner-copy { display: grid; gap: 4px; min-width: 0; }
.member-owner-copy span { font-size: 11px; font-weight: 650; }
.member-owner-copy strong { font-size: 16px; overflow-wrap: anywhere; }
.member-owner-banner p { margin: 0 0 0 auto; max-width: 310px; font-size: 12px; line-height: 1.5; }
.members-toolbar { gap: 12px; flex-wrap: wrap; }
.member-filters { display: flex; flex-wrap: wrap; }
.member-filters .tab-button { min-height: 38px; }
.member-identity { min-width: 0; overflow-wrap: anywhere; }
.member-mobile-invited { display: none !important; }
@media (max-width: 760px) {
  .member-owner-banner { display: grid; grid-template-columns: auto minmax(0,1fr); }
  .member-owner-banner p { grid-column: 2; margin: 0; }
  .member-mobile-invited { display: block !important; color: #8a5633; }
  .member-filters { width: 100%; }
  .member-filters .tab-button { flex-grow: 1; min-height: 44px; }
}

.calendar-sync-entry {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 12px;
}
.calendar-sync-copy, .calendar-sync-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.calendar-sync-copy input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fafbf9;
}
#calendar-sync-dialog p { line-height: 1.5; }
.calendar-sync-devices { margin: 14px 0; }
.calendar-sync-devices details { border-top: 1px solid var(--line); padding: 10px 0; }
.calendar-sync-devices summary { cursor: pointer; font-weight: 700; }
.calendar-sync-devices p { margin: 8px 0; }
@media (max-width: 760px) {
  .calendar-sync-entry .button, .calendar-sync-copy .button, .calendar-sync-actions .button {
    min-height: 44px;
  }
}
