/* =========================================================
   Módulo Agenda — estilo Google Agenda
   ========================================================= */
.agd {
  /* mapeado para os tokens do DS (tokens.css) */
  --agd-bg: var(--ds-surface); --agd-line: var(--ds-line); --agd-line2: var(--ds-hover); --agd-muted: var(--ds-text-muted);
  --agd-hover: var(--ds-hover); --agd-accent: var(--ds-accent); --agd-today: var(--ds-accent); --agd-side: 256px;
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; outline: none;
  background: var(--agd-bg); font-size: 14px; container-type: inline-size; container-name: agd;
}
.agd-muted { color: var(--agd-muted); }

/* ---------- Topo ---------- */
.agd-top { flex-shrink: 0; display: flex; align-items: center; gap: 6px; height: 60px; padding: 0 12px 0 8px; border-bottom: 1px solid var(--agd-line); }
.agd-today { height: 36px; padding: 0 16px; margin: 0 6px; border-radius: 999px; border: 1px solid var(--agd-line); font-weight: 500; transition: background-color .2s; }
.agd-today:hover { background: var(--agd-hover); }
.agd-title { min-width: 0; margin-left: 6px; font-size: 20px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agd-top-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.agd-search { display: flex; align-items: center; gap: 6px; height: 36px; width: 180px; padding: 0 10px; border-radius: 10px; background: rgb(0 0 0 / .04); color: var(--agd-muted); }
.dark .agd-search { background: rgb(255 255 255 / .05); }
.agd-search input { flex: 1; min-width: 0; background: transparent; outline: none; color: rgb(38 38 38); }
.dark .agd-search input { color: #f5f5f5; }
.agd-views { display: flex; border: 1px solid var(--agd-line); border-radius: 999px; padding: 2px; }
.agd-views button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--agd-muted); transition: background-color .2s, color .2s; }
.agd-views button:hover { color: inherit; }
.agd-views button.active { background: rgb(124 58 237 / .12); color: rgb(109 40 217); }
.dark .agd-views button.active { background: rgb(167 139 250 / .16); color: rgb(196 181 253); }

@container agd (max-width: 820px) { .agd-search { display: none; } .agd-title { font-size: 17px; } }
@container agd (max-width: 600px) {
  .agd-top { flex-wrap: wrap; height: auto; padding: 8px; }
  .agd-top-end { width: 100%; margin: 0; }
  .agd-views { flex: 1; } .agd-views button { flex: 1; padding: 0 6px; }
  .agd-today { margin: 0 2px; padding: 0 12px; }
}

/* ---------- Corpo ---------- */
.agd-main { flex: 1; min-height: 0; display: flex; position: relative; }
.agd-side { width: var(--agd-side); flex-shrink: 0; overflow-y: auto; padding: 12px 12px 20px 8px; transition: margin-left .35s var(--ease-out), opacity .25s; }
.agd.side-closed .agd-side { margin-left: calc(-1 * var(--agd-side)); opacity: 0; pointer-events: none; }
.agd-view { flex: 1; min-width: 0; min-height: 0; position: relative; display: flex; flex-direction: column; }
@container agd (max-width: 760px) {
  .agd-side { position: absolute; z-index: 15; inset: 0 auto 0 0; background: var(--agd-bg); box-shadow: 8px 0 30px -12px rgb(0 0 0 / .3); }
}

