@charset "utf-8";

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root { --background: 40 33% 97%; --foreground: 50 8% 10%; --card: 0 0% 100%; --card-foreground: 50 8% 10%; --popover: 0 0% 100%; --popover-foreground: 50 8% 10%; --primary: 222 46% 20%; --primary-foreground: 0 0% 100%; --secondary: 16 82% 43%; --secondary-foreground: 0 0% 100%; --muted: 38 22% 92%; --muted-foreground: 45 5% 41%; --accent: 45 70% 55%; --accent-foreground: 38 40% 14%; --destructive: 0 72% 51%; --destructive-foreground: 0 0% 98%; --border: 38 20% 88%; --input: 38 20% 88%; --ring: 222 46% 20%; --radius: 0.5rem; --bg: #FAF8F3; --bg-2: #F2EEE4; --surface: #FFFFFF; --ink: #1A1A17; --ink-2: #3A3A35; --mute-c: #6B6B63; --mute-2: #9A9A90; --line: #E6E2D6; --line-2: #EFEBDF; --accent-c: oklch(0.72 0.15 75); --accent-ink: oklch(0.42 0.09 70); --accent-soft: oklch(0.96 0.04 85); --ok: oklch(0.70 0.14 150); --ok-soft: oklch(0.96 0.04 150); --ok-ink: oklch(0.38 0.08 150); --ok-border: oklch(0.88 0.07 150); --warn: oklch(0.74 0.15 55); --warn-soft: oklch(0.96 0.04 55); --warn-ink: oklch(0.42 0.09 55); --warn-border: oklch(0.88 0.08 55); --danger: oklch(0.62 0.18 25); --danger-soft: oklch(0.96 0.03 25); --danger-ink: oklch(0.42 0.1 25); --danger-border: oklch(0.88 0.08 25); --info: oklch(0.65 0.12 240); --info-soft: oklch(0.96 0.02 240); --info-ink: oklch(0.38 0.08 240); --info-border: oklch(0.88 0.05 240); }

*, ::before, ::after { box-sizing: border-box; margin: 0px; }

html, body { height: 100%; }

body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; font-feature-settings: "rlig", "calt"; background: hsl(var(--background)); color: hsl(var(--foreground)); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }

.display { font-family: "Inter Tight", Inter, sans-serif; letter-spacing: -0.02em; }

.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, "Cascadia Code", "Fira Code", monospace; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-size: 14px; font-weight: 500; font-family: inherit; border-radius: calc(var(--radius) - 2px); height: 36px; padding: 0px 16px; transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, opacity 0.15s; cursor: pointer; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; text-decoration: none; outline: none; }

.btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

.btn:disabled { pointer-events: none; opacity: 0.5; }

.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px; }

.btn-primary:hover { background: hsl(var(--primary) / 0.9); }

.btn-destructive { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px; }

.btn-destructive:hover { background: hsl(var(--destructive) / 0.9); }

.btn-outline { border: 1px solid hsl(var(--input)); background: hsl(var(--background)); color: hsl(var(--foreground)); box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px; }

.btn-outline:hover { background: hsl(var(--primary) / 0.06); color: hsl(var(--primary)); }

.btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px; }

.btn-secondary:hover { background: rgb(176, 60, 17); }

.btn-ghost { background: transparent; color: hsl(var(--foreground)); }

.btn-ghost:hover { background: hsl(var(--primary) / 0.06); color: hsl(var(--primary)); }

.btn-link { background: transparent; color: hsl(var(--primary)); text-underline-offset: 4px; height: auto; padding: 0px; }

.btn-link:hover { text-decoration: underline; }

.btn-accent { background: var(--accent-c); color: rgb(42, 31, 5); box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px; }

.btn-accent:hover { filter: brightness(0.95); }

.btn-sm { height: 32px; padding: 0px 12px; font-size: 13px; border-radius: calc(var(--radius) - 2px); gap: 6px; }

.btn-lg { height: 44px; padding: 0px 32px; font-size: 16px; border-radius: var(--radius); }

