/* Group Timer — balanced collaboration workspace.
   Pure presentation: existing room, tasks, chat and membership logic is unchanged.
   Shares colors and spacing with the StudyTickApp login-inspired theme. */
.group-timer-page #groupRoom .group-collab-workspace{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
  margin-top:17px;
}
.group-timer-page #groupRoom .group-collab-access{
  grid-column:1/-1;
  margin:0;
  padding:12px 15px;
  background:var(--gt-auth-soft,#f5f9f7);
  color:var(--gt-auth-ink,#172d26);
  border:1px solid var(--gt-auth-line,#dfe8e3);
  border-radius:12px;
}
.group-timer-page #groupRoom .group-collab-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:455px;
  padding:22px;
  overflow:visible;
  background:var(--gt-auth-panel,#fff);
  border:1px solid var(--gt-auth-line,#dfe8e3);
  border-radius:16px;
  box-shadow:0 5px 18px rgba(19,56,44,.026);
}
.group-timer-page #groupRoom .group-collab-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px 14px;
  margin:0 0 15px;
  min-height:30px;
}
.group-timer-page #groupRoom .group-collab-heading h3{
  font:700 18px/1.3 Inter,ui-sans-serif,system-ui,sans-serif;
  color:var(--gt-auth-ink,#172d26);
  letter-spacing:-.025em;
  margin:0;
}
.group-timer-page #groupRoom .group-collab-progress{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:29px;
  padding:5px 10px;
  border:1px solid var(--gt-auth-line,#dfe8e3);
  border-radius:999px;
  background:var(--gt-auth-soft,#f5f9f7);
  color:var(--gt-auth-muted,#65766d);
  font-size:11.5px;
  font-weight:650;
  line-height:1.3;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
/* Task creation stays at the top; a bounded internal list prevents a long page. */
.group-timer-page #groupRoom #groupCollabStatus{
  margin:0 0 8px;
  color:var(--gt-auth-muted,#65766d);
}
.group-timer-page #groupRoom #groupTaskForm{
  display:flex;
  align-items:stretch;
  gap:9px;
  margin:0 0 15px;
}
.group-timer-page #groupRoom #groupTaskInput,
.group-timer-page #groupRoom #groupChatComposerInput{
  width:100%;
  min-width:0;
  min-height:44px;
  padding:10px 13px;
  border:1px solid var(--gt-auth-line,#dfe8e3);
  border-radius:10px;
  background:var(--gt-auth-panel,#fff);
  color:var(--gt-auth-ink,#172d26);
  font-size:14px;
  line-height:1.4;
}
.group-timer-page #groupRoom #groupTaskInput::placeholder,
.group-timer-page #groupRoom #groupChatComposerInput::placeholder{
  color:var(--gt-auth-muted,#65766d);
  opacity:1;
}
.group-timer-page #groupRoom #groupTaskForm>.group-primary,
.group-timer-page #groupRoom #groupChatSend{
  min-height:44px;
  padding:9px 16px;
  border-radius:10px;
  font-size:13px;
  white-space:nowrap;
  font-weight:700;
}
.group-timer-page #groupRoom #groupTaskList{
  flex:1 1 auto;
  min-height:0;
  max-height:345px;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#bfcec5 transparent;
  scrollbar-gutter:stable;
  padding:0 7px 4px 0;
}
.group-timer-page #groupRoom .group-task-person{
  padding:2px 0 5px;
}
.group-timer-page #groupRoom .group-task-person+.group-task-person{
  margin-top:11px;
  padding-top:12px;
  border-top:1px solid var(--gt-auth-line,#dfe8e3);
}
.group-timer-page #groupRoom .group-task-person-title{
  display:block;
  margin:0 0 7px;
  color:var(--gt-auth-muted,#65766d);
  font-size:12px;
  font-weight:700;
  line-height:1.5;
  letter-spacing:.005em;
}
.group-timer-page #groupRoom .group-task-item{
  display:flex;
  gap:10px;
  align-items:center;
  min-width:0;
  min-height:39px;
  padding:5px 7px;
  border-radius:9px;
}
.group-timer-page #groupRoom .group-task-item+.group-task-item{margin-top:2px}
.group-timer-page #groupRoom .group-task-item:hover{
  background:var(--gt-auth-soft,#f5f9f7);
}
.group-timer-page #groupRoom .group-task-check{
  accent-color:var(--gt-auth-mint,#168365);
  width:17px;height:17px;min-height:17px;
  margin:0;
  flex:none;
}
.group-timer-page #groupRoom .group-task-body{
  min-width:0;
  flex:1;
  font-size:13px;
  font-weight:500;
  line-height:1.48;
  color:var(--gt-auth-ink,#172d26);
  overflow-wrap:anywhere;
}
.group-timer-page #groupRoom .group-task-done .group-task-body{
  color:var(--gt-auth-muted,#65766d);
  text-decoration:line-through;
  text-decoration-color:currentColor;
}
.group-timer-page #groupRoom .group-task-actions{
  display:flex;
  gap:5px;
  flex:none;
  align-items:center;
}
.group-timer-page #groupRoom .group-task-actions .group-task-icon-btn,
.group-timer-page #groupRoom .group-task-item>.group-task-icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  min-height:32px;
  padding:5px 8px;
  border:1px solid var(--gt-auth-line,#dfe8e3);
  border-radius:8px;
  background:var(--gt-auth-soft,#f5f9f7);
  color:var(--gt-auth-ink,#172d26);
  font-size:15px;
  line-height:1;
}
.group-timer-page #groupRoom .group-task-icon-btn:hover{
  border-color:var(--gt-auth-mint,#168365);
}
.group-timer-page #groupRoom .group-task-item .group-task-edit{
  width:100%;
  min-width:0;
  flex:1 1 auto;
  background:var(--gt-auth-panel,#fff);
}
.group-timer-page #groupRoom #groupTaskList:focus-visible,
.group-timer-page #groupRoom #groupChatList:focus-visible{
  outline:2px solid var(--gt-auth-mint,#168365);
  outline-offset:2px;
  border-radius:10px;
}
/* Chat is the same height as Tasks, with its composer consistently at the bottom. */
.group-timer-page #groupRoom #groupChatNotice{
  flex:none;
  color:var(--gt-auth-muted,#65766d);
  margin:0 0 11px;
  font-size:12px;
  line-height:1.45;
}
.group-timer-page #groupRoom #groupChatList{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-height:165px;
  max-height:none;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#bfcec5 transparent;
  padding:14px;
  margin:0 0 13px;
  border:1px solid var(--gt-auth-line,#dfe8e3);
  border-radius:11px;
  background:var(--gt-auth-soft,#f5f9f7);
}
.group-timer-page #groupRoom #groupChatList>.group-collab-empty{
  margin:auto;
  max-width:32ch;
  text-align:center;
  font-size:13px;
  line-height:1.6;
  color:var(--gt-auth-muted,#65766d);
}
.group-timer-page #groupRoom .group-chat-entry{
  border-radius:12px 12px 12px 3px;
  max-width:88%;
  padding:9px 12px;
}
.group-timer-page #groupRoom .group-chat-entry.is-own{
  border-radius:12px 12px 3px 12px;
}
.group-timer-page #groupRoom #groupChatForm{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
  flex:none;
}
.group-timer-page #groupRoom .group-chat-form .group-chat-emoji{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:44px;
  min-width:44px;
  min-height:44px;
  flex:none;
  padding:8px;
  border:1px solid var(--gt-auth-line,#dfe8e3);
  border-radius:10px;
  background:var(--gt-auth-soft,#f5f9f7);
  color:var(--gt-auth-ink,#172d26);
}
.group-timer-page #groupRoom .group-chat-emoji-picker:not([hidden]){
  margin-top:10px;
  box-shadow:none;
}
/* Calm secondary actions: no oversized footer block or floating action. */
.group-timer-page #groupRoom #groupLeave{
  display:flex;
  align-items:center;
  width:max-content;
  min-height:41px;
  margin:14px 0 0 auto;
  padding:9px 14px;
  border:1px solid var(--gt-auth-line,#dfe8e3);
  border-radius:10px;
  background:transparent;
  color:var(--gt-auth-muted,#65766d);
  font-size:13px;
  font-weight:650;
}
.group-timer-page #groupRoom #groupLeave:hover{
  background:var(--gt-auth-soft,#f5f9f7);
  color:var(--gt-auth-ink,#172d26);
}
.group-timer-page .group-discord-community{
  margin-top:15px;
  padding:13px 16px;
  min-height:72px;
  gap:13px;
  background:var(--gt-auth-soft,#f5f9f7);
  border-color:var(--gt-auth-line,#dfe8e3);
}
.group-timer-page .group-discord-icon{
  width:38px;
  height:38px;
  flex-basis:38px;
  border-radius:11px;
}
.group-timer-page .group-discord-copy h2{
  margin:0 0 4px;
  font:700 17px/1.25 Inter,ui-sans-serif,system-ui,sans-serif;
  letter-spacing:-.025em;
}
.group-timer-page .group-discord-copy p{
  font-size:12px;
  line-height:1.5;
}
.group-timer-page .group-discord-join{
  min-height:40px;
  padding:8px 14px;
  font-size:12px;
}
/* Dark and RTL modes retain clear contrast and intuitive placement. */
html[data-theme="dark"] .group-timer-page #groupRoom .group-task-item:hover{
  background:var(--gt-auth-soft,#23352c);
}
html[data-theme="dark"] .group-timer-page #groupRoom .group-task-actions .group-task-icon-btn,
html[data-theme="dark"] .group-timer-page #groupRoom .group-chat-form .group-chat-emoji{
  background:var(--gt-auth-soft,#23352c);
  color:var(--gt-auth-ink,#edf5f2);
  border-color:var(--gt-auth-line,#374c43);
}
html[data-theme="dark"] .group-timer-page #groupRoom #groupChatList{
  background:var(--gt-auth-soft,#23352c);
  border-color:var(--gt-auth-line,#374c43);
}
html[dir="rtl"] .group-timer-page #groupRoom #groupTaskList{
  padding:0 0 4px 7px;
}
html[dir="rtl"] .group-timer-page #groupRoom #groupLeave{
  margin:14px auto 0 0;
}
@media(max-width:850px){
  .group-timer-page #groupRoom .group-collab-workspace{
    grid-template-columns:minmax(0,1fr);
    gap:13px;
  }
  .group-timer-page #groupRoom .group-collab-card{
    min-height:0;
    padding:19px;
  }
  .group-timer-page #groupRoom #groupTaskList{
    flex:0 1 auto;
    max-height:320px;
    min-height:80px;
  }
  .group-timer-page #groupRoom #groupChatList{
    flex:0 1 auto;
    min-height:175px;
    max-height:290px;
  }
}
@media(max-width:480px){
  .group-timer-page #groupRoom .group-collab-card{padding:15px}
  .group-timer-page #groupRoom .group-collab-heading{
    align-items:flex-start;
    gap:8px;
  }
  .group-timer-page #groupRoom .group-collab-heading h3{font-size:16px}
  .group-timer-page #groupRoom .group-collab-progress{
    white-space:normal;
    text-align:end;
    font-size:11px;
  }
  .group-timer-page #groupRoom #groupTaskForm,
  .group-timer-page #groupRoom #groupChatForm{gap:7px}
  .group-timer-page #groupRoom #groupTaskForm>.group-primary,
  .group-timer-page #groupRoom #groupChatSend{padding-inline:11px}
  .group-timer-page #groupRoom .group-task-item{padding-inline:2px}
  .group-timer-page .group-discord-community{gap:10px}
}
@media(prefers-reduced-motion:reduce){
  .group-timer-page #groupRoom .group-task-done .group-task-body{
    animation:none!important;
  }
}
/* Group Timer community card — follow the active website palette in every
   theme, including Original. The banner sits outside the room container,
   so room-scoped rules cannot theme it. Avoid legacy fixed-green treatments. */
