/* Economic calendar — compact weekly board (owner 2026-11-18 design).
   Website / Windows: week arrows + day tiles in one row, filters always open in one line, slim rows with impact dots.
   Phone (app and mobile web): one or two short lines per event so many events fit on one screen. */
html:not(#m1y) body.calendar-page .calendar-board{display:grid;grid-template-columns:minmax(250px,330px) minmax(0,1fr);grid-template-areas:"week days" "filter filter" "table table" "foot foot";align-items:center}
html:not(#m1y) body.calendar-page .calendar-week-heading{grid-area:week;border:0!important;padding:14px 8px 10px 16px!important}
html:not(#m1y) body.calendar-page .calendar-filter-bar{grid-area:filter}
html:not(#m1y) body.calendar-page .calendar-day-grid{grid-area:days}
html:not(#m1y) body.calendar-page .calendar-table-scroll{grid-area:table}
html:not(#m1y) body.calendar-page .calendar-board-footer{grid-area:foot}
html:not(#m1y) body.calendar-page .calendar-week-heading .calendar-overline,html:not(#m1y) body.calendar-page .calendar-week-heading .calendar-reset-note{display:none}
html:not(#m1y) body.calendar-page .calendar-weeknav{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #9b8236;border-radius:14px;background:rgba(2,12,6,.85);box-shadow:inset 0 1px 0 #fff4c11f}
html:not(#m1y) body.calendar-page .calendar-weeknav h2{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;margin:0!important;font:700 16px/1.25 Inter,system-ui,sans-serif!important;color:#f2e6c4!important;text-align:center}
html:not(#m1y) body.calendar-page .calendar-weeknav h2:before{content:"";flex:none;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f2c94c' stroke-width='1.5'%3E%3Crect x='1.5' y='3' width='13' height='11.5' rx='2'/%3E%3Cpath d='M1.5 6.5h13M5 1.5v3M11 1.5v3'/%3E%3C/svg%3E") center/contain no-repeat}
html:not(#m1y) body.calendar-page .calendar-week-step{flex:none;width:34px;height:34px;border:1px solid #c9a443;border-radius:50%;background:#0b1508;color:#f4d16a;font:700 20px/1 Inter,system-ui,sans-serif;cursor:pointer;display:grid;place-items:center;padding:0 0 2px}
html:not(#m1y) body.calendar-page .calendar-week-step:hover:not(:disabled){background:#1f2a0d}
html:not(#m1y) body.calendar-page .calendar-week-step:disabled{opacity:.35;cursor:default}

/* Day tiles: weekday, date, "nov. (N)" — N coloured by the strongest impact; today is solid gold. */
html:not(#m1y) body.calendar-page .calendar-day-grid{gap:6px!important;padding:12px 16px 10px 6px!important;border:0!important}
html:not(#m1y) body.calendar-page .calendar-day-grid>button.calendar-day-tile{min-height:64px!important;padding:7px 4px 6px!important;gap:1px!important;justify-content:center;border-radius:11px!important;border-color:#6e5c2c!important;background:rgba(0,20,8,.85)!important;transform:none!important;opacity:1}
html:not(#m1y) body.calendar-page .calendar-day-grid>button.calendar-day-tile.is-selected{border-color:#f2cf55!important;box-shadow:0 0 0 1px #f2cf55,0 0 12px #f2cf5533!important}
html:not(#m1y) body.calendar-page .calendar-day-grid>button.calendar-day-tile.is-today{background:linear-gradient(180deg,#ffe08a,#e2aa3a)!important;border-color:#ffe08a!important}
html:not(#m1y) body.calendar-page .calendar-day-tile.is-past:not(.is-today):not(.is-selected){opacity:.78}
html:not(#m1y) body.calendar-page .calendar-day-tile .tile-weekday{order:1;font:700 13px/1.15 Inter,system-ui,sans-serif;letter-spacing:0;text-transform:none;color:#eef1e6}
html:not(#m1y) body.calendar-page .calendar-day-tile .tile-day{order:2;font:700 19px/1.1 Inter,system-ui,sans-serif!important;color:#f4f1e6}
html:not(#m1y) body.calendar-page .calendar-day-tile .tile-sub{order:3;font-size:11px;color:#b9c4bb}
html:not(#m1y) body.calendar-page .calendar-day-tile :is(.tile-month,.tile-meta,.tile-weekday-short){display:none!important}
html:not(#m1y) body.calendar-page .calendar-day-tile .tile-today{order:0;position:static;transform:none;padding:0;border-radius:0;background:none;color:#1a1306;font:800 12px/1.1 Inter,system-ui,sans-serif;letter-spacing:0;text-transform:none}
html:not(#m1y) body.calendar-page .calendar-day-tile.is-today :is(.tile-weekday,.tile-day,.tile-sub){color:#1a1306}
html:not(#m1y) body.calendar-page .calendar-day-tile.is-today .tile-weekday{font-size:12px}
html:not(#m1y) body.calendar-page .calendar-day-tile.is-today .tile-day{display:none}
html:not(#m1y) body.calendar-page .calendar-day-tile.is-today .tile-sub:before{content:attr(data-day)}
html:not(#m1y) body.calendar-page .calendar-day-tile.has-next:after{top:6px;right:6px;width:6px;height:6px}
html:not(#m1y) body.calendar-page .tile-n{font-weight:800}
html:not(#m1y) body.calendar-page .tile-n.high{color:#ff6b72}
html:not(#m1y) body.calendar-page .tile-n.medium{color:#f5c04c}
html:not(#m1y) body.calendar-page .tile-n.low{color:#4ee08f}
html:not(#m1y) body.calendar-page .tile-n.none{color:#9aa79f}
html:not(#m1y) body.calendar-page .calendar-day-tile.is-today .tile-n{color:#5a1210}

/* Impact dots */
html:not(#m1y) body.calendar-page .calendar-impact .calendar-impact-dot,html:not(#m1y) body.calendar-page .calendar-impact .calendar-impact-word{display:none}
html:not(#m1y) body.calendar-page .calendar-dots{display:inline-flex;gap:3px;align-items:center}
html:not(#m1y) body.calendar-page .calendar-dots i{width:9px;height:9px;border-radius:50%;background:#4ee08f;box-shadow:0 0 6px currentColor}
html:not(#m1y) body.calendar-page .calendar-dots.high i{background:#ff3b45;color:#ff3b4566}
html:not(#m1y) body.calendar-page .calendar-dots.medium i{background:#f5b331;color:#f5b33166}
html:not(#m1y) body.calendar-page .calendar-dots.low i{background:#4ee08f;color:#4ee08f44}
html:not(#m1y) body.calendar-page .calendar-dots.none i{background:#7f8c86;color:transparent}

/* Details button = small green bars icon in its own column. */
html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row .calendar-guide-toggle{position:static!important;width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;display:inline-grid!important;place-items:center!important;vertical-align:middle;cursor:pointer}
html:not(#m1y) body.calendar-page .calendar-guide-toggle .calendar-guide-arrow{font-size:0!important;width:13px;height:12px;background:linear-gradient(#5bd16b,#5bd16b) 0 100%/3px 5px no-repeat,linear-gradient(#5bd16b,#5bd16b) 5px 100%/3px 9px no-repeat,linear-gradient(#5bd16b,#5bd16b) 10px 100%/3px 12px no-repeat;transform:none!important}
html:not(#m1y) body.calendar-page .calendar-guide-toggle[aria-expanded="true"]{background:#1d3a1d!important;box-shadow:inset 0 0 0 1px #5bd16b}

@media(min-width:761px){
  html:not(#m1y) body.calendar-page .calendar-filter-bar{padding:2px 16px 10px!important}
  html:not(#m1y) body.calendar-page .calendar-filter-toggle,html:not(#m1y) body.calendar-page .calendar-save-filters{display:none!important}
  html:not(#m1y) body.calendar-page .calendar-filter-panel{display:block!important;border:0!important;background:transparent!important;padding:0!important}
  html:not(#m1y) body.calendar-page .calendar-controls{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px!important;padding:0!important}
  html:not(#m1y) body.calendar-page .calendar-controls:before{content:attr(data-filters-label);font:700 14px Inter,system-ui,sans-serif;color:#f2e6c4;margin-right:2px}
  html:not(#m1y) body.calendar-page .calendar-controls>label:not(.calendar-search){display:flex!important;flex-direction:row!important;align-items:center!important;gap:4px;min-width:0!important;height:34px;padding:0 4px 0 12px;border:1px solid #7f6c2c;border-radius:10px;background:#04120a;color:#e7eadf;font-size:13px;flex:none}
  html:not(#m1y) body.calendar-page .calendar-controls>label:not(.calendar-search)>span:after{content:":"}
  html:not(#m1y) body.calendar-page .calendar-controls>label select{width:auto!important;height:30px!important;min-height:0!important;border:0!important;background:transparent!important;color:#43e892!important;padding:0 6px!important;font:600 13px Inter,system-ui,sans-serif!important}
  html:not(#m1y) body.calendar-page .calendar-impact-filter{display:flex;align-items:center;gap:6px;margin:0;padding:0 8px 0 12px;height:34px;border:1px solid #7f6c2c;border-radius:10px;background:#04120a}
  html:not(#m1y) body.calendar-page .calendar-impact-filter legend{float:left;padding:0;margin:0 4px 0 0;font-size:13px;color:#e7eadf}
  html:not(#m1y) body.calendar-page .calendar-impact-filter legend:after{content:":"}
  html:not(#m1y) body.calendar-page .calendar-controls .calendar-impact-options{display:flex;gap:4px}
  html:not(#m1y) body.calendar-page .calendar-controls .calendar-impact-options label{min-height:26px!important;padding:2px 8px!important;border-radius:8px!important;font-size:12px!important}
  html:not(#m1y) body.calendar-page .calendar-controls .calendar-search{flex:1 1 150px!important;display:block!important;margin-left:auto;max-width:280px}
  html:not(#m1y) body.calendar-page .calendar-impact-filter{flex:none}
  html:not(#m1y) body.calendar-page .calendar-controls .calendar-search>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  html:not(#m1y) body.calendar-page .calendar-controls .calendar-search input{height:34px!important;border:1px solid #7f6c2c!important;border-radius:10px!important;background:#04120a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23c9d3c6' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E") 11px center/14px no-repeat!important;padding-left:32px!important;font-size:13px!important}
  html:not(#m1y) body.calendar-page .calendar-controls .calendar-reset{height:34px;padding:0 10px;border:1px solid #4d5a35;border-radius:10px;background:transparent;font-size:12px}

  html:not(#m1y) body.calendar-page .calendar-table{table-layout:fixed;font-size:14px!important}
  html:not(#m1y) body.calendar-page .calendar-table thead th{padding:9px 10px!important;font-size:12px!important;letter-spacing:.04em;text-transform:uppercase}
  html:not(#m1y) body.calendar-page .calendar-table thead th:nth-child(1){width:82px}
  html:not(#m1y) body.calendar-page .calendar-table thead th:nth-child(2){width:96px}
  html:not(#m1y) body.calendar-page .calendar-table thead th:nth-child(3){width:86px}
  html:not(#m1y) body.calendar-page .calendar-table thead th:nth-child(n+5):nth-child(-n+7){width:118px;text-align:right}
  html:not(#m1y) body.calendar-page .calendar-table thead th:nth-child(8){width:44px}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row{height:36px!important}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row td{padding:6px 10px!important;border-top:0!important;border-bottom:1px solid #4d4124!important;background:transparent!important;vertical-align:middle}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row td:first-child{border-left:1px solid #4d4124!important}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row td:last-child{padding-right:10px!important;border-right:1px solid #4d4124!important}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row:hover td{background:rgba(255,255,255,.04)!important}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row.is-next td{background:rgba(242,207,85,.06)!important}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row.is-next td:first-child{box-shadow:inset 3px 0 #f2cf55!important}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row time{font-size:14px!important;font-weight:700;color:#f6cf57}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row.is-released time{color:#b39a52}
  html:not(#m1y) body.calendar-page .calendar-event-title{font-size:14px!important;font-weight:600}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-value{text-align:right}
  html:not(#m1y) body.calendar-page .calendar-table td.calendar-more{text-align:center}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-day-row th{padding:0!important;border:0!important}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-day-row .calendar-day-toggle{width:100%;padding:9px 12px!important;border:1px solid #4d4124!important;border-radius:0!important;background:transparent!important;color:#d7ddd0;text-align:left;font:600 13px Inter,system-ui,sans-serif}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-day-row.is-open .calendar-day-toggle{background:transparent!important;border-color:#b08d42!important;color:#f2f4ea}
  html:not(#m1y) body.calendar-page .calendar-day-row .calendar-day-arrow{display:none}
  html:not(#m1y) body.calendar-page .calendar-day-row .calendar-day-count{margin-left:4px;font-weight:500;color:#b8c4b4;font-size:13px}
  html:not(#m1y) body.calendar-page .calendar-day-row .calendar-day-label{color:#f2f4ea;font-weight:700;font-size:13px}
}

/* Phone: compact two-line events (time · currency · dots · title / values), 7 small day pills. */
@media(max-width:760px){
  html:not(#m1y) body.calendar-page .calendar-board{grid-template-columns:minmax(0,1fr);grid-template-areas:"week" "days" "filter" "table" "foot"}
  html:not(#m1y) body.calendar-page .calendar-week-heading{padding:10px 8px 4px!important}
  html:not(#m1y) body.calendar-page .calendar-weeknav{padding:5px 6px}
  html:not(#m1y) body.calendar-page .calendar-weeknav h2{font-size:15px!important}
  html:not(#m1y) body.calendar-page .calendar-week-step{width:30px;height:30px}
  html:not(#m1y) body.calendar-page .calendar-day-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important;padding:6px 8px!important}
  html:not(#m1y) body.calendar-page .calendar-day-grid>button.calendar-day-tile{min-height:50px!important;padding:5px 1px!important;border-radius:9px!important}
  html:not(#m1y) body.calendar-page .calendar-day-tile .tile-weekday{display:none}
  html:not(#m1y) body.calendar-page .calendar-day-tile .tile-weekday-short{display:block!important;order:1;font:700 11px/1.1 Inter,system-ui,sans-serif;color:#cfd8cf;letter-spacing:0;text-transform:none}
  html:not(#m1y) body.calendar-page .calendar-day-tile .tile-day{font-size:16px!important}
  html:not(#m1y) body.calendar-page .calendar-day-tile .tile-sub{font-size:0}
  html:not(#m1y) body.calendar-page .calendar-day-tile .tile-sub .tile-n{font-size:10px}
  html:not(#m1y) body.calendar-page .calendar-day-tile .tile-today{display:none}
  html:not(#m1y) body.calendar-page .calendar-day-tile.is-today .tile-day{display:block}
  html:not(#m1y) body.calendar-page .calendar-day-tile.is-today .tile-weekday-short{color:#1a1306}
  html:not(#m1y) body.calendar-page .calendar-filter-bar{padding:2px 8px 6px!important}
  html:not(#m1y) body.calendar-page .calendar-table-scroll{margin:0 6px!important;max-width:calc(100% - 12px)!important}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-day-row th{padding:8px 4px 4px!important;font-size:13px!important}
  html:not(#m1y) body.calendar-page .calendar-day-row .calendar-day-toggle{padding:6px 8px!important;min-height:0!important;border-radius:8px!important;background:transparent!important;border:1px solid #4d4124!important;font-size:13px!important}
  html:not(#m1y) body.calendar-page .calendar-day-row.is-open .calendar-day-toggle{background:transparent!important;border-color:#b08d42!important}
  html:not(#m1y) body.calendar-page .calendar-day-row .calendar-day-arrow{display:none}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row{display:grid!important;grid-template-columns:38px 46px 26px auto auto auto minmax(0,1fr) 24px!important;grid-template-rows:auto auto;column-gap:4px!important;row-gap:1px!important;align-items:center;margin:3px 0!important;padding:5px 6px!important;height:auto!important;min-height:0!important;border-radius:9px!important;border:1px solid #4d4124!important;background:transparent!important;box-shadow:none}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row.is-next{border-color:#c9a443!important;box-shadow:inset 3px 0 #f2cf55!important;background:#1a2310!important}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row td{display:block!important;padding:0!important;border:0!important;background:transparent!important;min-width:0;overflow:hidden;white-space:nowrap;font-size:12px}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row td:nth-child(1){grid-area:1/1}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row td:nth-child(2){grid-area:1/2}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row td:nth-child(3){grid-area:1/3;padding:0!important}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row td:nth-child(4){grid-area:1/4/2/8;font-size:12.5px!important;padding:0!important}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row td:nth-child(5){grid-area:2/4}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row td:nth-child(6){grid-area:2/5}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row td:nth-child(7){grid-area:2/6}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row td:nth-child(8){grid-area:1/8/3/9;display:grid!important;place-items:center}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row time{font-size:12.5px!important;font-weight:700;color:#f6cf57}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row.is-released time{color:#b39a52}
  html:not(#m1y) body.calendar-page .calendar-currency{display:flex;align-items:center;gap:3px;font-size:11px}
  html:not(#m1y) body.calendar-page .calendar-currency .calendar-flag{width:16px!important;min-width:16px!important;max-width:16px!important;height:11px!important;max-height:11px!important;flex:0 0 16px!important}
  html:not(#m1y) body.calendar-page .calendar-dots{gap:2px}
  html:not(#m1y) body.calendar-page .calendar-dots i{width:6px;height:6px}
  html:not(#m1y) body.calendar-page .calendar-event-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;font-size:12.5px!important;line-height:1.25!important;font-weight:600}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-value{font-size:10.5px!important;color:#e6ebe2;padding-right:8px!important;text-align:left!important}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-value:before{content:attr(data-short) " "!important;display:inline!important;margin:0!important;font-size:10px!important;letter-spacing:0!important;text-transform:none!important;color:#8fa294;font-weight:500}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-value.is-actual{color:#43e892;font-weight:700}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-value.is-missing{display:none!important}
  html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row .calendar-guide-toggle{width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important}
  html:not(#m1y) body.calendar-page .calendar-detail-row:not([hidden]){margin:-1px 0 5px!important}
}
html:not(#m1y) body.calendar-page .calendar-table tr[hidden]{display:none!important}
html:not(#m1y) body.calendar-page .calendar-day-row .calendar-day-label{display:block;color:#f2f4ea!important;font:700 13px/1.3 Inter,system-ui,sans-serif!important}
html:not(#m1y) body.calendar-page .calendar-day-row .calendar-day-count{display:inline!important;margin-left:4px;font:500 12px Inter,system-ui,sans-serif!important;color:#b8c4b4!important}
html:not(#m1y) body.calendar-page .calendar-day-grid .tile-n{font-family:Inter,system-ui,sans-serif!important}
html:not(#m1y) body.calendar-page .calendar-table td.calendar-more{vertical-align:middle!important;line-height:0}
html:not(#m1y) body.calendar-page .calendar-guide-toggle .calendar-guide-arrow{display:block!important;margin:0!important;position:static!important}
html:not(#m1y) body.calendar-page .calendar-table .calendar-event-row td.calendar-more .calendar-guide-toggle{display:grid!important;margin:0 auto!important;align-self:center;transform:none!important;top:auto!important;translate:none!important}
/* Owner 2026-11-18: dropdown lists very dark blue with yellow text. */
html:not(#m1y) body.calendar-page .calendar-board select option{background:var(--site-personal-panel,#10241c);color:var(--site-personal-ink,#f3e3ac)}
/* Owner 2026-11-21: today's tile looks like the other days (weekday, date, "nov. (N)"), only on the gold background — no "Šodien" word. */
html:not(#m1y) body.calendar-page .calendar-day-tile.is-today .tile-today{display:none!important}
html:not(#m1y) body.calendar-page .calendar-day-tile.is-today .tile-weekday{font-size:13px}
html:not(#m1y) body.calendar-page .calendar-day-tile.is-today .tile-day{display:block}
html:not(#m1y) body.calendar-page .calendar-day-tile.is-today .tile-sub:before{content:none}