.btn-icon { width: 36px; height: 36px; padding: 0px; }

.btn-icon.btn-sm { width: 32px; height: 32px; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: calc(var(--radius) - 2px); color: hsl(var(--muted-foreground)); cursor: pointer; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; background: transparent; transition: background-color 0.15s, color 0.15s; }

.icon-btn:hover { background: hsl(var(--primary) / 0.06); color: hsl(var(--foreground)); }

.icon-btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

.badge { display: inline-flex; align-items: center; gap: 4px; border: 1px solid transparent; border-radius: calc(var(--radius) - 2px); padding: 2px 10px; font-size: 12px; font-weight: 600; line-height: 1; height: 22px; transition: background-color 0.15s, color 0.15s, border-color 0.15s; white-space: nowrap; }

.badge-default { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: transparent; }

.badge-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); border-color: transparent; }

.badge-outline { background: transparent; color: hsl(var(--foreground)); border-color: hsl(var(--border)); }

.badge-destructive { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); border-color: transparent; }

.badge-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: oklch(0.9 0.07 85); }

.badge-success { background: var(--ok-soft); color: var(--ok-ink); border-color: var(--ok-border); }

.badge-warning { background: var(--warn-soft); color: var(--warn-ink); border-color: var(--warn-border); }

.badge-danger { background: var(--danger-soft); color: var(--danger-ink); border-color: var(--danger-border); }

.badge-info { background: var(--info-soft); color: var(--info-ink); border-color: var(--info-border); }

.input { display: flex; width: 100%; height: 36px; border-radius: calc(var(--radius) - 2px); border: 1px solid hsl(var(--input)); background: transparent; padding: 0px 12px; font-size: 14px; line-height: 1.5; color: hsl(var(--foreground)); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }

.input::placeholder { color: hsl(var(--muted-foreground)); }

.input:focus { border-color: hsl(var(--primary)); box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--primary) / 0.2); }

.input:disabled { cursor: not-allowed; opacity: 0.5; }

.input[type="file"] { padding: 6px 12px; }

select.input { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B6B63' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-position: right 8px center; background-repeat: no-repeat; background-size: 20px; padding-right: 32px; }

.textarea { display: flex; width: 100%; min-height: 80px; border-radius: calc(var(--radius) - 2px); border: 1px solid hsl(var(--input)); background: transparent; padding: 8px 12px; font-size: 14px; line-height: 1.5; resize: vertical; color: hsl(var(--foreground)); outline: none; transition: border-color 0.15s, box-shadow 0.15s; font-family: inherit; }

.textarea::placeholder { color: hsl(var(--muted-foreground)); }

.textarea:focus { border-color: hsl(var(--primary)); box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--primary) / 0.2); }

.label { font-size: 14px; font-weight: 500; line-height: 1; color: hsl(var(--foreground)); }

.label-muted { font-size: 12px; font-weight: 500; color: hsl(var(--muted-foreground)); letter-spacing: 0.02em; text-transform: uppercase; }

.card { border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--card-foreground)); box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px; }

.card-header { display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 0px; }

.card-title { font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }

.card-description { font-size: 14px; color: hsl(var(--muted-foreground)); }

.card-content { padding: 24px; }

.card-footer { display: flex; align-items: center; padding: 0px 24px 24px; }

.separator { flex-shrink: 0; background: hsl(var(--border)); }

.separator-h { height: 1px; width: 100%; }

.separator-v { width: 1px; align-self: stretch; }

.avatar { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 9999px; overflow: hidden; background: hsl(var(--muted)); font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); }

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-sm { width: 24px; height: 24px; font-size: 10px; }

.avatar-lg { width: 40px; height: 40px; font-size: 14px; }

.avatar-xl { width: 48px; height: 48px; font-size: 16px; }

.avatar-accent { background: hsl(var(--primary)); color: rgb(255, 255, 255); }

.tabs-list { display: inline-flex; align-items: center; height: 36px; border-radius: calc(var(--radius) - 2px); background: hsl(var(--muted)); padding: 4px; gap: 0px; }

