/* adn-frn-server – ✉️ N8 Mail: webmail and admin panes.
 * 2.49: Outlook look – app bar | ribbon | folder tree | message list | reading pane, in one glass window under the ADN-FRN header. */
.wm { display: grid; grid-template-columns: 68px 250px minmax(300px, 410px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    margin-top: 16px; height: calc(100vh - 175px); min-height: 560px; border-radius: var(--radius-lg, 22px); overflow: hidden;
    background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-highlight, transparent), var(--glass-shadow, none);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.wm > .tile { grid-column: 1 / -1; }
/* app bar (left, like Outlook's Mail · Calendar · People) */
.wm-rail { grid-row: 1 / -1; grid-column: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px;
    background: rgba(0, 0, 0, .22); border-right: 1px solid var(--glass-border); }
.wm-rail-logo { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.wm-app { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 56px; padding: 7px 2px; border: 0; border-radius: 12px; background: transparent;
    color: var(--text-dim); cursor: pointer; font: inherit; position: relative; }
.wm-app span { font-size: 20px; line-height: 1.1; } .wm-app small { font-size: 10px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 54px; }
.wm-app:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.wm-app.active { color: var(--text); background: var(--theme-accent-soft, rgba(90, 200, 250, .18)); }
.wm-app.active::before { content: ""; position: absolute; left: -6px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); }
/* ribbon */
.wm-ribbon { grid-column: 2 / -1; grid-row: 1; border-bottom: 1px solid var(--glass-border); background: rgba(255, 255, 255, .025); padding: 6px 12px 0; min-width: 0; }
.wm-rtabs { display: flex; align-items: center; gap: 14px; font-size: 13px; min-width: 0; }
.wm-rtabs .on { font-weight: 750; padding: 4px 2px 5px; border-bottom: 2px solid var(--accent); }
.wm-rbox { color: var(--text-dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wm-search { display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; background: var(--theme-input-bg, rgba(0, 0, 0, .28));
    border: 1px solid var(--theme-input-border, rgba(255, 255, 255, .14)); width: min(340px, 40%); }
.wm-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; color: var(--text); font: inherit; padding: 6px 0; outline: none; box-shadow: none !important; }
.wm-rgroups { display: flex; gap: 0; align-items: stretch; padding: 6px 0 4px; overflow-x: auto; scrollbar-width: thin; }
.wm-rg { display: grid; grid-auto-flow: column; grid-template-rows: 1fr auto; align-items: center; gap: 0 2px; padding: 0 10px; border-right: 1px solid var(--glass-border); }
.wm-rg:first-child { padding-left: 0; } .wm-rg:last-child { border-right: 0; }
.wm-rgl { grid-row: 2; grid-column: 1 / span 9; text-align: center; font-size: 10.5px; color: var(--text-dim); padding-top: 2px; white-space: nowrap; }
.wm-rb { grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 54px; padding: 4px 6px; border: 0; border-radius: 10px;
    background: transparent; color: var(--text); font: inherit; font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.wm-rb .i { font-size: 17px; line-height: 1.2; } .wm-rb:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.wm-rb:disabled { opacity: .38; cursor: default; }
.wm-rb.big { flex-direction: column; min-width: 78px; padding: 6px 10px; background: var(--accent); color: #04121c; font-weight: 750; border-radius: 12px; grid-row: 1 / -1; }
.wm-rb.big .i { font-size: 22px; } .wm-rb.big:hover { filter: brightness(1.08); background: var(--accent); }
/* folder tree */
.wm-side { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 10px 8px 10px 10px; border-right: 1px solid var(--glass-border); }
.wm-tree { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.wm-boxh { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 750; font-size: 13px;
    padding: 6px 6px; border-radius: 8px; cursor: pointer; text-align: left; }
.wm-boxh:hover { background: rgba(255, 255, 255, .05); }
.wm-boxh .tw { width: 12px; color: var(--text-dim); font-size: 11px; } .wm-boxh .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-boxf { display: flex; flex-direction: column; gap: 1px; padding-left: 12px; }
.wm-folder { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: transparent; border: 0; color: var(--text); padding: 6px 10px;
    border-radius: 8px; cursor: pointer; font: inherit; font-size: 13.5px; text-align: left; position: relative; }
.wm-folder:hover { background: rgba(255, 255, 255, .06); }
.wm-folder.active { background: var(--theme-accent-soft, rgba(90, 200, 250, .18)); font-weight: 700; }
.wm-folder.active::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--accent); }
.wm-folder .cnt { color: var(--accent); font-weight: 800; font-size: 12.5px; }
.wm-tree-err { font-size: 12px; padding: 4px 10px; }
.wm-quota { font-size: 12px; } .wm-qbar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 4px; }
.wm-qbar i { display: block; height: 100%; background: var(--accent); }
.wm-help { font-size: 12px; } .wm-help summary { cursor: pointer; color: var(--text-dim); }
/* message list */
.wm-list { grid-column: 3; grid-row: 2; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--glass-border); }
.wm-lhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 8px; border-bottom: 1px solid var(--glass-border); }
.wm-ltitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.wm-lfilter { display: flex; gap: 2px; flex: none; } .wm-lfilter button { border: 0; background: transparent; color: var(--text-dim); font: inherit; font-size: 12.5px;
    padding: 3px 8px; border-radius: 999px; cursor: pointer; } .wm-lfilter button.on { color: var(--text); background: rgba(255, 255, 255, .09); font-weight: 700; }
