:root {
  --bg: #d8e4f0;
  --panel: #e6eff8;
  --panel-soft: #dbe7f3;
  --panel-strong: #e0ebf6;
  --ink: #12233b;
  --muted: #5f728d;
  --line: #bccfe0;
  --brand: #1d9dd8;
  --brand-dark: #27349f;
  --brand-deep: #102a43;
  --brand-soft: #e5f5fd;
  --ok: #1f6d45;
  --danger: #9d2121;
  --shadow: 0 12px 28px rgba(10, 32, 56, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(29, 157, 216, 0.18), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(39, 52, 159, 0.14), transparent 36%),
    linear-gradient(150deg, #dfe9f3 0%, #d4e0ec 54%, #dbe7f2 100%);
  font-family: 'Exo 2', 'Avenir Next', 'Trebuchet MS', sans-serif;
}

.app-shell {
  width: min(1240px, 94vw);
  margin: 18px auto 34px;
}

.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #c7d2de;
  background: linear-gradient(180deg, #eef1f4, #e7ecf1);
  box-shadow: var(--shadow);
}

.brand-logo-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
}

.logo-full {
  max-width: min(72vw, 520px);
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-fallback {
  align-items: center;
  gap: 14px;
}

.logo-fallback h1 {
  margin: 0;
  line-height: 1;
  font-size: clamp(1.3rem, 2vw, 2rem);
  letter-spacing: 0.04em;
  color: var(--brand-dark);
}

.logo-fallback p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #4a5f78;
  letter-spacing: 0.08em;
}

.logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 20px 45px 20px 45px;
  background: linear-gradient(170deg, var(--brand) 0%, #0f6db9 52%, var(--brand-dark) 100%);
  transform: rotate(-16deg);
  box-shadow: 0 12px 20px rgba(16, 42, 67, 0.25);
}

.brand-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: #5c6f86;
  font-size: 0.9rem;
  white-space: nowrap;
}

.brand-contact strong {
  color: var(--brand-deep);
  font-size: 1.05rem;
}

