/* =====================================================
   أدوات الدراسة: مؤقت بومودورو + قائمة المهام
   ألوان اللوجو فقط، وكل مربع بلون واحد ثابت (بدون تدرّج)
   ===================================================== */
.tl-page { padding-bottom: 6rem; }
.tl-hero { text-align: center; margin-bottom: 3rem; padding: 3rem 2rem; }
.tl-hero h1 { margin-bottom: 0.8rem; }
.tl-hero p { font-size: 1.7rem; opacity: 0.95; }

.tl-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 2.4rem;
    box-shadow: 0 1px 2px rgba(46, 47, 50, 0.04), 0 14px 34px -14px rgba(46, 47, 50, 0.16);
}
.tl-card + .tl-card { margin-top: 2rem; }
.tl-card h3 {
    font-size: 1.6rem; color: var(--ink-color);
    display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.6rem;
}
.tl-card h3 i { color: var(--primary-color); }

.tl-input {
    width: 100%; padding: 1.2rem 1.6rem; font: inherit; font-size: 1.5rem;
    border: 2px solid var(--border-color); border-radius: 16px; background: #fff; color: var(--ink-color);
    transition: border-color .2s, box-shadow .2s;
}
.tl-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px var(--primary-tint-strong); }
.tl-label { display: block; font-size: 1.25rem; color: var(--grey-color); margin-bottom: 0.6rem; font-weight: 600; }

.tl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem;
    font: inherit; font-size: 1.4rem; font-weight: 700; cursor: pointer;
    padding: 1.1rem 1.9rem; border-radius: 16px; border: 2px solid transparent;
    background: var(--primary-color); color: #fff; transition: transform .15s, background .2s, box-shadow .2s;
}
.tl-btn:hover { transform: translateY(-2px); background: var(--primary-dark); box-shadow: 0 10px 20px -8px rgba(26,127,142,.55); }
.tl-btn.plum { background: var(--purple); }
.tl-btn.plum:hover { background: var(--purple-dark); box-shadow: 0 10px 20px -8px rgba(94,69,96,.55); }
.tl-btn.ghost { background: #fff; color: var(--ink-light); border-color: var(--border-color); }
.tl-btn.ghost:hover { background: var(--lightGrey-color); box-shadow: none; }
.tl-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ================= بومودورو ================= */
.pm-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.4rem; align-items: start; }
.pm-page { --pm-color: var(--primary-color); --pm-tint: var(--primary-tint-strong); }
.pm-page[data-mode="short"] { --pm-color: var(--purple); --pm-tint: var(--purple-tint); }
.pm-page[data-mode="long"]  { --pm-color: var(--grey-color); --pm-tint: var(--grey-tint); }

.pm-timer { text-align: center; padding: 3rem 2.4rem 3.2rem; background: #fff; }
.pm-tabs {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; padding: 0.6rem;
    background: var(--lightGrey-color); border-radius: 20px; margin-bottom: 3rem;
}
.pm-tab {
    font: inherit; font-size: 1.4rem; font-weight: 700; padding: 1.1rem 0.8rem; border: 0; cursor: pointer;
    border-radius: 15px; background: transparent; color: var(--grey-color); transition: all .2s;
}
.pm-tab.active { background: var(--pm-color); color: #fff; box-shadow: 0 8px 18px -8px var(--pm-color); }

.pm-ring { position: relative; width: min(340px, 80vw); aspect-ratio: 1; margin: 0 auto 2rem; }
.pm-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pm-ring .track { fill: none; stroke: var(--pm-tint); stroke-width: 12; }
.pm-ring .prog { fill: none; stroke: var(--pm-color); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .4s linear, stroke .3s; }
.pm-ring.no-anim .prog { transition: none; }
.pm-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; }
.pm-time { font-size: 7.4rem; font-weight: 800; line-height: 1; color: var(--ink-color); letter-spacing: -1px; font-variant-numeric: tabular-nums; direction: ltr; }
.pm-mode-label { font-size: 1.3rem; font-weight: 700; padding: 0.5rem 1.4rem; border-radius: 999px; background: var(--pm-tint); color: var(--pm-color); }

.pm-current { font-size: 1.4rem; color: var(--grey-color); min-height: 2.4rem; margin-bottom: 1.6rem; }
.pm-current strong { color: var(--ink-color); }
.pm-dots { display: flex; justify-content: center; gap: 0.9rem; margin-bottom: 2.6rem; }
.pm-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--border-dark); transition: background .3s, transform .3s; }
.pm-dots span.on { background: var(--pm-color); transform: scale(1.2); }