.wm-bulk { display: flex; gap: 6px; align-items: center; padding: 6px 12px; font-size: 12.5px; border-bottom: 1px solid var(--glass-border); background: var(--theme-accent-soft, rgba(90,200,250,.12)); }
.wm-bulk[hidden] { display: none !important; }
.wm-items { overflow: auto; flex: 1; }
.wm-grp { position: sticky; top: 0; z-index: 1; font-size: 11.5px; font-weight: 750; color: var(--text-dim); padding: 8px 12px 4px; background: var(--wm-grp-bg, rgba(12, 18, 40, .92)); }
.wm-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: "av who when" "av subj flags" "av prev prev"; gap: 1px 10px; padding: 9px 12px 9px 10px;
    cursor: pointer; border-left: 3px solid transparent; border-bottom: 1px solid rgba(255, 255, 255, .04); outline: none; }
.wm-item:hover { background: rgba(255, 255, 255, .045); }
.wm-item.active { background: var(--theme-accent-soft, rgba(90, 200, 250, .16)); border-left-color: var(--accent); }
.wm-item:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.wm-avck { grid-area: av; position: relative; width: 34px; height: 34px; cursor: pointer; }
.wm-avck .wm-ck { position: absolute; inset: 0; width: 34px; height: 34px; margin: 0; opacity: 0; cursor: pointer; }
.wm-item:hover .wm-avck .wm-ck, .wm-items.checking .wm-ck { opacity: 1; accent-color: var(--accent); }
.wm-item:hover .wm-avck .wm-av, .wm-items.checking .wm-av { opacity: 0; }
.wm-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
    color: #fff; background: hsl(var(--h, 200) 55% 42%); flex: none; }