.app-nav {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-chip {
  border: 1px solid #d4e4f3;
  background: #f5f9fc;
  color: #284663;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-chip-active {
  background: linear-gradient(145deg, #e8f6fe, #d6ecfc);
  border-color: #b5dcf5;
  color: #0d4b77;
}

.app-nav .btn {
  margin-left: auto;
}

.view {
  display: none;
}

.view.view-active {
  display: block;
}

.dashboard-hero {
  margin-top: 14px;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid #0b4063;
  background:
    linear-gradient(115deg, rgba(8, 29, 56, 0.98) 0%, rgba(9, 56, 92, 0.94) 42%, rgba(18, 123, 183, 0.88) 100%),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.18), transparent 45%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 32px rgba(9, 32, 58, 0.2);
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.09), transparent 36%),
    radial-gradient(circle at 82% 75%, rgba(186, 232, 255, 0.16), transparent 40%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

.dashboard-hero > :not(.hero-shapes) {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  margin: 0;
  color: #b8deef;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-hero h2 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-family: 'Rajdhani', 'Exo 2', sans-serif;
}

.dashboard-hero p {
  margin: 10px 0 0;
  max-width: 640px;
  color: #eaf7ff;
  font-weight: 500;
}

.dashboard-hero .btn {
  margin-top: 16px;
}

.hero-mark {
  width: clamp(120px, 17vw, 190px);
  height: clamp(120px, 17vw, 190px);
  border-radius: 38% 62% 57% 43% / 31% 31% 69% 69%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: hero-mark-float 5.8s ease-in-out infinite;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-shapes::before,
.hero-shapes::after {
  content: '';
  position: absolute;
  inset: -55% 0 0;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-shapes::before {
  background-image:
    radial-gradient(circle, rgba(211, 238, 255, 0.28) 0 3px, transparent 3.2px),
    radial-gradient(circle, rgba(211, 238, 255, 0.18) 0 2px, transparent 2.2px),
    radial-gradient(circle, rgba(211, 238, 255, 0.24) 0 2.5px, transparent 2.7px),
    radial-gradient(circle, rgba(211, 238, 255, 0.2) 0 2px, transparent 2.2px),
    radial-gradient(circle, rgba(211, 238, 255, 0.22) 0 2.5px, transparent 2.7px);
  background-position:
    8% 12%,
    26% 34%,
    47% 20%,
    68% 38%,
    87% 16%;
  animation: hero-particle-fall 18s linear infinite;
}

.hero-shapes::after {
  background-image:
    radial-gradient(circle, rgba(196, 229, 251, 0.22) 0 2.5px, transparent 2.7px),
    radial-gradient(circle, rgba(196, 229, 251, 0.2) 0 2px, transparent 2.2px),
    radial-gradient(circle, rgba(196, 229, 251, 0.24) 0 2.8px, transparent 3px),
    radial-gradient(circle, rgba(196, 229, 251, 0.18) 0 2px, transparent 2.2px),
    radial-gradient(circle, rgba(196, 229, 251, 0.22) 0 2.4px, transparent 2.6px);
  background-position:
    14% 24%,
    33% 10%,
    54% 30%,
    73% 14%,
    92% 34%;
  animation: hero-particle-fall 22s linear infinite -9s;
}

.hero-shapes span {
  position: absolute;
  top: -24%;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(202, 234, 255, 0.5);
  background: rgba(194, 231, 255, 0.28);
  border-radius: 4px;
  transform: rotate(45deg);
  filter: drop-shadow(0 4px 7px rgba(4, 22, 43, 0.36));
  animation: hero-shape-fall 11s linear infinite;
  will-change: transform, opacity;
}

.hero-shapes span:nth-child(2n) {
  border-radius: 999px;
  transform: rotate(0deg);
}

.hero-shapes span:nth-child(1) {
  left: 10%;
  width: 10px;
  height: 10px;
  animation-duration: 9.6s;
  animation-delay: -2.5s;
}

.hero-shapes span:nth-child(2) {
  left: 18%;
  width: 16px;
  height: 16px;
  animation-duration: 12.6s;
  animation-delay: -6s;
}

.hero-shapes span:nth-child(3) {
  left: 28%;
  width: 11px;
  height: 11px;
  animation-duration: 10.1s;
  animation-delay: -1s;
}

.hero-shapes span:nth-child(4) {
  left: 40%;
  width: 13px;
  height: 13px;
  animation-duration: 13.8s;
  animation-delay: -9.2s;
}

.hero-shapes span:nth-child(5) {
  left: 52%;
  width: 9px;
  height: 9px;
  animation-duration: 8.8s;
  animation-delay: -3.1s;
}

.hero-shapes span:nth-child(6) {
  left: 63%;
  width: 12px;
  height: 12px;
  animation-duration: 11.4s;
  animation-delay: -8s;
}

.hero-shapes span:nth-child(7) {
  left: 72%;
  width: 15px;
  height: 15px;
  animation-duration: 13.2s;
  animation-delay: -4.4s;
}

.hero-shapes span:nth-child(8) {
  left: 81%;
  width: 8px;
  height: 8px;
  animation-duration: 9.4s;
  animation-delay: -7.1s;
}

.hero-shapes span:nth-child(9) {
  left: 89%;
  width: 12px;
  height: 12px;
  animation-duration: 11.7s;
  animation-delay: -5.5s;
}

.hero-shapes span:nth-child(10) {
  left: 95%;
  width: 10px;
  height: 10px;
  animation-duration: 10.8s;
  animation-delay: -10.2s;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.kpi-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.kpi-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.kpi-card h3 {
  margin: 8px 0 0;
  font-size: 1.4rem;
  color: var(--brand-deep);
  font-family: 'Rajdhani', 'Exo 2', sans-serif;
}

.dashboard-search-panel {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  box-shadow: var(--shadow);
}

.dashboard-search-panel label {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.project-list-panel {
  margin-top: 14px;
}

.zoho-list-status {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #5d758f;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid #d0deeb;
  background: #f4f8fc;
  color: #2f5377;
}

.status-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(47, 83, 119, 0.12);
}

.recent-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.recent-project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background:
    radial-gradient(circle at 95% 8%, rgba(34, 132, 214, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff, #f6fbff);
  box-shadow: 0 8px 20px rgba(17, 52, 82, 0.08);
  display: grid;
  gap: 8px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.recent-project-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #7d95ac, #5d7994);
}

.recent-project-card:hover {
  transform: translateY(-4px);
  border-color: #a6c7e3;
  box-shadow: 0 16px 30px rgba(14, 42, 72, 0.16);
}

.recent-project-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.recent-project-head h3 {
  margin: 0;
  font-family: 'Rajdhani', 'Exo 2', sans-serif;
  font-size: 1.12rem;
  color: #0f3558;
  line-height: 1.2;
}

.recent-date {
  font-size: 0.76rem;
  border: 1px solid #b6d1e8;
  background: linear-gradient(180deg, #f1f9ff, #e7f2fb);
  color: #2a5275;
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.recent-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.recent-meta-pill {
  border: 1px solid #d4e4f2;
  border-radius: 10px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #f6fbff, #edf5fc);
}

.recent-meta-pill span {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #67839f;
}

.recent-meta-pill strong {
  display: block;
  margin-top: 3px;
  font-size: 0.94rem;
  color: #133f64;
  line-height: 1.2;
}

.recent-meta-pill.stage {
  position: relative;
  border-left-width: 4px;
  border-left-style: solid;
}

.recent-meta-pill.stage .stage-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
  animation: stage-pulse 1.8s ease-in-out infinite;
}

.recent-meta-pill.stage.tone-active {
  border-color: #0f3f95;
  background: linear-gradient(180deg, #ebf2ff, #dce8ff);
}

.recent-meta-pill.stage.tone-active .stage-value {
  color: #0f3f95;
}

.recent-meta-pill.stage.tone-planning {
  border-color: #9f7220;
  background: linear-gradient(180deg, #fff8e8, #fff1ce);
}

.recent-meta-pill.stage.tone-planning .stage-value {
  color: #805a16;
}

.recent-meta-pill.stage.tone-review {
  border-color: #0f90b7;
  background: linear-gradient(180deg, #e9f8ff, #d7effa);
}

.recent-meta-pill.stage.tone-review .stage-value {
  color: #0b6f8f;
}

.recent-meta-pill.stage.tone-hold {
  border-color: #c45826;
  background: linear-gradient(180deg, #fff1ea, #ffe2d7);
}

.recent-meta-pill.stage.tone-hold .stage-value {
  color: #9b3e13;
}

.recent-meta-pill.stage.tone-delay {
  border-color: #b46716;
  background: linear-gradient(180deg, #fff5e8, #ffe8cd);
}

.recent-meta-pill.stage.tone-delay .stage-value {
  color: #8f520f;
}

.recent-meta-pill.stage.tone-complete {
  border-color: #1f7e49;
  background: linear-gradient(180deg, #ecf9f1, #dff3e8);
}

.recent-meta-pill.stage.tone-complete .stage-value {
  color: #176339;
}

.recent-meta-pill.stage.tone-cancelled {
  border-color: #ad2424;
  background: linear-gradient(180deg, #ffeef0, #ffdfe4);
}

.recent-meta-pill.stage.tone-cancelled .stage-value {
  color: #8a1919;
}

.recent-meta-pill.stage.tone-default {
  border-color: #5a7591;
  background: linear-gradient(180deg, #eef4fa, #e3ecf5);
}

.recent-meta-pill.stage.tone-default .stage-value {
  color: #385571;
}

.recent-project-card.tone-active::before {
  background: linear-gradient(90deg, #0d367f, #1b5bd3);
}

.recent-project-card.tone-planning::before {
  background: linear-gradient(90deg, #8b631a, #c0922f);
}

.recent-project-card.tone-review::before {
  background: linear-gradient(90deg, #0f7aa2, #18b0d9);
}

.recent-project-card.tone-hold::before {
  background: linear-gradient(90deg, #a74417, #d36b33);
}

.recent-project-card.tone-delay::before {
  background: linear-gradient(90deg, #8b5314, #ce8a34);
}

.recent-project-card.tone-complete::before {
  background: linear-gradient(90deg, #1f5f39, #299556);
}

.recent-project-card.tone-cancelled::before {
  background: linear-gradient(90deg, #841d1d, #c13a3a);
}

.recent-project-card.tone-default::before {
  background: linear-gradient(90deg, #4f6780, #7e97ae);
}

.recent-use-btn {
  justify-self: start;
  padding: 8px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.recent-project-card:hover .recent-use-btn {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #1d9dd8, #27349f);
  color: #fff;
  box-shadow: 0 10px 18px rgba(39, 52, 159, 0.28);
}

.tone-active.status-chip {
  background: #e6efff;
  border-color: #bfd2ff;
  color: #0f3f95;
}

.tone-planning.status-chip {
  background: #fff5df;
  border-color: #f1d8a9;
  color: #8c631a;
}

.tone-review.status-chip {
  background: #e4f7ff;
  border-color: #bfeaf7;
  color: #0a789d;
}

.tone-hold.status-chip {
  background: #ffede5;
  border-color: #f3c6b2;
  color: #a44117;
}

.tone-delay.status-chip {
  background: #fff3e3;
  border-color: #edd4ad;
  color: #8b5518;
}

.tone-complete.status-chip {
  background: #e7f8ee;
  border-color: #bde6cd;
  color: #1d6a3e;
}

.tone-cancelled.status-chip {
  background: #ffecef;
  border-color: #efc0c8;
  color: #981f25;
}

.tone-default.status-chip {
  background: #edf3f9;
  border-color: #cddce9;
  color: #44617d;
}

#dashboardView,
#editorView {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #b9cee2;
  background:
    radial-gradient(circle at 90% 0%, rgba(29, 157, 216, 0.2), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(39, 52, 159, 0.14), transparent 32%),
    linear-gradient(165deg, #e7f0f8 0%, #dce7f2 52%, #e3edf7 100%);
  box-shadow: 0 16px 34px rgba(17, 47, 79, 0.16);
}

#dashboardView .dashboard-hero {
  margin-top: 0;
}

.workflow-panel {
  margin-top: 14px;
}

.workflow-panel ol {
  margin: 0;
  color: var(--muted);
}

.workflow-panel li + li {
  margin-top: 6px;
}

.editor-header {
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(14, 63, 101, 0.5);
  border-radius: 14px;
  background:
    linear-gradient(118deg, rgba(10, 36, 66, 0.98) 0%, rgba(11, 66, 105, 0.95) 45%, rgba(20, 128, 189, 0.9) 100%),
    radial-gradient(circle at 88% 30%, rgba(255, 255, 255, 0.18), transparent 38%);
  box-shadow: 0 18px 34px rgba(11, 42, 73, 0.22);
  position: relative;
  overflow: hidden;
}

.editor-header > :not(.hero-shapes) {
  position: relative;
  z-index: 2;
}

.editor-header::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -60px;
  top: -65px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.editor-header .editor-shapes::before {
  opacity: 0.72;
}

.editor-header .editor-shapes::after {
  opacity: 0.58;
}

.editor-header .editor-shapes span {
  border-color: rgba(194, 228, 250, 0.45);
  background: rgba(190, 228, 251, 0.2);
  animation-duration: 13.5s;
}

.editor-header h2 {
  margin: 8px 0 0;
  font-family: 'Rajdhani', 'Exo 2', sans-serif;
  font-size: 1.8rem;
  color: #ffffff;
}

.editor-header p {
  margin: 4px 0 0;
  color: #d9ecfa;
}

#editorView .editor-header .hero-eyebrow {
  color: #a8d4ef;
}

.editor-actions {
  display: flex;
  gap: 10px;
}

.panel {
  margin-top: 12px;
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  color: #12375a;
}

#editorView .panel {
  border-radius: 14px;
  border: 1px solid #b7ccdf;
  background:
    linear-gradient(180deg, rgba(236, 245, 252, 0.98), rgba(221, 234, 246, 0.98));
  box-shadow: 0 12px 24px rgba(14, 44, 71, 0.09);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

#editorView .panel:hover {
  transform: translateY(-2px);
  border-color: #b9d3e8;
  box-shadow: 0 16px 30px rgba(14, 44, 71, 0.14);
}

#editorView .panel h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #c9ddee;
}

.authenticity-panel {
  border-style: dashed;
  border-color: #9fc3df;
  background:
    radial-gradient(circle at 90% 20%, rgba(27, 145, 210, 0.11), transparent 35%),
    linear-gradient(180deg, #f7fbff, #ecf4fb);
}

.authenticity-heading {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: #1a4f79;
}

.authenticity-statement {
  margin: 8px 0 0;
  color: #123a5f;
  font-size: 0.95rem;
  line-height: 1.45;
}

.authenticity-line {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed #c0d6e8;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  color: #2f4b68;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #284663;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.92rem;
  background: #edf4fb;
  color: #12233b;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #6dbbe4;
  box-shadow: 0 0 0 3px rgba(29, 157, 216, 0.12);
}

input[type='checkbox'],
input[type='radio'] {
  width: auto;
  padding: 0;
}

input[readonly] {
  background: #e2ecf7;
  color: #4f647d;
}

textarea {
  resize: vertical;
}

#editorView input:not([type='checkbox']):not([type='radio']),
#editorView select,
#editorView textarea {
  border-color: #c2d6e8;
  background: linear-gradient(180deg, #edf4fb, #e2edf7);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

#editorView input:not([type='checkbox']):not([type='radio']):hover,
#editorView select:hover,
#editorView textarea:hover {
  border-color: #9fc3df;
}

#editorView input[readonly] {
  background: linear-gradient(180deg, #f4f8fc, #ebf2f9);
  color: #35506a;
}

.meeting-type-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
  background: #fcfdff;
}

.meeting-type-block h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: #5f728d;
}

.meeting-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.check-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.92rem;
  color: #1c3957;
  font-weight: 600;
}

#editorView .meeting-type-block {
  border-color: #c9dced;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #fcfeff, #f3f9fe);
}

#editorView .check-item {
  padding: 8px 10px;
  border: 1px solid #d5e4f2;
  border-radius: 10px;
  background: #f8fcff;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#editorView .check-item:hover {
  border-color: #9bc5e3;
  background: #eef7ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(16, 63, 102, 0.08);
}

#editorView .check-item input[type='checkbox'] {
  accent-color: #1d9dd8;
}

.meeting-type-other {
  margin-top: 10px;
}

.project-entry-hint {
  margin: 0 0 12px;
  color: #466581;
  font-size: 0.88rem;
}

.project-entry-hint.manual {
  color: #296636;
  font-weight: 700;
}

.zoho-picker-row {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px dashed #a8cae4;
  border-radius: 12px;
  background:
    radial-gradient(circle at 95% 12%, rgba(29, 157, 216, 0.12), transparent 40%),
    linear-gradient(180deg, #f6fbff, #ecf5fd);
}

.zoho-picker-row label {
  margin: 0;
}

.zoho-sync-note {
  margin: 8px 0 0;
  color: #496b8a;
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 600;
}

.editor-status-legend {
  margin-top: 8px;
}

.zoho-project-meta {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.zoho-project-meta .meta-item {
  border: 1px solid #cadceb;
  border-radius: 10px;
  padding: 7px 10px;
  background: linear-gradient(180deg, #f6fbff, #edf5fc);
}

.zoho-project-meta .meta-item span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5c7a97;
}

.zoho-project-meta .meta-item strong {
  display: block;
  margin-top: 2px;
  font-size: 0.93rem;
  color: #113d62;
}

.zoho-project-meta .status-item {
  border-left-width: 4px;
  border-left-style: solid;
}

.zoho-project-meta .status-item.tone-active {
  border-color: #0f3f95;
  background: linear-gradient(180deg, #ebf2ff, #dce8ff);
}

.zoho-project-meta .status-item.tone-active strong {
  color: #0f3f95;
}

.zoho-project-meta .status-item.tone-planning {
  border-color: #9f7220;
  background: linear-gradient(180deg, #fff8e8, #fff1ce);
}

.zoho-project-meta .status-item.tone-planning strong {
  color: #805a16;
}

.zoho-project-meta .status-item.tone-review {
  border-color: #0f90b7;
  background: linear-gradient(180deg, #e9f8ff, #d7effa);
}

.zoho-project-meta .status-item.tone-review strong {
  color: #0b6f8f;
}

.zoho-project-meta .status-item.tone-hold {
  border-color: #c45826;
  background: linear-gradient(180deg, #fff1ea, #ffe2d7);
}

.zoho-project-meta .status-item.tone-hold strong {
  color: #9b3e13;
}

.zoho-project-meta .status-item.tone-delay {
  border-color: #b46716;
  background: linear-gradient(180deg, #fff5e8, #ffe8cd);
}

.zoho-project-meta .status-item.tone-delay strong {
  color: #8f520f;
}

.zoho-project-meta .status-item.tone-complete {
  border-color: #1f7e49;
  background: linear-gradient(180deg, #ecf9f1, #dff3e8);
}

.zoho-project-meta .status-item.tone-complete strong {
  color: #176339;
}

.zoho-project-meta .status-item.tone-cancelled {
  border-color: #ad2424;
  background: linear-gradient(180deg, #ffeef0, #ffdfe4);
}

.zoho-project-meta .status-item.tone-cancelled strong {
  color: #8a1919;
}

.zoho-project-meta .status-item.tone-default {
  border-color: #5a7591;
  background: linear-gradient(180deg, #eef4fa, #e3ecf5);
}

.zoho-project-meta .status-item.tone-default strong {
  color: #385571;
}

.btn {
  border: 0;
  border-radius: 9px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 18px rgba(39, 52, 159, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 24px rgba(39, 52, 159, 0.26);
}

.btn-light {
  background: #ecf4fb;
  color: #144365;
  border: 1px solid #cde0f1;
}

.btn-light:hover {
  background: #e0edf9;
  transform: translateY(-1px);
  box-shadow: 0 10px 16px rgba(21, 63, 100, 0.12);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.table-wrap {
  overflow-x: auto;
}

#editorView .table-wrap {
  border: 1px solid #c8dced;
  border-radius: 12px;
  background: #f8fbff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 8px;
  vertical-align: top;
}

th {
  background: #eff6fd;
  color: #163e61;
  font-weight: 800;
  font-size: 0.88rem;
  text-align: left;
}

#editorView th {
  background: linear-gradient(180deg, #eaf3fc, #ddebf8);
  color: #10395e;
}

#editorView tbody tr:nth-child(even) {
  background: rgba(239, 247, 255, 0.55);
}

#editorView tbody tr:hover {
  background: rgba(218, 236, 250, 0.6);
}

td input,
td textarea,
td select {
  margin: 0;
  padding: 7px;
}

.form-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

#editorView .form-actions {
  position: sticky;
  bottom: 10px;
  padding: 10px 0 2px;
  background: linear-gradient(180deg, rgba(241, 247, 252, 0), rgba(241, 247, 252, 0.95) 30%);
  backdrop-filter: blur(2px);
}

#editorView #submitMomBtn {
  padding: 12px 18px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

dialog {
  border: 0;
  border-radius: 12px;
  width: min(680px, 90vw);
  background: linear-gradient(180deg, #e7f0f8, #dce8f3);
  border: 1px solid #b9cee2;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

dialog::backdrop {
  background: rgba(12, 29, 45, 0.56);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.source-options {
  display: grid;
  gap: 10px;
}

.source-option {
  border: 1px solid #cae1f4;
  border-radius: 10px;
  background: #f5fbff;
  text-align: left;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #12395c;
}

.source-option:hover {
  background: #eaf6ff;
  border-color: #9ccdf1;
}

.source-option strong {
  font-size: 1rem;
}

.source-option span {
  font-size: 0.88rem;
}

.option-list {
  display: grid;
  gap: 8px;
}

.option-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #12395c;
}

.search-row {
  display: flex;
  gap: 10px;
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-item {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.result-item:hover {
  background: linear-gradient(180deg, #f4fbff, #e9f5ff);
  border-color: #bad8ef;
  transform: translateX(2px);
}

.result-item:last-child {
  border-bottom: 0;
}

.result-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid #cadae8;
  font-weight: 800;
  font-size: 0.72rem;
  vertical-align: middle;
  margin: 0 2px;
}

.result-stage-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.result-stage-badge.tone-active {
  color: #0f3f95;
  border-color: #b8cefa;
  background: #e8f0ff;
}

.result-stage-badge.tone-planning {
  color: #8c631a;
  border-color: #ebd4ac;
  background: #fff6e2;
}

.result-stage-badge.tone-review {
  color: #0a789d;
  border-color: #b9e3f0;
  background: #e7f8ff;
}

.result-stage-badge.tone-hold {
  color: #a44117;
  border-color: #f1c4b2;
  background: #ffeee7;
}

.result-stage-badge.tone-delay {
  color: #8b5518;
  border-color: #e9d0a7;
  background: #fff4e5;
}

.result-stage-badge.tone-complete {
  color: #1d6a3e;
  border-color: #b7dfc6;
  background: #ebf9f1;
}

.result-stage-badge.tone-cancelled {
  color: #981f25;
  border-color: #ebbcc4;
  background: #ffedf0;
}

.result-stage-badge.tone-default {
  color: #44617d;
  border-color: #ccdae8;
  background: #eff4fa;
}

menu {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin: 8px 0 0;
}

.hidden {
  display: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: var(--ok);
}

.toast.error {
  background: var(--danger);
}

.animate-in {
  animation: rise-in 0.45s ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stage-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.82;
  }
}

@keyframes hero-mark-float {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }

  50% {
    transform: translateY(-10px) translateX(2px) scale(1.02);
  }
}

@keyframes hero-shape-fall {
  0% {
    transform: translate3d(0, -140px, 0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.84;
  }

  75% {
    opacity: 0.6;
  }

  100% {
    transform: translate3d(-10px, 640px, 0) rotate(220deg);
    opacity: 0;
  }
}

@keyframes hero-particle-fall {
  0% {
    transform: translateY(-6%);
    opacity: 0.3;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(62%);
    opacity: 0.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark,
  .hero-shapes span,
  .hero-shapes::before,
  .hero-shapes::after {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .kpi-grid,
  .recent-project-grid,
  .recent-meta-grid,
  .grid-3,
  .meeting-type-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-contact {
    align-items: flex-start;
  }

  .zoho-project-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .app-nav,
  .editor-header,
  .dashboard-hero,
  .panel-head,
  .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .app-nav .btn {
    margin-left: 0;
  }

  .kpi-grid,
  .recent-project-grid,
  .recent-meta-grid,
  .zoho-project-meta,
  .grid-2,
  .grid-3,
  .meeting-type-grid {
    grid-template-columns: 1fr;
  }

  .editor-actions {
    width: 100%;
  }

  .editor-actions .btn {
    flex: 1;
  }
}