.tabs-trigger { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: calc(var(--radius) - 4px); padding: 0px 12px; height: 28px; font-size: 13px; font-weight: 500; color: hsl(var(--muted-foreground)); background: transparent; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; cursor: pointer; transition: 0.15s; }

.tabs-trigger:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

.tabs-trigger[data-state="active"], .tabs-trigger.active { background: hsl(var(--background)); color: hsl(var(--foreground)); box-shadow: rgba(0, 0, 0, 0.06) 0px 1px 2px, rgba(0, 0, 0, 0.1) 0px 1px 3px; }

.dialog-overlay { position: fixed; inset: 0px; z-index: 50; background: rgba(0, 0, 0, 0.8); animation: 0.15s ease 0s 1 normal none running dialog-overlay-show; }

.dialog-content { position: fixed; left: 50%; top: 50%; z-index: 50; transform: translate(-50%, -50%); display: grid; gap: 16px; width: 100%; max-width: 512px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--background)); padding: 24px; box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px; animation: 0.15s ease 0s 1 normal none running dialog-content-show; }

.dialog-header { display: flex; flex-direction: column; gap: 6px; text-align: left; }

.dialog-title { font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: -0.015em; }

.dialog-description { font-size: 14px; color: hsl(var(--muted-foreground)); }

.dialog-footer { display: flex; justify-content: flex-end; gap: 8px; }

.dialog-close { position: absolute; right: 16px; top: 16px; border-radius: calc(var(--radius) - 4px); opacity: 0.7; cursor: pointer; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; background: transparent; padding: 4px; display: flex; align-items: center; justify-content: center; transition: opacity 0.15s; }

.dialog-close:hover { opacity: 1; }