.pm-controls { display: flex; align-items: center; justify-content: center; gap: 2rem; }
.pm-icon-btn {
    width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--border-color); background: #fff;
    color: var(--grey-color); font-size: 1.8rem; cursor: pointer; transition: all .2s;
}
.pm-icon-btn:hover { color: var(--pm-color); border-color: var(--pm-color); background: var(--pm-tint); }
.pm-play {
    width: 88px; height: 88px; border-radius: 50%; border: 0; cursor: pointer; font-size: 3rem;
    background: var(--pm-color); color: #fff; box-shadow: 0 16px 30px -12px var(--pm-color); transition: transform .15s;
}
.pm-play:hover { transform: scale(1.06); }
.pm-play:active { transform: scale(.96); }
.pm-tools { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.6rem; }
.pm-tools .tl-btn { font-size: 1.25rem; padding: 0.9rem 1.5rem; }
.pm-hint { margin-top: 1.6rem; font-size: 1.2rem; color: var(--grey-light); }

.pm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 2rem; }
.pm-stat { background: #fff; border: 1px solid var(--border-color); border-radius: 22px; padding: 1.8rem 1rem; text-align: center; box-shadow: 0 10px 24px -16px rgba(46,47,50,.25); }
.pm-stat i { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1rem; }
.pm-stat:nth-child(1) i { background: var(--primary-tint-strong); color: var(--primary-color); }
.pm-stat:nth-child(2) i { background: var(--purple-tint); color: var(--purple); }
.pm-stat:nth-child(3) i { background: var(--grey-tint); color: var(--grey-color); }
.pm-stat b { display: block; font-size: 2.8rem; color: var(--ink-color); line-height: 1.1; }
.pm-stat span { font-size: 1.2rem; color: var(--grey-color); }

.pm-add { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.pm-add .tl-btn { padding: 0 2rem; flex-shrink: 0; }
.pm-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; max-height: 320px; overflow: auto; }
.pm-task { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border: 2px solid var(--border-color); border-radius: 16px; background: #fff; transition: border-color .2s, background .2s; }
.pm-task.current { border-color: var(--primary-color); background: var(--primary-tint); }
.pm-task .txt { flex: 1; font-size: 1.45rem; color: var(--ink-color); word-break: break-word; }
.pm-task.done .txt { text-decoration: line-through; color: var(--grey-light); }
.pm-task .cnt { font-size: 1.15rem; color: var(--purple); font-weight: 700; white-space: nowrap; }
.pm-task button { border: 0; background: transparent; color: var(--grey-light); cursor: pointer; font-size: 1.5rem; padding: 0.4rem; border-radius: 8px; }
.pm-task button:hover { color: var(--primary-color); background: var(--primary-tint); }
.pm-task button.del:hover { color: var(--red-color); background: var(--red-tint); }
.pm-task input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--primary-color); cursor: pointer; }
.pm-empty { text-align: center; color: var(--grey-light); font-size: 1.35rem; padding: 1.6rem 0; }

.pm-sounds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; margin-bottom: 1.6rem; }
.pm-sound {
    font: inherit; border: 2px solid var(--border-color); background: #fff; border-radius: 16px; cursor: pointer;
    padding: 1.2rem 0.4rem; color: var(--grey-color); font-size: 1.1rem; font-weight: 600; transition: all .2s;
    display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.pm-sound i { font-size: 2.2rem; }
.pm-sound:hover { border-color: var(--purple); color: var(--purple); }
.pm-sound.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.pm-volume { display: flex; align-items: center; gap: 1.2rem; color: var(--grey-color); font-size: 1.4rem; }
.pm-volume input { flex: 1; accent-color: var(--purple); }

.pm-settings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.pm-switch { display: flex; align-items: center; gap: 1rem; font-size: 1.4rem; color: var(--ink-light); cursor: pointer; grid-column: 1 / -1; }
.pm-switch input { width: 20px; height: 20px; accent-color: var(--primary-color); }

.pm-page:fullscreen { background: var(--lightGrey-color); display: flex; align-items: center; justify-content: center; }
.pm-timer:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }

