:root{
      --bg:#f2f9f8;
      --panel:rgba(255,255,255,.92);
      --panel2:rgba(255,255,255,.97);
      --stroke:rgba(14,66,86,.16);
      --text:#123243;
      --muted:rgba(18,50,67,.72);
      --muted2:rgba(18,50,67,.55);
      --accent:#2f7cb6;
      --accent2:#6aa334;
      --good:#34d399;
      --warn:#fbbf24;
      --bad:#fb7185;
      --shadow:0 12px 36px rgba(15,45,61,.16);
      --radius:18px;
      --radius2:14px;
      --font:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";

      --sb-track:rgba(47,124,182,.10);
      --sb-thumb:rgba(47,124,182,.35);
      --sb-thumbHover:rgba(47,124,182,.52);
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    html.rr-overlay-open,
    body.rr-overlay-open{
      overflow:hidden;
      height:100%;
    }
    body{
      margin:0;
      min-height:100dvh;
      font-family:var(--font);
      color:var(--text);
      background:
        linear-gradient(180deg, #f5fbfa 0%, #eef7f6 100%),
        radial-gradient(1100px 640px at 10% 10%, rgba(47,124,182,.16), transparent 55%),
        radial-gradient(900px 660px at 85% 20%, rgba(124,179,66,.12), transparent 55%),
        radial-gradient(900px 700px at 40% 95%, rgba(56,189,248,.08), transparent 55%),
        var(--bg);
      background-repeat:no-repeat;
      background-attachment:fixed;
      overflow-x:hidden;
      overflow-y:auto;
    }
    @media (min-width: 1200px){
      .container{max-width:1600px}
    }
    :root{ color-scheme: light; }
    a{color:inherit}

    /* Scrollbars */
    .scroll{
      scrollbar-width:thin;
      scrollbar-color:var(--sb-thumb) var(--sb-track);
      -webkit-overflow-scrolling:touch;
    }
    .scroll::-webkit-scrollbar{width:12px;height:12px}
    .scroll::-webkit-scrollbar-track{background:var(--sb-track);border-radius:999px;margin:10px}
    .scroll::-webkit-scrollbar-thumb{
      background:var(--sb-thumb);
      border-radius:999px;
      border:3px solid rgba(0,0,0,0);
      background-clip:padding-box;
    }
    .scroll::-webkit-scrollbar-thumb:hover{background:var(--sb-thumbHover);background-clip:padding-box}

    .page{display:flex;flex-direction:column;min-height:100vh}
    .container{display:flex;flex-direction:column;min-height:100%;min-height:100dvh;max-width:none !important; width: 100%;}
    .app{flex:1;min-height:0;display:flex;align-items:flex-start;gap:14px;padding:12px;width:100%;max-width:none}

    /* Sidebar */
    .sidebar{
      width:400px;min-width:300px;max-width:400px;
      flex:0 0 400px;
      height:var(--rr-calendar-column-height, auto);
      max-height:var(--rr-calendar-column-height, none);
      background:linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
      border:1px solid var(--stroke);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      overflow:hidden;
      min-height:0;
      display:flex;flex-direction:column;
    }
    .sb-header{
      padding:16px 16px 12px;
      border-bottom:1px solid var(--stroke);
      display:flex;align-items:center;justify-content:space-between;gap:12px;
    }
    .brand{display:flex;align-items:center;gap:10px;min-width:0}
    .brand h1{margin:0;font-size:20px;letter-spacing:.2px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .sb-actions{display:flex;gap:8px}
    .iconbtn{
      width:38px;height:38px;border-radius:12px;
      border:1px solid rgba(18,50,67,.22);
      background:rgba(255,255,255,.26);
      color:var(--text);
      display:grid;place-items:center;
      cursor:pointer;
      transition:.15s transform,.15s background,.15s border-color,.15s box-shadow;
      user-select:none;
      box-shadow:0 0 0 1px rgba(255,255,255,.34) inset;
    }
    .iconbtn svg{width:18px;height:18px;fill:currentColor}
    .iconbtn:hover{
      transform:translateY(-1px);
      background:rgba(255,255,255,.42);
      border-color:rgba(18,50,67,.34);
      box-shadow:0 0 0 1px rgba(255,255,255,.55) inset, 0 6px 14px rgba(11,22,35,.10);
    }
    .iconbtn:focus-visible{
      outline:none;
      border-color:rgba(56,189,248,.48);
      box-shadow:0 0 0 1px rgba(255,255,255,.55) inset, 0 0 0 4px rgba(56,189,248,.16);
    }
    .iconbtn:active{transform:translateY(0)}
    .search{padding:12px 16px 8px}
    .search input{
      width:100%;
      padding:11px 12px 11px 40px;
      border-radius:14px;
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.58);
      outline:none;
      color:var(--text);
    }
    .search input::placeholder{color:var(--muted2)}
    .search .mag{position:relative}
    .search .mag:before{
      content:"";
      position:absolute;left:13px;top:50%;
      transform:translateY(-50%);
      width:18px;height:18px;opacity:.9;
      background:
        radial-gradient(circle at 45% 45%, transparent 6px, rgba(18,50,67,.58) 6px, rgba(18,50,67,.58) 7px, transparent 7px),
        linear-gradient(45deg, rgba(18,50,67,.58), rgba(18,50,67,.58));
      background-size:18px 18px, 8px 2px;
      background-position:0 0, 13px 14px;
      background-repeat:no-repeat;
      filter:drop-shadow(0 1px 2px rgba(255,255,255,.35));
      pointer-events:none;
      z-index:1;
    }
    .rr-clearable-filter{
      position:relative;
      display:block;
      width:100%;
      min-width:0;
    }
    .rr-clearable-filter > input{
      width:100%;
      padding-right:42px !important;
    }
    .rr-clearable-filter > input[type="number"]{
      appearance:textfield;
      -moz-appearance:textfield;
    }
    .rr-clearable-filter > input[type="number"]::-webkit-inner-spin-button,
    .rr-clearable-filter > input[type="number"]::-webkit-outer-spin-button{
      appearance:none;
      margin:0;
    }
    .rr-clearable-filter__button{
      position:absolute;
      top:50%;
      right:6px;
      transform:translateY(-50%);
      display:grid;
      place-items:center;
      width:30px;
      height:30px;
      padding:0;
      border:0;
      border-radius:999px;
      background:transparent;
      color:var(--muted);
      font:700 22px/1 system-ui,sans-serif;
      cursor:pointer;
    }
    .rr-clearable-filter__button:hover{
      background:rgba(18,50,67,.09);
      color:var(--text);
    }
    .rr-clearable-filter__button:focus-visible{
      outline:2px solid rgba(56,189,248,.65);
      outline-offset:1px;
    }
    .rr-clearable-filter__button[hidden]{display:none}

    .search-actions{
      display:flex;
      gap:10px;
      align-items:center;
      padding:0 16px 12px;
    }
    .btn.filter-btn{
      display:flex;
      align-items:center;
      gap:8px;
      padding:9px 12px;
      min-width:auto;
    }
    .btn.filter-btn svg{
      width:16px;
      height:16px;
      fill:currentColor;
    }
    .multi-switch{
      flex:1;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      padding:9px 12px;
      border-radius:12px;
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.72);
    }
    .multi-switch .label{
      display:flex;
      align-items:center;
      gap:6px;
      font-size:12px;
      font-weight:900;
      color:var(--text);
    }

    /* Filters */
    .filters{
      padding:0 16px 12px;
      border-bottom:1px solid rgba(255,255,255,.08);
      display:flex;flex-direction:column;gap:10px;
    }
    .frow{display:flex;gap:10px;flex-wrap:wrap}
    .frow .field{margin:0}
    .field{display:flex;flex-direction:column;gap:6px}
    .field label{font-size:11px;color:var(--muted);font-weight:800;letter-spacing:.2px}
    .field input,.field select{
      padding:10px 11px;border-radius:14px;
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.84);
      color:var(--text);
      outline:none;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
      transition:.15s border-color,.15s box-shadow;
      min-width:0;
    }
    .field input:focus,.field select:focus{
      border-color:rgba(110,231,255,.45);
      box-shadow:0 0 0 4px rgba(110,231,255,.12);
    }
    select{
      appearance:none;
      background-image:
        linear-gradient(45deg, transparent 50%, rgba(255,255,255,.75) 50%),
        linear-gradient(135deg, rgba(255,255,255,.75) 50%, transparent 50%);
      background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
      background-size:6px 6px,6px 6px;
      background-repeat:no-repeat;
      padding-right:36px;
    }
    select option{background:#f7fbfb;color:var(--text)}
    .chipbar{display:flex;gap:8px;flex-wrap:wrap}
    .chip{
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.8);
      padding:7px 10px;border-radius:999px;
      font-size:12px;font-weight:800;color:var(--text);
      cursor:pointer;user-select:none;
      transition:.12s transform,.12s background,.12s border-color;
    }
    .chip:hover{transform:translateY(-1px);background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.22)}
    .chip.on{
      border-color:rgba(110,231,255,.45);
      background:linear-gradient(135deg, rgba(110,231,255,.14), rgba(167,139,250,.10));
      color:var(--text);
    }
    .subnote{font-size:11px;color:var(--muted2);margin-top:-4px}

    .rooms{
      padding:8px 10px 12px;
      overflow-x:hidden;
      overflow-y:auto;
      flex:1 1 auto;
      min-height:0;
      max-height:none;
      overscroll-behavior:contain;
      scrollbar-gutter:stable both-edges;
      border-top:1px solid rgba(18,50,67,.08);
      background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
    }
    .room-card{
      position:relative;
      display:flex;gap:12px;align-items:center;
      padding:10px;border-radius:16px;
      border:1px solid transparent;
      background:rgba(255,255,255,.05);
      margin:8px 6px;
      cursor:pointer;
      transition:.15s background,.15s border-color,.15s box-shadow;
    }
    .room-card:hover{
      background:rgba(255,255,255,.075);
      box-shadow:0 6px 14px rgba(11,22,35,.08);
    }
    .room-card.active{
      border-color:rgba(110,231,255,.55);
      background:linear-gradient(135deg, rgba(110,231,255,.14), rgba(167,139,250,.10));
    }
    .room-card.room-card-private{
      border-color:rgba(245,158,11,.28);
      background:linear-gradient(135deg, rgba(245,158,11,.10), rgba(255,255,255,.045));
    }
    .room-card.room-card-private.active{
      border-color:rgba(245,158,11,.48);
      background:linear-gradient(135deg, rgba(245,158,11,.16), rgba(110,231,255,.10));
    }
    .room-private-badge{
      display:inline-flex;align-items:center;gap:4px;
      width:max-content;margin-top:4px;padding:3px 7px;
      border-radius:999px;border:1px solid rgba(245,158,11,.28);
      background:rgba(245,158,11,.10);color:#92400e;
      font-size:11px;font-weight:800;line-height:1.2;
    }
    .room-private-badge svg{width:13px;height:13px;display:block;stroke:currentColor}
    .room-card.is-draggable{
      cursor:grab;
    }
    .room-card.is-dragging{
      opacity:.45;
      cursor:grabbing;
    }
    .room-card.drop-before::before,
    .room-card.drop-after::after{
      content:"";
      position:absolute;
      left:10px;
      right:10px;
      height:0;
      border-top:2px dashed rgba(47,124,182,.95);
      pointer-events:none;
      z-index:2;
    }
    .room-card.drop-before::before{top:-6px}
    .room-card.drop-after::after{bottom:-6px}
    .thumb{
      width:62px;height:62px;border-radius:16px;
      border:1px solid var(--stroke);
      background:linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.06));
      position:relative;overflow:hidden;flex:none;
    }
    .thumb img{width:100%;height:100%;object-fit:cover;display:block;opacity:.95}
    .thumb:after{
      content:"";
      position:absolute;inset:-40%;
      background:
        radial-gradient(circle at 30% 30%, rgba(110,231,255,.6), transparent 45%),
        radial-gradient(circle at 70% 60%, rgba(167,139,250,.55), transparent 52%),
        radial-gradient(circle at 40% 80%, rgba(52,211,153,.45), transparent 55%);
      filter:blur(2px);
      pointer-events:none;
      opacity:.55;
    }
    .room-meta{min-width:0;flex:1}
    .room-title{font-weight:750;font-size:13px;margin:0 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .room-sub{margin:0;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:bold;font-style:italic;}
    .room-stats{margin:2px 0 0;font-size:12px;color:rgba(18,50,67,.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .pillbar{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
    .pill{
      font-size:11px;color:#123243;
      border:1px solid rgba(18,50,67,.24);
      background:linear-gradient(135deg, rgba(110,231,255,.16), rgba(167,139,250,.12));
      padding:4px 8px;border-radius:999px;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.32);
    }
    .room-cta{display:flex;flex-direction:column;gap:8px;align-items:stretch;flex:none}
    .btn{
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.06);
      color:var(--text);
      padding:9px 10px;
      border-radius:12px;
      cursor:pointer;
      font-weight:700;
      font-size:12px;
      transition:.15s background,.15s border-color,.15s box-shadow;
      user-select:none;
      text-align:center;
      min-width:96px;
    }
    .btn:hover{
      background:rgba(255,255,255,.11);
      border-color:rgba(18,50,67,.34);
      box-shadow:0 0 0 1px rgba(255,255,255,.5) inset, 0 4px 10px rgba(11,22,35,.10);
    }
    .btn:active{box-shadow:0 0 0 1px rgba(255,255,255,.4) inset}
    .btn.primary{
      border-color:rgba(110,231,255,.35);
      background:linear-gradient(135deg, rgba(110,231,255,.16), rgba(167,139,250,.12));
    }
    .btn.danger{
      border-color:rgba(251,113,133,.35);
      background:linear-gradient(135deg, rgba(251,113,133,.14), rgba(255,255,255,.04));
    }
    .btn.ghost{
      background:transparent;
      border-color:var(--stroke);
      color:var(--text);
    }
    .btn:disabled{opacity:.5;cursor:not-allowed;transform:none}

    /* Main */
    .main{
      flex:1;min-width:0;
      align-self:flex-start;
      background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.05));
      border:1px solid var(--stroke);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      overflow:hidden;
      min-height:0;
      display:flex;flex-direction:column;
    }
    .topbar{
      padding:14px 16px 12px;
      border-bottom:1px solid var(--stroke);
      display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;
    }
    .topbar-left{display:flex;gap:10px;align-items:center;min-width:0;flex:1 1 420px;max-width:100%}
    .titleblock{min-width:0;flex:1 1 auto}
    .titleblock h2{margin:0;font-size:14px;letter-spacing:.2px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .titleblock .date-trigger{
      display:inline-flex;
      align-items:center;
      gap:6px;
      max-width:100%;
      border:1px solid transparent;
      border-radius:10px;
      background:transparent;
      color:var(--text);
      cursor:pointer;
      font:inherit;
      padding:4px 8px;
      margin-left:-8px;
      transition:.15s background,.15s border-color,.15s transform;
    }
    .titleblock .date-trigger::after{
      content:"📅";
      font-size:13px;
      opacity:.9;
      flex:0 0 auto;
    }
    .titleblock .date-trigger:hover{
      background:rgba(255,255,255,.08);
      border-color:rgba(255,255,255,.18);
      transform:translateY(-1px);
    }
    .titleblock .date-trigger:active{transform:translateY(0)}
    .titleblock .date-trigger:focus-visible{
      outline:none;
      border-color:rgba(110,231,255,.7);
      box-shadow:0 0 0 3px rgba(110,231,255,.22);
    }
    .titleblock .date-trigger-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .titleblock p{margin:2px 0 0;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .topbar-right{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
    .seg{
      display:flex;border:1px solid var(--stroke);
      border-radius:14px;overflow:hidden;background:rgba(255,255,255,.78);
    }
    .seg button{
      padding:9px 12px;border:0;background:transparent;
      color:var(--muted);cursor:pointer;font-weight:900;font-size:12px;
      transition:.15s background,.15s color,.15s box-shadow;
    }
    .seg button.active{
      color:var(--text);
      background:linear-gradient(180deg, rgba(110,231,255,.26), rgba(167,139,250,.18));
      box-shadow:inset 0 0 0 1px rgba(47,124,182,.25), 0 2px 10px rgba(47,124,182,.16);
    }
    .seg button:not(.active):hover{
      background:rgba(255,255,255,.2);
      color:rgba(18,50,67,.82);
    }
    .hint{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}
    .dot{width:9px;height:9px;border-radius:999px;background:linear-gradient(135deg,var(--accent),var(--accent2));box-shadow:0 0 0 4px rgba(110,231,255,.15)}
    .hint .split-note{color:var(--muted2);font-weight:600}
    .kbd{
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-size:11px;padding:2px 6px;border:1px solid rgba(255,255,255,.18);
      border-bottom-color:rgba(255,255,255,.10);
      border-radius:8px;background:rgba(255,255,255,.06);color:var(--text);
    }

    /* Calendar(s) */
    .calendar-wrap{
      position:relative;flex:1;overflow:auto;min-height:0;
      background:
        linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.015)),
        radial-gradient(900px 500px at 10% 0%, rgba(110,231,255,.09), transparent 55%),
        radial-gradient(900px 500px at 85% 0%, rgba(167,139,250,.07), transparent 55%);
      background-repeat:no-repeat;
      background-attachment:fixed;
    }
    .calendar-xscroll-top{
      display:none;
      overflow-x:auto;
      overflow-y:hidden;
      height:16px;
      border-bottom:1px solid rgba(255,255,255,.12);
      background:rgba(255,255,255,.55);
      scrollbar-width:thin;
      scrollbar-color:var(--sb-thumb) var(--sb-track);
    }
    .calendar-xscroll-top.visible{display:block}
    .calendar-xscroll-top::-webkit-scrollbar{height:12px}
    .calendar-xscroll-top::-webkit-scrollbar-track{background:var(--sb-track);border-radius:999px;margin:2px 10px}
    .calendar-xscroll-top::-webkit-scrollbar-thumb{
      background:var(--sb-thumb);
      border-radius:999px;
      border:2px solid rgba(0,0,0,0);
      background-clip:padding-box;
    }
    .calendar-xscroll-inner{height:1px}
    .cal-split{
      display:flex;
      gap:10px;
      padding:10px;
      min-width: 0;
      align-items:flex-start;
    }
    .cal-panel{
      flex:1;
      min-width: 0;
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.72);
      border-radius:18px;
      overflow:visible;
    }
    .calendar{
      position:relative;
      min-width:var(--cal-min-width, 0px);
    }
    .calendar{
      position:relative;
      display:flex;
      flex-direction:column;
    }
    .calendar-xscroll-body{
      overflow-x:auto;
      overflow-y:hidden;
    }
    .calendar-content{
      position:relative;
      min-width:var(--cal-min-width, 0px);
    }
    .cal-compact-wrap{
      display:flex;
      flex-direction:column;
      gap:10px;
      padding:10px;
      min-width:0;
    }
    .cal-compact-row{
      border:1px solid rgba(255,255,255,.14);
      border-radius:14px;
      overflow:hidden;
      background:rgba(0,0,0,.12);
      display:grid;
      grid-template-columns:200px minmax(0,1fr);
      min-height:72px;
    }
    .cal-compact-room{
      border-right:1px solid rgba(255,255,255,.12);
      padding:10px 12px;
      display:flex;
      flex-direction:column;
      justify-content:center;
      gap:2px;
      background:rgba(255,255,255,.05);
    }
    .cal-compact-room .name{font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .cal-compact-room .meta{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .cal-compact-track{
      position:relative;
      background:rgba(255,255,255,.35);
      min-height:72px;
    }
    .cal-compact-track .hourline{position:absolute;top:0;bottom:0;width:1px;background:rgba(255,255,255,.08)}
    .cal-compact-track .hourlabel{position:absolute;top:4px;transform:translateX(-50%);font-size:10px;color:var(--muted2);pointer-events:none}
    .compact-block{
      position:absolute;
      top:24px;
      height:36px;
      border-radius:10px;
      border:1px solid rgba(255,255,255,.18);
      background:linear-gradient(135deg, rgba(110,231,255,.20), rgba(167,139,250,.16));
      box-shadow:0 6px 16px rgba(0,0,0,.2);
      padding:6px 8px;
      overflow:hidden;
      cursor:pointer;
      display:flex;
      align-items:center;
      gap:8px;
      font-size:11px;
      font-weight:800;
      white-space:nowrap;
    }
    .compact-block.prov{border-style:dashed;border-color:rgba(251,191,36,.34);background:linear-gradient(135deg, rgba(251,191,36,.18), rgba(255,255,255,.04));}
    .compact-block.def{border-color:rgba(251,113,133,.3);background:linear-gradient(135deg, rgba(251,113,133,.14), rgba(255,255,255,.04));}
    .compact-block.cancelled{
      border:2px dashed rgba(100,116,139,.62);
      background:repeating-linear-gradient(135deg, rgba(241,245,249,.96) 0 8px, rgba(226,232,240,.96) 8px 16px);
      color:#475569;
      opacity:.86;
    }
    .compact-selection{
      position:absolute;
      top:24px;
      height:36px;
      border-radius:10px;
      border:1px dashed rgba(110,231,255,.52);
      background:rgba(110,231,255,.16);
      box-shadow:0 6px 16px rgba(0,0,0,.22);
      pointer-events:none;
      z-index:2;
    }
    .cal-compact-track .drag-preview-label{
      top:8px;
      left:8px;
      z-index:3;
    }
    .cal-panel .panel-head{
      padding:10px 12px;
      display:flex;align-items:center;justify-content:space-between;gap:10px;
      border-bottom:1px solid rgba(255,255,255,.12);
      background:rgba(255,255,255,.06);
    }
    .panel-head .pname{
      font-weight:950;font-size:12px;letter-spacing:.2px;
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    }
    .panel-head .pmeta{
      font-size:11px;color:var(--muted);
      white-space:nowrap;
    }
    .panel-head .panel-remove{
      width:30px;
      height:30px;
      min-width:30px;
      padding:0;
      display:inline-grid;
      place-items:center;
      border:1px solid rgba(17,64,89,.18);
      border-radius:999px;
      background:rgba(255,255,255,.72);
      color:#315469;
      font-size:20px;
      line-height:1;
      cursor:pointer;
      transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
    }
    .panel-head .panel-remove:hover,
    .panel-head .panel-remove:focus-visible{
      background:#fff0f1;
      border-color:rgba(225,55,75,.36);
      color:#d92d45;
      transform:scale(1.04);
      outline:none;
    }
    .rr-minute-time-input{
      width:100%;
      font-variant-numeric:tabular-nums;
      letter-spacing:.03em;
    }
    .rr-series-scope-modal .rr-series-scope-copy p{
      margin:0;
      line-height:1.55;
      color:var(--text);
    }
    .rr-series-scope-actions{
      display:flex;
      flex-wrap:wrap;
      justify-content:flex-end;
      gap:10px;
    }
    @media (max-width:720px){
      .rr-series-scope-actions .btn{width:100%;}
    }
    .cal-head{
      position:sticky;top:0;z-index:6;
      background:rgba(237,246,245,.96);
      backdrop-filter: blur(10px);
      border-bottom:1px solid rgba(255,255,255,.14);
    }
    .cal-grid-head{
      display:grid;
      grid-template-columns: 74px repeat(var(--cols, 7), minmax(120px, 1fr));
      align-items:stretch;
    }
    .corner{padding:10px 10px;color:var(--muted2);font-size:11px}
    .daycell{
      padding:10px 10px;border-left:1px solid rgba(255,255,255,.08);
      display:flex;flex-direction:column;gap:2px;
    }
    .daycell .dow{font-size:12px;color:var(--muted);font-weight:900}
    .daycell .date{font-size:12px;color:var(--text);font-weight:800}
    .daycell.holiday{
      background:linear-gradient(135deg, rgba(251,191,36,.12), rgba(255,255,255,.02));
      border-left:1px solid rgba(251,191,36,.20);
    }
    .daycell .hname{
      margin-top:4px;
      font-size:11px;
      color:rgba(251,191,36,.88);
      font-weight:900;
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    }

    .cal-body{
      position:relative;display:grid;
      grid-template-columns: 74px repeat(var(--cols, 7), minmax(120px, 1fr));
    }
    .timecol{
      position:relative;border-right:1px solid rgba(255,255,255,.08);
      background:rgba(255,255,255,.65);
    }
    .time-label{
      position:absolute;left:10px;transform:translateY(-50%);
      font-size:11px;color:var(--muted2);letter-spacing:.2px;white-space:nowrap;
    }
    .time-label.is-start{transform:none}
    .time-label.is-end{transform:translateY(-100%)}
    .daycol{
      position:relative;border-left:1px solid rgba(18,50,67,.14);
      background:rgba(255,255,255,.35);
    }
    .rowline{
      position:absolute;left:0;right:0;height:1px;
      background:rgba(18,50,67,.16);
      pointer-events:none;
    }
    .halfline{
      position:absolute;left:0;right:0;height:1px;
      background:rgba(18,50,67,.08);
      pointer-events:none;
    }

    .block{
      position:absolute;left:10px;right:10px;
      border-radius:14px;
      border:1px solid rgba(18,50,67,.14);
      background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,250,252,.91));
      box-shadow:0 10px 18px rgba(15,23,42,.10), 0 3px 8px rgba(15,23,42,.06);
      padding:10px 10px;
      cursor:pointer;overflow:hidden;
      user-select:none;
      backdrop-filter:blur(8px);
    }
    .block .btitle{font-weight:950;font-size:12px;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.block .btitle .btitle-link{color:inherit;text-decoration:underline;text-underline-offset:2px}
.block .btitle .btitle-link:hover{opacity:.9}
    .block .bmeta{
      margin:0;font-size:11px;color:var(--text);
      display:flex;gap:10px;flex-wrap:wrap;
    }
    .badge{
      display:inline-flex;align-items:center;gap:7px;
      border:1px solid rgba(18,50,67,.14);
      background:rgba(255,255,255,.88);
      padding:3px 8px;border-radius:999px;font-weight:900;font-size:11px;
      color:var(--text);
      box-shadow:0 1px 2px rgba(15,23,42,.05);
    }
    .badge.def{border-color:rgba(251,113,133,.32);background:rgba(255,241,244,.95);color:var(--text)}
    .badge.prov{border-color:rgba(251,191,36,.34);background:rgba(255,249,230,.96);color:var(--text)}

    .block.prov{
      border-style:solid;
      border-color:rgba(251,191,36,.34);
      background:linear-gradient(180deg, rgba(255,252,240,.96), rgba(255,248,221,.94));
    }
    .block.def{
      border-color:rgba(251,113,133,.34);
      background:linear-gradient(180deg, rgba(255,248,250,.96), rgba(255,241,244,.94));
    }
    .block.cancelled{
      z-index:1;
      border:2px dashed rgba(100,116,139,.72);
      background:repeating-linear-gradient(135deg, rgba(241,245,249,.96) 0 10px, rgba(226,232,240,.96) 10px 20px);
      color:#475569;
      opacity:.88;
      box-shadow:0 6px 12px rgba(15,23,42,.08);
    }
    .block.cancelled .bmeta{color:#64748b}
    .badge.cancelled{border-color:rgba(100,116,139,.45);background:rgba(248,250,252,.96);color:#475569}
    .block.mine{
      outline:2px solid rgba(110,231,255,.22);
      outline-offset:0;
    }
    .block.is-selected{
      outline:2px solid rgba(56,189,248,.95);
      box-shadow:0 0 0 2px rgba(56,189,248,.25), 0 14px 24px rgba(15,23,42,.16);
    }
    .block .resize-handle{
      position:absolute;left:8px;right:8px;height:4px;
      border-radius:999px;background:rgba(56,189,248,.88);
      opacity:0;pointer-events:none;
    }
    .block .resize-handle.top{top:2px;cursor:ns-resize}
    .block .resize-handle.bottom{bottom:2px;cursor:ns-resize}
    .block.is-selected .resize-handle{opacity:1;pointer-events:auto}
    .selection{
      position:absolute;left:10px;right:10px;
      border-radius:14px;
      border:1px dashed rgba(110,231,255,.40);
      background:rgba(110,231,255,.08);
      box-shadow:0 6px 18px rgba(0,0,0,.16);
      pointer-events:none;
      box-shadow:0 6px 16px rgba(0,0,0,.22);
    }
    .drag-preview-label{
      position:absolute;
      z-index:4;
      left:14px;
      top:8px;
      display:inline-flex;
      align-items:center;
      gap:8px;
      border-radius:999px;
      border:1px solid rgba(110,231,255,.42);
      background:rgba(7,11,21,.75);
      color:rgba(232,247,255,.94);
      padding:3px 10px;
      font-size:11px;
      font-weight:800;
      letter-spacing:.1px;
      pointer-events:none;
      box-shadow:0 6px 16px rgba(0,0,0,.22);
    }
    .block.drag-origin{
      opacity:.35;
      z-index:2;
    }
    .block.drag-target-preview{
      z-index:3;
      pointer-events:none;
      opacity:.9;
      border-style:dashed;
      border-color:rgba(56,189,248,.9);
      background:linear-gradient(135deg, rgba(56,189,248,.18), rgba(167,139,250,.16));
      box-shadow:0 0 0 2px rgba(56,189,248,.22), 0 10px 28px rgba(0,0,0,.22);
    }

    /* Blockers overlay */
    .blocker{
      position:absolute;left:0;right:0;
      background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 8px, rgba(0,0,0,.06) 8px 16px),
        rgba(251,113,133,.09);
      border-top:1px solid rgba(251,113,133,.18);
      border-bottom:1px solid rgba(251,113,133,.18);
      pointer-events:none;
    }
    .blocker .blabel{
      position:absolute;left:10px;top:8px;
      font-size:11px;font-weight:950;color:var(--text);
      background:rgba(255,255,255,.58);
      border:1px solid rgba(255,255,255,.12);
      padding:4px 8px;border-radius:999px;
      max-width:calc(100% - 20px);
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    }

    /* Month view */
    .month-wrap{padding:14px}
    .month-grid{
      display:grid;
      grid-template-columns: repeat(7, minmax(140px, 1fr));
      gap:10px;
      min-width: 1040px;
    }
    .mday{
      border:1px solid rgba(255,255,255,.12);
      background:rgba(255,255,255,.65);
      border-radius:16px;
      padding:10px;
      min-height:118px;
      position:relative;
      overflow:hidden;
    }
    .mday.out{opacity:.5;background:rgba(0,0,0,.06)}
    .mday.holiday{
      border-color:rgba(251,191,36,.22);
      background:linear-gradient(135deg, rgba(251,191,36,.10), rgba(0,0,0,.10));
    }
    .mday .md-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;gap:10px}
    .mday .md-top strong{font-size:12px;letter-spacing:.2px}
    .mholiday{
      font-size:11px;font-weight:900;color:rgba(251,191,36,.90);
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    }
    .mchip{
      display:flex;align-items:center;gap:8px;
      border:1px solid rgba(255,255,255,.14);
      background:linear-gradient(135deg, rgba(110,231,255,.12), rgba(167,139,250,.08));
      border-radius:14px;
      padding:7px 9px;
      margin-top:8px;
      cursor:pointer;
    }
    .mchip .t{font-size:12px;font-weight:900;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
    .mchip .s{font-size:11px;color:var(--muted);white-space:nowrap}
    .mchip.locked{background:rgba(255,255,255,.05)}
    .mchip.cancelled{
      border:1px dashed rgba(100,116,139,.58);
      background:repeating-linear-gradient(135deg, rgba(241,245,249,.96) 0 7px, rgba(226,232,240,.96) 7px 14px);
      color:#475569;
      opacity:.86;
    }
    .mchip.cancelled .t,.mchip.cancelled .s{color:#475569}

    /* Optional: interne Bucket-Farbe – wird serverseitig nur für Admins geliefert. */
    .block.rr-bucket-colored,
    .compact-block.rr-bucket-colored,
    .mchip.rr-bucket-colored{
      background:var(--rr-event-bucket-color) !important;
      border-color:var(--rr-event-bucket-color) !important;
      border-style:solid !important;
      color:var(--rr-event-bucket-text) !important;
    }
    .block.rr-bucket-colored .btitle,
    .block.rr-bucket-colored .btitle-link,
    .block.rr-bucket-colored .bmeta,
    .mchip.rr-bucket-colored .t,
    .mchip.rr-bucket-colored .s{
      color:var(--rr-event-bucket-text) !important;
    }
    .block.rr-bucket-colored .badge{
      color:var(--rr-event-bucket-text) !important;
      background:var(--rr-event-bucket-badge-bg) !important;
      border-color:var(--rr-event-bucket-badge-border) !important;
    }

    .madd{
      position:absolute;right:10px;bottom:10px;
      width:34px;height:34px;border-radius:14px;
      border:1px solid rgba(110,231,255,.35);
      background:linear-gradient(135deg, rgba(110,231,255,.16), rgba(167,139,250,.12));
      cursor:pointer;display:grid;place-items:center;font-weight:950;
    }

    /* Overlay / Modal */
    .overlay{
      position:fixed;inset:0;
      background:rgba(18,50,67,.32);
      backdrop-filter: blur(10px);
      display:none;
      align-items:center;justify-content:center;
      padding:18px;z-index:50;
    }
    .overlay.show{display:flex}
    .modal{
      width:min(980px, 96vw);
      border-radius:22px;
      border:1px solid rgba(255,255,255,.18);
      background:rgba(249,252,252,.98);
      box-shadow:0 20px 60px rgba(0,0,0,.60);
      overflow:hidden;position:relative;
      display:flex;flex-direction:column;
      max-height:calc(100vh - 36px);
    }
    .modal::before{
      content:"";
      position:absolute;inset:-2px;
      background:
        radial-gradient(700px 420px at 10% 0%, rgba(110,231,255,.10), transparent 55%),
        radial-gradient(700px 420px at 90% 0%, rgba(167,139,250,.10), transparent 55%);
      pointer-events:none;opacity:.9;
    }
    .modal > *{position:relative;z-index:1}
    .modal-head{
      display:flex;align-items:center;justify-content:space-between;gap:12px;
      padding:14px 16px;
      border-bottom:1px solid rgba(255,255,255,.14);
      background:rgba(255,255,255,.06);
    }
    .modal-head .mh-left{display:flex;gap:10px;align-items:center;min-width:0}
    .backbtn{
      width:40px;height:40px;border-radius:14px;
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.06);
      cursor:pointer;display:grid;place-items:center;
    }
    .modal-title{min-width:0}
    .modal-title h3{margin:0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .modal-title p{margin:2px 0 0;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

    .modal-body{
      padding:16px;
      display:grid;
      grid-template-columns: 1.1fr .9fr;
      gap:14px;
      background:rgba(255,255,255,.58);
      overflow:auto;
      flex:1;
    }
    #overlay .modal{
      width:min(1120px, 96vw);
    }
    #overlay .modal-body{
      padding:20px;
      grid-template-columns:1fr;
      gap:16px;
    }
    #overlay .modal-body > div{
      width:100%;
      max-width:980px;
    }
    #overlay .modal-body .field label,
    #overlay .modal-body .toggle span,
    #overlay .modal-body .option-group label,
    #overlay .modal-body .panel .row,
    #overlay .modal-body .small,
    #overlay .modal-body .fileitem,
    #overlay .modal-body .room-option{
      font-size:14px;
    }
    #overlay .modal-body .field input,
    #overlay .modal-body .field select,
    #overlay .modal-body .field textarea{
      font-size:15px;
      padding:12px 13px;
    }
    #overlay .modal-body .panel h4,
    #overlay .modal-body .section-head{
      font-size:16px;
    }
    .field textarea{min-height:110px;resize:vertical}
    .grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
    .section{
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.72);
      border-radius:16px;
      padding:12px;
      display:flex;
      flex-direction:column;
      gap:12px;
      margin-bottom:12px;
    }
    .section-head{
      display:flex;
      align-items:center;
      gap:8px;
      font-size:12px;
      font-weight:950;
      color:var(--text);
      margin-bottom:2px;
    }
    .help-tip{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:16px;
      height:16px;
      border-radius:50%;
      border:1px solid rgba(18,50,67,.35);
      background:rgba(255,255,255,.72);
      font-size:11px;
      font-weight:900;
      color:#123243;
      margin-left:6px;
      cursor:help;
      position:relative;
      flex:none;
      box-shadow:0 1px 3px rgba(15,23,42,.15);
    }
    .help-tip::before{
      content:"";
      position:absolute;
      opacity:0;
      transition:opacity .12s ease;
      width:0;height:0;
      border-left:6px solid transparent;
      border-right:6px solid transparent;
      border-bottom:6px solid #f8fafc;
      top:calc(100% + 2px);
      left:50%;
      transform:translateX(-50%);
      pointer-events:none;
      filter:drop-shadow(0 3px 6px rgba(15,23,42,.18));
    }
    .help-tip::after{
      content:attr(data-tip);
      position:absolute;
      top:calc(100% + 8px);
      left:50%;
      transform:translateX(-50%);
      background:#f8fafc;
      color:#0f172a;
      font-size:11px;
      line-height:1.3;
      padding:8px 10px;
      border-radius:10px;
      border:1px solid rgba(15,23,42,.16);
      max-width:240px;
      min-width:160px;
      white-space:normal;
      text-align:left;
      opacity:0;
      transition:opacity .12s ease;
      pointer-events:none;
      box-shadow:0 12px 24px rgba(15,23,42,.22);
      z-index:5;
    }
    .help-tip:hover::after,
    .help-tip:hover::before{
      opacity:1;
    }
    .switch.is-disabled{
      pointer-events:none;
      opacity:.55;
    }
    .option-group{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
      padding:8px 10px;
      border-radius:12px;
      border:1px solid rgba(255,255,255,.12);
      background:rgba(255,255,255,.04);
    }
    .option-group label{
      display:flex;
      align-items:center;
      gap:6px;
      font-size:12px;
      color:var(--text);
      font-weight:700;
      cursor:pointer;
    }
    .option-group input[type="radio"],
    .option-group input[type="checkbox"]{
      accent-color:#6ee7ff;
      width:16px;
      height:16px;
    }
    .is-hidden{display:none}

    .toggle{
      display:flex;align-items:center;justify-content:space-between;gap:12px;
      padding:12px;border-radius:16px;
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.72);
      margin-bottom:12px;
    }
    .toggle span{font-size:12px;color:var(--text);font-weight:900}
    .switch{
      width:44px;height:26px;border-radius:999px;
      border:1px solid rgba(18,50,67,.22);
      background:rgba(255,255,255,.94);
      position:relative;cursor:pointer;flex:none;
      box-shadow:
        inset 0 1px 2px rgba(15,23,42,.10),
        0 6px 14px rgba(15,23,42,.10);
    }
    .switch:before{
      content:"";
      position:absolute;top:50%;transform:translateY(-50%);
      left:3px;width:20px;height:20px;border-radius:999px;
      background:rgba(255,255,255,.88);
      transition:.15s left,.15s background;
      box-shadow:0 8px 18px rgba(0,0,0,.35);
    }
    .switch.on{
      background:linear-gradient(135deg, rgba(110,231,255,.28), rgba(167,139,250,.20));
      border-color:rgba(110,231,255,.35);
    }
    .switch.on:before{left:21px;background:white}

    .panel{
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.72);
      border-radius:16px;
      padding:12px;
    }
    .panel h4{margin:0 0 10px;font-size:12px;font-weight:950;color:var(--text)}
    .panel .row{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--text);line-height:1.4}
    .panel .row strong{color:var(--text)}
    .panel .small{font-size:11px;color:var(--muted);margin-top:8px;line-height:1.4}
    .list{display:flex;flex-direction:column;gap:8px}
    .li{
      display:flex;align-items:center;justify-content:space-between;gap:10px;
      padding:10px;border-radius:14px;
      border:1px solid rgba(255,255,255,.12);
      background:rgba(255,255,255,.04);
      font-size:12px;
    }
    .single-row{
      display:grid;
      grid-template-columns: 1.2fr .9fr .9fr;
      gap:8px;
      align-items:end;
    }
    .single-field{
      display:flex;
      flex-direction:column;
      gap:4px;
      min-width:0;
    }
    .single-field label{
      font-size:10px;
      color:var(--muted2);
      font-weight:800;
      letter-spacing:.2px;
    }
    .single-row input[type="date"], .single-row select{
      padding:8px 10px;border-radius:12px;
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.84);
      color:var(--text);
      outline:none;
      font-size:12px;
      width:100%;
    }
    .li .left{min-width:0}
    .li .left .t{font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .li .left .s{color:var(--muted);font-size:11px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .li button{min-width:auto;padding:7px 10px;border-radius:12px}

    .modal-foot{
      padding:14px 16px;
      border-top:1px solid rgba(255,255,255,.14);
      background:rgba(255,255,255,.06);
      display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center;
    }
    .note{font-size:12px;color:var(--muted)}
    .room-detail-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
    .room-detail-tag{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;border:1px solid rgba(18,50,67,.28);background:linear-gradient(135deg, rgba(110,231,255,.18), rgba(167,139,250,.14));font-size:12px;font-weight:700;color:#123243;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
    .room-detail-tag.is-wide{display:flex;width:100%;justify-content:center;font-size:13px}
    .room-detail-image-btn{appearance:none;border:0;background:transparent;padding:0;width:100%;cursor:zoom-in;border-radius:14px;overflow:hidden}
    .room-detail-image-btn img{display:block;width:100%}
    .room-detail-image-hint{margin-top:4px;margin-bottom:14px;font-size:11px;color:var(--muted);text-align:center}
    .room-detail-resources{margin-top:18px;padding-top:14px;border-top:1px solid rgba(18,50,67,.14)}
    .room-detail-resources h4{margin:0 0 9px;font-size:13px}
    .room-detail-resources ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
    .room-detail-resources li{margin:0;padding:0}
    .room-detail-resources a{display:flex;align-items:center;gap:10px;min-height:46px;padding:9px 11px;border:1px solid rgba(18,50,67,.16);border-radius:13px;background:rgba(255,255,255,.72);color:var(--text);text-decoration:none;box-shadow:0 4px 12px rgba(18,50,67,.06);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
    .room-detail-resources a:hover,.room-detail-resources a:focus-visible{border-color:rgba(47,124,182,.5);box-shadow:0 7px 18px rgba(18,50,67,.12);transform:translateY(-1px);outline:none}
    .room-detail-resource-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:10px;background:rgba(47,124,182,.12);color:#1d6599;font-size:15px;font-weight:900}
    .room-detail-resources a>span:last-child{display:flex;min-width:0;flex-wrap:wrap;align-items:baseline;gap:3px 8px;overflow-wrap:anywhere}
    .room-detail-resources small{color:var(--muted);font-size:10px;font-weight:600}
    .lightbox{width:min(1200px, 96vw);max-height:calc(100vh - 36px);border-radius:18px;border:1px solid rgba(255,255,255,.24);background:rgba(5,10,20,.94);box-shadow:0 24px 70px rgba(0,0,0,.65);padding:12px;display:flex;align-items:center;justify-content:center}
    .lightbox img{max-width:100%;max-height:calc(100vh - 80px);object-fit:contain;border-radius:12px}
    .toast{
      position:fixed;left:50%;bottom:18px;transform:translateX(-50%);
      background:linear-gradient(135deg, rgba(245,252,252,.96), rgba(228,243,246,.94));
      border:1px solid rgba(18,50,67,.18);
      backdrop-filter: blur(10px);
      color:var(--text);
      padding:10px 12px;border-radius:14px;
      display:none;z-index:80;
      box-shadow:0 14px 34px rgba(18,50,67,.26);
      font-size:12px;
    }
    .toast.show{display:block}

    .modal.small{width:min(620px,96vw)}
    #roomOverlay{
      align-items:flex-start;
      padding:12px;
    }
    #roomOverlay .modal.small{
      max-height:calc(100vh - 24px);
    }
    #roomOverlay .modal-head{
      position:sticky;
      top:0;
      z-index:2;
      background:rgba(249,252,252,.82);
      backdrop-filter:blur(6px);
    }
    #roomOverlay .modal-foot{
      position:sticky;
      bottom:0;
      z-index:2;
      background:rgba(249,252,252,.82);
      backdrop-filter:blur(6px);
    }
    #roomOverlay #roomModalBody{
      flex:1;
      overflow:auto;
      margin:0;
      border-radius:0;
      border:0;
      padding:16px;
    }
    .simple{
      padding:16px;
      background:rgba(255,255,255,.58);
      border:1px solid var(--stroke);
      border-radius:16px;
      margin:16px;
    }
    .simple h4{margin:0 0 10px;font-size:13px}
    .simple p{margin:0 0 8px;font-size:12px;color:var(--text);line-height:1.5}
    .simple ul{margin:8px 0 0;padding-left:18px;color:var(--text);font-size:12px;line-height:1.5}

    .rr-guest-auth-modal{width:min(660px,96vw)}
    .rr-guest-auth-copy{
      margin:0;
      border:0;
      border-radius:0;
      padding:22px;
      background:rgba(255,255,255,.62);
    }
    .rr-guest-auth-copy p{
      margin:0;
      font-size:15px;
      line-height:1.6;
    }
    .rr-guest-auth-copy p + p{margin-top:10px}
    .rr-guest-auth-actions{justify-content:flex-end}
    .rr-guest-auth-actions .btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:42px;
      text-decoration:none;
    }
    @media (max-width: 620px){
      .rr-guest-auth-actions{display:grid;grid-template-columns:1fr}
      .rr-guest-auth-actions .btn{width:100%}
    }


    /* Help overlay: lesbare, schnelle Orientierung für Erstnutzer */
    #helpOverlay{
      align-items:flex-start;
      padding:12px;
    }
    #helpOverlay .help-modal{
      width:min(840px, 96vw);
      max-height:calc(100vh - 24px);
    }
    #helpOverlay .modal-head,
    #helpOverlay .modal-foot{
      flex-shrink:0;
      background:rgba(249,252,252,.86);
      backdrop-filter:blur(6px);
    }
    #helpOverlay .help-content{
      flex:1;
      overflow:auto;
      margin:0;
      padding:18px;
      border:0;
      border-radius:0;
      background:rgba(255,255,255,.54);
    }
    #helpOverlay .help-content h4{
      margin:0 0 8px;
      font-size:15px;
      line-height:1.25;
    }
    #helpOverlay .help-content p,
    #helpOverlay .help-content li{
      font-size:14px;
      line-height:1.55;
      color:var(--text);
    }
    #helpOverlay .help-content p{
      margin:0 0 8px;
    }
    #helpOverlay .help-hero{
      border:1px solid rgba(47,124,182,.22);
      background:linear-gradient(135deg, rgba(110,231,255,.16), rgba(167,139,250,.10));
      border-radius:18px;
      padding:16px;
      margin-bottom:14px;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
    }
    #helpOverlay .help-steps{
      display:grid;
      grid-template-columns:repeat(3, minmax(0, 1fr));
      gap:10px;
      margin:12px 0 0;
      padding:0;
      list-style:none;
      counter-reset:helpStep;
    }
    #helpOverlay .help-steps li{
      position:relative;
      min-height:76px;
      padding:12px 12px 12px 44px;
      border-radius:14px;
      border:1px solid rgba(18,50,67,.14);
      background:rgba(255,255,255,.76);
      box-shadow:0 6px 16px rgba(15,45,61,.08);
    }
    #helpOverlay .help-steps li::before{
      counter-increment:helpStep;
      content:counter(helpStep);
      position:absolute;
      left:12px;
      top:12px;
      width:22px;
      height:22px;
      display:grid;
      place-items:center;
      border-radius:50%;
      background:rgba(47,124,182,.16);
      color:var(--text);
      font-size:12px;
      font-weight:950;
      border:1px solid rgba(47,124,182,.24);
    }
    #helpOverlay .help-grid{
      display:grid;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:12px;
    }
    #helpOverlay .help-card{
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.80);
      border-radius:16px;
      padding:14px;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
    }
    #helpOverlay .help-card.is-wide{
      grid-column:1 / -1;
    }
    #helpOverlay .help-card ul{
      margin:8px 0 0;
      padding-left:18px;
    }
    #helpOverlay .help-card li + li{
      margin-top:6px;
    }
    #helpOverlay .help-note{
      margin-top:10px;
      padding:10px 12px;
      border-radius:12px;
      border:1px solid rgba(47,124,182,.18);
      background:rgba(47,124,182,.08);
      font-size:13px;
      line-height:1.45;
      color:var(--text);
    }
    #helpOverlay .help-status-row{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin:10px 0 8px;
    }
    #helpOverlay .help-status{
      display:inline-flex;
      align-items:center;
      gap:6px;
      padding:6px 9px;
      border-radius:999px;
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.78);
      font-size:12px;
      font-weight:900;
      white-space:nowrap;
    }
    #helpOverlay .help-status.free{border-color:rgba(52,211,153,.42);background:rgba(52,211,153,.10)}
    #helpOverlay .help-status.warn{border-color:rgba(251,191,36,.48);background:rgba(251,191,36,.12)}
    #helpOverlay .help-status.blocked{border-color:rgba(251,113,133,.42);background:rgba(251,113,133,.10)}
    #helpOverlay .help-compare{
      display:grid;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:10px;
      margin-top:10px;
    }
    #helpOverlay .help-compare > div{
      border:1px solid rgba(18,50,67,.14);
      background:rgba(255,255,255,.70);
      border-radius:14px;
      padding:12px;
    }
    #helpOverlay .help-compare strong{
      display:block;
      margin-bottom:4px;
    }
    #helpOverlay .help-mini-title{
      display:block;
      margin-bottom:4px;
      font-size:12px;
      font-weight:950;
      letter-spacing:.02em;
      text-transform:uppercase;
      color:var(--muted);
    }
    #helpOverlay .kbd{
      background:rgba(255,255,255,.80);
      border-color:rgba(18,50,67,.18);
    }
    @media (max-width: 760px){
      #helpOverlay .help-grid,
      #helpOverlay .help-steps,
      #helpOverlay .help-compare{
        grid-template-columns:1fr;
      }
      #helpOverlay .help-content{
        padding:14px;
      }
      #helpOverlay .help-steps li{
        min-height:auto;
      }
    }

    .filelist{display:flex;flex-direction:column;gap:8px;margin-top:8px}
    .fileitem{
      display:flex;justify-content:space-between;gap:10px;align-items:center;
      padding:9px 10px;border-radius:14px;
      border:1px solid rgba(255,255,255,.12);
      background:rgba(255,255,255,.04);
      font-size:12px;color:var(--text);
    }
    .filters.is-hidden{display:none}
    .more-rooms{
      display:flex;flex-direction:column;gap:10px;
    }
    .more-rooms .search{
      padding:0;
    }
    .more-rooms .search input{
      padding-left:12px;
    }
    .room-options{
      display:flex;flex-direction:column;gap:8px;
      max-height:220px;overflow:auto;
      padding-right:4px;
    }
    .room-option{
      display:flex;align-items:center;justify-content:space-between;gap:10px;
      padding:10px;border-radius:14px;
      border:1px solid rgba(255,255,255,.12);
      background:rgba(255,255,255,.04);
      font-size:12px;
    }
    .room-option .info{min-width:0}
    .room-option .name{font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .room-option .meta{color:var(--muted);font-size:11px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .room-option .status{
      display:flex;align-items:center;gap:6px;font-size:11px;font-weight:900;
      padding:6px 8px;border-radius:999px;
      background:rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.14);
      flex:none;
    }
    .status.free{color:var(--good);border-color:rgba(52,211,153,.4)}
    .status.warn{color:var(--warn);border-color:rgba(251,191,36,.4)}
    .status.blocked{color:var(--bad);border-color:rgba(251,113,133,.4)}
    .room-option input[type="checkbox"]{
      width:18px;height:18px;
      accent-color:#6ee7ff;
    }
    .series-preview{
      margin-top:10px;
      border:1px solid rgba(255,255,255,.12);
      border-radius:14px;
      background:rgba(255,255,255,.7);
      overflow:hidden;
    }
    .series-preview .head{
      display:flex;justify-content:space-between;gap:10px;align-items:center;
      padding:9px 10px;
      border-bottom:1px solid rgba(255,255,255,.10);
      font-size:11px;
      color:var(--muted);
    }
    .series-preview .items{display:flex;flex-direction:column;max-height:220px;overflow:auto}
    .series-item{
      display:flex;align-items:flex-start;justify-content:space-between;gap:10px;
      padding:9px 10px;
      border-bottom:1px solid rgba(255,255,255,.08);
    }
    .series-item:last-child{border-bottom:0}
    .series-item .left{display:flex;gap:8px;align-items:flex-start;min-width:0}
    .series-item .left input[type="checkbox"]{margin-top:2px;width:16px;height:16px;accent-color:#6ee7ff;cursor:pointer}
    .series-item .title{font-size:12px;font-weight:900;color:var(--text)}
    .series-item .meta{margin-top:2px;font-size:11px;color:var(--muted)}
    .series-item.off .title,.series-item.off .meta{color:rgba(18,50,67,.45);text-decoration:line-through}
    .series-item .status{flex:none;margin-top:1px}
    .series-preview .empty{padding:10px;font-size:11px;color:var(--muted)}
    .recurrence-limit-row{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:12px;
      margin-top:10px;
    }
    .recurrence-limit-option{
      border:1px solid rgba(255,255,255,.14);
      border-radius:12px;
      padding:10px;
      background:rgba(255,255,255,.03);
      transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
    }
    .recurrence-limit-option.active{
      border-color:rgba(110,231,255,.45);
      background:rgba(110,231,255,.10);
      box-shadow:0 0 0 1px rgba(110,231,255,.20) inset;
    }
    .recurrence-limit-option .limit-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      margin-bottom:8px;
      gap:8px;
    }
    .recurrence-limit-option .limit-head label{
      display:flex;
      align-items:center;
      gap:6px;
      cursor:pointer;
      font-size:12px;
      font-weight:800;
      color:var(--text);
      margin:0;
    }
    .recurrence-limit-option input[type="radio"]{accent-color:#6ee7ff}
    .recurrence-limit-option .hint{
      font-size:10px;
      color:var(--muted);
      margin-top:5px;
    }
    .recurrence-limit-option.inactive input[type="date"],
    .recurrence-limit-option.inactive input[type="number"]{
      opacity:.58;
    }

    @media (max-width: 1100px){
      .app{flex-direction:column;align-items:stretch;gap:12px}
      .sidebar{
        display:flex;
        width:100%;
        max-width:100%;
        min-width:0;
        flex:none;
        height:auto;
        max-height:none;
      }
      .main{min-width:0;align-self:stretch}
      .rooms{max-height:260px}
      .calendar-wrap{overflow-x:auto}
      .calendar{min-width:var(--cal-min-width, 0px)}
      .cal-split{min-width:0;flex-direction:column}
      .cal-panel{min-width:0;width:100%}
      .modal-body{grid-template-columns:1fr}
    }
    .rr-calendar-copybar{
      margin:0 0 10px;
      padding:10px 12px;
      border:1px solid rgba(14,165,233,.30);
      border-radius:14px;
      background:linear-gradient(135deg, rgba(14,165,233,.10), rgba(139,92,246,.08));
      display:flex;
      align-items:center;
      gap:10px;
      box-shadow:0 8px 24px rgba(15,23,42,.08);
    }
    .rr-calendar-copybar[hidden]{display:none!important}
    .rr-calendar-copybar-icon{
      width:34px;height:34px;border-radius:10px;
      display:grid;place-items:center;flex:0 0 auto;
      background:rgba(255,255,255,.82);
      border:1px solid rgba(14,165,233,.25);
      font-size:18px;
    }
    .rr-calendar-copybar-text{min-width:0;flex:1}
    .rr-calendar-copybar-text strong{display:block;font-size:12px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .rr-calendar-copybar-text small{display:block;margin-top:2px;color:var(--muted);font-size:11px}
    .rr-calendar-copybar .btn{padding:7px 11px;flex:0 0 auto}
    #calendarRoot.rr-copy-paste-active .daycol,
    #calendarRoot.rr-copy-paste-active .cal-compact-track,
    #calendarRoot.rr-copy-paste-active .mday{cursor:copy}
    .rr-event-copy-btn{
      position:static;
      z-index:8;
      width:25px;
      height:25px;
      flex:0 0 25px;
      padding:0;
      border-radius:8px;
      border:1px solid rgba(18,50,67,.18);
      background:rgba(255,255,255,.92);
      color:#123243;
      display:grid;
      place-items:center;
      cursor:pointer;
      font-size:13px;
      line-height:1;
      box-shadow:0 3px 10px rgba(15,23,42,.15);
      opacity:.72;
      transition:opacity .16s ease, transform .16s ease, background .16s ease;
    }
    .block:hover .rr-event-copy-btn,
    .compact-block:hover .rr-event-copy-btn,
    .mchip:hover .rr-event-copy-btn,
    .rr-event-copy-btn:focus-visible{opacity:1}
    .rr-event-copy-btn:hover{transform:translateY(-1px);background:#fff}
    .block.has-copy-action,
    .compact-block.has-copy-action,
    .mchip.has-copy-action{container-type:inline-size}
    .block.has-copy-action{
      display:grid;
      grid-template-columns:minmax(0,1fr) auto;
      grid-template-rows:auto minmax(0,1fr);
      column-gap:6px;
      padding-right:8px;
    }
    .block.has-copy-action .btitle,
    .block.has-copy-action .bmeta{grid-column:1;min-width:0}
    .block.has-copy-action .rr-event-copy-btn{
      grid-column:2;
      grid-row:1 / span 2;
      align-self:start;
    }
    .compact-block.has-copy-action{padding-right:6px}
    .compact-block.has-copy-action > span{min-width:0;flex:1 1 auto}
    .compact-block .rr-event-copy-btn{width:24px;height:24px;flex-basis:24px}
    .mchip.has-copy-action{position:relative;padding-right:7px}
    .mchip.has-copy-action .t{min-width:0;flex:1 1 auto}
    .mchip.has-copy-action .s{flex:0 0 auto}
    .mchip .rr-event-copy-btn{width:23px;height:23px;flex-basis:23px}
    .block[role="link"]:focus-visible,
    .compact-block[role="link"]:focus-visible,
    .mchip[role="link"]:focus-visible{
      outline:3px solid rgba(14,165,233,.72);
      outline-offset:2px;
    }
    .rr-copy-hover-preview{
      z-index:12;
      max-width:calc(100% - 8px);
      white-space:nowrap;
    }
    @container (max-width: 88px){
      .rr-event-copy-btn{
        width:19px;
        height:19px;
        flex-basis:19px;
        border-radius:6px;
        font-size:11px;
        box-shadow:0 2px 6px rgba(15,23,42,.14);
      }
      .block.has-copy-action .bmeta{display:none}
      .mchip.has-copy-action .s{display:none}
    }
    @media (hover:none){
      .rr-event-copy-btn{opacity:1}
    }
    .rr-copy-modal-notice{
      margin:0 0 14px;
      padding:10px 12px;
      border:1px solid rgba(14,165,233,.26);
      border-radius:12px;
      background:rgba(14,165,233,.08);
      color:var(--text);
      font-size:12px;
      line-height:1.45;
    }
    .rr-copy-modal-notice[hidden]{display:none!important}
    .rr-copy-modal-notice strong{display:block;margin-bottom:2px}

    @media (max-width: 760px){
      .recurrence-limit-row{grid-template-columns:1fr}
    }
    @media (max-width: 720px){
      .app{padding:10px;gap:12px}
      .topbar{padding:12px}
      .topbar-right{width:100%;justify-content:flex-start}
      .topbar-right .seg,
      .topbar-right .hint{display:none}
      .cal-grid-head{grid-template-columns:60px repeat(var(--cols, 7), minmax(90px, 1fr))}
      .cal-split{padding:10px}
      .cal-compact-wrap{padding:10px;min-width:900px}
      .cal-compact-row{grid-template-columns:180px minmax(680px,1fr)}
    }
