/* Native personal Together workspace. All geometry remains scoped to this
   module; calendars and clinical colours elsewhere are unchanged. */
.together-root { --together-border:#d9e4ed; --together-ink:#24364b; --together-muted:#64748b; color:var(--together-ink); }
.together-root *, .together-dialog * { box-sizing:border-box; }
.together-root [hidden], .together-dialog [hidden] { display:none!important; }
.together-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; align-items:start; }
.together-hero>div { min-width:0; }
.together-hero h1 { overflow-wrap:anywhere; }
.together-back { margin:0; white-space:nowrap!important; min-width:110px!important; }
.together-body { display:grid; gap:16px; max-width:1200px; min-width:0; }
.together-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; max-width:660px; }
.together-root .together-button, .together-dialog .together-button { min-width:0; width:100%; max-width:100%; min-height:48px; height:auto; margin:0; padding:12px 16px; font:650 16px/1.4 Inter,system-ui,sans-serif; white-space:normal; overflow-wrap:normal; word-break:normal; align-self:stretch; text-align:center; }
.together-tabs .is-active { background:#e5f5f4; border-color:#91cfc3; color:#246b61; }
.together-tabs>.together-button,.together-event-tabs>.together-button{padding-inline:8px}
.together-toolbar { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.7fr); gap:12px; align-items:stretch; }
.together-root :is(input:not([type=checkbox]),select,textarea) { width:100%; max-width:100%; min-width:0; min-height:48px; height:48px; border:1px solid var(--together-border); border-radius:12px; background:#fff; color:var(--together-ink); padding:10px 12px; font:400 16px/1.4 Inter,system-ui,sans-serif; margin:0; }
.together-root select { text-overflow:ellipsis; white-space:nowrap; }
.together-root :is(input,select,button):focus-visible, .together-dialog button:focus-visible { outline:3px solid #67b4d5; outline-offset:2px; scroll-margin-block:24px; }
.together-status { margin:0; color:#3b6970; line-height:1.5; overflow-wrap:anywhere; }
.together-error { margin:0; color:#9f3447; background:#fff4f3; border:1px solid #ebcbd0; border-radius:12px; padding:10px 12px; line-height:1.5; overflow-wrap:anywhere; }
.together-error:empty { display:none; }
.together-content { display:grid; gap:16px; min-width:0; }
.together-card { width:100%; max-width:100%; min-width:0; border:1px solid var(--together-border); border-radius:20px; background:#fff; padding:22px; }
.together-root .together-card :is(h2,h3,p,small,span,dd) { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.together-root .together-card h2 { margin:0 0 12px; font:700 23px/1.25 Inter,system-ui,sans-serif; }
.together-root .together-card h3 { margin:14px 0 8px; font:650 18px/1.4 Inter,system-ui,sans-serif; }
.together-root .together-card p { margin:8px 0; line-height:1.5; }
.together-muted, .together-hint, .together-handle { color:var(--together-muted); }
.together-hint { display:block; font:400 14px/1.5 Inter,system-ui,sans-serif; }
.together-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr)); grid-auto-rows:1fr; gap:12px; margin-top:14px; align-items:stretch; min-width:0; }
.together-root .together-danger, .together-dialog .together-danger { background:#fff3f2; border-color:#edc4c0; color:#9b3c36; box-shadow:none; }
.together-person { display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,.8fr); align-items:center; gap:16px; border-top:1px solid #e8edf3; padding:16px 0; min-width:0; }
.together-person:last-child { padding-bottom:0; }
.together-person .together-actions { margin:0; }
.together-root .together-person h3 { margin:0 0 4px; }
.together-root .together-person p { margin:0; }
.together-person-copy { min-width:0; }
.together-friend-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,.55fr); gap:12px; align-items:end; }
.together-field { display:grid; align-content:start; gap:8px; min-width:0; font:650 14px/1.4 Inter,system-ui,sans-serif; }
.together-field>span { min-width:0; }
.together-field small { font-weight:400; }
.together-editor { display:grid; gap:16px; min-width:0; }
.together-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:16px; }
.together-step { display:grid; gap:16px; min-width:0; }
.together-steps { list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0; padding:0; counter-reset:step; }
.together-steps li { border:1px solid #e1e8ef; border-radius:12px; padding:10px; font:600 14px/1.4 Inter,system-ui,sans-serif; min-width:0; overflow-wrap:normal; word-break:normal; }
.together-steps li::before { counter-increment:step; content:counter(step) '. '; }
.together-steps li[aria-current=step] { background:#e7f4fa; border-color:#99cadd; color:#1c6586; }
.together-invitees { border:1px solid var(--together-border); border-radius:14px; padding:12px; min-width:0; margin:0; }
.together-invitees legend { font-weight:650; padding:0 6px; max-width:100%; }
.together-invitee { display:grid; grid-template-columns:24px minmax(0,1fr); gap:12px; align-items:center; padding:10px 0; min-height:48px; cursor:pointer; }
.together-invitee>input { width:22px; height:22px; margin:0; accent-color:#1389a6; }
.together-invitee>span { display:grid; gap:3px; min-width:0; }
.together-invitee small { font-size:13px; color:var(--together-muted); }
.together-card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; min-width:0; }
.together-card-heading h2 { flex:1 1 auto; }
.together-badge { display:inline-block; padding:6px 10px; border-radius:999px; font:650 13px/1.4 Inter,system-ui,sans-serif; background:#edf1f8; color:#50607b; flex:0 0 auto; max-width:100%; }
.together-badge.is-pending { background:#fff2d9; color:#7b5b1b; }
.together-badge.is-confirmed { background:#e1f4eb; color:#2c6950; }
.together-badge.is-cancelled { background:#f5e8ea; color:#8a4854; }
.together-facts { display:grid; grid-template-columns:minmax(100px,.35fr) minmax(0,1fr); gap:10px 16px; margin:18px 0; }
.together-facts dt { color:var(--together-muted); }
.together-facts dd { margin:0; overflow-wrap:anywhere; }
.together-participants { list-style:none; padding:0; margin:0; }
.together-participants li { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; padding:10px 0; border-bottom:1px solid #edf1f5; min-width:0; }
.together-participants li:last-child { border:0; }
.together-proposal { border-top:1px solid #e3eaf0; margin-top:12px; padding-top:8px; }
.together-dialog { width:min(560px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; border:1px solid #d9e4ed; border-radius:20px; padding:24px; color:#24364b; background:#fff; font:400 16px/1.5 Inter,system-ui,sans-serif; }
.together-dialog::backdrop { background:rgba(25,43,62,.35); }
.together-dialog h2 { margin:0 0 12px; line-height:1.3; overflow-wrap:anywhere; }
.together-dialog p { overflow-wrap:anywhere; }
.together-event-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}
.together-event-tabs .is-active{background:#e5f5f4;border-color:#91cfc3;color:#246b61}
.together-check-row{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;align-items:start;min-height:44px;min-width:0;font:400 15px/1.5 Inter,system-ui,sans-serif}
.together-check-row>input{width:22px;height:22px;margin:1px 0 0;accent-color:#1389a6}
.together-grant{grid-column:1/-1;padding-top:4px;color:#526577}
.together-root textarea,.together-dialog textarea{height:auto!important;min-height:100px;resize:vertical;width:100%;font:400 16px/1.5 Inter,system-ui,sans-serif;padding:12px;border:1px solid #d9e4ed;border-radius:12px;color:#24364b;background:#fff;box-sizing:border-box}
.together-root textarea[name=message]{min-height:96px}
.together-messages{display:grid;gap:12px;margin:18px 0}
.together-message{padding:14px;border:1px solid #dfe8ef;border-radius:14px;min-width:0;background:#f8fbfd}
.together-message-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;font-size:14px;color:#60768a}
.together-message-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.together-file-link{display:block;padding:10px 0;overflow-wrap:anywhere;color:#087e9b}
.together-pending-file{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,.5fr);align-items:center;gap:12px;padding:10px 0;overflow-wrap:anywhere}
.together-shared-tasks{display:grid;gap:12px;margin-top:12px}
.together-shared-task{padding:14px;border:1px solid #dfe8ef;border-radius:14px;min-width:0}
.together-note-conflict{border:1px solid #e0cfa9;border-radius:12px;padding:12px;background:#fff9eb}
.together-note-conflict summary{cursor:pointer;font-weight:650;line-height:1.5}
.together-task-progress summary{cursor:pointer;line-height:1.5;color:#526577;padding:8px 0;overflow-wrap:anywhere}
.together-task-progress ul{padding-left:22px;margin:0;line-height:1.6;overflow-wrap:anywhere}
.together-archive-dialog{width:min(720px,calc(100vw - 24px))}
/* Keep a real parking strip beside the short-landscape controls. The mascot
   stays visible and controls keep their full type and touch target sizes. */
@media(min-width:761px) and (max-width:1100px) and (max-height:600px){.together-root .together-body,.together-root .together-hero{padding-right:60px}}
@media(max-width:700px) {
 .together-hero { grid-template-columns:minmax(0,1fr); }
 .together-back { justify-self:start; width:auto!important; }
 .together-card { padding:16px; border-radius:16px; }
 .together-person, .together-friend-form { grid-template-columns:minmax(0,1fr); }
 .together-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .together-toolbar>select { grid-column:1/-1; grid-row:2; }
 .together-card-heading { flex-wrap:wrap; }
 .together-badge { flex:0 1 auto; }
 .together-root .together-card h2 { font-size:21px; }
}
@media(max-width:420px) {
 .together-form-grid, .together-facts, .together-participants li { grid-template-columns:minmax(0,1fr); }
 .together-facts { gap:4px; }
 .together-facts dd { margin-bottom:10px; }
 .together-actions { grid-template-columns:minmax(0,1fr); }
 .together-steps { grid-template-columns:minmax(0,1fr); }
 .together-steps li { padding:8px 10px; }
 .together-dialog { padding:18px; }
 .together-pending-file{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce) { .together-root { scroll-behavior:auto; } }