/* ================= قائمة المهام ================= */
.tk-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; }
.tk-preview { position: sticky; top: 100px; }
.tk-sheet-wrap { background: var(--lightGrey-color); border-radius: 28px; padding: 2.4rem; display: flex; justify-content: center; }

.sheet {
    --sc: #1a7f8e;
    width: 100%; max-width: 560px; background: #f6f6f7; border-radius: 26px; overflow: hidden;
    box-shadow: 0 30px 60px -28px rgba(46,47,50,.5), 0 6px 14px -8px rgba(46,47,50,.25);
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.sheet-head { background: var(--sc); color: #fff; padding: 2.6rem 2.6rem 1.2rem; position: relative; overflow: hidden; min-height: 190px; text-align: center; }
.sheet-head::before { content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,.08); top: -60px; inset-inline-end: -50px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; position: relative; }
.sheet-date { font-size: 1.2rem; font-weight: 700; padding: 0.5rem 1.3rem; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); direction: ltr; }
.sheet-logo { width: 68px; height: 68px; background: #fff; border-radius: 18px; padding: 8px; display: flex; align-items: center; justify-content: center; }
.sheet-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sheet-title { font-size: 2.6rem; font-weight: 800; line-height: 1.3; position: relative; word-break: break-word; }
.sheet-phrase { font-size: 1.4rem; opacity: .9; margin-top: 0.4rem; position: relative; }
.sheet-wave { display: block; width: 100%; height: 34px; background: #f6f6f7; }
.sheet-wave path { fill: var(--sc); }
.sheet-list { padding: 1rem 2.2rem 2rem; display: flex; flex-direction: column; gap: 1.1rem; min-height: 120px; }
.sheet-row {
    display: flex; align-items: center; gap: 1.4rem; background: #fff; border-radius: 16px; padding: 1.3rem 1.6rem;
    border-inline-start: 6px solid var(--sc); box-shadow: 0 6px 16px -10px rgba(46,47,50,.3); cursor: pointer;
}
.sheet-check { width: 26px; height: 26px; border: 2.5px solid var(--sc); border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; }
.sheet-row.done .sheet-check { background: var(--sc); }
.sheet-row .t { font-size: 1.75rem; font-weight: 600; color: var(--ink-color); word-break: break-word; }
.sheet-row.done .t { text-decoration: line-through; color: var(--grey-light); }
.sheet-empty { text-align: center; color: var(--grey-light); font-size: 1.4rem; padding: 2.6rem 0; }
.sheet-foot { background: var(--sc); color: rgba(255,255,255,.92); padding: 1.3rem 2.4rem; display: flex; align-items: center; justify-content: space-between; font-size: 1.2rem; font-weight: 600; }
.sheet-dots { display: flex; gap: 6px; }
.sheet-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.sheet-dots i:nth-child(3) { background: #fff; }

.tk-templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tk-tpl { font: inherit; border: 2px solid var(--border-color); background: #fff; border-radius: 18px; padding: 1.4rem 0.6rem; cursor: pointer; font-size: 1.25rem; font-weight: 700; color: var(--ink-light); display: flex; flex-direction: column; align-items: center; gap: 0.8rem; transition: all .2s; }
.tk-tpl i { font-size: 2.4rem; }
.tk-tpl:nth-child(1) i { color: var(--primary-color); }
.tk-tpl:nth-child(2) i { color: var(--purple); }
.tk-tpl:nth-child(3) i { color: var(--grey-color); }
.tk-tpl:hover { transform: translateY(-3px); border-color: var(--primary-color); box-shadow: 0 12px 22px -14px rgba(46,47,50,.4); }

.tk-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.6rem; }
.tk-seg button { font: inherit; font-size: 1.4rem; font-weight: 700; padding: 1.1rem; border-radius: 14px; border: 2px solid var(--border-color); background: #fff; color: var(--grey-color); cursor: pointer; }
.tk-seg button.on { background: var(--primary-tint-strong); border-color: var(--primary-color); color: var(--primary-color); }
.tk-colors { display: flex; gap: 1.1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.tk-color { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--border-dark); cursor: pointer; transition: transform .15s; }
.tk-color:hover { transform: scale(1.12); }
.tk-color.on { box-shadow: 0 0 0 3px var(--ink-color); }
.tk-field { margin-bottom: 1.4rem; }
.tk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.tk-items-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.tk-count { font-size: 1.3rem; font-weight: 700; color: var(--purple); }
.tk-add { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.tk-add .tl-btn { padding: 0 2rem; flex-shrink: 0; }
.tk-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.8rem; max-height: 360px; overflow: auto; }
.tk-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1.1rem; background: var(--lightGrey-color); border-radius: 14px; }
.tk-item input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--primary-color); cursor: pointer; }
.tk-item .edit { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.45rem; color: var(--ink-color); min-width: 0; }
.tk-item .edit:focus { outline: none; background: #fff; border-radius: 8px; }
.tk-item button { border: 0; background: transparent; color: var(--grey-light); cursor: pointer; padding: 0.4rem 0.6rem; border-radius: 8px; font-size: 1.3rem; }
.tk-item button:hover { color: var(--primary-color); background: var(--primary-tint); }
.tk-item button.del:hover { color: var(--red-color); background: var(--red-tint); }
.tk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.tk-actions .full { grid-column: 1 / -1; }

.tl-toast { position: fixed; bottom: 2.4rem; inset-inline: 0; margin: auto; width: fit-content; max-width: 90vw; background: var(--ink-color); color: #fff; padding: 1.2rem 2.4rem; border-radius: 14px; font-size: 1.4rem; z-index: 9999; opacity: 0; transform: translateY(20px); transition: all .3s; pointer-events: none; }
.tl-toast.show { opacity: 1; transform: none; }

@media (max-width: 960px) {
    .pm-layout, .tk-layout { grid-template-columns: 1fr; }
    .tk-preview { position: static; }
}
@media (max-width: 520px) {
    .pm-time { font-size: 5.6rem; }
    .pm-sounds { grid-template-columns: repeat(3, 1fr); }
    .tl-card { padding: 1.8rem; border-radius: 22px; }
    .tk-grid2 { grid-template-columns: 1fr; }
}

@media print {
    body * { visibility: hidden !important; }
    .sheet, .sheet * { visibility: visible !important; }
    .sheet { position: absolute; top: 0; left: 50%; transform: translateX(-50%); max-width: 640px; box-shadow: none; }
    @page { margin: 12mm; }
}


/* =====================================================
   قائمة المهام: الإنشاء التلقائي + قالب الخلفية
   ===================================================== */
.tk-auto-hint { font-size: 1.3rem; color: var(--grey-color); line-height: 1.7; margin: -0.4rem 0 1.4rem; }
.tk-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.4rem; }
.tk-mode button { font: inherit; font-size: 1.4rem; font-weight: 700; padding: 1.1rem; border-radius: 14px; border: 2px solid var(--border-color); background: #fff; color: var(--grey-color); cursor: pointer; }
.tk-mode button.on { background: var(--primary-tint-strong); border-color: var(--primary-color); color: var(--primary-color); }
.tk-auto-msg { font-size: 1.3rem; line-height: 1.7; margin: 1.2rem 0 0; padding: 1rem 1.3rem; border-radius: 12px; background: var(--lightGrey-color); color: var(--ink-light); }
.tk-auto-msg.warn { background: #fff6e0; color: #8a5a00; }
.tk-auto-msg.err { background: var(--red-tint); color: var(--red-color); }
.tk-tpl-toggle { display: flex; align-items: center; gap: 0.8rem; font-size: 1.4rem; font-weight: 600; margin-bottom: 1.4rem; cursor: pointer; color: var(--ink-light); }

.sheet.sheet-tpl {
    position: relative; container-type: inline-size; overflow: hidden; padding: 0; background-color: #fff;
    background-size: 100% 100%; background-repeat: no-repeat; --k: 0.09259cqw;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.sheet-tpl .tp-title { position: absolute; inset-inline: 6%; transform: translateY(-50%); text-align: center; font-weight: 800; line-height: 1.25; font-size: calc(var(--k) * 62); word-break: break-word; }
.sheet-tpl .tp-title small { display: block; font-weight: 600; opacity: .9; margin-top: calc(var(--k) * 8); font-size: calc(var(--k) * 32); }
.sheet-tpl .tp-list { position: absolute; display: flex; flex-direction: column; }
.sheet-tpl .tp-row { display: flex; align-items: center; cursor: pointer; flex: 0 0 auto; padding-inline: calc(var(--k) * 26); gap: calc(var(--k) * 22); border-radius: calc(var(--k) * 22); overflow: hidden; }
.sheet-tpl .tp-row.card { background: rgba(255, 255, 255, .93); box-shadow: 0 calc(var(--k) * 6) calc(var(--k) * 18) rgba(46, 47, 50, .14); }
.sheet-tpl .tp-row .sheet-check { flex-shrink: 0; border-radius: calc(var(--k) * 11); border-width: calc(var(--k) * 4); }
.sheet-tpl .tp-row .t { font-weight: 600; line-height: 1.25; }
.sheet-tpl .tp-row.done .t { text-decoration: line-through; opacity: .55; }
.sheet-tpl .tp-empty { text-align: center; font-size: calc(var(--k) * 34); opacity: .6; padding-top: calc(var(--k) * 30); }


html[data-theme="dark"] .tl-shell,
html[data-theme="dark"] .pm-timer,
html[data-theme="dark"] .pm-stat,
html[data-theme="dark"] .pm-task,
html[data-theme="dark"] .pm-sound,
html[data-theme="dark"] .tk-tpl,
html[data-theme="dark"] .tk-seg button,
html[data-theme="dark"] .tk-mode button,
html[data-theme="dark"] .sheet-wrap { background:#17262b !important; color:#f1f7f8 !important; border-color:#405960 !important; }
html[data-theme="dark"] .tl-shell input,
html[data-theme="dark"] .tl-shell textarea,
html[data-theme="dark"] .tl-shell select { background:#122126 !important; color:#f1f7f8 !important; border-color:#5b747b !important; }
html[data-theme="dark"] .tl-btn.ghost,
html[data-theme="dark"] .tk-tpl,
html[data-theme="dark"] .tk-seg button,
html[data-theme="dark"] .tk-mode button { color:#d0e0e3 !important; }
html[data-theme="dark"] .sheet-check,
html[data-theme="dark"] .sheet-logo,
html[data-theme="dark"] .sheet-tpl .tp-row.card { background:#22383f !important; color:#f1f7f8 !important; }


html[data-theme="dark"] .tk-item { background:#22383f !important; color:#d0e0e3 !important; }
html[data-theme="dark"] .tk-item .edit { color:#f1f7f8 !important; }
html[data-theme="dark"] .tk-item .edit:focus { background:#2d474e !important; }
html[data-theme="dark"] .tk-item button { color:#9fb4b8 !important; }
html[data-theme="dark"] .tk-auto-hint,
html[data-theme="dark"] .tk-tpl-toggle { color:#b6c7ca !important; }
html[data-theme="dark"] .tk-auto-msg { background:#22383f !important; color:#d0e0e3 !important; }
html[data-theme="dark"] .tk-auto-msg.warn { background:#4b3a1d !important; color:#ffe0a3 !important; }
html[data-theme="dark"] .tk-auto-msg.err { background:#4a252c !important; color:#ffc3c9 !important; }
html[data-theme="dark"] .sheet,
html[data-theme="dark"] .sheet-tpl { background:#17262b !important; color:#f1f7f8 !important; }
html[data-theme="dark"] .sheet-wave { background:#17262b !important; }
html[data-theme="dark"] .sheet-date { color:#f1f7f8 !important; }
html[data-theme="dark"] .sheet-tpl .tp-row.card { background:#22383f !important; color:#f1f7f8 !important; }
html[data-theme="dark"] .sheet-tpl .tp-row .t { color:#f1f7f8 !important; }
html[data-theme="dark"] .tl-toast { background:#f1f7f8 !important; color:#0e171b !important; }


/* وضع تركيز بومودورو: توسيع العداد وحده وإخفاء المحتوى الجانبي */
body.pm-no-scroll { overflow: hidden !important; }
body.pm-no-scroll > header,
body.pm-no-scroll > footer,
body.pm-no-scroll > .mobile-overlay,
body.pm-no-scroll > .mobile-nav { display: none !important; }
.pm-page.pm-focus-only {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--lightGrey-color) !important;
}
.pm-page.pm-focus-only > .container {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
}
.pm-page.pm-focus-only .breadcrumbs,
.pm-page.pm-focus-only .tl-hero,
.pm-page.pm-focus-only .pm-layout > aside { display: none !important; }
.pm-page.pm-focus-only .pm-layout { display: block !important; width: 100% !important; height: 100% !important; margin: 0 !important; }
.pm-page.pm-focus-only .pm-timer,
.pm-timer:fullscreen {
    position: relative;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none !important;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vh, 3rem);
    margin: 0 !important;
    padding: clamp(2rem, 5vh, 5rem) !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--white-color) !important;
}
.pm-page.pm-focus-only .pm-tabs,
.pm-page.pm-focus-only .pm-current,
.pm-page.pm-focus-only .pm-dots,
.pm-page.pm-focus-only .pm-hint,
.pm-page.pm-focus-only #pmSkip,
.pm-page.pm-focus-only #pmReset,
.pm-page.pm-focus-only #pmNotify,
.pm-timer:fullscreen .pm-tabs,
.pm-timer:fullscreen .pm-current,
.pm-timer:fullscreen .pm-dots,
.pm-timer:fullscreen .pm-hint,
.pm-timer:fullscreen #pmSkip,
.pm-timer:fullscreen #pmReset,
.pm-timer:fullscreen #pmNotify { display: none !important; }
.pm-page.pm-focus-only .pm-ring,
.pm-timer:fullscreen .pm-ring {
    width: min(66vh, 66vw, 680px) !important;
    width: min(66dvh, 66vw, 680px) !important;
    margin: 0 auto !important;
    flex: 0 1 auto;
}
.pm-page.pm-focus-only .pm-time,
.pm-timer:fullscreen .pm-time { font-size: clamp(8rem, 17vw, 17rem) !important; }
.pm-page.pm-focus-only .pm-mode-label,
.pm-timer:fullscreen .pm-mode-label { font-size: clamp(1.6rem, 2.3vw, 2.4rem); padding: .7rem 2rem; }
.pm-page.pm-focus-only .pm-controls,
.pm-timer:fullscreen .pm-controls { flex: 0 0 auto; }
.pm-page.pm-focus-only .pm-play,
.pm-timer:fullscreen .pm-play { width: clamp(7rem, 10vw, 10rem); height: clamp(7rem, 10vw, 10rem); font-size: clamp(2.6rem, 4vw, 4rem); }
.pm-page.pm-focus-only .pm-tools,
.pm-timer:fullscreen .pm-tools {
    position: fixed;
    z-index: 2;
    top: max(1.5rem, env(safe-area-inset-top));
    inset-inline-start: max(1.5rem, env(safe-area-inset-left));
    margin: 0 !important;
}
.pm-page.pm-focus-only #pmFull,
.pm-timer:fullscreen #pmFull { padding: 1rem 1.5rem; font-size: 1.3rem; box-shadow: 0 5px 18px rgba(0,0,0,.12); }
html[data-theme="dark"] body.pm-no-scroll,
html[data-theme="dark"] .pm-page.pm-focus-only { background: #101c20 !important; }
html[data-theme="dark"] .pm-page.pm-focus-only .pm-timer,
html[data-theme="dark"] .pm-timer:fullscreen { background: #17262b !important; }
@media (max-width: 600px) {
    .pm-page.pm-focus-only .pm-ring,
    .pm-timer:fullscreen .pm-ring { width: min(78vw, 58dvh, 520px) !important; }
    .pm-page.pm-focus-only .pm-time,
    .pm-timer:fullscreen .pm-time { font-size: clamp(6rem, 21vw, 12rem) !important; }
}