@keyframes dialog-overlay-show { 
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes dialog-content-show { 
  0% { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.table-wrapper { width: 100%; overflow: auto; border-radius: var(--radius); border: 1px solid hsl(var(--border)); }

table.table { width: 100%; caption-side: bottom; font-size: 14px; border-collapse: collapse; }

.table thead tr { border-bottom: 1px solid hsl(var(--border)); }

.table th { height: 40px; padding: 0px 16px; text-align: left; vertical-align: middle; font-weight: 500; color: hsl(var(--muted-foreground)); }

.table tbody tr { border-bottom: 1px solid hsl(var(--border)); transition: background-color 0.15s; }

.table tbody tr:last-child { border-bottom: 0px; }

.table tbody tr:hover { background: hsl(var(--muted) / 0.5); }

.table td { padding: 12px 16px; vertical-align: middle; }

.alert { position: relative; width: 100%; border-radius: var(--radius); border: 1px solid hsl(var(--border)); padding: 16px; font-size: 14px; }

.alert-title { margin-bottom: 4px; font-weight: 500; line-height: 1; letter-spacing: -0.01em; }

.alert-description { font-size: 14px; line-height: 1.5; color: hsl(var(--muted-foreground)); }

.alert-accent { background: var(--accent-soft); border-color: oklch(0.9 0.07 85); color: var(--accent-ink); }

.alert-destructive { border-color: hsl(var(--destructive) / 0.5); color: hsl(var(--destructive)); }

.kbd { display: inline-flex; align-items: center; padding: 2px 6px; font-family: "JetBrains Mono", monospace; font-size: 11px; border-top-color: ; border-top-style: ; border-top-width: ; border-right-color: ; border-right-style: ; border-right-width: ; border-bottom-color: ; border-bottom-style: ; border-left-color: ; border-left-style: ; border-left-width: ; border-image-source: ; border-image-slice: ; border-image-width: ; border-image-outset: ; border-image-repeat: ; border-bottom-width: 2px; border-radius: calc(var(--radius) - 4px); background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.dot-gold { background: var(--accent-c); }

.dot-green { background: var(--ok); }

.dot-red { background: var(--danger); }

.dot-blue { background: var(--info); }

[data-tooltip] { position: relative; }

[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding: 4px 8px; font-size: 12px; line-height: 1.3; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-radius: calc(var(--radius) - 2px); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.15s; margin-bottom: 4px; }

[data-tooltip]:hover::after { opacity: 1; }

.skeleton { border-radius: calc(var(--radius) - 2px); background: hsl(var(--muted)); animation: 2s cubic-bezier(0.4, 0, 0.6, 1) 0s infinite normal none running skeleton-pulse; }

@keyframes skeleton-pulse { 
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.select-tile { display: flex; gap: 12px; padding: 16px; border: 1px solid hsl(var(--input)); border-radius: var(--radius); background: hsl(var(--card)); cursor: pointer; transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s; }

.select-tile:hover { border-color: hsl(var(--foreground) / 0.3); }

.select-tile.on { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.04); box-shadow: 0 0 0 1px hsl(var(--primary)); }

.select-tile .tile-icon { width: 40px; height: 40px; border-radius: var(--radius); background: hsl(var(--muted)); display: grid; place-items: center; flex: 0 0 auto; color: hsl(var(--muted-foreground)); }

.select-tile.on .tile-icon { background: hsl(var(--primary)); color: rgb(255, 255, 255); }

.select-tile .t { font-weight: 600; font-size: 14px; margin-bottom: 2px; }

.select-tile .d { font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.45; }

.app-shell { display: grid; grid-template-columns: 220px 1fr; height: 100vh; background: hsl(var(--background)); }

.railbar { background: hsl(var(--background)); border-right: 1px solid hsl(var(--border)); display: flex; flex-direction: column; padding: 16px 12px; gap: 2px; overflow-y: auto; }

.rail-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 8px 20px; }

.rail-brand-text { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }

.rail-brand-name { font-family: "Inter Tight"; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.1; }

.rail-brand-sub { font-size: 11px; color: hsl(var(--muted-foreground)); line-height: 1.1; }

.rail-item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0px 10px; border-radius: calc(var(--radius) - 2px); color: hsl(var(--muted-foreground)); font-size: 14px; font-weight: 500; transition: 0.15s; position: relative; cursor: pointer; text-decoration: none; }

.rail-item:hover { background: hsl(var(--primary) / 0.06); color: hsl(var(--foreground)); }

.rail-item.active { background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px hsl(var(--border)); }

.rail-item.active::before { content: ""; position: absolute; left: 0px; top: 7px; bottom: 7px; width: 3px; background: hsl(var(--secondary)); border-radius: 2px; }

.rail-item .count { margin-left: auto; font-size: 12px; color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; min-width: 20px; text-align: right; }

.rail-item.active .count { color: hsl(var(--foreground)); }

.rail-footer { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }

.rail-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: calc(var(--radius) - 2px); cursor: pointer; text-decoration: none; color: inherit; }

.rail-user:hover { background: hsl(var(--primary) / 0.06); }

.work { display: flex; height: 100vh; background: hsl(var(--background)); }

.pane { display: flex; flex-direction: column; min-width: 0px; min-height: 0px; flex-shrink: 0; }

.pane + .pane, .pane-resize + .pane { border-left-width: medium; border-left-style: none; border-left-color: currentcolor; }

.pane-inbox { width: 320px; }

.pane-thread { flex: 1 1 0%; min-width: 0px; }

.pane-details { width: 340px; flex-shrink: 0; }

.pane-empty { flex: 1 1 0%; }

.pane-resize { width: 5px; cursor: col-resize; position: relative; flex-shrink: 0; background: transparent; z-index: 5; }

.pane-resize::before { content: ""; position: absolute; left: 2px; top: 0px; bottom: 0px; width: 1px; background: hsl(var(--border)); transition: background 0.15s, width 0.15s, left 0.15s; }

.pane-resize:hover::before, .pane-resize.dragging::before { background: hsl(var(--primary)); width: 3px; left: 1px; }

body.col-resizing { cursor: col-resize; user-select: none; }

body.col-resizing * { cursor: col-resize !important; }

.pane-head { height: 52px; display: flex; align-items: center; padding: 0px 16px; gap: 10px; border-bottom: 1px solid hsl(var(--border)); flex: 0 0 auto; }

.pane-title { font-family: "Inter Tight"; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }

.pane-body { flex: 1 1 0%; min-height: 0px; overflow-y: auto; }

.inbox-filterbar { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid hsl(var(--border) / 0.6); align-items: center; }

.ticket-row { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid hsl(var(--border) / 0.5); cursor: pointer; position: relative; text-decoration: none; color: inherit; transition: background-color 0.1s; }

.ticket-row:hover { background: hsl(var(--muted) / 0.5); }

.ticket-row.active { background: hsl(var(--card)); box-shadow: inset 3px 0 0 hsl(var(--primary)); }

.t-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 2px; }

