* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================
   Dashboard Tokens
========================= */

:root {
  --dashboard-shell-top: 90px;
  --dashboard-radius-lg: 22px;
  --dashboard-radius-md: 18px;
  --dashboard-radius-sm: 12px;

  --dashboard-bg: rgba(255, 255, 255, 0.04);
  --dashboard-bg-soft: rgba(255, 255, 255, 0.03);
  --dashboard-bg-hover: rgba(255, 255, 255, 0.06);

  --dashboard-border: rgba(255, 255, 255, 0.08);
  --dashboard-border-soft: rgba(255, 255, 255, 0.06);
  --dashboard-border-strong: rgba(255, 255, 255, 0.15);

  --dashboard-text: rgba(255, 255, 255, 0.92);
  --dashboard-text-soft: rgba(255, 255, 255, 0.72);
  --dashboard-text-dim: rgba(255, 255, 255, 0.58);
  --dashboard-text-faint: rgba(255, 255, 255, 0.48);

  --dashboard-accent: #23ffcf;
  --dashboard-accent-bg: rgba(35, 255, 207, 0.1);
  --dashboard-accent-bg-strong: rgba(35, 255, 207, 0.18);
  --dashboard-accent-border: rgba(35, 255, 207, 0.3);

  --dashboard-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  --dashboard-gap-lg: 18px;
  --dashboard-gap-md: 12px;
  --dashboard-gap-sm: 8px;

  --dashboard-panel-height: 750px;

  /*============= for LapTop =======================*/
}

/* =========================
   Shell Layout
========================= */

.mainpageFrame {
  min-height: 100vh;
  height: auto;
  overflow: visible;
  padding-top: var(--dashboard-shell-top);
}

.mainpageFrame.noShell {
  padding-top: 0;
}

.mainpageFrame.noShell .mainpageCenter,
.mainpageFrame.noShell .mainpagecenter {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  max-width: none;
}

.mainpageFrame.noShell .mainpageCenter {
  min-height: 100vh;
  padding: 0;
}

/* =========================
   Main Dashboard Canvas
========================= */

.mainpagecenter {
  width: min(
    var(--page-content-width-desktop),
    calc(100vw - var(--page-content-gutter-desktop))
  );
  max-width: none;
  margin: var(--page-content-margin-top-desktop) auto 0;
  min-height: auto;
  height: auto;
  padding: 16px;
  overflow: hidden;
  background: var(--dashboard-bg);
  border-radius: var(--dashboard-radius-md);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--dashboard-shadow);
}

.mainpageFrame.noShell .mainpagecenter {
  width: 100%;
  min-height: 100vh;
  border-radius: 0;
}

/* =========================
   Hero Layout
========================= */

.herobox {
  display: flex;
  gap: var(--dashboard-gap-lg);
  align-items: stretch;
  width: 100%;
  min-height: auto;
}

/* 변경 후 */
.heroboxLeft {
  flex: 0 0 calc(49% - 9px);
  min-width: 0;
}

