/* Austrian staff portal: Core Sans, Portada headlines, the Austrian icon font and red */
@font-face { font-family: "Core Sans"; src: url("fonts/CoreSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Core Sans"; src: url("fonts/CoreSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Core Sans"; src: url("fonts/CoreSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Portada"; src: url("fonts/Portada-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "os-iconfont"; src: url("fonts/os-iconfont.woff2") format("woff2"); font-display: block; }

:root {
  --red: #d81e05;
  --red-dark: #ac1804;
  --red-soft: #fbe9e6;
  --ink: #1a1a1a;
  --muted: #5d5d5d;
  --line: #e3e3e3;
  --panel: #f5f3f0;
  --white: #fff;
  --ok: #2e7d32;
  --warn: #b26a00;
  --discord-bg: #313338;
  --discord-embed: #2b2d31;
  --discord-text: #dbdee1;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 "Core Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--panel); }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
h1, h2 { font-family: "Portada", Georgia, serif; font-weight: 600; }
h1 { font-size: 30px; }
h2 { font-size: 21px; }
h3 { font-size: 16px; font-weight: 700; }
a { color: var(--red); }
.boot { padding: 40px; color: var(--muted); }

/* icons */
.i { font-family: "os-iconfont"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; }
.i-home::before { content: "\e9e5"; } .i-plane::before { content: "\e904"; } .i-calendar::before { content: "\e921"; }
.i-person::before { content: "\e9fa"; } .i-people::before { content: "\eaa7"; } .i-doc::before { content: "\e9f2"; }
.i-award::before { content: "\e952"; } .i-mail::before { content: "\e9da"; } .i-globe::before { content: "\ea21"; }
.i-scales::before { content: "\e97e"; } .i-gear::before { content: "\e9e1"; } .i-bag::before { content: "\e9a2"; }
.i-check::before { content: "\ead2"; } .i-clock::before { content: "\e91b"; } .i-headset::before { content: "\e9e3"; }
.i-power::before { content: "\e9d3"; } .i-star::before { content: "\ea28"; } .i-info::before { content: "\eaee"; }
.i-departure::before { content: "\e90b"; } .i-chevron-right::before { content: "\eac7"; } .i-chat::before { content: "\ea14"; }
.i-brush::before { content: "\e993"; } .i-link::before { content: "\e9ec"; } .i-seat::before { content: "\e937"; }

/* layout: white header, side menu */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); height: 68px; display: flex; align-items: center; gap: 18px; padding: 0 22px; }
.logo { width: 140px; height: 20px; background: var(--red); -webkit-mask: url("img/logo.png") left center / contain no-repeat; mask: url("img/logo.png") left center / contain no-repeat; }
.topbar .portal-name { font-weight: 700; color: var(--muted); padding-left: 16px; border-left: 1px solid var(--line); }
.topbar .spacer { flex: 1; }
.me { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.me img, .me .ph { width: 34px; height: 34px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; }
.me small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.menu-btn { display: none; background: none; border: 0; font-size: 22px; padding: 6px; color: var(--ink); cursor: pointer; }
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.side { background: var(--white); border-right: 1px solid var(--line); padding: 18px 12px; }
.nav-group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; }
.nav-group:first-child { padding-top: 0; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a .i { font-size: 18px; color: var(--muted); width: 20px; }
.nav a:hover { background: var(--panel); }
.nav a.on { background: var(--red-soft); color: var(--red); }
.nav a.on .i { color: var(--red); }
.nav a .count { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
main { padding: 28px 30px 60px; min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.top h1 { margin: 0; }

/* cards & forms */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 160px; }
label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 12px 0 5px; text-transform: uppercase; letter-spacing: .04em; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #cfcfcf; border-radius: 10px; padding: 9px 12px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
select[multiple] { min-height: 120px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--red); }
.chip img { width: 16px; height: 16px; vertical-align: -3px; }
button, .btn { font: 700 14px "Core Sans", sans-serif; border: 0; border-radius: 999px; padding: 10px 20px; background: var(--red); color: var(--white); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
button:hover, .btn:hover { background: var(--red-dark); }
button.ghost, .btn.ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px #cfcfcf; }
button.ghost:hover { box-shadow: inset 0 0 0 2px var(--red); color: var(--red); }
button.small, .btn.small { padding: 6px 13px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tabs button.on { background: var(--ink); color: var(--white); box-shadow: none; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #aaa; }
.dot.on { background: var(--ok); } .dot.off { background: var(--red); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--panel); color: var(--muted); }
.pill.sent, .pill.ok { background: #e6f4ea; color: var(--ok); }
.pill.error { background: #fdecea; color: var(--red-dark); }
.pill.pending, .pill.soon { background: #fff4e5; color: var(--warn); }
.listitem { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 10px; background: var(--panel); }

/* portal: welcome, stats, progress, people */
.welcome { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; background: #3d4a5c url("img/hero.jpg") 60% 45% / cover; margin-bottom: 18px; }
.welcome::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 18, 30, .78), rgba(12, 18, 30, .2)); }
.welcome > div { position: relative; z-index: 1; padding: 30px 28px; }
.welcome h1 { color: #fff; }
.welcome p { margin: 0; opacity: .9; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font: 600 30px "Portada", serif; }
.stat span { color: var(--muted); font-size: 13px; }
.stat .i { float: right; font-size: 24px; color: var(--red); }
.progress { height: 10px; background: var(--panel); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.progress div { height: 100%; background: var(--red); border-radius: 99px; }
.person { display: flex; align-items: center; gap: 10px; }
.person img, .person .ph { width: 30px; height: 30px; border-radius: 50%; background: var(--panel); flex: 0 0 auto; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #cfcfcf; display: grid; place-items: center; color: #fff; font-size: 13px; flex: 0 0 auto; }
.check.done .box { background: var(--ok); border-color: var(--ok); }
.prose h2 { font-size: 19px; margin-top: 1.2em; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* Discord-style preview */
.preview { background: var(--discord-bg); color: var(--discord-text); border-radius: var(--radius); padding: 16px; font: 15px/1.375 "gg sans", "Noto Sans", "Core Sans", sans-serif; position: sticky; top: 84px; }
.preview .who-bot { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.preview .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.preview .name { color: #fff; font-weight: 600; }
.preview .tag { background: #5865f2; color: #fff; font-size: 10px; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.preview .content { white-space: pre-wrap; word-wrap: break-word; margin: 2px 0 6px; }
.embed { background: var(--discord-embed); border-left: 4px solid var(--red); border-radius: 4px; padding: 10px 14px 12px; max-width: 520px; }
.embed .title { color: #fff; font-weight: 600; margin-bottom: 6px; }
.embed .desc { white-space: pre-wrap; word-wrap: break-word; font-size: 14px; }
.embed .footer { font-size: 12px; color: #b5bac1; margin-top: 8px; }
.embed .thumb { float: right; width: 80px; height: 80px; object-fit: cover; border-radius: 4px; margin: 0 0 8px 12px; }
.embed .big { display: block; max-width: 100%; max-height: 300px; border-radius: 4px; margin-top: 10px; clear: both; }
.preview a { color: #00a8fc; text-decoration: none; }
.preview .mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.preview .ts { background: rgba(255, 255, 255, .06); border-radius: 3px; padding: 0 2px; }
.preview code { background: #1e1f22; border-radius: 3px; padding: 0 3px; font-size: 13px; }
.preview blockquote { margin: 0; padding-left: 10px; border-left: 4px solid #4e5058; }
.preview img.emoji { width: 1.375em; height: 1.375em; vertical-align: bottom; }
.preview .buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.preview .dbtn { border-radius: 4px; padding: 6px 14px; font-size: 14px; font-weight: 500; color: #fff; background: #4e5058; }
.preview .dbtn.red { background: #da373c; } .preview .dbtn.green { background: #248046; } .preview .dbtn.blue { background: #5865f2; }
.preview .reactions { display: flex; gap: 6px; margin-top: 6px; }
.preview .reaction { background: #2b2d31; border: 1px solid #3f4147; border-radius: 8px; padding: 1px 7px; font-size: 13px; }
.preview .reaction img { width: 16px; height: 16px; vertical-align: -3px; }
.preview .attachments { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.preview .attachments img { max-width: 220px; max-height: 220px; border-radius: 6px; }
.preview .ghost-ping { font-size: 12px; color: #949ba4; margin-bottom: 6px; }

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; }
#toast.bad { background: var(--red-dark); }

/* login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--white); }
.login-photo { position: relative; background: #3d4a5c url("img/hero.jpg") 60% 45% / cover; }
.login-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 18, 30, .7), rgba(12, 18, 30, .1)); }
.login-photo div { position: absolute; z-index: 1; left: 40px; right: 40px; bottom: 40px; color: #fff; }
.login-photo h2 { font-size: 32px; color: #fff; }
.login-box { display: flex; flex-direction: column; justify-content: center; padding: 48px; max-width: 520px; }
.login-box .logo { width: 180px; height: 26px; margin-bottom: 36px; }
.login-box .discord { width: 100%; justify-content: center; padding: 14px; font-size: 16px; margin-top: 10px; }
.login-box details { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.login-box summary { cursor: pointer; color: var(--muted); font-weight: 500; }

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-photo { min-height: 200px; }
  .login-box { padding: 28px 20px; }
  .menu-btn { display: block; }
  .topbar .portal-name { display: none; }
  .me .who { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .side.open { display: block; }
  main { padding: 18px 16px 50px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .preview { position: static; }
}

/* picture field: preview, link, upload */
.imgrow { display: flex; gap: 10px; align-items: center; }
.imgrow input[data-imglink] { flex: 1 1 auto; min-width: 0; }
.imgrow label.btn { margin: 0; flex: 0 0 auto; cursor: pointer; display: inline-flex; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); }
.imgprev { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; background: #f2f2f2; display: grid; place-items: center; overflow: hidden; color: #9a9a9a; font-size: 22px; }
.imgprev img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   Liquid glass + motion. Austrian's red, white and Core Sans stay; the
   surfaces get depth: frosted glass buttons with a light that follows
   the pointer, a frosted top bar, and soft entrance animations.
   ===================================================================== */
:root {
  --glass-edge: rgba(255, 255, 255, .55);
  --glass-shadow: 0 1px 1px rgba(0, 0, 0, .04), 0 6px 18px rgba(26, 26, 26, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
body { background: radial-gradient(1200px 600px at 100% -10%, rgba(216, 30, 5, .07), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(216, 30, 5, .05), transparent 60%), var(--panel); background-attachment: fixed; }

/* buttons: red glass (primary) and clear glass (ghost) */
button, .btn {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 55%), rgba(216, 30, 5, .92);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .15), 0 6px 16px rgba(216, 30, 5, .25);
  backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .2s;
}
button::after, .btn::after { /* the light that follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .45), transparent 60%);
}
button:hover, .btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%), rgba(172, 24, 4, .95);
  transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .15), 0 10px 24px rgba(216, 30, 5, .3); }
button:hover::after, .btn:hover::after { opacity: 1; }
button:active, .btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
button.ghost, .btn.ghost, .tabs button {
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55)); color: var(--ink);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0, 0, 0, .06), var(--glass-shadow);
}
button.ghost::after, .btn.ghost::after, .tabs button::after { background: radial-gradient(110px circle at var(--mx, 50%) var(--my, 0%), rgba(216, 30, 5, .12), transparent 60%); }
button.ghost:hover, .btn.ghost:hover, .tabs button:hover { background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .7)); color: var(--red);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(216, 30, 5, .35), 0 10px 22px rgba(26, 26, 26, .1); }
.tabs button.on { background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 55%), rgba(26, 26, 26, .9); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px rgba(26, 26, 26, .2); }
button:disabled, button:disabled:hover { transform: none; }

/* frosted top bar and side navigation */
.topbar { background: rgba(255, 255, 255, .72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 8px 24px rgba(26, 26, 26, .05); }
.side { background: rgba(255, 255, 255, .6); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-right: 1px solid rgba(255, 255, 255, .7); }
.nav a { transition: background-color .2s, color .2s, transform .25s var(--ease); }
.nav a:hover { background: rgba(255, 255, 255, .9); transform: translateX(3px); box-shadow: var(--glass-shadow); }
.nav a .i { transition: transform .3s var(--ease); }
.nav a:hover .i { transform: scale(1.15); }
.nav a.on { background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(251, 233, 230, .9)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(216, 30, 5, .15); }

/* cards: light glass that lifts a little */
.card { background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, var(--glass-shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0, 0, 0, .04), 0 14px 32px rgba(26, 26, 26, .1); }
input, select, textarea { background: rgba(255, 255, 255, .85); transition: border-color .2s, box-shadow .25s var(--ease); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(216, 30, 5, .14); }
.pill { transition: transform .2s var(--ease); }
.pill.ok::before, .pill.pending::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; animation: pulse 2s infinite; }

/* entrances */
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
#page > * { animation: rise .45s var(--ease) both; }
#page > *:nth-child(2) { animation-delay: .04s; } #page > *:nth-child(3) { animation-delay: .08s; }
#page > *:nth-child(4) { animation-delay: .12s; } #page > *:nth-child(5) { animation-delay: .16s; }
#page > *:nth-child(6) { animation-delay: .2s; } #page > *:nth-child(n+7) { animation-delay: .24s; }
.nav a { animation: slideIn .4s var(--ease) both; }
.login-box > * { animation: rise .6s var(--ease) both; }
.login-box > *:nth-child(2) { animation-delay: .06s; } .login-box > *:nth-child(3) { animation-delay: .12s; } .login-box > *:nth-child(n+4) { animation-delay: .18s; }
.login-photo { animation: fade .9s ease both; }
.imgprev img { animation: fade .3s ease both; }

/* toast: glass pill sliding up */
#toast { background: rgba(26, 26, 26, .82); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  transform: translate(-50%, 16px) scale(.96); transition: opacity .25s, transform .35s var(--ease); }
#toast.show { transform: translate(-50%, 0) scale(1); }
#toast.bad { background: rgba(172, 24, 4, .9); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* direct messages */
.dm-layout { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .dm-layout { grid-template-columns: 1fr; } }
.dm-list { display: flex; flex-direction: column; gap: 8px; }
button.dm-thread { display: grid; gap: 2px; text-align: left; width: 100%; border-radius: 14px; padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .6)); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff, var(--glass-shadow); font-weight: 400; }
button.dm-thread span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.dm-thread small { color: var(--muted); font-size: 11px; }
button.dm-thread.on, button.dm-thread:hover { background: linear-gradient(180deg, #fff, rgba(251, 233, 230, .9)); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(216, 30, 5, .3), var(--glass-shadow); }
.dm-log { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding: 14px 4px; margin: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dm-msg { max-width: 78%; display: grid; gap: 6px; padding: 10px 14px; border-radius: 16px; animation: rise .3s var(--ease) both; }
.dm-msg.in { align-self: flex-start; background: #f1f1f1; border-bottom-left-radius: 4px; }
.dm-msg.out { align-self: flex-end; background: linear-gradient(180deg, #fff3f1, #fbe4e0); border-bottom-right-radius: 4px; }
.dm-msg small { color: var(--muted); font-size: 11px; }
.dm-text { white-space: pre-wrap; word-break: break-word; }
.dm-embed { border-left: 4px solid; background: rgba(255, 255, 255, .7); border-radius: 6px; padding: 8px 10px; display: grid; gap: 4px; white-space: pre-wrap; }
.dm-embed img, .dm-pic { max-width: 260px; border-radius: 8px; }