.t-from { font-weight: 600; font-size: 13px; color: hsl(var(--foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.t-time { font-size: 12px; color: hsl(var(--muted-foreground)); white-space: nowrap; }

.t-subj { font-size: 13px; color: hsl(var(--foreground) / 0.8); font-weight: 500; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.t-prev { font-size: 12.5px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.t-meta { display: flex; gap: 6px; margin-top: 8px; align-items: center; flex-wrap: wrap; }

.t-id { font-family: "JetBrains Mono"; font-size: 11px; color: var(--mute-2); }

.t-dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--mute-2); }

.thread-head { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 20px; border-bottom: 1px solid hsl(var(--border)); flex: 0 0 auto; }

.thread-head .h-id { font-family: "JetBrains Mono"; font-size: 12px; color: hsl(var(--muted-foreground)); }

.thread-head .h-subj { font-family: "Inter Tight"; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }

.thread-body { flex: 1 1 0%; overflow-y: auto; padding: 24px 40px; background: hsl(var(--background)); }

.msg { max-width: 560px; margin-bottom: 18px; }

.msg-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: hsl(var(--muted-foreground)); }

.msg-meta .n { font-weight: 600; color: hsl(var(--foreground)); }

.msg-body { border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: calc(var(--radius) - 4px) var(--radius) var(--radius) var(--radius); padding: 14px 16px; font-size: 14px; line-height: 1.6; color: hsl(var(--foreground) / 0.85); }

.msg.me { margin-left: auto; }

.msg.me .msg-meta { justify-content: flex-end; }

.msg.me .msg-body { background: hsl(var(--primary)); color: rgb(255, 255, 255); border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; border-radius: var(--radius) calc(var(--radius) - 4px) var(--radius) var(--radius); }

.msg.system { max-width: 100%; margin: 18px 0px; }

.msg.system .msg-body { background: var(--accent-soft); border-color: oklch(0.9 0.07 85); border-radius: calc(var(--radius) - 2px); font-size: 13px; color: var(--accent-ink); padding: 10px 14px; }

.msg-attach { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); font-size: 13px; color: hsl(var(--foreground) / 0.7); }

.msg.me .msg-attach { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: rgb(255, 255, 255); }

.msg.me .msg-body svg { color: rgba(255, 255, 255, 0.85); }

.msg.me .msg-body .icon-btn { color: rgba(255, 255, 255, 0.7); }

.msg.me .msg-body .icon-btn:hover { background: rgba(255, 255, 255, 0.15); color: rgb(255, 255, 255); }

.msg.me .msg-body a { color: rgba(255, 255, 255, 0.9); }

.date-rule { text-align: center; font-size: 12px; color: var(--mute-2); margin: 18px 0px; letter-spacing: 0.06em; text-transform: uppercase; }

.date-rule::before, .date-rule::after { content: ""; display: inline-block; width: 60px; height: 1px; background: hsl(var(--border)); vertical-align: middle; margin: 0px 12px; }

.composer { flex: 0 0 auto; padding: 14px 40px 18px; border-top: 1px solid hsl(var(--border)); background: hsl(var(--background)); }

.composer-tabs { display: flex; gap: 0px; margin-bottom: 8px; }

.composer-tabs button { padding: 8px 14px; font-size: 13px; font-weight: 500; color: hsl(var(--muted-foreground)); border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; cursor: pointer; background: transparent; transition: 0.15s; }

.composer-tabs button.on { background: hsl(var(--card)); color: hsl(var(--foreground)); border-top-color: ; border-top-style: ; border-top-width: ; border-right-color: ; border-right-style: ; border-right-width: ; border-bottom-style: ; border-bottom-width: ; border-left-color: ; border-left-style: ; border-left-width: ; border-image-source: ; border-image-slice: ; border-image-width: ; border-image-outset: ; border-image-repeat: ; border-bottom-color: hsl(var(--card)); margin-bottom: -1px; }

.composer-box { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 12px 14px; }

.composer-box textarea { width: 100%; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; outline: none; resize: none; font-size: 14px; min-height: 48px; background: transparent; font-family: inherit; color: hsl(var(--foreground)); }

.composer-box textarea::placeholder { color: hsl(var(--muted-foreground)); }

.composer-tools { display: flex; align-items: center; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid hsl(var(--border) / 0.5); }

.composer-tools .spacer { flex: 1 1 0%; }

.details { padding: 20px 20px 40px; }

.details section { padding: 16px 0px; border-bottom: 1px solid hsl(var(--border) / 0.5); }

.details section:first-child { padding-top: 4px; }

.details section:last-child { border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; }

.details .section-title { font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

.details .kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; font-size: 13px; }

.details .kv dt { color: hsl(var(--muted-foreground)); display: flex; align-items: center; gap: 6px; }

.details .kv dd { color: hsl(var(--foreground)); font-weight: 500; margin: 0px; }

.details .person { display: flex; align-items: center; gap: 10px; padding: 8px 0px; }

.details .person-name { font-weight: 500; font-size: 13px; }

.details .person-role { font-size: 12px; color: hsl(var(--muted-foreground)); }

.kb-card { padding: 14px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; display: block; text-decoration: none; color: inherit; }

.kb-card:hover { border-color: hsl(var(--foreground) / 0.3); box-shadow: rgba(0, 0, 0, 0.06) 0px 1px 3px; }

.kb-card .k-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }

