/* Workspace cards, panels, and data-heavy surfaces. */

.work-shell{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:100%;
}
.work-head{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.work-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.work-stat{
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  padding:14px;
}
.work-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  align-content:start;
}
.work-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.work-item{
  border:1px solid rgba(61,48,33,.08);
  border-radius:18px;
  background:var(--surface);
  padding:14px;
  transition:.2s ease;
}
.work-item:hover{
  transform:translateY(-1px);
  border-color:var(--line-strong);
  box-shadow:var(--shadow-soft);
}
.work-item-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.work-item-title{
  font-size:13px;
  font-weight:600;
  color:var(--ink);
  line-height:1.5;
}
.work-item-copy{
  margin-top:6px;
  font-size:12px;
  color:var(--ink-soft);
  line-height:1.7;
}
.work-item-sub{
  margin-top:6px;
  font-size:11px;
  color:var(--muted);
}
.work-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.comm-title-wrap,
.section-title,
.section-title-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}
.comm-illustration{
  width:54px;
  height:54px;
  border-radius:16px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:linear-gradient(145deg,#f8fafc,#eef4ff);
  border:1px solid rgba(99,102,241,.12);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.screen-glyph{
  width:28px;
  height:28px;
  border-radius:10px;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  color:#24304f;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  font-weight:700;
  line-height:1;
}
.screen-glyph-network{
  width:32px;
  height:32px;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%,#24304f 0 2px,transparent 3px),
    radial-gradient(circle at 26% 30%,#4f6fca 0 3px,transparent 4px),
    radial-gradient(circle at 74% 32%,#3d7b5a 0 3px,transparent 4px),
    radial-gradient(circle at 72% 72%,#9b7d45 0 3px,transparent 4px),
    linear-gradient(145deg,#ffffff,#eef4ff);
}
.screen-glyph-current::before{content:"C";}
.screen-glyph-suggestion::before{content:"S";}
.screen-glyph-recent::before{content:"R";}
.screen-glyph-privacy::before{content:"P";}
.event-create-box{
  gap:10px;
}
.event-create-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.event-create-box .setting-input{
  min-height:44px;
  border-radius:12px;
  padding:10px 12px;
}
.event-create-box textarea.setting-input{
  min-height:84px;
}
.work-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.work-item.soft{
  background:rgba(255,251,245,.62);
}
.settings-shell{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:100%;
}
.settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.field-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.setting-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.setting-label{
  font-family:'IBM Plex Mono',monospace;
  font-size:10px;
  color:var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
}
.setting-input{
  width:100%;
  border:1px solid rgba(61,48,33,.12);
  border-radius:16px;
  background:var(--surface);
  color:var(--ink);
  padding:13px 14px;
  font-family:'Sora',sans-serif;
  font-size:13px;
  line-height:1.6;
  resize:vertical;
  min-height:50px;
}
.setting-input:focus{
  outline:none;
  border-color:rgba(140,102,64,.32);
  box-shadow:0 0 0 4px rgba(140,102,64,.08);
}
.settings-list,.integration-grid{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.integration-card{
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  padding:14px;
}
.integration-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.settings-note{
  font-size:12px;
  color:var(--ink-soft);
  line-height:1.7;
}
.settings-pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.mempty{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  padding:18px;
  border:1px dashed rgba(140,102,64,.2);
  border-radius:20px;
  background:rgba(255,251,245,.58);
}
.mempty-title{
  font-size:14px;
  font-weight:600;
  color:var(--ink);
}
.mempty-copy{
  font-size:13px;
  color:var(--ink-soft);
  line-height:1.7;
}
.trust-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:4px;
}
.trust-pill{
  padding:5px 8px;
  border-radius:999px;
  background:rgba(63,123,90,.1);
  border:1px solid rgba(63,123,90,.16);
  color:var(--success);
  font-family:'IBM Plex Mono',monospace;
  font-size:10px;
}
.R{grid-area:R;display:flex;flex-direction:column}
.fh{padding:20px 20px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.fs{flex:1;padding:18px;display:flex;flex-direction:column;gap:10px}
.fcd.al{background:rgba(169,113,52,.08)}
.fcd.ok2{background:rgba(63,123,90,.08)}
.ftr{gap:8px;margin-bottom:8px}
.fi{
  width:28px;height:28px;border-radius:10px;display:grid;place-items:center;
  background:rgba(140,102,64,.08);font-size:13px
}
.fal{display:inline-block;margin-top:8px;color:var(--accent);font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.06em}
@media (max-width:1280px){
  .app{grid-template-columns:220px minmax(0,1fr);grid-template-areas:"nav nav" "L main" "R R";grid-template-rows:76px minmax(0,1fr) auto}
  .R{max-height:300px}
}
@media (max-width:940px){
  body{overflow:auto}
  .app{grid-template-columns:1fr;grid-template-areas:"nav" "main" "R";grid-template-rows:auto auto auto;height:auto;min-height:100vh}
  .L{display:none}
  .hero{flex-direction:column;align-items:flex-start}
  .hero h1{font-size:40px}
  .R{min-height:320px}
}
@media (max-width:640px){
  .app{padding:12px;gap:12px}
  nav{flex-direction:column;align-items:flex-start;gap:10px;padding:16px}
  .ns{flex-wrap:wrap}
  .hero{padding:22px}
  .hero h1{font-size:34px}
  .tabs{overflow:auto;flex-wrap:nowrap}
  .cb,.sp,.tp,.cp{padding:18px}
  .cf{padding:16px}
  .mb{max-width:100%}
  .callers{grid-template-columns:1fr}
}

/* Product shell override */
:root{
  --page-max:1680px;
  --rail-width:290px;
  --content-max:1160px;
}

body{
  background:
    radial-gradient(circle at 8% 14%,rgba(232,211,186,.42),transparent 26%),
    radial-gradient(circle at 88% 14%,rgba(188,214,204,.14),transparent 22%),
    radial-gradient(circle at 50% -2%,rgba(255,255,255,.8),transparent 24%),
    linear-gradient(180deg,#f8f4ee 0%,#efe8de 48%,#ece3d9 100%);
}

#bg{
  opacity:.08;
  filter:blur(20px);
  transform:scale(1.03);
}

.L,
.hero{
  display:none;
}

.app{
  grid-template-columns:var(--rail-width) minmax(0,1fr);
  grid-template-areas:
    "nav nav"
    "rail main";
  grid-template-rows:auto minmax(0,1fr);
  gap:18px;
  padding:20px 24px 24px;
  max-width:var(--page-max);
  margin:0 auto;
  height:100vh;
}

nav{
  position:sticky;
  top:16px;
  z-index:60;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  min-height:82px;
  padding:12px 14px;
  border-radius:24px;
  border-color:rgba(61,48,33,.08);
  background:rgba(255,252,248,.72);
  box-shadow:0 20px 52px rgba(55,39,18,.07);
}

nav::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(120deg,rgba(255,255,255,.3),transparent 42%,rgba(255,255,255,.12));
  pointer-events:none;
}

.nb{
  min-width:0;
}

.bn{
  gap:2px;
}

.bt{
  font-size:28px;
}

.nav-center{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.nav-caption{
  font-family:'IBM Plex Mono',monospace;
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}

.nav-message{
  min-width:0;
  font-size:14px;
  color:var(--ink-soft);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ns{
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pill{
  position:relative;
  overflow:hidden;
  min-height:40px;
  border-color:rgba(61,48,33,.08);
  background:rgba(255,255,255,.6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68);
}

.pill::before{
  content:'';
  position:absolute;
  inset:auto -16% -58% auto;
  width:84px;
  height:84px;
  background:radial-gradient(circle,rgba(140,102,64,.11),transparent 72%);
  opacity:0;
  transition:opacity .22s ease;
}

.pill:hover::before{
  opacity:1;
}

.status-pill{
  min-width:188px;
  justify-content:center;
}

.compact-pill{
  padding-inline:13px;
}

.account-pill{
  background:linear-gradient(135deg,rgba(255,255,255,.8),rgba(245,236,224,.68));
}

.account-pill.signed-in{
  border-color:rgba(63,123,90,.16);
  background:linear-gradient(135deg,rgba(241,250,246,.94),rgba(236,245,241,.74));
}

.account-pill.signed-in .dot{
  background:var(--success);
}
