/* Spark Agency HR — My documents, welcome card, signed-in identity (v43) */
@media screen {
  /* ---------- who is signed in ---------- */
  main > header:has(.me-chip) {
    justify-content: flex-start;
    gap: 10px;
  }
  main > header .me-chip {
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  main > header:has(.me-chip) #xmas-toggle,
  main > header:has(.me-chip) #logout {
    margin-left: 0 !important;
  }
  .me-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe6e6;
    max-width: 320px;
  }
  .me-avatar {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #00a7a9, #0b5f73);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0;
  }
  .me-text {
    display: grid;
    line-height: 1.2;
    min-width: 0;
  }
  .me-text b {
    font-size: 13.5px;
    color: #12303b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .me-text i {
    font-style: normal;
    font-size: 11.5px;
    color: #6b8088;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  @media (max-width: 760px) {
    .me-text {
      display: none;
    }
    .me-chip {
      padding: 4px;
    }
  }

  /* ---------- morning welcome ---------- */
  dialog.welcome-dialog {
    border: 0;
    padding: 0;
    border-radius: 26px;
    width: min(520px, calc(100vw - 32px));
    background: transparent;
    overflow: visible;
  }
  dialog.welcome-dialog::backdrop {
    background: rgba(9, 34, 43, 0.55);
    backdrop-filter: blur(4px);
  }
  .welcome-card {
    position: relative;
    background: radial-gradient(120% 80% at 100% 0%, #fff4d6 0%, #fff 55%) #fff;
    border-radius: 26px;
    padding: 34px 30px 26px;
    box-shadow: 0 30px 80px rgba(6, 30, 38, 0.35);
    overflow: hidden;
    animation: welcome-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .welcome-sun {
    position: absolute;
    right: -70px;
    top: -70px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd56b 0 38%, rgba(255, 213, 107, 0.35) 39% 60%, transparent 61%);
    animation: welcome-sun 6s ease-in-out infinite alternate;
  }
  .welcome-date {
    margin: 0;
    color: #8a6a12;
    font-weight: 700;
    font-size: 13px;
  }
  .welcome-card h2 {
    position: relative;
    padding-right: 50px;
    margin: 6px 0 4px;
    font-size: 32px;
    letter-spacing: -0.02em;
    color: #12303b;
  }
  .welcome-role {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 14px;
    color: #37545c;
    font-weight: 600;
  }
  .welcome-line {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f0f8f7;
    color: #1f4b55;
    line-height: 1.5;
  }
  .welcome-sub {
    margin: 0 0 6px;
    font-weight: 800;
    font-size: 13px;
    color: #37545c;
  }
  .welcome-today ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 6px;
  }
  .welcome-today li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f6f9f9;
    border-left: 4px solid #00a7a9;
    font-size: 14px;
  }
  .welcome-today li.warn {
    border-left-color: #f59e0b;
    background: #fffaf0;
  }
  .welcome-today li.good {
    border-left-color: #16a34a;
    background: #f0fbf4;
  }
  .welcome-today li button {
    margin: 0;
    padding: 6px 12px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .welcome-loading,
  .welcome-clear {
    color: #6b8088;
    margin: 0 0 18px;
  }
  .welcome-go {
    width: 100%;
    margin: 0;
    padding: 14px;
    font-size: 16px;
    border-radius: 14px;
  }
  @keyframes welcome-in {
    from {
      opacity: 0;
      transform: translateY(16px) scale(0.97);
    }
  }
  @keyframes welcome-sun {
    to {
      transform: translate(-10px, 10px) scale(1.06);
    }
  }

  .day-panel h2 {
    margin: 0;
    font-size: 24px;
  }
  .day-panel > p {
    margin: 2px 0 12px;
  }
  .day-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
  }
  .day-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f6f9f9;
    border-left: 4px solid #00a7a9;
  }
  .day-list li.warn {
    border-left-color: #f59e0b;
    background: #fffaf0;
  }
  .day-list li.good {
    border-left-color: #16a34a;
    background: #f0fbf4;
  }
  .day-list button {
    margin: 0;
    padding: 6px 12px;
    font-size: 12.5px;
  }
  #dashboard-quick-actions:not(:has(.quick-action-grid > *)) {
    display: none;
  }

  /* ---------- documents list ---------- */
  .dc-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
  }
  .dc-top button,
  .dc-upload {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .dc-upload {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #cfdede;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
  }
  #dc-search {
    margin-left: auto;
    width: min(320px, 100%);
  }
  #dc-owner {
    width: auto;
  }
  .dc-drop {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px dashed #b9cfcf;
    border-radius: 14px;
    padding: 14px 16px;
    color: #4b6470;
    margin-bottom: 14px;
    transition: background 0.15s, border-color 0.15s;
  }
  .dc-drop.is-over {
    background: #e7f5f4;
    border-color: #00a7a9;
  }
  .dc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
  }
  .dc-card {
    position: relative;
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2eaea;
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
  }
  .dc-card:hover,
  .dc-card:focus-visible {
    box-shadow: 0 10px 24px rgba(15, 42, 51, 0.1);
    transform: translateY(-1px);
  }
  .dc-icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #e5f1ff;
    color: #2563eb;
  }
  .dc-k-sheet .dc-icon {
    background: #e3f6ea;
    color: #15803d;
  }
  .dc-k-file .dc-icon {
    background: #f3eaff;
    color: #7c3aed;
  }
  .dc-card-body {
    display: grid;
    align-content: start;
    gap: 3px;
    min-width: 0;
    flex: 1;
  }
  .dc-card-body b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dc-preview {
    font-size: 12.5px;
    color: #4b6470;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .dc-meta {
    font-size: 11.5px;
    color: #7b8f96;
  }
  .dc-card-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .dc-mini {
    margin: 0;
    padding: 5px;
    display: grid;
    place-items: center;
  }
  .dc-mini.is-on {
    background: #12303b;
    color: #fff;
  }
  .dc-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #6b8088;
    padding: 50px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #cfdede;
  }
  .dc-empty h3 {
    color: #12303b;
    margin: 8px 0 4px;
  }

  /* ---------- editor ---------- */
  .dc-edit-top {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .dc-back {
    margin: 0;
    padding: 8px;
  }
  .dc-title {
    flex: 1;
    font-size: 22px;
    font-weight: 800;
    border: 1px solid transparent;
    background: transparent;
    padding: 6px 10px;
  }
  .dc-title:hover,
  .dc-title:focus {
    border-color: #cfdede;
    background: #fff;
  }
  .dc-status {
    font-size: 12px;
    color: #6b8088;
    white-space: nowrap;
  }
  .dc-owner-line {
    margin: 2px 0 12px 52px;
    font-size: 12.5px;
    color: #6b8088;
  }
  .dc-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e2eaea;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .dc-toolbar button {
    margin: 0;
    padding: 6px 10px;
    font-size: 13px;
    min-width: 34px;
  }
  .dc-paper {
    background: #fff;
    border: 1px solid #e2eaea;
    border-radius: 14px;
    padding: 40px min(8vw, 80px);
    min-height: 60vh;
    box-shadow: 0 2px 10px rgba(15, 42, 51, 0.04);
  }
  .dc-doc {
    outline: none;
    max-width: 760px;
    margin: 0 auto;
    min-height: 50vh;
    font-size: 15.5px;
    line-height: 1.7;
    color: #1f3b47;
  }
  .dc-doc h1 {
    font-size: 28px;
    margin: 0.6em 0 0.3em;
  }
  .dc-doc h2 {
    font-size: 21px;
    margin: 0.8em 0 0.3em;
  }
  .dc-doc blockquote {
    margin: 0.6em 0;
    padding: 6px 14px;
    border-left: 4px solid #00a7a9;
    background: #f3f9f9;
    border-radius: 0 10px 10px 0;
  }
  .dc-doc a {
    color: #036f72;
  }
  .dc-doc ul[data-check] {
    list-style: none;
    padding-left: 4px;
  }
  .dc-doc ul[data-check] li {
    position: relative;
    padding-left: 30px;
  }
  .dc-doc ul[data-check] li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border: 2px solid #94a3b8;
    border-radius: 5px;
    cursor: pointer;
  }
  .dc-doc ul[data-check] li[data-done="1"] {
    color: #8aa0a6;
    text-decoration: line-through;
  }
  .dc-doc ul[data-check] li[data-done="1"]::before {
    background: #00a7a9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
    border-color: #00a7a9;
  }

  /* ---------- sheet ---------- */
  .dc-sheetbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
  }
  .dc-sheetbar button {
    margin: 0;
    padding: 7px 10px;
    font-size: 12.5px;
    display: inline-flex;
    gap: 5px;
    align-items: center;
  }
  .dc-ref {
    min-width: 52px;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    padding: 8px;
    border-radius: 8px;
    background: #eef4f4;
    color: #12303b;
  }
  .dc-fx {
    flex: 1;
    min-width: 200px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px;
  }
  .dc-sheet-wrap {
    overflow: auto;
    max-height: 66vh;
    border: 1px solid #d9e3e3;
    border-radius: 12px;
    background: #fff;
    outline: none;
  }
  .dc-sheet-wrap:focus-visible {
    box-shadow: 0 0 0 3px #00a7a944;
  }
  table.dc-sheet {
    border-collapse: separate;
    border-spacing: 0;
    overflow: visible !important;
    font-size: 13px;
    min-width: 100%;
  }
  .dc-sheet th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f3f7f7;
    color: #5b7279;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: none;
    letter-spacing: 0;
    padding: 4px 6px;
    border-right: 1px solid #e2eaea;
    border-bottom: 1px solid #e2eaea;
    text-align: center;
  }
  .dc-sheet tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 42px;
  }
  .dc-sheet .dc-corner {
    left: 0;
    z-index: 3;
  }
  .dc-sheet td {
    min-width: 110px;
    max-width: 260px;
    height: 28px;
    padding: 3px 8px;
    border-right: 1px solid #edf2f2;
    border-bottom: 1px solid #edf2f2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: cell;
    position: relative;
  }
  .dc-sheet td.is-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  .dc-sheet td.is-bold {
    font-weight: 800;
  }
  .dc-sheet td.is-err {
    color: #b91c1c;
  }
  .dc-sheet td.is-sel {
    box-shadow: inset 0 0 0 2px #00a7a9;
    background: #f2fbfa;
  }
  .dc-cell-input {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 3px 8px;
    font: inherit;
    box-shadow: inset 0 0 0 2px #00a7a9;
    background: #fff;
  }
  .dc-hint {
    font-size: 12px;
  }
  .dc-file-view {
    background: #fff;
    border: 1px solid #e2eaea;
    border-radius: 14px;
    padding: 24px;
    display: grid;
    gap: 14px;
    justify-items: start;
  }
  .dc-file-big {
    display: grid;
    gap: 4px;
    color: #4b6470;
  }
  .dc-media {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
  }

  /* ---------- daily report attachments ---------- */
  .dk-attach {
    border: 1px solid #e2eaea;
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    gap: 6px;
  }
  .dk-attach legend {
    font-weight: 700;
    font-size: 13px;
    padding: 0 4px;
  }
  .dk-attach label {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  .dk-attach input {
    width: auto;
  }
  .dk-attach > button {
    justify-self: start;
    margin: 0;
  }
  .dk-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  .dk-docs h4 {
    width: 100%;
  }
  .dk-doc-chip {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    background: #e5f1ff;
    color: #1d4ed8;
    border: 0;
  }
  button.dk-doc-chip:hover {
    filter: brightness(0.96);
  }
  .dk-doc-sheet {
    background: #e3f6ea;
    color: #15803d;
  }
  .dk-doc-file {
    background: #f3eaff;
    color: #6d28d9;
  }
  .ib-ask-chat {
    margin: 0;
  }

  /* ---------- who did it ---------- */
  small.by-line {
    letter-spacing: 0;
    color: #6b8088;
    font-size: 11.5px;
  }
  .audit-table td:nth-child(2) {
    font-weight: 700;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-card,
  .welcome-sun {
    animation: none;
  }
}

/* ---------- v43: sharing, created by, warning letters ---------- */
@media screen {
  .dc-section {
    margin: 26px 0 10px;
    font-size: 15px;
    color: #31525c;
  }
  .dc-by {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #5d7880;
  }
  .dc-access {
    align-self: flex-start;
    white-space: nowrap;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef4f4;
    color: #31525c;
    font-size: 11.5px;
    font-weight: 700;
  }
  .dc-card.dc-warning {
    border-color: #f2c9a8;
    background: linear-gradient(#fff, #fff8f2);
  }
  .dc-card.dc-warning .dc-icon {
    background: #fff0e3;
    color: #b45309;
  }
  .dc-warn {
    border-color: #f2c9a8 !important;
    color: #9a4a08 !important;
  }
  .dc-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .dc-owner-line {
    margin: 2px 0 12px;
    font-size: 13px;
    color: #5d7880;
  }
  .dc-created b {
    color: #1f3b47;
  }
  .dc-shared {
    color: #036f72;
  }
  .dc-paper-by {
    max-width: 760px;
    margin: 30px auto 0;
    padding-top: 10px;
    border-top: 1px dashed #d8e4e4;
    font-size: 12.5px;
    color: #6b8088;
  }
  .dc-share-dialog {
    width: min(520px, 94vw);
  }
  .dc-share-list {
    display: grid;
    gap: 6px;
    max-height: 50vh;
    overflow: auto;
    margin: 8px 0 14px;
  }
  .dc-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid #e2eaea;
    border-radius: 10px;
  }
  .dc-share-row span {
    display: grid;
  }
  .dc-share-row i {
    font-style: normal;
    font-size: 12px;
    color: #6b8088;
  }
  .dc-share-row select {
    width: auto;
    margin: 0;
  }
  .wn-dialog {
    width: min(600px, 94vw);
  }
  .wn-detected {
    min-height: 1.4em;
    margin: 4px 0 8px;
    font-size: 13px;
    color: #9a4a08;
    font-weight: 600;
  }
  .dc-doc [dir="rtl"] {
    text-align: right;
  }
}
@media print {
  body.dc-printing > aside,
  body.dc-printing main > header,
  body.dc-printing .dc-toolbar,
  body.dc-printing .dk-tabs,
  body.dc-printing .hol-strip,
  body.dc-printing .xmas-lights {
    display: none !important;
  }
  body.dc-printing main > section:not(:has(.dc-paper)),
  body.dc-printing .dc-page > :not(.dc-body) {
    display: none !important;
  }
  body.dc-printing .dc-paper {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

/* ---------- v43: holidays & themes ---------- */
@media screen {
  .hol-strip {
    display: flex;
    height: 5px;
    margin: -4px 0 14px;
    border-radius: 999px;
    overflow: hidden;
  }
  .hol-strip i {
    flex: 1;
    background: var(--c);
  }
  .hol-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 22px;
    margin-bottom: 16px;
    border: 1px solid #e2eaea;
    overflow: hidden;
  }
  .hol-art {
    flex: 0 0 auto;
    width: 132px;
    height: 99px;
    filter: drop-shadow(0 4px 10px rgba(15, 42, 51, 0.12));
    animation: hol-wave 5s ease-in-out infinite alternate;
    transform-origin: left center;
  }
  @keyframes hol-wave {
    from {
      transform: rotate(-1.5deg);
    }
    to {
      transform: rotate(1.5deg);
    }
  }
  .hol-text h2 {
    margin: 2px 0 4px;
    font-size: 22px;
    color: #10303a;
  }
  .hol-name {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #5d7880;
  }
  .hol-ar {
    margin: 0;
    font-size: 17px;
    color: #31525c;
  }
  .hol-card-lebanon {
    background: linear-gradient(100deg, #fff 55%, #fdeced);
    border-color: #f5c2c4;
  }
  .hol-card-lebanon h2 {
    color: #b3151c;
  }
  .hol-card-saudi,
  .hol-card-uae,
  .hol-card-kuwait {
    background: linear-gradient(100deg, #fff 55%, #e6f4ec);
    border-color: #b7dcc6;
  }
  .hol-card-saudi h2 {
    color: #006c35;
  }
  .hol-card-qatar {
    background: linear-gradient(100deg, #fff 55%, #f6e6ec);
    border-color: #e0b6c4;
  }
  .hol-card-qatar h2 {
    color: #8a1538;
  }
  .hol-card-palestine,
  .hol-card-egypt {
    background: linear-gradient(100deg, #fff 55%, #f4f4f4);
  }
  .hol-card-eid,
  .hol-card-ramadan,
  .hol-card-hijri {
    background: linear-gradient(100deg, #1c1640, #2b1d5c);
    border-color: #2b1d5c;
  }
  .hol-card-ramadan {
    background: linear-gradient(100deg, #0a2038, #0f2c4c);
  }
  .hol-card-hijri {
    background: linear-gradient(100deg, #0b2827, #123b3a);
  }
  .hol-card-eid h2,
  .hol-card-ramadan h2,
  .hol-card-hijri h2 {
    color: #ffd36b;
  }
  .hol-card-eid .hol-name,
  .hol-card-eid .hol-ar,
  .hol-card-ramadan .hol-name,
  .hol-card-ramadan .hol-ar,
  .hol-card-hijri .hol-name,
  .hol-card-hijri .hol-ar {
    color: #e8e3ff;
  }
  .hol-card-newyear {
    background: linear-gradient(100deg, #14123a, #2a1f5f);
    border-color: #14123a;
  }
  .hol-card-newyear h2 {
    color: #ffd23f;
  }
  .hol-card-newyear .hol-name,
  .hol-card-newyear .hol-ar {
    color: #e5e3ff;
  }
  .hol-card-mothers {
    background: linear-gradient(100deg, #fff 50%, #ffe3ec);
    border-color: #ffc2d3;
  }
  .hol-card-mothers h2 {
    color: #c2185b;
  }
  .hol-card-easter,
  .hol-card-labour {
    background: linear-gradient(100deg, #fff 55%, #fdf6e3);
  }
  .hol-list {
    display: grid;
    gap: 10px;
    margin: 12px 0;
  }
  .hol-row {
    display: grid;
    grid-template-columns: auto 64px minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "show art names when" "show art theme actions" "show art msgs msgs";
    align-items: center;
    gap: 8px 12px;
    padding: 12px;
    border: 1px solid #e2eaea;
    border-radius: 12px;
    background: #fff;
  }
  .hol-row.is-off {
    background: #f6f8f8;
    opacity: 0.75;
  }
  .hol-row input:not([type="checkbox"]),
  .hol-row select {
    margin: 0;
    width: 100%;
    min-width: 0;
  }
  .hol-show {
    grid-area: show;
    display: grid;
    justify-items: center;
    gap: 2px;
    font-size: 11.5px;
    color: #5d7880;
    align-self: start;
  }
  .hol-mini {
    grid-area: art;
    width: 64px;
    height: 48px;
    align-self: start;
  }
  .hol-names {
    grid-area: names;
    display: grid;
    gap: 6px;
  }
  .hol-when {
    grid-area: when;
    display: grid;
    gap: 6px;
  }
  .hol-row select {
    grid-area: theme;
  }
  .hol-msgs {
    grid-area: msgs;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hol-dates {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #5d7880;
  }
  .hol-yearly {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    margin: 0;
  }
  .hol-actions {
    grid-area: actions;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
  }
  @media (max-width: 760px) {
    .hol-row {
      grid-template-columns: auto 1fr;
      grid-template-areas: "show art" "names names" "when when" "theme theme" "msgs msgs" "actions actions";
    }
    .hol-msgs {
      grid-template-columns: 1fr;
    }
  }
  .hol-actions button {
    margin: 0 4px 0 0;
  }
  @media (max-width: 640px) {
    .hol-card {
      flex-direction: column;
      align-items: flex-start;
    }
    .hol-art {
      width: 104px;
      height: 78px;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hol-art {
    animation: none;
  }
}

/* ---------- v43.1: Excel and Word files opened in the system ---------- */
@media screen {
  .dc-sheet th.has-w {
    width: var(--w);
    min-width: var(--w);
    max-width: var(--w);
  }
  .dc-sheet td {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    padding: 6px;
    background: #f3f7f7;
    border: 1px solid #e2eaea;
    border-radius: 0 0 12px 12px;
  }
  .dc-tabs:has(button:only-child) {
    display: none;
  }
  .dc-tabs button {
    margin: 0;
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #31525c;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
  }
  .dc-tabs button[aria-selected="true"] {
    background: #fff;
    border-color: #cfe0e0;
    color: #036f72;
    font-weight: 800;
  }
  .dc-tabs .dc-tab-add {
    font-weight: 800;
    color: #036f72;
  }
  .dc-opening {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #036f72;
    font-weight: 600;
  }
}
.dc-doc [data-align="center"] {
  text-align: center;
}
.dc-doc [data-align="right"] {
  text-align: right;
}
.dc-doc [data-align="justify"] {
  text-align: justify;
}
.dc-doc table {
  border-collapse: collapse;
  margin: 10px 0;
}
.dc-doc td,
.dc-doc th {
  border: 1px solid #d5e1e1;
  padding: 6px 10px;
  vertical-align: top;
}

/* ---------- v43.1: weather card and online map ---------- */
@media screen {
  .wx-card {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-areas: "icon main text" "icon main range";
    align-items: center;
    gap: 2px 20px;
    padding: 16px 22px;
    margin-bottom: 16px;
    background: linear-gradient(110deg, #f0fbff, #fff 60%);
    border: 1px solid #d6ecf3;
  }
  .wx-card.is-night {
    background: linear-gradient(110deg, #1c2546, #2b3766);
    border-color: #1c2546;
    color: #e8ecff;
  }
  .wx-icon {
    grid-area: icon;
    font-size: 54px;
    line-height: 1;
  }
  .wx-main {
    grid-area: main;
  }
  .wx-place {
    margin: 0;
    font-size: 12.5px;
    color: #5d7880;
    font-weight: 700;
  }
  .wx-temp {
    margin: 0;
    font-size: 38px;
    font-weight: 800;
    color: #0b3b44;
    line-height: 1.05;
  }
  .wx-temp small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #5d7880;
  }
  .wx-text {
    grid-area: text;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #10303a;
  }
  .wx-range {
    grid-area: range;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    font-size: 13px;
    color: #31525c;
  }
  .wx-card.is-night .wx-temp,
  .wx-card.is-night .wx-text {
    color: #fff;
  }
  .wx-card.is-night .wx-place,
  .wx-card.is-night .wx-temp small,
  .wx-card.is-night .wx-range {
    color: #c7cff5;
  }
  @media (max-width: 640px) {
    .wx-card {
      grid-template-columns: auto 1fr;
      grid-template-areas: "icon main" "text text" "range range";
    }
  }
  .welcome-today li.weather {
    background: #f0fbff;
  }

  .pm-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }
  .pm-head h2 {
    margin: 0 0 4px;
  }
  .pm-map-panel {
    padding: 12px;
  }
  .pm-map {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
  }
  .pm-map img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
  .pm-pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(calc(-50% + var(--n, 0) * 34px), -16px);
    display: grid;
    justify-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    cursor: default;
  }
  .pm-pin span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    position: relative;
    border-radius: 50%;
    background: #94a3b8;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(15, 42, 51, 0.3);
    border: 2px solid #fff;
  }
  .pm-pin i {
    margin-top: 6px;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    color: #10303a;
    white-space: nowrap;
  }
  .pm-pin.is-on span {
    background: #10b981;
  }
  .pm-pin.is-on span::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 2px solid #10b981;
    animation: pm-pulse 2s ease-out infinite;
  }
  .pm-pin.is-recent span {
    background: #f59e0b;
  }
  @keyframes pm-pulse {
    from {
      opacity: 0.8;
      transform: scale(0.9);
    }
    to {
      opacity: 0;
      transform: scale(1.5);
    }
  }
  .pm-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 10px 4px 0;
    font-size: 12.5px;
  }
  .pm-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .pm-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
  }
  .pm-legend .is-on i {
    background: #10b981;
  }
  .pm-legend .is-recent i {
    background: #f59e0b;
  }
  .pm-table {
    width: 100%;
  }
  .pm-table td small {
    display: block;
    font-size: 12px;
    color: #6b8088;
  }
  .pm-state {
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #eef2f4;
    color: #5d7880;
  }
  .pm-state.is-on {
    background: #dcfce7;
    color: #047857;
  }
  .pm-state.is-recent {
    background: #fff4dc;
    color: #8a5a00;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pm-pin.is-on span::after {
    animation: none;
  }
}

/* v43.3: phone header on one line */
@media (max-width: 640px) {
  main > header small {
    white-space: nowrap;
  }
  main > header #heading {
    font-size: 24px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw;
  }
}

/* v43.3: exact location */
@media screen {
  .pm-exact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
  }
  .pm-exact input {
    width: 17px;
    height: 17px;
    margin: 0;
  }
  .pm-where {
    display: block;
  }
  .pm-table td small a {
    color: #036f72;
    font-weight: 700;
  }
}
