/* Ayukki v34.5 — single analytics date-range field + calendar. */
.an-toolbar .an-range-field{flex:0 1 310px;min-width:260px;max-width:100%;position:relative}
.an-toolbar .an-range-field>label{display:block;margin-bottom:5px}
.an-toolbar .an-range-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;max-width:none;min-height:45px;padding:10px 13px;border:1px solid #e9cbc5;border-radius:13px;background:var(--panel,#fff);color:var(--ink,#29272b);font-size:12px;font-weight:600;letter-spacing:0;text-align:left;cursor:pointer;box-shadow:none;white-space:normal}
.an-range-trigger svg{flex-shrink:0;color:#a35449}
.an-toolbar .an-range-trigger:hover{border-color:#bd8177;background:#fffbfa}
.an-toolbar .an-range-trigger:focus-visible,.an-range-popover button:focus-visible,.an-range-popover input:focus-visible{outline:3px solid #d78b83;outline-offset:2px}
.an-toolbar .an-range-channel{min-width:190px;max-width:240px;flex:0 1 190px}
.an-toolbar .an-range-channel .ay-select-control,.an-toolbar .an-range-channel select{width:100%;max-width:100%}
.an-range-popover[hidden],.an-range-backdrop[hidden]{display:none!important}
.an-toolbar .an-range-popover{position:absolute;top:calc(100% + 9px);left:0;z-index:190;width:340px;max-width:calc(100vw - 36px);padding:16px;border:1px solid var(--line,#ead9d6);border-radius:19px;background:var(--panel,#fff);box-shadow:0 20px 55px rgba(60,22,20,.19);color:var(--ink,#29272b)}
.an-range-popover *{box-sizing:border-box}
.an-range-popover-title,.an-range-month-heading,.an-range-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}
.an-range-popover-title strong{font-size:13px}
.an-toolbar .an-range-popover .an-range-close{border:0;background:transparent;color:var(--muted,#7b6a66);font-size:24px;line-height:1;padding:3px 8px;cursor:pointer}
.an-range-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:13px 0 14px}
.an-range-inputs>div{min-width:0}
.an-range-inputs label{display:block;color:var(--muted,#7b6a66);font-size:10px;font-weight:650;margin-bottom:5px}
.an-toolbar .an-range-inputs input{box-sizing:border-box;width:100%;min-width:0;max-width:none;height:40px;font-size:11px;font-weight:600;padding:6px 5px;background:var(--panel,#fff);color:var(--ink,#29272b);border:1px solid var(--line,#ead9d6);border-radius:10px}
.an-range-month-heading{padding:4px 0 10px}
.an-range-month-heading strong{font-size:13px}
.an-toolbar .an-range-month-heading button{border:1px solid var(--line,#ead9d6);color:var(--ink,#29272b);background:transparent;border-radius:10px;width:32px;height:32px;min-width:32px;padding:0;font-size:22px;line-height:1;cursor:pointer}
.an-range-month-heading button:disabled{opacity:.3;cursor:default}
.an-range-weekdays,.an-range-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.an-range-weekdays{margin-bottom:4px}
.an-range-weekdays span{padding:7px 0;font-size:10px;color:var(--muted,#7b6a66);font-weight:600}
.an-toolbar .an-range-day{width:100%;min-width:0;aspect-ratio:1/1;padding:0;border:0;border-radius:9px;background:transparent;color:var(--ink,#29272b);font-size:11px;font-weight:500;cursor:pointer;white-space:nowrap}
.an-toolbar .an-range-day:hover:not(:disabled){background:#fae8e5;color:#810d0d}
.an-toolbar .an-range-day.an-range-other-month{opacity:.35}
.an-toolbar .an-range-day.an-range-included{background:#f8e6e1;border-radius:5px}
.an-toolbar .an-range-day.an-range-selected{background:#810d0d;color:#fff;font-weight:750;opacity:1;border-radius:9px}
.an-toolbar .an-range-day.an-range-today:not(.an-range-selected){box-shadow:inset 0 0 0 1px #b95a51}
.an-toolbar .an-range-day:disabled{opacity:.2;cursor:not-allowed}
.an-range-hint{font-size:10.5px;line-height:1.5;color:var(--muted,#7b6a66);margin:12px 0;min-height:16px}
.an-range-hint.an-range-error{color:#ae2525;font-weight:600}
.an-range-actions{padding-top:10px;border-top:1px solid var(--line,#ead9d6)}
.an-toolbar .an-range-actions button{border-radius:11px;padding:9px 11px;font-size:11px;font-weight:700;border:1px solid var(--line,#ead9d6);cursor:pointer;min-height:37px}
.an-toolbar #an-range-cancel{background:transparent;color:var(--ink,#29272b)}
.an-toolbar #an-range-apply{background:#810d0d;color:#fff;border-color:#810d0d}
.an-range-backdrop{display:none}
/* Dark theme */
html[data-ay-theme="dark"] .an-toolbar .an-range-trigger:hover{background:#2b3440}
html[data-ay-theme="dark"] .an-range-popover{background:#212a36}
html[data-ay-theme="dark"] .an-toolbar .an-range-day.an-range-included{background:#4a3438}
html[data-ay-theme="dark"] .an-toolbar .an-range-day.an-range-selected{background:#d86d65;color:#1b1520}
html[data-ay-theme="dark"] .an-toolbar .an-range-day:hover:not(:disabled){background:#574044;color:#fff}
@media(max-width:700px){
  .an-toolbar .an-range-field{flex:1 1 100%;width:100%;min-width:0;grid-column:1/-1}
  .an-toolbar .an-range-channel{flex:1 1 100%;max-width:none;grid-column:1/-1}
  .an-toolbar .an-range-popover{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(350px,calc(100vw - 22px));max-width:none;max-height:calc(100dvh - 22px);overflow-y:auto;z-index:1002;padding:15px}
  .an-toolbar .an-range-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:1001;background:rgba(18,20,27,.44)}
  .an-toolbar .an-range-popover button{width:auto}
  .an-toolbar .an-range-days .an-range-day{width:100%}
  .an-toolbar .an-range-trigger{width:100%}
}