.kb-card .k-prev { font-size: 12.5px; color: hsl(var(--muted-foreground)); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.kb-card .k-meta { display: flex; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--mute-2); }

.req-shell { height: 100vh; display: flex; flex-direction: column; background: hsl(var(--background)); }

.req-topbar { display: flex; align-items: center; padding: 0px 32px; height: 56px; background: hsl(var(--primary)); color: rgb(255, 255, 255); flex: 0 0 auto; gap: 16px; }

.req-topbar-brand { display: flex; align-items: center; gap: 10px; }

.req-topbar-brand img { height: 28px; width: auto; filter: drop-shadow(rgb(255, 255, 255) 0px 0px 0px) drop-shadow(rgb(255, 255, 255) 0px 0px 1px) drop-shadow(rgb(255, 255, 255) 0px 0px 2px); }

.req-topbar-brand .name { font-family: "Inter Tight"; font-weight: 600; font-size: 15px; line-height: 1; }

.req-topbar-brand .sub { font-size: 10px; color: rgba(255, 255, 255, 0.6); line-height: 1; }

.req-topbar .spacer { flex: 1 1 0%; }

.req-topbar .icon-btn { color: rgba(255, 255, 255, 0.7); }

.req-topbar .icon-btn:hover { background: rgba(255, 255, 255, 0.12); color: rgb(255, 255, 255); }

.req-topbar .dropdown-trigger-default { color: rgb(255, 255, 255); }

.req-topbar .dropdown-trigger-default:hover { background: rgba(255, 255, 255, 0.1); }

.req-topbar .avatar-accent { background: rgba(255, 255, 255, 0.2); color: rgb(255, 255, 255); }

.req-tabs { display: flex; align-items: center; padding: 0px 32px; height: 44px; background: hsl(var(--card)); border-bottom: 1px solid hsl(var(--border)); flex: 0 0 auto; gap: 0px; }