.agd-create {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 16px; margin: 2px 0 18px 6px; border-radius: 16px;
  background: var(--agd-bg); font-weight: 500; box-shadow: 0 1px 3px rgb(0 0 0 / .18), 0 4px 10px -2px rgb(0 0 0 / .12);
  transition: box-shadow .2s, background-color .2s;
}
.agd-create:hover { box-shadow: 0 2px 6px rgb(0 0 0 / .2), 0 8px 18px -4px rgb(0 0 0 / .18); background: rgb(124 58 237 / .05); }
.dark .agd-create { background: #262626; }
.agd-create svg { color: var(--agd-accent); }

.agd-mini { padding: 0 4px 0 8px; }
.agd-mini-head { display: flex; align-items: center; gap: 2px; padding-left: 6px; margin-bottom: 4px; font-size: 13.5px; font-weight: 500; }
.agd-mini-head span { flex: 1; }
.agd-mini-head .btn-icon { height: 28px; width: 28px; }
.agd-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.agd-mini-grid > span { font-size: 10.5px; font-weight: 500; color: var(--agd-muted); padding: 4px 0; }
.agd-mini-grid button { position: relative; height: 28px; width: 28px; margin: 1px auto; border-radius: 999px; font-size: 11.5px; transition: background-color .15s; }
.agd-mini-grid button:hover { background: var(--agd-hover); }
.agd-mini-grid button.out { color: var(--agd-muted); opacity: .7; }
.agd-mini-grid button.wk { background: rgb(124 58 237 / .08); border-radius: 0; width: 100%; }
.agd-mini-grid button.sel { background: rgb(124 58 237 / .2); color: rgb(91 33 182); font-weight: 600; border-radius: 999px; width: 28px; }
.dark .agd-mini-grid button.sel { color: #ede9fe; }
.agd-mini-grid button.today { background: var(--agd-today); color: #fff; font-weight: 600; border-radius: 999px; width: 28px; }
.dark .agd-mini-grid button.today { color: #1b1b1b; }
.agd-mini-grid button i { position: absolute; left: 50%; bottom: 2px; height: 3px; width: 3px; margin-left: -1.5px; border-radius: 999px; background: currentColor; opacity: .45; }

.agd-side-sec { margin-top: 18px; padding: 0 4px 0 8px; }
.agd-side-title { margin: 0 0 6px 6px; font-size: 13px; font-weight: 600; }
.agd-cal { display: flex; align-items: center; gap: 12px; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.agd-cal:hover { background: var(--agd-hover); }
.agd-cal input { appearance: none; height: 18px; width: 18px; border-radius: 4px; border: 2px solid var(--c); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.agd-cal input:checked { background: var(--c); }
.agd-cal input:checked::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.agd-side-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; border-radius: 8px; font-size: 13.5px; text-align: left; }
.agd-side-link:hover, .agd-side-link.on { background: var(--agd-hover); }
.agd-side-link.on { font-weight: 600; }
.agd-side-link em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--agd-accent); color: #fff; }

.agd-fab { display: none; }
@container agd (max-width: 760px) {
  .agd-fab {
    position: absolute; right: 18px; bottom: 18px; z-index: 12; display: grid; place-items: center; height: 56px; width: 56px; border-radius: 18px;
    background: var(--agd-bg); color: var(--agd-accent); box-shadow: 0 2px 6px rgb(0 0 0 / .2), 0 8px 20px -4px rgb(0 0 0 / .25);
  }
  .agd.side-closed .agd-fab { display: grid; }
  .agd:not(.side-closed) .agd-fab { display: none; }
}

/* ---------- Grade (dia / semana) ---------- */
.agd-grid-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; }
.agd-grid-head {
  position: sticky; top: 0; z-index: 8; display: grid; grid-template-columns: 56px repeat(var(--n), minmax(0, 1fr));
  background: var(--agd-bg); border-bottom: 1px solid var(--agd-line);
}
.agd-gutter { display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 8px 6px 0; font-size: 10px; color: var(--agd-muted); }
.agd-dh { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 8px; border-left: 1px solid transparent; }
.agd-dh .wd { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--agd-muted); }
.agd-dh .num { height: 44px; width: 44px; border-radius: 999px; font-size: 24px; font-weight: 400; transition: background-color .15s; }
.agd-dh .num:hover { background: var(--agd-hover); }
.agd-dh.today .wd { color: var(--agd-today); }
.agd-dh.today .num { background: var(--agd-today); color: #fff; }
.dark .agd-dh.today .num { color: #1b1b1b; }
@container agd (max-width: 600px) { .agd-dh .num { height: 34px; width: 34px; font-size: 17px; } .agd-dh .wd { font-size: 10px; } }

.agd-grid-body { display: grid; grid-template-columns: 56px 1fr; }
.agd-hours { position: relative; }
.agd-hour { height: var(--H); position: relative; }
.agd-hour span { position: absolute; right: 8px; top: -7px; font-size: 10.5px; color: var(--agd-muted); }
.agd-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.agd-col {
  position: relative; height: calc(var(--H) * 24); border-left: 1px solid var(--agd-line); cursor: default; touch-action: none;
  background:
    linear-gradient(to bottom, rgb(0 0 0 / .025) 0 var(--o), transparent var(--o) var(--c), rgb(0 0 0 / .025) var(--c)),
    repeating-linear-gradient(to bottom, var(--agd-line) 0 1px, transparent 1px var(--H));
}
.dark .agd-col {
  background:
    linear-gradient(to bottom, rgb(255 255 255 / .02) 0 var(--o), transparent var(--o) var(--c), rgb(255 255 255 / .02) var(--c)),
    repeating-linear-gradient(to bottom, var(--agd-line) 0 1px, transparent 1px var(--H));
}
.agd-col.closed { background-color: rgb(0 0 0 / .02); }

.agd-ev {
  position: absolute; display: flex; flex-direction: column; overflow: hidden; padding: 3px 7px; border-radius: 6px; cursor: pointer;
  background: var(--c); color: #fff; font-size: 12px; line-height: 1.3; box-shadow: 0 0 0 1px var(--agd-bg);
  transition: box-shadow .15s, opacity .15s; user-select: none; touch-action: none;
}
.agd-ev:hover { box-shadow: 0 0 0 1px var(--agd-bg), 0 4px 12px -2px rgb(0 0 0 / .3); }
.agd-ev .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agd-ev .t span { font-weight: 400; }
.agd-ev .s { opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agd-ev.short { flex-direction: row; align-items: center; padding: 0 7px; }
.agd-ev.cancel { background: var(--agd-bg); color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.agd-ev.cancel .t { text-decoration: line-through; }
.agd-ev.block { color: rgb(64 64 64); background: repeating-linear-gradient(135deg, rgb(0 0 0 / .06) 0 6px, rgb(0 0 0 / .1) 6px 12px); box-shadow: inset 3px 0 0 #a3a3a3; }
.dark .agd-ev.block { color: #d4d4d4; background: repeating-linear-gradient(135deg, rgb(255 255 255 / .05) 0 6px, rgb(255 255 255 / .09) 6px 12px); }
.agd-ev.dragging { opacity: .85; z-index: 30 !important; box-shadow: 0 10px 28px -6px rgb(0 0 0 / .45); cursor: grabbing; }
.agd-ev-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.agd-ev-resize::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 3px; margin-left: -8px; border-radius: 3px; background: rgb(255 255 255 / .6); opacity: 0; transition: opacity .15s; }
.agd-ev:hover .agd-ev-resize::after { opacity: 1; }

.agd-ghost { position: absolute; left: 1px; right: 8px; z-index: 20; display: flex; flex-direction: column; padding: 3px 7px; border-radius: 6px; background: var(--agd-accent); color: #fff; font-size: 12px; box-shadow: 0 6px 18px -4px rgb(0 0 0 / .35); pointer-events: none; }
.agd-now { position: absolute; left: -1px; right: 0; z-index: 25; height: 2px; background: #ea4335; pointer-events: none; }
.agd-now::before { content: ''; position: absolute; left: -6px; top: -5px; height: 12px; width: 12px; border-radius: 999px; background: #ea4335; }

/* ---------- Mês ---------- */
.agd-month { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(var(--weeks), minmax(92px, 1fr)); overflow-y: auto; border-top: 0; }
.agd-mcell { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 4px 4px 6px; border-right: 1px solid var(--agd-line); border-bottom: 1px solid var(--agd-line); cursor: pointer; overflow: hidden; }
.agd-mcell:nth-child(7n) { border-right: 0; }
.agd-mcell.out { background: rgb(0 0 0 / .015); }
.agd-mcell.out .num { color: var(--agd-muted); }
.agd-mcell-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 2px; }
.agd-mcell-head .wd { font-size: 10.5px; font-weight: 500; text-transform: uppercase; color: var(--agd-muted); }
.agd-mcell-head .num { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.agd-mcell-head .num:hover { background: var(--agd-hover); }
.agd-mcell.today .num { background: var(--agd-today); color: #fff; }
.dark .agd-mcell.today .num { color: #1b1b1b; }
.agd-chip { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; padding: 1px 6px; border-radius: 5px; font-size: 11.5px; text-align: left; }
.agd-chip:hover { background: var(--agd-hover); }
.agd-chip i { height: 8px; width: 8px; flex-shrink: 0; border-radius: 999px; background: var(--c); }
.agd-chip.block i { border-radius: 2px; }
.agd-chip .tm { flex-shrink: 0; color: var(--agd-muted); }
.agd-chip.cancel span:last-child { text-decoration: line-through; opacity: .6; }
.agd-more { align-self: flex-start; padding: 1px 6px; border-radius: 5px; font-size: 11.5px; font-weight: 600; }
.agd-more:hover { background: var(--agd-hover); }
@container agd (max-width: 600px) { .agd-chip .tm, .agd-chip span:last-child { display: none; } .agd-chip { width: auto; display: inline-flex; padding: 2px; } .agd-month { grid-template-rows: repeat(var(--weeks), minmax(64px, 1fr)); } }

/* ---------- Programação ---------- */
.agd-schedule { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 24px; }
.agd-sday { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--agd-line2); }
.agd-sdate { display: flex; align-items: center; gap: 8px; width: 120px; flex-shrink: 0; align-self: flex-start; padding: 2px 6px 2px 0; text-align: left; border-radius: 999px; }
.agd-sdate .num { display: grid; place-items: center; height: 32px; min-width: 32px; border-radius: 999px; font-size: 20px; }
.agd-sdate .wd { font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--agd-muted); }
.agd-sday.today .agd-sdate .num { background: var(--agd-today); color: #fff; }
.dark .agd-sday.today .agd-sdate .num { color: #1b1b1b; }
.agd-slist { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.agd-srow { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 8px; text-align: left; font-size: 13.5px; }
.agd-srow:hover { background: var(--agd-hover); }
.agd-srow > i { height: 10px; width: 10px; flex-shrink: 0; border-radius: 999px; background: var(--c); }
.agd-srow > i.block { border-radius: 2px; }
.agd-srow .tm { width: 112px; flex-shrink: 0; color: var(--agd-muted); font-size: 12.5px; }
.agd-srow.cancel b { text-decoration: line-through; opacity: .6; }
@container agd (max-width: 600px) { .agd-sday { flex-direction: column; gap: 4px; } .agd-srow .tm { width: 84px; } }

/* ---------- Popover ---------- */
.agd-pop {
  position: absolute; z-index: 40; max-height: calc(100% - 72px); overflow-y: auto; padding: 8px 18px 16px; border-radius: 16px;
  background: var(--agd-bg); box-shadow: 0 24px 48px -12px rgb(0 0 0 / .35), 0 0 0 1px var(--agd-line);
  opacity: 0; transform: scale(.97); pointer-events: none; transition: opacity .15s, transform .2s var(--ease-out);
}
.dark .agd-pop { background: #262626; }
.agd-pop.open { opacity: 1; transform: none; pointer-events: auto; }
.agd-pop-tools { display: flex; justify-content: flex-end; gap: 2px; margin: 0 -10px 4px 0; }
.agd-pop-tools .btn-icon { height: 34px; width: 34px; }
.agd-pop-row { display: flex; align-items: flex-start; gap: 14px; padding: 6px 0; font-size: 13.5px; }
.agd-pop-row > [data-icon], .agd-pop-row > i:first-child { margin-top: 2px; color: var(--agd-muted); flex-shrink: 0; }
.agd-pop-row .sq { height: 14px; width: 14px; margin-top: 6px; border-radius: 4px; background: var(--c); }
.agd-pop-row a { color: var(--agd-accent); }
.agd-pop-row select { flex: 1; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--agd-line); background: transparent; color: inherit; outline: none; }
.dark .agd-pop-row select option { background: #2f2f2f; }
.agd-pop-title { font-size: 20px; line-height: 1.3; font-weight: 400; }
.agd-pop-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.agd-quick-title { width: 100%; margin: 0 0 10px; padding: 6px 0; border: 0; border-bottom: 2px solid var(--agd-line); background: transparent; font-size: 20px; outline: none; color: inherit; transition: border-color .2s; }
.agd-quick-title:focus { border-color: var(--agd-accent); }
.agd-warn { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; background: rgb(245 158 11 / .12); color: rgb(146 64 14); }
.dark .agd-warn { color: rgb(253 224 71); }
.agd-warn.hidden { display: none; }

.agd-seg { display: inline-flex; padding: 2px; margin-bottom: 8px; border-radius: 10px; background: rgb(0 0 0 / .05); }
.dark .agd-seg { background: rgb(255 255 255 / .06); }
.agd-seg button { height: 28px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--agd-muted); }
.agd-seg button.on { background: var(--agd-bg); color: inherit; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.dark .agd-seg button.on { background: #3a3a3a; }

/* ---------- Botões, formulários ---------- */
.agd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; flex-shrink: 0;
  border-radius: 999px; border: 1px solid var(--agd-line); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color .2s, opacity .2s;
}
.agd-btn:hover { background: var(--agd-hover); }
.agd-btn.primary { background: var(--agd-accent); border-color: var(--agd-accent); color: #fff; }
.dark .agd-btn.primary { color: #1b1b1b; }
.agd-btn.primary:hover { opacity: .9; }
.agd-btn.ghost { border-color: transparent; color: var(--agd-accent); }

.agd-modal { max-width: 560px; text-align: left; max-height: calc(var(--vh100) - 32px); overflow-y: auto; }
.agd-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .agd-form { grid-template-columns: 1fr; } }
.agd-form[data-kind="block"] .only-agend { display: none; }
.agd-form [data-l-block] { display: none; }
.agd-form[data-kind="block"] [data-l-block] { display: inline; }
.agd-form[data-kind="block"] [data-l-agend] { display: none; }
.agd-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.agd-field.span2 { grid-column: 1 / -1; }
.agd-field > span { font-size: 12.5px; font-weight: 500; }
.agd-field input, .agd-field select, .agd-inline input, .agd-row input, .agd-list-row input:not([type=color]) {
  width: 100%; height: 38px; padding: 0 11px; border-radius: 10px; border: 1px solid rgb(0 0 0 / .12); background: transparent; font-size: 13.5px; outline: none; color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.dark .agd-field input, .dark .agd-field select, .dark .agd-inline input, .dark .agd-row input, .dark .agd-list-row input:not([type=color]) { border-color: rgb(255 255 255 / .14); }
.dark .agd-field select option { background: #2f2f2f; }
.agd-field input:focus, .agd-field select:focus, .agd-inline input:focus, .agd-row input:focus, .agd-list-row input:focus { border-color: rgb(124 58 237 / .6); box-shadow: 0 0 0 3px rgb(124 58 237 / .12); }
.agd-modal .invalid { border-color: rgb(239 68 68) !important; box-shadow: 0 0 0 3px rgb(239 68 68 / .12) !important; }
.agd-row input { width: auto; }

.agd-pad { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; }
.agd-pad-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; max-width: 820px; margin: 0 auto 14px; }
.agd-pad-head h3 { font-size: 18px; font-weight: 600; }
.agd-card-list { max-width: 820px; margin: 0 auto; border: 1px solid var(--agd-line); border-radius: 16px; overflow: hidden; }
.agd-wl { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
.agd-wl + .agd-wl { border-top: 1px solid var(--agd-line); }
@container agd (max-width: 560px) { .agd-wl .agd-btn span { display: none; } .agd-wl .agd-btn { padding: 0 10px; } }
.agd-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgb(0 0 0 / .06); color: var(--agd-muted); }
.agd-badge.blue { background: rgb(14 165 233 / .12); color: rgb(3 105 161); }
.agd-badge.green { background: rgb(34 197 94 / .12); color: rgb(21 128 61); }
.agd-badge.red { background: rgb(239 68 68 / .1); color: rgb(185 28 28); }

.agd-settings { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.agd-panel { padding: 6px 18px 12px; border-radius: 16px; border: 1px solid var(--agd-line); }
.agd-panel h3 { margin: 12px 0 4px; font-size: 14px; font-weight: 600; }
.agd-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--agd-line2); }
.agd-row:last-child { border-bottom: 0; }
.agd-row > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.agd-row b { font-size: 13.5px; font-weight: 500; }
.agd-row small { font-size: 12px; color: var(--agd-muted); }
@container agd (max-width: 560px) { .agd-row { flex-direction: column; align-items: stretch; gap: 8px; } }
.agd-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 10px; }
.agd-list-row { display: flex; align-items: center; gap: 8px; }
.agd-list-row input[type=color] { height: 30px; width: 30px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; flex-shrink: 0; }
.agd-inline { display: flex; gap: 6px; }
.agd-inline .agd-btn { height: 38px; border-radius: 10px; }
.agd-taglist { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.agd-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 8px; font-size: 12.5px; background: rgb(124 58 237 / .09); color: rgb(109 40 217); }
.dark .agd-tag { background: rgb(167 139 250 / .14); color: rgb(196 181 253); }
.agd-tag button { display: grid; place-items: center; height: 18px; width: 18px; border-radius: 5px; opacity: .6; }
.agd-tag button:hover { opacity: 1; }


.agd-link { color: var(--agd-accent); text-align: left; }
.agd-link:hover { text-decoration: underline; }

/* --- auditoria: encaixe --- */
.agd-chip { overflow: hidden; }
.agd-chip > span:last-child { min-width: 0; flex: 1; }
@container agd (max-width: 760px) {
  .agd.side-closed .agd-schedule, .agd.side-closed .agd-pad { padding-bottom: 96px; }
  .agd.side-closed .agd-grid-body { padding-bottom: 84px; }
}
@container agd (max-width: 600px) {
  .agd-mcell { cursor: pointer; }
  .agd-chip { pointer-events: none; }
  .agd-more { pointer-events: none; }
  .agd-mcell-head .num { pointer-events: none; } /* a célula inteira abre o dia */
}
