/* Calendário Artoniano 1422 — isolado no portal do Oblitae. */
#portalDialog .portal-arton-nav{min-height:54px}
#portalDialog #artonianCalendarPanel{--arton-border:rgba(209,176,111,.21);--arton-gold:#dfbe79;--arton-muted:#b9b7b4;--arton-surface:#14161d;--arton-surface-2:#191b24;--arton-violet:#c9adf5;min-width:0}
#portalDialog .arton-app{display:grid;gap:22px;color:var(--ink);min-width:0}
#portalDialog .arton-head{position:relative;overflow:hidden;background:radial-gradient(ellipse at 83% 6%,rgba(184,137,72,.19),transparent 46%),linear-gradient(135deg,#191b24,#101116);border:1px solid var(--arton-border);border-radius:20px;padding:30px 32px 28px}
#portalDialog .arton-head::before{content:'✧';position:absolute;top:10%;right:5%;font:140px/1 Cinzel,serif;color:rgba(212,177,111,.08);pointer-events:none}
#portalDialog .arton-head-top,#portalDialog .arton-detail-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:center}
#portalDialog .arton-eyebrow{color:var(--arton-gold);text-transform:uppercase;font-size:.7rem;letter-spacing:.12em;font-weight:700}
#portalDialog .arton-year{font-size:.72rem;color:var(--arton-muted);letter-spacing:.05em}
#portalDialog .arton-head h2{margin:18px 0 13px;font:600 clamp(1.75rem,3vw,2.45rem)/1.22 Cinzel,serif;letter-spacing:-.02em}
#portalDialog .arton-head h2 em{font-style:normal;color:var(--arton-gold)}
#portalDialog .arton-head-intro{max-width:680px;line-height:1.75;font-size:.94rem;color:#d1d0d3;margin:0}
#portalDialog .arton-stats{display:flex;flex-wrap:wrap;gap:11px;margin-top:22px}
#portalDialog .arton-stats span{font-size:.75rem;border:1px solid rgba(209,176,111,.18);background:rgba(13,14,19,.56);padding:7px 11px;border-radius:999px;color:#d5d2c9}
#portalDialog .arton-stats strong{color:var(--arton-gold);font-size:.86rem}
#portalDialog .arton-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
#portalDialog .arton-switch{display:flex;background:#121318;border:1px solid var(--arton-border);border-radius:12px;padding:5px;gap:4px;max-width:100%;overflow-x:auto}
#portalDialog .arton-switch button{display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;min-height:43px;padding:10px 17px;background:transparent;border:1px solid transparent;border-radius:9px;font-size:.83rem;font-weight:700;color:#c7c4bd;cursor:pointer}
#portalDialog .arton-switch button:hover{color:#fff}
#portalDialog .arton-switch button.active{border-color:rgba(217,183,112,.48);background:#322a21;color:#f6ddb0}
#portalDialog .arton-calendar-id{font-size:.77rem;color:var(--arton-muted)}
#portalDialog .arton-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin:-6px 0 1px;padding:0 3px}
#portalDialog .arton-legend>span{display:inline-flex;align-items:center;gap:7px;color:#c2c0c3;font-size:.74rem}
#portalDialog .arton-mark{width:9px;height:9px;border-radius:50%;display:inline-block;flex:none}
#portalDialog .arton-mark.atlas,#portalDialog .arton-dotbar i.atlas{background:#e9cb85}
#portalDialog .arton-mark.master,#portalDialog .arton-dotbar i.master{background:#a8c6ff}
#portalDialog .arton-mark.complement,#portalDialog .arton-dotbar i.complement{background:#8e9a8b}
#portalDialog .arton-mark.nimb,#portalDialog .arton-dotbar i.nimb{background:#c5a2ff}
#portalDialog .arton-month-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.88fr);gap:17px;align-items:start}
#portalDialog .arton-month-main,#portalDialog .arton-day-details,#portalDialog .arton-season,#portalDialog .arton-filter-panel,#portalDialog .arton-year-intro,#portalDialog .arton-agenda-intro{background:var(--arton-surface);border:1px solid var(--arton-border);border-radius:17px;min-width:0}
#portalDialog .arton-month-main{padding:22px}
#portalDialog .arton-month-toolbar{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:25px}
#portalDialog .arton-month-title h3,#portalDialog .arton-day-details h3,#portalDialog .arton-season h3,#portalDialog .arton-year-intro h3,#portalDialog .arton-agenda-intro h3{font:600 1.4rem/1.28 Cinzel,serif;margin:6px 0;color:#e9d0a4}
#portalDialog .arton-month-title p{margin:3px 0 0;font-size:.78rem;color:var(--arton-muted)}
#portalDialog .arton-month-actions{display:flex;gap:6px;align-items:end;flex-wrap:wrap}
#portalDialog .arton-month-actions>button{width:43px;height:44px;background:#1c1d25;border:1px solid #4f473b;border-radius:10px;color:var(--arton-gold);font-size:1.17rem;cursor:pointer}
#portalDialog .arton-month-actions>button:disabled{opacity:.32;cursor:not-allowed}
#portalDialog .arton-month-actions>button:hover:not(:disabled){background:#2b261e;border-color:#aa8851}
#portalDialog .arton-month-select{font-size:.68rem;letter-spacing:.03em;display:grid;gap:3px;color:var(--arton-muted)}
#portalDialog .arton-month-select select,#portalDialog .arton-filter-panel select,#portalDialog .arton-filter-panel input{background:#0e1016;color:#e9e4dc;border:1px solid #524b41;border-radius:9px;padding:9px 12px;font:500 14px/1.35 Inter,sans-serif;min-height:44px}
#portalDialog .arton-month-select select{max-width:171px}
#portalDialog .arton-calendar{border:1px solid rgba(225,194,132,.17);padding:9px;border-radius:13px;background:linear-gradient(135deg,#121419,#101116)}
#portalDialog .arton-weekdays,#portalDialog .arton-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;align-items:stretch}
#portalDialog .arton-weekdays{margin-bottom:6px}
#portalDialog .arton-weekdays>span{display:grid;place-items:center;min-width:0;height:36px;font-size:.69rem;font-weight:700;color:#e2cb9e}
#portalDialog .arton-week-short{display:none}
#portalDialog .arton-date{height:clamp(66px,8.7vw,95px);min-width:0;padding:9px 7px;background:#1b1c23;border:1px solid rgba(204,181,126,.13);border-radius:10px;color:#e9e9ea;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;cursor:pointer;overflow:hidden}
#portalDialog .arton-date:hover{background:#28241f;border-color:rgba(223,190,121,.65)}
#portalDialog .arton-date.selected{background:linear-gradient(145deg,#40321f,#24201c);border-color:#d9b468;box-shadow:inset 0 0 0 1px rgba(213,172,87,.37)}
#portalDialog .arton-date.has-atlas:not(.selected){border-color:rgba(235,192,105,.55)}
#portalDialog .arton-date.has-master:not(.selected){border-color:rgba(168,198,255,.6)}
#portalDialog .arton-date.is-nimb{background:#251d36;border-color:#705898}
#portalDialog .arton-date.is-nimb.selected{background:#44305c;border-color:#d3a8ff}
#portalDialog .arton-date-number{font:600 .96rem/1 Cinzel,serif}
#portalDialog .arton-dotbar{display:flex;gap:3px;flex-wrap:wrap}
#portalDialog .arton-dotbar i{width:7px;height:7px;border-radius:50%;background:#9b978c}
#portalDialog .arton-date-preview{font-size:.62rem;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#d0c7b4;overflow-wrap:anywhere}
#portalDialog .arton-month-foot{font-size:.76rem;color:var(--arton-muted);margin-top:13px;line-height:1.6}
#portalDialog .arton-day-details{padding:22px;position:sticky;top:92px;max-height:calc(100dvh - 114px);overflow-y:auto;scrollbar-width:thin}
#portalDialog .arton-day-index{font-size:.73rem;color:var(--arton-muted)}
#portalDialog .arton-day-details h3{font-size:1.45rem;margin:15px 0 5px}
#portalDialog .arton-day-week{font-weight:700;color:#f0d7aa;font-size:.82rem;margin:0 0 15px}
#portalDialog .arton-detail-counter{border-top:1px solid var(--arton-border);margin:0;padding:14px 0 2px;color:var(--arton-muted);font-size:.82rem}
#portalDialog .arton-event{background:#101217;border:1px solid rgba(255,255,255,.09);border-radius:12px;padding:15px;margin-top:13px;overflow-wrap:anywhere}
#portalDialog .arton-event.is-atlas{border-left:3px solid #dfbe79}
#portalDialog .arton-event.is-master{border-left:3px solid #a8c6ff}
#portalDialog .arton-event.is-nimb{border-left:3px solid #c5a2ff}
#portalDialog .arton-event-top{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
#portalDialog .arton-badge{display:inline-flex;border:1px solid #676552;background:#2d2922;color:#e3d0a7;padding:3px 8px;font-size:.68rem;font-weight:700;border-radius:999px;line-height:1.4}
#portalDialog .arton-badge-atlas{background:#34291a;border-color:#9c7b3d;color:#ffe2a7}
#portalDialog .arton-badge-master{background:#1e2e45;border-color:#557caf;color:#c9defb}
#portalDialog .arton-badge-nimb{background:#30233c;border-color:#8568ac;color:#dac5ff}
#portalDialog .arton-badge-complement{background:#242a29;border-color:#5d7269;color:#c6d2c5}
#portalDialog .arton-event-category{font-size:.7rem;color:var(--arton-muted)}
#portalDialog .arton-event h4{font:600 .98rem/1.43 Cinzel,serif;color:#f2e5ce;margin:10px 0 8px;overflow-wrap:anywhere}
#portalDialog .arton-event-info{display:grid;gap:3px;font-size:.73rem;color:#c5bdaf}
#portalDialog .arton-event p{font-size:.82rem;line-height:1.68;color:#d4d1d0;margin:13px 0 0}
#portalDialog .arton-event .arton-event-origin{font-size:.74rem;color:#d4c8b8}
#portalDialog .arton-editor-note{border-left:2px solid #887449;padding-left:10px;font-size:.74rem!important;color:#bdb6a9!important}
#portalDialog .arton-convention{font-size:.77rem;color:#c9afd7;line-height:1.65}
#portalDialog .arton-nimb-detail{border-color:#8067ab;background:linear-gradient(180deg,#221a30,#17151d 35%)}
#portalDialog .arton-year-intro,#portalDialog .arton-agenda-intro{padding:21px 24px}
#portalDialog .arton-year-intro p,#portalDialog .arton-agenda-intro p{color:#ceccd0;font-size:.85rem;line-height:1.7;margin:5px 0 0}
#portalDialog .arton-content{min-width:0;display:grid;gap:16px}
#portalDialog .arton-season{padding:23px}
#portalDialog .arton-season-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid var(--arton-border)}
#portalDialog .arton-season-head h3{margin:0;font-size:1.2rem}
#portalDialog .arton-season-head span{color:var(--arton-muted);font-size:.75rem}
#portalDialog .arton-year-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#portalDialog .arton-year-card{border:1px solid rgba(213,179,111,.22);background:linear-gradient(145deg,#202027,#121318);padding:17px;border-radius:12px;color:#ddd8cd;text-align:left;display:grid;gap:8px;align-content:start;min-width:0;min-height:158px;cursor:pointer}
#portalDialog .arton-year-card:hover{border-color:var(--arton-gold);background:#30271e}
#portalDialog .arton-year-card strong{font:600 1.07rem Cinzel,serif;color:#f0ddb8;overflow-wrap:anywhere}
#portalDialog .arton-year-card>span:not(.arton-year-link){font-size:.73rem;color:var(--arton-muted)}
#portalDialog .arton-year-card .arton-year-num{font-size:.65rem;letter-spacing:.08em;text-transform:uppercase;color:var(--arton-gold)!important}
#portalDialog .arton-year-card .arton-year-link{font-size:.74rem;font-weight:700;color:var(--arton-gold);margin-top:auto}
#portalDialog .arton-year-nimb{background:#2b203a;border-color:#775b9c}
#portalDialog .arton-year-nimb strong,#portalDialog .arton-year-nimb .arton-year-link{color:#e3caff}
#portalDialog .arton-year-note{border-left:3px solid #7b6697;background:rgba(122,94,161,.15);padding:18px;border-radius:9px;color:#e2d5e8;line-height:1.65;font-size:.83rem}
#portalDialog .arton-filter-panel{padding:19px;display:grid;gap:13px}
#portalDialog .arton-filter-panel label{font-weight:700;color:#d6d1c6;font-size:.76rem;display:grid;gap:7px;min-width:0}
#portalDialog .arton-search input{font-size:16px;width:100%}
#portalDialog .arton-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#portalDialog .arton-filters select{width:100%;min-width:0;font-size:.82rem}
#portalDialog .arton-clear{color:var(--arton-gold);border:0;background:transparent;padding:4px;justify-self:end;cursor:pointer;font-size:.76rem;text-decoration:underline;text-underline-offset:3px}
#portalDialog .arton-agenda-summary{color:var(--arton-muted);font-size:.81rem;margin:3px 2px}
#portalDialog .arton-agenda-list{display:grid;gap:11px}
#portalDialog .arton-agenda-entry{display:grid;grid-template-columns:155px minmax(0,1fr);background:#15171e;border:1px solid var(--arton-border);border-radius:13px;overflow:hidden}
#portalDialog .arton-agenda-date{background:#211e1e;border-right:1px solid rgba(213,179,111,.17);padding:19px 16px;font:600 .85rem/1.45 Cinzel,serif;color:#e9cea0;overflow-wrap:anywhere}
#portalDialog .arton-agenda-date small{display:block;font:.72rem/1.55 Inter,sans-serif;color:var(--arton-muted);margin-top:8px}
#portalDialog .arton-agenda-body{padding:18px;min-width:0}
#portalDialog .arton-agenda-body h4{margin:10px 0 6px;font:600 1.05rem/1.5 Cinzel,serif;color:#f2e1c2}
#portalDialog .arton-agenda-place{font-size:.78rem;color:var(--arton-muted);margin:0 0 12px}
#portalDialog .arton-agenda-entry details{padding:10px 0;border-top:1px solid var(--arton-border);font-size:.82rem;line-height:1.65;color:#d1cbd0}
#portalDialog .arton-agenda-entry summary{cursor:pointer;color:var(--arton-gold);font-weight:700;min-height:31px}
#portalDialog .arton-agenda-entry details p{margin:9px 0;overflow-wrap:anywhere}
#portalDialog .arton-open-date{background:none;border:0;padding:6px 0 0;color:#efd69f;font-weight:700;cursor:pointer;font-size:.8rem}
#portalDialog .arton-load-more{justify-self:center;background:#24221c;border:1px solid #927c54;color:#f2dbb5;padding:13px 24px;border-radius:10px;cursor:pointer;font-weight:700}
#portalDialog .arton-empty{border:1px dashed #585148;border-radius:12px;padding:30px;text-align:center;color:var(--arton-muted)}
#portalDialog .arton-footer{border-top:1px solid var(--arton-border);font-size:.73rem;color:var(--arton-muted);line-height:1.85;padding:15px 2px 8px}
#portalDialog .arton-footer strong{color:#dfcba7}
#portalDialog .arton-loading{text-align:center;border:1px solid var(--arton-border);border-radius:16px;padding:48px 20px;background:var(--arton-surface);color:#e4c585}
#portalDialog .arton-error p{color:#ded1c3}
#portalDialog #artonianCalendarPanel :is(button,input,select,summary):focus-visible{outline:3px solid #f3d38b;outline-offset:3px}
@media(max-width:1100px){
  #portalDialog .arton-month-layout{grid-template-columns:1fr}
  #portalDialog .arton-day-details{position:static;max-height:none;overflow:visible}
  #portalDialog .arton-year-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  #portalDialog .arton-app{gap:15px}
  #portalDialog .arton-head{padding:23px 19px}
  #portalDialog .arton-head h2{font-size:1.8rem}
  #portalDialog .arton-calendar-id{display:none}
  #portalDialog .arton-month-main{padding:13px 10px}
  #portalDialog .arton-week-long{display:none}
  #portalDialog .arton-week-short{display:inline}
  #portalDialog .arton-calendar{padding:5px}
  #portalDialog .arton-grid,#portalDialog .arton-weekdays{gap:3px}
  #portalDialog .arton-date{height:73px;padding:6px 4px;gap:6px;border-radius:6px}
  #portalDialog .arton-date-preview{display:none}
  #portalDialog .arton-date-number{font-size:.93rem}
  #portalDialog .arton-year-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #portalDialog .arton-day-details,#portalDialog .arton-season,#portalDialog .arton-year-intro,#portalDialog .arton-agenda-intro{padding:18px}
  #portalDialog .arton-filters{grid-template-columns:1fr 1fr}
  #portalDialog .arton-filters label:last-child{grid-column:1/-1}
}
@media(max-width:470px){
  #portalDialog .arton-head{padding:21px 15px}
  #portalDialog .arton-head h2{font-size:1.5rem}
  #portalDialog .arton-month-actions{width:100%;justify-content:space-between}
  #portalDialog .arton-month-select{flex:1;min-width:0}
  #portalDialog .arton-month-select select{max-width:none;width:100%}
  #portalDialog .arton-switch{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  #portalDialog .arton-switch button{font-size:.73rem;gap:4px;padding:9px 4px;min-width:0;white-space:normal}
  #portalDialog .arton-date{height:59px}
  #portalDialog .arton-date-number{font-size:.83rem}
  #portalDialog .arton-dotbar{gap:2px}
  #portalDialog .arton-dotbar i{width:5px;height:5px}
  #portalDialog .arton-agenda-entry{grid-template-columns:1fr}
  #portalDialog .arton-agenda-date{border-right:0;border-bottom:1px solid var(--arton-border);padding:10px 14px}
  #portalDialog .arton-agenda-date small{display:inline;margin-left:8px}
  #portalDialog .arton-agenda-body{padding:15px}
  #portalDialog .arton-filters{grid-template-columns:1fr}
  #portalDialog .arton-filters label:last-child{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){#portalDialog .arton-app *{scroll-behavior:auto!important;transition:none!important}}