.req-tab { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0px 16px; font-size: 13px; font-weight: 500; color: hsl(var(--muted-foreground)); text-decoration: none; position: relative; transition: color 0.15s, background 0.15s; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; background: none; cursor: pointer; font-family: inherit; }

.req-tab:hover { color: hsl(var(--foreground)); background: hsl(var(--primary) / 0.04); }

.req-tab.on { color: hsl(var(--foreground)); }

.req-tab.on::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0px; height: 2px; background: hsl(var(--secondary)); border-radius: 1px 1px 0px 0px; }

.ticket-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }

.ticket-detail-main { min-width: 0px; }

.ticket-detail-sidebar { min-width: 0px; }

.ticket-status-bar { display: flex; align-items: center; gap: 10px; padding: 10px 24px; font-size: 13px; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--muted)); }

.ticket-status-bar.ticket-status-open { background: rgb(252, 248, 238); }

.ticket-status-bar.ticket-status-pending { background: rgb(253, 247, 237); }

.ticket-status-bar.ticket-status-solved { background: rgb(241, 249, 245); }

.ticket-status-bar.ticket-status-closed { background: hsl(var(--muted)); }

.ticket-detail-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13px; }

.kv-label { color: hsl(var(--muted-foreground)); white-space: nowrap; }

.kv-value { font-weight: 500; color: hsl(var(--foreground)); }

@media (max-width: 768px) {
  .ticket-detail-layout { grid-template-columns: 1fr; }
  .ticket-detail-sidebar { order: -1; }
}

.file-upload-zone { padding: 24px; border: 2px dashed hsl(var(--border)); border-radius: var(--radius); text-align: center; color: hsl(var(--muted-foreground)); font-size: 13px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }

.file-upload-zone:hover { border-color: hsl(var(--primary) / 0.4); background: hsl(var(--primary) / 0.02); }

.file-upload-zone.dragover { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.04); }

.file-upload-link { color: hsl(var(--secondary)); font-weight: 600; cursor: pointer; text-decoration: none; }

.file-upload-link:hover { text-decoration: underline; }

.file-preview-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); background: hsl(var(--card)); margin-bottom: 4px; }

.file-preview-icon { width: 36px; height: 36px; border-radius: calc(var(--radius) - 2px); background: hsl(var(--muted)); display: grid; place-items: center; color: hsl(var(--muted-foreground)); flex-shrink: 0; overflow: hidden; }

.form-row { margin-bottom: 20px; }

.form-row label { display: block; font-size: 14px; font-weight: 500; color: hsl(var(--foreground)); margin-bottom: 8px; }

.form-row .hint { font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 6px; }

.login { height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: hsl(var(--card)); }

.login-left { display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; position: relative; }

.login-grid-bg { position: absolute; inset: 0px; background-image: linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px), linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(70% 60% at 50% 45%, black 20%, transparent 80%); pointer-events: none; }

.login-right { position: relative; overflow: hidden; background: linear-gradient(155deg, rgb(15, 29, 58) 0%, rgb(27, 42, 78) 50%, rgb(42, 55, 88) 100%); }

.login-right-grid { position: absolute; inset: 0px; background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 40px 40px; }

.btn-paus { width: 100%; height: 44px; justify-content: center; font-size: 14px; font-weight: 600; background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); border-radius: calc(var(--radius) - 2px); letter-spacing: 0.01em; box-shadow: rgba(199, 78, 21, 0.3) 0px 1px 3px, rgba(199, 78, 21, 0.2) 0px 1px 2px; }

.btn-paus:hover { background: rgb(176, 60, 17); }

.btn-paus:focus-visible { outline: 2px solid hsl(var(--secondary)); outline-offset: 2px; }