html[data-theme] body.group-timer-page .group-discord-community{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
  margin:16px 0 20px;
  padding:14px 17px;
  border:1px solid var(--sc-border)!important;
  border-radius:15px;
  background:var(--sc-surface)!important;
  color:var(--sc-text)!important;
  box-shadow:none;
}
html[data-theme] body.group-timer-page .group-discord-icon{
  display:grid;
  place-items:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border:1px solid var(--sc-border)!important;
  border-radius:11px;
  background:var(--sc-accent-soft)!important;
  color:var(--sc-accent-strong)!important;
}
html[data-theme] body.group-timer-page .group-discord-copy{
  flex:1 1 auto;
  min-width:0;
}
html[data-theme] body.group-timer-page .group-discord-copy h2{
  margin:0 0 3px!important;
  font-family:"Playfair Display",Georgia,serif!important;
  font-size:clamp(18px,1.6vw,21px)!important;
  font-weight:600!important;
  line-height:1.3!important;
  letter-spacing:-.015em!important;
  color:var(--sc-text)!important;
  overflow-wrap:anywhere;
}
html[data-theme] body.group-timer-page .group-discord-copy p{
  margin:0;
  max-width:70ch;
  font:400 12.5px/1.5 Inter,system-ui,sans-serif;
  color:var(--sc-muted)!important;
  overflow-wrap:anywhere;
}
html[data-theme] body.group-timer-page .group-discord-join{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:0 0 auto;
  min-height:44px;
  padding:10px 14px;
  border:1px solid var(--sc-button-border,var(--sc-control-border))!important;
  border-radius:10px;
  background:var(--sc-button-bg,var(--sc-surface-raised))!important;
  color:var(--sc-button-text,var(--sc-text))!important;
  font:650 13px/1.35 Inter,system-ui,sans-serif;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:none;
}
html[data-theme] body.group-timer-page .group-discord-join:is(:hover,:active){
  background:var(--sc-button-bg-hover,var(--sc-surface-soft))!important;
  color:var(--sc-button-text,var(--sc-text))!important;
  border-color:var(--sc-accent-strong)!important;
}
html[data-theme] body.group-timer-page .group-discord-join:focus-visible{
  outline:3px solid var(--sc-accent-strong)!important;
  outline-offset:3px;
}
@media(max-width:580px){
  html[data-theme] body.group-timer-page .group-discord-community{
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    align-items:center;
    gap:10px 12px;
    padding:13px;
  }
  html[data-theme] body.group-timer-page .group-discord-icon{
    flex:initial;
  }
  html[data-theme] body.group-timer-page .group-discord-join{
    grid-column:1/-1;
    width:100%;
    min-width:0;
  }
}
@media(max-width:360px){
  html[data-theme] body.group-timer-page .group-discord-community{
    padding:12px;
  }
}