.wm-av.big { width: 44px; height: 44px; font-size: 16px; }
.wm-who { grid-area: who; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.wm-when { grid-area: when; color: var(--text-dim); font-size: 12px; white-space: nowrap; }
.wm-subj { grid-area: subj; color: var(--text-dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-flags { grid-area: flags; font-size: 12px; }
.wm-prev { grid-area: prev; color: var(--text-dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
.wm-item.unseen { border-left-color: var(--accent); }
.wm-item.unseen .wm-who { font-weight: 800; color: var(--text); } .wm-item.unseen .wm-subj { font-weight: 700; color: var(--accent); }
.wm-item.flagged { background: rgba(255, 69, 58, .06); }
.wm-ans { color: var(--accent); }
.wm-pager { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 6px; border-top: 1px solid var(--glass-border); font-size: 12.5px; }
/* reading pane */
.wm-read { grid-column: 4; grid-row: 2; display: flex; flex-direction: column; min-height: 0; overflow: auto; padding: 14px 18px; }
.wm-empty { margin: auto; color: var(--text-dim); text-align: center; padding: 30px; }
.wm-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; } .wm-brand > div:nth-child(2) { color: var(--text); font-weight: 700; font-size: 15px; }
.wm-banner { width: min(380px, 80%); border-radius: 18px; opacity: .95; margin-bottom: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.wm-rtop { display: flex; align-items: flex-start; gap: 8px; }
.wm-back { display: none; }
.wm-h { margin: 0 0 10px; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; font-weight: 750; }
.wm-card { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.wm-meta { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; overflow-wrap: anywhere; padding-bottom: 10px; border-bottom: 1px solid var(--glass-border); }
.wm-mtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wm-ricons { display: flex; gap: 2px; flex: none; }
.wm-ib { min-width: 34px; padding: 0 6px; white-space: nowrap; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.wm-ib:hover { background: rgba(255, 255, 255, .09); }
.wm-atts { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.wm-att { display: flex; gap: 8px; align-items: center; padding: 6px 12px 6px 8px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .04);
    color: var(--text); text-decoration: none; font-size: 12.5px; max-width: 260px; }
.wm-att span:last-child { display: flex; flex-direction: column; min-width: 0; } .wm-att b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-htmlbar { display: flex; gap: 6px; margin-top: 10px; }
.wm-body { flex: 1; display: flex; flex-direction: column; margin-top: 12px; min-height: 260px; }
/* calendar & contacts inside the window */
.wm.pim .wm-list, .wm.pim .wm-read { display: none !important; }
.wm-pim { grid-column: 3 / -1; grid-row: 2; min-height: 0; overflow: hidden; padding: 14px 16px; display: flex; flex-direction: column; }
.wm-pim[hidden] { display: none !important; }
.wm-cal { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.wm-cal:hover { background: rgba(255, 255, 255, .06); }
.wm-cal input { display: none; } .wm-cal i { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--c); flex: none; }
.wm-cal input:checked + i { background: var(--c); }
.wm-cal span:not(.dim) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pim-ev { --c: var(--accent); }
/* permissions dialog */
.wm-perm { margin: 10px 0; max-height: 46vh; overflow: auto; }
.wm-perm th.c, .wm-perm td.c { text-align: center; width: 64px; font-size: 11.5px; white-space: normal; }
.wm-perm td { vertical-align: middle; }
.wm-perm select { min-width: 140px; }
.wm-padd { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 8px; align-items: center; } .wm-padd select { width: 100%; }
@media (max-width: 640px) { .wm-padd { grid-template-columns: 1fr; } }
.wm-phelp { font-size: 12.5px; margin-top: 10px; line-height: 1.5; }
.modal.wide:has(.wm-perm) { width: min(980px, 100%); }
html[data-theme-mode="light"] .wm-rail { background: rgba(0, 0, 0, .04); }
html[data-theme-mode="light"] .wm-ribbon { background: rgba(0, 0, 0, .02); }
html[data-theme-mode="light"] .wm-grp { --wm-grp-bg: rgba(246, 248, 252, .95); }
html[data-theme-mode="light"] .wm-item, html[data-theme-mode="light"] .wm-item:hover { border-bottom-color: rgba(0, 0, 0, .05); }
html[data-theme-mode="light"] .wm-item:hover, html[data-theme-mode="light"] .wm-folder:hover, html[data-theme-mode="light"] .wm-boxh:hover,
html[data-theme-mode="light"] .wm-app:hover, html[data-theme-mode="light"] .wm-rb:hover:not(:disabled), html[data-theme-mode="light"] .wm-ib:hover { background: rgba(0, 0, 0, .05); }
html[data-theme-mode="light"] .wm-lfilter button.on { background: rgba(0, 0, 0, .07); }
@media (max-width: 1250px) { .wm { grid-template-columns: 64px 210px minmax(260px, 340px) minmax(0, 1fr); } .wm-search { width: 220px; } }
@media (max-width: 1100px) { .wm { grid-template-columns: 64px 200px minmax(0, 1fr); } .wm-read { display: none !important; }
    .wm.reading .wm-list { display: none !important; } .wm.reading .wm-read { display: flex !important; grid-column: 3; } .wm-back { display: inline-flex; }
    .wm-pim { grid-column: 3; } }
@media (max-width: 760px) { .wm { grid-template-columns: 1fr; grid-template-rows: auto auto auto minmax(420px, 1fr); height: auto; }
    .wm-rail { grid-row: 1; flex-direction: row; justify-content: center; border-right: 0; border-bottom: 1px solid var(--glass-border); padding: 6px; }
    .wm-rail-logo { width: 34px; height: 34px; margin: 0 8px 0 0; } .wm-rail .grow { display: none; } .wm-app.active::before { display: none; }
    .wm-ribbon { grid-column: 1; grid-row: 2; } .wm-rgl { display: none; } .wm-rb .l { display: none; } .wm-rb.big .l { display: inline; } .wm-search { width: auto; flex: 1; }
    .wm-side { grid-column: 1; grid-row: 3; border-right: 0; border-bottom: 1px solid var(--glass-border); max-height: 220px; }
    .wm-list, .wm.reading .wm-read, .wm-pim { grid-column: 1 !important; grid-row: 4; } .wm-list { border-right: 0; } }
.wm-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 14.5px; line-height: 1.55; margin: 0; }
.wm-frame { flex: 1; width: 100%; min-height: 420px; border: 0; border-radius: 12px; background: #fff; }
.wm-compose textarea { width: 100%; min-height: 300px; margin-top: 8px; font-family: inherit; font-size: 14px; line-height: 1.5; }
.wm-compose .row { grid-template-columns: 90px minmax(0, 1fr); padding: 4px 0; border-bottom: 0; }
.wm-catts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.modal.wide:has(.wm-compose) { width: min(900px, 100%); }
.grow { flex: 1; }

/* admin */
.mail-svcs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.mail-out { max-height: 260px; overflow: auto; white-space: pre-wrap; font-size: 12px; }
.mail-client td { white-space: nowrap; }
.mail-list { margin: 6px 0; padding-left: 20px; font-size: 13px; line-height: 1.55; }
.mail-add { display: flex; gap: 8px; margin-top: 12px; } .mail-add input { flex: 1; }
.bimi-wrap { display: flex; gap: 16px; align-items: center; margin: 10px 0; }
.bimi-prev { width: 120px; height: 120px; border-radius: 22px; overflow: hidden; flex: none; background: rgba(0, 0, 0, .2); }
.bimi-prev img { width: 100%; height: 100%; display: block; }
.bimi-info { min-width: 0; overflow-wrap: anywhere; }
.mail-dns { margin-top: 14px; }
.dns-tbl td { white-space: normal; vertical-align: top; }
.dns-tbl .dns-name code, .dns-tbl .dns-val code { overflow-wrap: anywhere; word-break: break-all; font-size: 12px; }
.dns-tbl .dns-val { min-width: 300px; }
.dns-tbl tr.dns-opt td { opacity: .85; }
#admin-mailsrv a.btn, #admin-maildns a.btn { text-decoration: none; }
.dns-tbl .dns-name { min-width: 230px; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 650;
    background: rgba(255, 255, 255, .08); border: 1px solid var(--glass-border); color: var(--text); white-space: nowrap; }
.badge.ok { background: rgba(48, 209, 88, .18); border-color: rgba(48, 209, 88, .45); color: #8ff0ac; }
.badge.warn { background: rgba(255, 214, 10, .14); border-color: rgba(255, 214, 10, .4); color: #ffe36a; }
.badge.err { background: rgba(255, 69, 58, .18); border-color: rgba(255, 69, 58, .45); color: #ff9a92; }
.wm-tools input, .mail-add input { background: var(--theme-input-bg, rgba(0,0,0,.28)); border: 1px solid var(--theme-input-border, rgba(255,255,255,.14));
    color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; }
#admin-maildomains .tiles { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
#admin-maildomains .news-act { white-space: nowrap; }
@media (max-width: 1000px) { #admin-maildomains .tiles { grid-template-columns: 1fr; } }
.mail-auto { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 6px; }

/* 🩺 2.35: direct sending check */
.md-sum { margin: 10px 0 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--glass-border); }
.md-sum.ok { background: rgba(48, 209, 88, .14); border-color: rgba(48, 209, 88, .4); }
.md-sum.warn { background: rgba(255, 214, 10, .12); border-color: rgba(255, 214, 10, .4); }
.md-sum.bad { background: rgba(255, 69, 58, .14); border-color: rgba(255, 69, 58, .4); }
.md-checks { display: grid; gap: 6px; margin: 6px 0 4px; }
.md-check { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .035); font-size: 13.5px; }
.md-check .i { flex: none; }
.md-check .dim { overflow-wrap: anywhere; }
.md-check .fix { margin-top: 3px; font-size: 12.5px; color: var(--user-text, #f5f7fb); opacity: .9; }
.md-check.bad { background: rgba(255, 69, 58, .08); }

/* 2.36.1: MX test */
.md-mx-h { margin: 14px 0 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.md-mx td { padding: 6px 8px; font-size: 13px; vertical-align: top; }
.md-mx td:first-child { width: 22px; }
.md-mx td:nth-child(2) { white-space: nowrap; }
.md-mx tr.bad td { background: rgba(255, 69, 58, .07); }
.md-mx .fix { margin-top: 3px; font-size: 12.5px; color: var(--user-text, #f5f7fb); }
.md-mx { table-layout: fixed; width: 100%; }
.md-mx td:nth-child(2) { width: 100px; }
.md-mx td:nth-child(3) { white-space: normal !important; overflow-wrap: anywhere; }

/* 2.38: own aliases */
.mb-alias { color: var(--accent); }
.mb-alias-list { display: grid; gap: 6px; margin: 10px 0; }
.mb-alias-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.mb-alias-add { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.mb-alias-add input { flex: 1 1 140px; } .mb-alias-add select { flex: 0 1 220px; }
.mb-alias-add .btn { white-space: nowrap; flex: none; }
.modal.wide:has(.mb-alias-add) { width: min(680px, 100%); }
/* 2.38: compose with the N8 Editor, signatures */
.wm-compose .n8ed { margin-top: 8px; }
.wm-compose .n8ed-area { max-height: 52vh; overflow-y: auto; }
.wm-compose select#wcFrom { width: 100%; }
.wm-sigsel { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.wm-sigsel select { max-width: 200px; }
.wm-sidebtns { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.wm-sigm { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; min-height: 340px; }
.wm-sigl { display: flex; flex-direction: column; gap: 6px; }
.wm-sigi { text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; }
.wm-sigi.on { border-color: var(--accent); background: var(--theme-accent-soft, rgba(90, 200, 250, .18)); }
.wm-sigi small { display: block; color: var(--text-dim); font-size: 11.5px; }
.wm-sigsrv { margin-top: 10px; padding: 8px; border-radius: 10px; border: 1px dashed var(--glass-border); }
.wm-sigprev { font-size: 12.5px; max-height: 160px; overflow: auto; margin-top: 4px; }
.wm-sigprev img { max-width: 100%; }
@media (max-width: 760px) { .wm-sigm { grid-template-columns: 1fr; } }

/* 2.38 – 📅 calendar and 👤 contacts in the webmail */
.pim-book { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 16px; height: 100%; min-height: 0; }
.pim-blist { display: flex; flex-direction: column; min-height: 0; }
.pim-items { flex: 1; overflow: auto; margin: 0 -6px; }
.pim-letter { font-size: 11px; font-weight: 800; color: var(--accent); padding: 8px 10px 2px; letter-spacing: .08em; }
.pim-item { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; font-size: 13.5px; }
.pim-item:hover { background: rgba(255, 255, 255, .05); }
.pim-item.active { background: var(--theme-accent-soft, rgba(90, 200, 250, .16)); border-color: var(--theme-accent-border, rgba(90, 200, 250, .38)); }
.pim-item .dim { font-size: 12px; }
.pim-av { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--theme-accent-soft, rgba(90, 200, 250, .2)); color: var(--accent); font-weight: 800; }
.pim-av.big { width: 64px; height: 64px; font-size: 28px; }
.pim-bfoot { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 8px; }
.pim-bdetail { overflow: auto; min-height: 0; padding-right: 4px; }
.pim-card { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; } .pim-card h2 { margin: 0; font-size: 22px; }
.pim-acts { justify-content: flex-start; margin-bottom: 12px; }
.pim-form .row { grid-template-columns: 130px minmax(0, 1fr); }
.pim-form textarea { min-height: 70px; }
.pim-dt { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .pim-dt input, .pim-dt select { width: auto; }
.pim-att { display: flex; gap: 6px; flex-wrap: wrap; }
.chk { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.pim-ac { position: absolute; z-index: 60; left: 90px; right: 0; top: 100%; background: var(--panel-solid, #1b2333); border: 1px solid var(--line, rgba(255,255,255,.12));
    border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); padding: 4px; max-height: 260px; overflow: auto; }
.pim-form .pim-ac { left: 130px; }
.pim-aci { padding: 7px 10px; border-radius: 9px; cursor: pointer; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pim-aci.active, .pim-aci:hover { background: var(--theme-accent-soft, rgba(90, 200, 250, .18)); }
.pim-cal { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.pim-chead { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; } .pim-chead h2 { margin: 0 0 0 8px; font-size: 19px; }
.pim-cbody { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; min-height: 0; }
.pim-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(6, minmax(0, 1fr)); gap: 4px; min-height: 0; }
.pim-dow { text-align: center; font-size: 11.5px; font-weight: 750; color: var(--text-dim); text-transform: uppercase; padding-bottom: 2px; }
.pim-day { border-radius: 10px; background: rgba(255, 255, 255, .035); padding: 4px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; cursor: default; min-height: 64px; }
.pim-day:hover { background: rgba(255, 255, 255, .06); }
.pim-day.other { opacity: .45; }
.pim-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.pim-dn { font-size: 12px; font-weight: 750; padding: 0 3px; } .pim-day.today .pim-dn { color: var(--accent); }
.pim-ev { font-size: 11.5px; line-height: 1.3; padding: 2px 5px; border-radius: 6px; background: color-mix(in srgb, var(--c, var(--accent)) 22%, transparent); border-left: 3px solid var(--c, var(--accent));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.pim-ev.allday { background: var(--c, var(--accent)); color: #04121c; border-left-color: transparent; font-weight: 650; }
.pim-ev.invited { border-left-color: #ffb547; }
.pim-more { font-size: 11px; padding: 0 4px; }
.pim-agenda { overflow: auto; border-left: 1px solid var(--line, rgba(255,255,255,.1)); padding-left: 14px; display: flex; flex-direction: column; gap: 8px; }
.pim-agenda h4 { margin: 0 0 4px; }
.pim-aitem { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); cursor: pointer; font-size: 13px; border-left: 3px solid var(--c, var(--accent)); }
.pim-aitem:hover { background: rgba(255, 255, 255, .07); } .pim-aitem .dim { font-size: 12px; }
.pim-invite { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px;
    background: var(--theme-accent-soft, rgba(90, 200, 250, .12)); border: 1px solid var(--theme-accent-border, rgba(90, 200, 250, .38)); font-size: 13.5px; }
.pim-invite.cancel { background: rgba(255, 90, 90, .1); border-color: rgba(255, 90, 90, .4); }
.pim-ihead { grid-column: 1 / -1; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.pim-ibody { display: flex; flex-direction: column; gap: 2px; } .pim-ibody b { font-size: 15px; }
.pim-ibtns { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; justify-content: flex-end; }
.pim-urls { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; align-items: center; margin: 12px 0; font-size: 13.5px; }
.pim-urls code, .pim-feed { overflow-wrap: anywhere; word-break: break-all; user-select: all; }
.pim-feed { display: block; margin: 6px 0; }
.pim-tips { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.55; }
@media (max-width: 1100px) { .pim-cbody { grid-template-columns: 1fr; } .pim-agenda { border: 0; padding: 0; max-height: 260px; } }
@media (max-width: 800px) { .pim-book { grid-template-columns: 1fr; } .pim-bdetail { max-height: none; } }
@media (max-width: 720px) { .pim-day { min-height: 54px; } .pim-ev b { display: none; } }
.wm-tools { display: flex; gap: 8px; margin-bottom: 8px; } .wm-tools input { flex: 1; }