.btn-google { width: 100%; height: 44px; justify-content: center; font-size: 14px; font-weight: 500; background: #ffffff; color: #1f1f1f; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); gap: 10px; }
.btn-google:hover { background: #f8f9fa; border-color: #dadce0; }
.btn-google:focus-visible { outline: 2px solid #4285f4; outline-offset: 2px; }

* { scrollbar-width: thin; scrollbar-color: hsl(var(--border)) transparent; }

::-webkit-scrollbar { width: 8px; height: 8px; }

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 4px; }

::-webkit-scrollbar-thumb:hover { background: var(--mute-2); }

.user-dropdown { display: none; position: absolute; bottom: 100%; left: 0px; margin-bottom: 8px; z-index: 50; min-width: 220px; width: max-content; background: hsl(var(--popover)); color: hsl(var(--popover-foreground)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px; overflow: hidden; }

.user-dropdown.open { display: block; animation: 0.15s ease 0s 1 normal none running dropdown-up; }

.user-dropdown-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; font-size: 13px; font-weight: 500; color: hsl(var(--foreground)); background: transparent; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; cursor: pointer; border-radius: calc(var(--radius) - 4px); text-decoration: none; font-family: inherit; transition: background-color 0.1s; text-align: left; }

.user-dropdown-item:hover { background: hsl(var(--primary) / 0.06); }

.user-dropdown-item svg { flex-shrink: 0; }

.dropdown-item-icon { display: flex; align-items: center; justify-content: center; width: 16px; flex-shrink: 0; }

.dropdown-item-danger { color: hsl(var(--destructive)); }

.user-dropdown form { margin: 0px; padding: 0px; }

@keyframes dropdown-up { 
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0px); }
}

@keyframes dropdown-down { 
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0px); }
}

.req-topbar .user-dropdown { inset: 100% 0px auto auto; margin-bottom: 0px; margin-top: 8px; }

.req-topbar .user-dropdown.open { animation: 0.15s ease 0s 1 normal none running dropdown-down; }

.rail-footer { overflow: visible; }

.dropdown-trigger-default { display: flex; align-items: center; gap: 8px; background: none; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; cursor: pointer; padding: 4px 8px; border-radius: calc(var(--radius) - 2px); transition: background 0.15s; font-family: inherit; color: inherit; }

.dropdown-trigger-default:hover { background: hsl(var(--primary) / 0.06); }

.dropdown-trigger-rail { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; background: none; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; cursor: pointer; border-radius: calc(var(--radius) - 2px); font-family: inherit; color: inherit; text-align: left; transition: background 0.15s; }

.dropdown-trigger-rail:hover { background: hsl(var(--primary) / 0.06); }

.rotate-90 { transform: rotate(90deg); }

.rotate-180 { transform: rotate(180deg); }

.nav-toggle { display: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0px; margin: -1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); border: 0px; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hide-mobile { }

.hide-desktop { display: none; }

@media (max-width: 768px) {
  .login { grid-template-columns: 1fr; }
  .login-right { display: none; }
  .login-left { padding: 24px; }
}

@media (max-width: 768px) {
  .req-topbar { padding: 0px 16px; height: 48px; gap: 10px; }
  .req-topbar-brand .sub { display: none; }
  .req-tabs { padding: 0px 8px; overflow-x: auto; gap: 0px; }
  .req-tab { padding: 0px 12px; font-size: 12px; white-space: nowrap; }
  .hide-mobile { display: none; }
  .hide-desktop { display: flex; }
}

@media (max-width: 640px) {
  .grid-2col { grid-template-columns: 1fr !important; }
  .grid-3col { grid-template-columns: 1fr !important; }
  .article-meta { flex-wrap: wrap; gap: 8px; }
  .form-footer { flex-direction: column; gap: 12px; text-align: center; align-items: stretch !important; }
  .form-footer > div { justify-content: center; }
  .article-feedback { flex-wrap: wrap; }
  .cta-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 1024px) {
  .pane-details { display: none; }
  .pane-resize[data-resize-side="right"] { display: none; }
}

@media (max-width: 768px) {
  .app-shell { grid-template-columns: 1fr; }
  .railbar { display: none; }
  .work { flex-direction: column; }
  .pane-inbox { width: 100% !important; max-height: 40vh; }
  .pane-resize { display: none; }
  .pane-thread { flex: 1 1 0%; }
}
