
    :root{
      --bg:#f5f7fb;
      --card:#ffffff;
      --text:#101828;
      --muted:#667085;
      --line:#d0d5dd;
      --soft:#f8fbff;
      --today:#fff7ed;
    }
    *{box-sizing:border-box}
    body{
      margin:0;
      background:var(--bg);
      color:var(--text);
      font-family:Arial, sans-serif;
    }
    .page{
      max-width:640px;
      margin:0 auto;
      padding:24px 16px 40px;
    }
    .card{
      background:var(--card);
      border:1px solid var(--line);
      border-radius:22px;
      padding:20px;
      margin-bottom:14px;
      box-shadow:0 8px 24px rgba(15,23,42,.05);
    }
    .top{
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      gap:12px;
      flex-wrap:wrap;
    }
    h1{
      margin:0;
      font-size:26px;
      line-height:1.15;
    }
    h2{
      margin:0;
      font-size:18px;
    }
    .sub{
      margin-top:7px;
      color:var(--muted);
      font-size:14px;
    }
    .top-actions{
      display:flex;
      align-items:center;
      gap:8px;
      flex-wrap:wrap;
    }
    .archive-link,
    .back{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:36px;
      padding:8px 13px;
      border:1px solid var(--line);
      border-radius:999px;
      background:#fff;
      color:#344054;
      text-decoration:none;
      font-size:14px;
      font-weight:700;
      white-space:nowrap;
    }
    .week-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-bottom:14px;
      flex-wrap:wrap;
    }
    .week-total{
      margin-top:14px;
      text-align:center;
      color:#344054;
      font-size:14px;
      font-weight:700;
    }
    .week-list{
      display:flex;
      flex-direction:column;
      gap:7px;
    }
    .day-row{
      display:grid;
      grid-template-columns:72px 1fr 126px;
      align-items:center;
      gap:12px;
      min-height:42px;
      padding:9px 12px;
      border:1px solid var(--line);
      border-radius:15px;
      background:#fff;
    }
    .day-row.today{
      background:var(--today);
      border-color:#fed7aa;
    }
    .day-date{
      font-size:15px;
      font-weight:800;
      color:#101828;
      white-space:nowrap;
    }
    .day-name{
      display:flex;
      align-items:center;
      gap:8px;
      min-width:0;
      font-size:15px;
      font-weight:700;
      color:#101828;
    }
    .weekday-short{
      display:none;
    }
    .today-badge{
      display:inline;
      padding:0;
      border:0;
      background:transparent;
      color:#9a3412;
      font-size:13px;
      font-weight:700;
      line-height:1;
      white-space:nowrap;
    }
    .status{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:126px;
      min-height:30px;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid #d0d5dd;
      background:#f8fafc;
      color:#344054;
      font-size:13px;
      font-weight:800;
      white-space:nowrap;
      justify-self:end;
      text-align:center;
    }
    .status.shift{background:#dcfce7;border-color:#86efac;color:#166534}
    .status.day_off{background:#f1f5f9;border-color:#cbd5e1;color:#475569}
    .status.protected{background:#e0e7ff;border-color:#c7d2fe;color:#3730a3}
    .status.vacation{background:#fef3c7;border-color:#fde68a;color:#92400e}
    .status.sick_leave{background:#fee2e2;border-color:#fecaca;color:#991b1b}
    .status.business_trip{background:#dbeafe;border-color:#bfdbfe;color:#1e3a8a}
    .status.promo_shift{background:#fef3c7;border-color:#f59e0b;color:#92400e}
    .status.accredited_shift{background:#bbf7d0;border-color:#4ade80;color:#14532d}
    .status.empty{background:#f8fafc;border-color:#e2e8f0;color:#64748b}
    @media (max-width:640px){
      .page{
        padding:10px 8px 16px;
        max-width:100%;
      }
      .card{
        padding:12px;
        border-radius:18px;
        margin-bottom:10px;
        box-shadow:0 4px 14px rgba(15,23,42,.04);
      }
      .top{
        align-items:center;
        gap:8px;
      }
      h1{
        font-size:24px;
        line-height:1.1;
      }
      h2{
        font-size:20px;
      }
      .sub{
        margin-top:5px;
        font-size:14px;
      }
      .back{
        min-height:34px;
        padding:7px 12px;
        font-size:14px;
      }
      .week-head{
        margin-bottom:10px;
      }
      .week-list{
        gap:6px;
      }
      .day-row{
        grid-template-columns:58px 36px minmax(96px, 1fr);
        min-height:42px;
        padding:7px 9px;
        gap:8px;
        border-radius:13px;
      }
      .day-date{
        font-size:16px;
        font-weight:800;
      }
      .day-name{
        font-size:16px;
        font-weight:800;
        justify-content:center;
        gap:0;
      }
      .weekday-full{
        display:none;
      }
      .weekday-short{
        display:inline;
      }
      .status{
        grid-column:auto;
        width:100%;
        min-height:28px;
        justify-self:stretch;
        padding:5px 8px;
        font-size:14px;
        font-weight:800;
      }
      .week-total{
        margin-top:10px;
        width:100%;
        text-align:center;
        font-size:14px;
      }
    }
  
@media (min-width:641px){
  .page{
    max-width:640px !important;
  }

  .card{
    width:100% !important;
  }

  .week-list{
    width:100% !important;
  }

  .day-row{
    width:100% !important;
    grid-template-columns:86px minmax(0, 1fr) 150px !important;
    align-items:center !important;
  }

  .day-date{
    width:86px !important;
    min-width:86px !important;
    max-width:640px !important;
  }

  .day-name{
    min-width:0 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
  }

  .status{
    width:150px !important;
    min-width:150px !important;
    max-width:640px !important;
    justify-self:end !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
}

@media (max-width:640px){
  .top-actions{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
  }
  .top-actions .archive-link,
  .top-actions .back{
    margin-left:0 !important;
    margin-right:0 !important;
  }
}