.heroboxRight {
  flex: 0 0 calc(51% - 9px);
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

/* =========================
   Calendar
========================= */

.calendarBox {
  width: 100%;
  padding: 0;
}

.appleCalendar {
  width: 100%;
  height: var(--dashboard-panel-height);
  min-height: var(--dashboard-panel-height);
  max-height: var(--dashboard-panel-height);
  padding: 10px;
  display: flex;
  flex-direction: column;
  user-select: none;
  color: rgba(255, 255, 255, 0.9);
  background: var(--dashboard-bg-soft);
  border: 1px solid var(--dashboard-border);
  border-radius: var(--dashboard-radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.calHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
}

.calTitle {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.calNav {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--dashboard-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calNav:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.calGrid button {
  color: white;
}

.calWeekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--dashboard-gap-sm);
  padding-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.calWeekdays > div {
  text-align: center;
}

.calGrid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: 8px;
  row-gap: 0px;
}

.calCell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;

  height: 100px;
  min-height: 100px;
  max-height: 100px;
  padding: 8px 8px 6px;
  overflow: hidden;

  border-radius: var(--dashboard-radius-sm);
  border: 1px solid rgba(213, 213, 213, 0.071);
  background: rgba(255, 255, 255, 0.02);

  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
}

.calCell:hover {
  background-color: rgba(35, 255, 207, 0.12);
}

.calCell.isOtherMonth {
  opacity: 0.35;
}

.calCell.isToday {
  color: var(--dashboard-accent);
  background: rgba(35, 255, 207, 0.15);
  border-color: rgba(35, 255, 207, 0.3);
  box-shadow: 0 0 15px rgba(35, 255, 207, 0.2);
}

.calCell.isSelected {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

.calDayNumber {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
}

.calSchedulePreview {
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calSchedulePreviewItem {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid rgba(35, 255, 207, 0.18);
  background: rgba(35, 255, 207, 0.1);

  font-size: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.calSchedulePreviewItem.isDone {
  opacity: 0.55;
  text-decoration: line-through;
}

.calScheduleMore {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

/* =========================
   Right Grid
========================= */
.heroBoxRight_contentBox {
  height: var(--dashboard-panel-height);
  min-height: var(--dashboard-panel-height);
  max-height: var(--dashboard-panel-height);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  column-gap: var(--dashboard-gap-md);
  row-gap: var(--dashboard-gap-md);
}

.rightbox {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 14px;
  box-sizing: border-box;
  color: white;
  background: var(--dashboard-bg);
  border: 1px solid var(--dashboard-border);
  border-radius: var(--dashboard-radius-lg);
  transition: all 0.3s ease;
}

.rightbox:hover {
  background: var(--dashboard-bg-hover);
  border-color: var(--dashboard-border-strong);
  transform: translateY(-2px);
}

.right1,
.right2,
.right3,
.right4,
.right5,
.right6 {
  position: relative;
}

/* =========================
   Exchange Widget
========================= */

.right5.exchangeWidget {
  gap: 6px;
  overflow: hidden;
  padding: 12px;
}

.exchangeHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.exchangeHeader h3 {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.exchangeHeader p {
  margin: 2px 0 0;
  font-size: 9px;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.58);
}

.exchangeBadge {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--dashboard-border);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.exchangeTabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.exchangeTab {
  height: 32px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--dashboard-border);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.exchangeTab.active {
  color: var(--dashboard-accent);
  border-color: rgba(35, 255, 207, 0.28);
  background: rgba(35, 255, 207, 0.08);
}

.exchangeCard {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--dashboard-border);
}

.exchangeTopRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.exchangeLabel {
  display: block;
  margin-bottom: 3px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.exchangeTopRow h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  color: white;
}

.exchangeTrend {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.exchangeTrend.up {
  color: var(--dashboard-accent);
  background: rgba(35, 255, 207, 0.08);
  border: 1px solid rgba(35, 255, 207, 0.2);
}

.exchangeRateMain {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: white;
}

.exchangeRateMain span {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
}

.exchangeMeta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: auto;
}

.exchangeMetaItem {
  position: relative;
  min-width: 0;
  padding: 8px;
  transform-origin: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dashboard-border-soft);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.exchangeMetaItem:hover {
  z-index: 20;
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.exchangeMetaItem span {
  display: block;
  margin-bottom: 3px;
  font-size: 8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.exchangeMetaItem strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 10px;
  font-weight: 700;
  color: white;
}

/* =========================
   Recent Activity
========================= */

.right6.recentActivityWidget {
  gap: 10px;
  height: 100%;
  max-height: none;
}

.recentActivityWidget {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.recentActivityHeader {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.recentActivityHeader h3 {
  margin: 0;
}

.recentActivityHeader p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.7;
}

.recentActivityBody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.recentActivityItem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
}

.recentActivityAvatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.recentActivityContent {
  min-width: 0;
  flex: 1;
}

.recentActivityText {
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.recentActivityMeta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.65;
}

.recentActivityProject {
  font-weight: 600;
}

.recentActivityEmpty {
  padding: 10px 0;
  font-size: 13px;
  opacity: 0.7;
}

/* =========================
   Generic buttons / content
========================= */

.NPdescription {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.NPdescription p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.NPdescription button,
.todayFocusAddBtn,
.weatherPrimaryBtn {
  width: 100%;
  padding: 12px;
  border-radius: var(--dashboard-radius-sm);
  border: 1px solid var(--dashboard-accent-border);
  background: var(--dashboard-accent-bg);
  color: var(--dashboard-accent);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.NPdescription button:hover,
.todayFocusAddBtn:hover,
.weatherPrimaryBtn:hover {
  background: var(--dashboard-accent-bg-strong);
  transform: translateY(-1px);
}

/* =========================
   Weather
========================= */

.right2 {
  overflow: hidden;
}

.weatherHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
}

.weatherHeaderActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weatherHeader h3 {
  margin: 0;
}

.weatherSetupBtn,
.weatherRefreshBtn {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.weatherSetupBtn:hover,
.weatherRefreshBtn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(35, 255, 207, 0.28);
  color: white;
}

.weatherCardBody {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.weatherCardBodyEmpty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  text-align: center;
}

.weatherEmpty {
  margin: auto 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.weatherEmptyTitle {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.weatherEmptyDesc {
  max-width: 220px;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.66);
}

.weatherTopRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.weatherTopRowLeftInner {
  min-width: 0;
  margin-bottom: 20px;
}

.weatherLocation {
  max-width: 120px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: white;
}

.weatherCondition {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.68);
}

.weatherIconImg {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: contain;
}

.weatherTemp {
  margin: 8px 0 10px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: white;
}

.weatherFooter {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;

  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.weatherFooter > div {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  line-height: 1.5;
  border-radius: var(--dashboard-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dashboard-border-soft);
}

/* =========================
   Weather Popup
========================= */

.weatherLocationPopupFrame {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.weatherLocationPopupBox {
  width: min(460px, 100%);
  padding: 24px;
  border-radius: 24px;

  color: white;
  background: var(--app-surface-color, #286263);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.weatherLocationPopupHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.weatherLocationPopupHeader h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.weatherLocationPopupCloseBtn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--dashboard-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.weatherLocationPopupCloseBtn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.weatherLocationPopupDesc {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.weatherLocationPopupBody {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.weatherLocationPopupInput {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
  outline: none;
}

.weatherLocationPopupInput::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.weatherLocationPopupInput:focus {
  border-color: rgba(35, 255, 207, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.weatherLocationPopupActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.weatherPopupCancelBtn,
.weatherPopupSaveBtn {
  min-width: 110px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--dashboard-radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.weatherPopupCancelBtn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.weatherPopupCancelBtn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.weatherPopupSaveBtn {
  background: rgba(35, 255, 207, 0.1);
  border: 1px solid rgba(35, 255, 207, 0.25);
  color: var(--dashboard-accent);
}

.weatherPopupSaveBtn:hover {
  background: rgba(35, 255, 207, 0.18);
}

.weatherError {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #ffb4b4;
}

/* =========================
   Today Focus / Notes
========================= */

.projectCardBody {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.projectEmptyWrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.projectEmptyWrap .todayFocusEmpty {
  margin: 0;
  max-width: 320px;
}

.projectEmptyWrap .todayFocusAddBtn {
  margin-top: 0;
}

.TFcontentBox {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 56px;
  bottom: 14px;
  overflow-y: auto;
  padding-right: 6px;
}

.todayFocusEmptyWrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.todayFocusEmpty {
  margin: 20px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.TFcontentBox ul,
.noteContentbox ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 2px;
  padding: 0;
}

.TFcontentBox li {
  margin: 0;
  padding: 0;
}

.TFcontentBox li button {
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dashboard-border);
  border-radius: var(--dashboard-radius-sm);
  color: rgba(255, 255, 255, 0.92);
}

.TFcontentBox li button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(35, 255, 207, 0.32);
}

.right5 {
  overflow: hidden;
}

.noteContentbox {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 57px;
  bottom: 14px;
  overflow-y: auto;

  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

.noteContentbox li {
  position: relative;
  width: 90%;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;

  padding: 12px 16px;
  text-align: left;
  border-radius: var(--dashboard-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dashboard-border);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.noteContentbox li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;

  background: var(--dashboard-accent);
  border-radius: 4px 0 0 4px;
}

.noteContentbox li:hover::before {
  opacity: 1;
}

.noteContentbox li:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(35, 255, 207, 0.4);
}

.noteContentbox li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 36px;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
  background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18));
}

/* =========================
   Gauge
========================= */

.gauge {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;

  width: 110px;
  height: 110px;
  margin: auto;
  border-radius: 50%;
  background: conic-gradient(
    var(--dashboard-accent) calc(var(--p) * 1%),
    rgba(255, 255, 255, 0.1) 0
  );
}

.gauge::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(25, 25, 25, 0.9);
}

.gaugeInner {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.gaugeFooter {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.gaugeFooter .red {
  color: #ff5252;
  font-weight: bold;
}

/* =========================
   Selected Day area
========================= */

.heroRight_selectedDay {
  height: 100%;
  max-height: var(--dashboard-panel-height);
  overflow: hidden;
  background: var(--dashboard-bg-soft);
  border: 1px solid var(--dashboard-border);
  border-radius: var(--dashboard-radius-lg);
}

.heroRight_selectedDayScroll {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
}

/* =========================
   Floating settings
========================= */

.globalSettingsBtn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  border: 1.5px solid rgba(255, 255, 255, 0.5);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);

  color: white;
  font-size: 24px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.globalSettingsBtn:hover {
  transform: scale(1.08) rotate(35deg);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* =========================
   Stable Desktop Scaling
========================= */

@media (min-width: 1200px) {
  .mainpagecenter {
    width: min(1400px, calc(100vw - 56px));
  }
}

@media (max-width: 1650px) {
  .mainpagecenter {
    width: min(1200px, calc(100vw - 32px));
  }

  .calendarBox,
  .appleCalendar,
  .heroRight_selectedDay {
    min-height: 640px;
  }

  .heroBoxRight_contentBox {
    min-height: 500px;
  }

  .calCell {
    height: 92px;
    min-height: 92px;
    max-height: 92px;
  }
}

@media (max-width: 1440px) {
  .mainpagecenter {
    min-height: auto;
  }

  .herobox {
    gap: 16px;
  }

  .calendarBox,
  .appleCalendar,
  .heroRight_selectedDay {
    min-height: var(--dashboard-panel-height);
  }

  .heroBoxRight_contentBox {
    min-height: var(--dashboard-panel-height);
    grid-template-rows: repeat(3, minmax(140px, 1fr));
  }

  .calCell {
    height: 76px;
    min-height: 76px;
    max-height: 76px;
    padding: 6px;
    font-size: 12px;
  }

  .weatherIconImg {
    width: 68px;
    height: 68px;
  }

  .weatherTemp {
    font-size: 30px;
  }
}

@media (max-width: 1600px) and (min-width: 1025px) {
  :root {
    --dashboard-panel-height: 710px;
  }

  .mainpagecenter {
    width: calc(100% - var(--page-content-gutter-laptop));
    max-width: var(--page-content-width-laptop);
    min-height: auto;
    padding: 10px;
    margin: var(--page-content-margin-top-laptop) auto 0;
  }

  .herobox {
    gap: 10px;
    min-height: auto;
  }

  .heroboxLeft {
    flex: 0 0 calc(49% - 9px);
    min-width: 0;
  }

  .heroboxRight {
    flex: 0 0 calc(51%);
    min-width: 0;
    padding: 0;
    overflow: hidden;
  }

  .appleCalendar,
  .heroRight_selectedDay,
  .heroBoxRight_contentBox {
    height: var(--dashboard-panel-height);
    min-height: var(--dashboard-panel-height);
    max-height: var(--dashboard-panel-height);
  }

  .heroBoxRight_contentBox {
    column-gap: 10px;
    row-gap: 10px;
  }

  .rightbox {
    padding: 10px;
  }

  .calHeader {
    padding-bottom: 14px;
  }

  .calTitle {
    font-size: 16px;
  }

  .calNav {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .calWeekdays {
    padding-bottom: 8px;
    font-size: 10px;
    gap: 6px;
  }

  .calGrid {
    column-gap: 6px;
  }

  .calCell {
    height: 90px;
    min-height: 90px;
    max-height: 90px;
    padding: 5px;
    font-size: 11px;
  }

  .calDayNumber {
    font-size: 11px;
  }

  .calSchedulePreviewItem,
  .calScheduleMore {
    font-size: 9px;
  }

  .weatherIconImg {
    width: 52px;
    height: 52px;
  }

  .weatherTemp {
    font-size: 24px;
  }

  .heroRight_selectedDayScroll {
    padding: 16px;
  }
}

/* =========================
   Smaller laptop layout
========================= */

@media (max-width: 1024px) {
  .mainpageFrame {
    padding-top: 78px;
  }

  .mainpageCenter {
    min-height: calc(100vh - 78px);
    padding: 14px 0;
  }

  .mainpagecenter {
    min-height: auto;
  }

  .herobox {
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }

  .heroboxLeft,
  .heroboxRight {
    width: 100%;
    flex: none;
  }

  .calendarBox,
  .appleCalendar,
  .heroBoxRight_contentBox,
  .heroRight_selectedDay {
    min-height: auto;
    height: auto;
  }

  .appleCalendar {
    min-height: 680px;
  }

  .heroBoxRight_contentBox {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 14px;
  }

  .rightbox {
    min-height: 220px;
    height: 220px;
  }
}

@media (max-width: 768px) {
  .mainpageFrame {
    padding-top: 64px;
  }

  .mainpageCenter {
    min-height: calc(100vh - 64px);
    padding: 10px;
  }

  .mainpagecenter {
    border-radius: 14px;
  }

  .herobox {
    display: flex;
    gap: var(--dashboard-gap-lg);
    align-items: stretch;
    width: 100%;
    min-height: auto;
  }

  .appleCalendar {
    min-height: auto;
    padding: 14px;
    border-radius: 16px;
  }

  .heroBoxRight_contentBox {
    grid-template-columns: 1fr;
  }

  .rightbox {
    min-height: 210px;
    height: auto;
    padding: 14px;
    border-radius: 16px;
  }

  .calWeekdays {
    gap: 4px;
    font-size: 9px;
  }

  .calGrid {
    gap: 4px;
  }

  .calCell {
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    padding: 6px;
    font-size: 11px;
  }

  .weatherFooter {
    flex-direction: column;
  }

  .noteContentbox li {
    width: 100%;
  }

  .weatherLocationPopupFrame {
    padding: 14px;
  }

  .weatherLocationPopupBox {
    width: 100%;
    padding: 18px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .mainpageCenter {
    padding: 8px;
  }

  .herobox {
    padding: 8px;
  }

  .appleCalendar,
  .rightbox,
  .heroRight_selectedDay {
    border-radius: 14px;
  }

  .calCell {
    height: 54px;
    min-height: 54px;
    max-height: 54px;
    padding: 5px;
    font-size: 10px;
  }

  .weatherIconImg {
    width: 46px;
    height: 46px;
  }

  .weatherTemp {
    font-size: 22px;
  }

  .globalSettingsBtn {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

@media (min-width: 1900px) {
  :root {
    --dashboard-panel-height: min(960px, calc(100vh - 155px));
  }

  .mainpagecenter {
    width: min(1500px, calc(100vw - 80px));
    min-height: auto;
    padding: 18px 20px;
    overflow: hidden;
    margin-top: 120px;
  }

  .herobox {
    gap: 20px;
    align-items: start;
  }

  .heroboxLeft {
    flex: 0 0 calc(52% - 10px);
  }

  .heroboxRight {
    flex: 0 0 calc(48% - 10px);
  }

  .appleCalendar,
  .heroRight_selectedDay,
  .heroBoxRight_contentBox {
    height: var(--dashboard-panel-height);
    min-height: var(--dashboard-panel-height);
    max-height: var(--dashboard-panel-height);
  }

  .heroBoxRight_contentBox {
    column-gap: 14px;
    row-gap: 14px;
  }

  .rightbox {
    padding: 18px 20px;
  }

  /* ── Calendar ── */
  .calHeader {
    padding-bottom: 16px;
  }

  .calTitle {
    font-size: 20px;
    font-weight: 700;
  }

  .calNav {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .calWeekdays {
    gap: 8px;
    font-size: 12px;
    padding-bottom: 12px;
  }

  .calGrid {
    column-gap: 8px;
  }

  .calCell {
    height: 130px;
    min-height: 130px;
    max-height: 130px;
    padding: 8px;
    font-size: 13px;
  }

  .calDayNumber {
    font-size: 13px;
  }

  .calSchedulePreviewItem {
    font-size: 10px;
    padding: 4px 8px;
  }

  .calScheduleMore {
    font-size: 10px;
  }

  /* ── Weather ── */
  .weatherIconImg {
    width: 90px;
    height: 90px;
  }

  .weatherTemp {
    font-size: 44px;
    margin: 14px 0 16px;
  }

  .weatherLocation {
    font-size: 16px;
    max-width: 160px;
  }

  .weatherCondition {
    font-size: 13px;
    margin-top: 6px;
  }

  .weatherTopRowLeftInner {
    margin-bottom: 24px;
  }

  .weatherFooter > div {
    padding: 12px 14px;
    font-size: 11px;
  }

  /* ── Upcoming Deadlines 게이지 완전 중앙 ── */
  /* ── Upcoming Deadlines 완전 재설계 ── */
  .right4 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px;
    text-align: center;
  }

  /* 타이틀은 절대 상단 고정 */
  .right4 > h3 {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    text-align: left;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
  }

  /* projectCardBody가 있다면 중앙 flex */
  .right4 .projectCardBody {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    gap: 14px;
  }

  /* 게이지 크기 & 위치 */
  .right4 .gauge {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    flex-shrink: 0;
  }

  .right4 .gaugeInner {
    font-size: 32px;
    font-weight: 800;
  }

  .orbitDeadlineGauge {
    margin-top: 20px;
  }

  /* 게이지 아래 프로젝트명 */
  .right4 .gauge + p,
  .right4 .projectCardBody > p,
  .right4 .projectCardBody > div:not(.gaugeFooter) {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
  }

  /* 하단 정보바 절대 고정 */
  .right4 .gaugeFooter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
  }

  /* ── Exchange ── */
  .exchangeTab {
    height: 36px;
    font-size: 12px;
    border-radius: 12px;
  }

  .exchangeCard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    align-items: stretch;
  }

  .exchangeTopRow {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
    margin-top: 6px;
  }

  .exchangeTopRow h2 {
    font-size: 18px;
  }

  .exchangeRateMain {
    font-size: 32px;
    text-align: left;
    margin-top: 15px;
  }

  .exchangeRateMain span {
    font-size: 13px;
  }

  .exchangeMeta {
    width: 100%;
    margin-top: auto;
  }

  .exchangeMetaItem {
    padding: 10px;
  }

  .exchangeMetaItem strong {
    font-size: 12px;
  }

  .exchangeMetaItem span {
    font-size: 9px;
  }

  /* ── Recent Activity ── */
  .recentActivityAvatar {
    width: 38px;
    height: 38px;
  }

  .recentActivityText {
    font-size: 14px;
    line-height: 1.5;
  }

  .recentActivityMeta {
    font-size: 12px;
    margin-top: 5px;
  }

  .recentActivityBody {
    gap: 14px;
  }

  /* ── New Project / Today Focus ── */
  .NPdescription p {
    font-size: 15px;
    line-height: 1.7;
  }

  .NPdescription button,
  .todayFocusAddBtn,
  .weatherPrimaryBtn {
    padding: 14px;
    font-size: 14px;
    border-radius: 14px;
  }

  /* ── Selected Day ── */
  .heroRight_selectedDayScroll {
    padding: 24px;
  }
}
