/* Trash */
.trash-content {
  flex: 1;
  overflow: auto;
}
.trash-content > .empty-state {
  height: 100%;
}
.trash-table {
  padding: 12px 18px;
}
.trash-table-heading {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 8px 14px;
  color: var(--muted);
  font-size: 10px;
}
.trash-table-heading > span:last-child {
  width: 100px;
}
.trash-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.trash-row.selected {
  background: var(--selection);
}
.trash-row > svg {
  color: #a6a0b2;
}
.trash-row > b {
  font-size: 12px;
  font-weight: 500;
  flex: 1;
}
.trash-row > span {
  width: 100px;
  color: var(--muted);
  font-size: 10px;
}
/* Contacts */
.contacts-app {
  display: flex;
  flex: 1;
  min-height: 0;
}
.contacts-sidebar {
  width: 230px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
}
.contacts-sidebar h4 {
  font-size: 10px;
  color: var(--muted);
  margin: 23px 8px 8px;
}
.contact-list-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 7px;
  background: var(--selection);
  width: 100%;
  text-align: left;
}
.contact-list-person > img {
  height: 35px;
  width: 35px;
  object-fit: cover;
  border-radius: 50%;
}
.contact-list-person > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-list-person span {
  color: var(--muted);
  font-size: 10px;
}
.contact-detail {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 28px 35px;
}
.contact-detail > header {
  display: flex;
  align-items: center;
  gap: 20px;
}
.contact-detail > header > img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 50%;
}
.contact-detail h1 {
  font-size: 28px;
  letter-spacing: -0.6px;
  font-weight: 500;
  margin: 0 0 4px;
}
.contact-detail header p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.contact-shortcuts {
  display: flex;
  gap: 20px;
  margin: 25px 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.contact-shortcuts > button {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  min-width: 56px;
  color: var(--accent);
  font-size: 10px;
}
.contact-shortcuts > button > svg {
  width: 37px;
  height: 37px;
  padding: 8px;
  background: var(--selection);
  border-radius: 50%;
}
.contact-fields > div {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 12px;
}
.contact-fields label {
  width: 67px;
  text-align: right;
  color: var(--muted);
  font-size: 11px;
  flex-shrink: 0;
}
.contact-fields > div > button:not(.icon-button) {
  color: var(--accent);
  user-select: text;
  overflow-wrap: anywhere;
  text-align: left;
}
.contact-fields .icon-button {
  margin-left: auto;
  opacity: 0.45;
  width: 24px;
  height: 24px;
}
.contact-fields > div > p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.contact-detail > .mac-button {
  margin-top: 22px;
  font-size: 11px;
}
/* Phone */
.phone-app {
  display: flex;
  flex: 1;
  min-height: 0;
}
.phone-app .app-sidebar {
  width: 200px;
  display: flex;
  flex-direction: column;
}
.phone-app .app-sidebar h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin: 7px 10px 20px;
}
.phone-side-note {
  margin: auto 10px 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}
.phone-main {
  flex: 1;
  overflow: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 30px;
}
.phone-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  text-align: center;
  width: 100%;
}
.phone-contact > img {
  width: 95px;
  height: 95px;
  object-fit: cover;
  border-radius: 50%;
}
.phone-contact h1 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 15px 0 3px;
}
.phone-contact p {
  color: var(--muted);
  font-size: 12px;
}
.phone-contact-buttons {
  display: flex;
  gap: 32px;
  margin: 15px 0 25px;
}
.phone-contact-buttons > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 11px;
}
.phone-contact-buttons svg {
  width: 43px;
  height: 43px;
  padding: 10px;
  border-radius: 50%;
  background: var(--selection);
}
.phone-contact > .mac-button {
  font-size: 11px;
}
.phone-contact > small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 28px;
}
.phone-number {
  display: block;
  min-height: 55px;
  font-size: 26px;
  letter-spacing: 1.5px;
  font-weight: 300;
  padding: 5px 0 12px;
  word-break: break-all;
  max-width: 300px;
  color: var(--text);
}
.phone-keypad {
  display: grid;
  grid-template-columns: repeat(3, 66px);
  gap: 12px 22px;
  justify-content: center;
}
.phone-keypad > button {
  width: 66px;
  height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
}
.phone-keypad > button:hover {
  background: var(--line);
}
.phone-keypad b {
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}
.phone-keypad small {
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 2px;
}
.phone-dial-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
  padding-left: 50px;
}
.phone-call {
  width: 62px;
  height: 55px;
  border-radius: 50%;
  background: #34c759;
  color: white;
  display: grid;
  place-items: center;
}
.phone-tone {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.phone-section-heading {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  margin: 5px 0 20px;
}
.phone-section-heading h1 {
  font-size: 23px;
  margin: 0;
}
.phone-recent {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 5px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  color: var(--muted);
}
.phone-recent > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.phone-recent b {
  font-size: 12px;
  color: var(--text);
}
.phone-recent small {
  font-size: 10px;
}
/* System settings */
.settings-app {
  display: flex;
  flex: 1;
  min-height: 0;
}
.settings-sidebar {
  width: 220px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  flex-shrink: 0;
}
.settings-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding: 0 5px;
}
.settings-profile > img {
  width: 47px;
  height: 47px;
  object-fit: cover;
  border-radius: 50%;
}
.settings-profile > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-profile b {
  font-size: 15px;
}
.settings-profile span {
  font-size: 10px;
  color: var(--muted);
}
.settings-sidebar > button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  width: 100%;
  text-align: left;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 2px;
}
.settings-sidebar > button > svg {
  background: #8198ac;
  color: white;
  border-radius: 5px;
  padding: 3px;
  width: 24px;
  height: 24px;
}
.settings-sidebar > button:nth-of-type(2) > svg {
  background: #64b3b0;
}
.settings-sidebar > button:nth-of-type(3) > svg {
  background: #4095df;
}
.settings-sidebar > button:nth-of-type(4) > svg {
  background: #df6175;
}
.settings-sidebar > button:nth-of-type(5) > svg {
  background: #d6a551;
}
.settings-sidebar > button:nth-of-type(6) > svg {
  background: #6b89bb;
}
.settings-sidebar > button.active {
  background: var(--accent);
  color: white;
}
.settings-sidebar > button:hover:not(.active) {
  background: var(--line);
}
.settings-main {
  background: var(--surface-2);
  padding: 23px 28px;
  overflow: auto;
  flex: 1;
  min-width: 0;
}
.settings-main > h1 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin-bottom: 25px;
}
.settings-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px 16px;
  margin-bottom: 16px;
}
.settings-card > p {
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0;
  line-height: 1.8;
}
.settings-card > h3 {
  font-size: 13px;
  margin: 15px 0 8px;
}
.setting-row > span {
  font-size: 12px;
}
.setting-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.setting-row > .mac-button {
  font-size: 10px;
  padding: 4px 10px;
}
.setting-row input[type="range"] {
  width: 150px;
}
.settings-caption {
  font-size: 11px !important;
  color: var(--muted);
  line-height: 1.7;
}
.appearance-options {
  display: flex;
  gap: 25px;
  margin: 20px 0;
}
.appearance-options > button {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.appearance-preview {
  width: 145px;
  height: 90px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: block;
  border: 3px solid transparent;
  background: linear-gradient(145deg, #b86ba1, #787ed3, #b9ced8);
}
.appearance-preview > i {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 15px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px #0003;
}
.appearance-preview > b {
  position: absolute;
  top: 20px;
  left: 20px;
  bottom: 15px;
  width: 25px;
  background: #e5e5ed;
  border-radius: 5px 0 0 5px;
}
.appearance-preview.dark {
  background: linear-gradient(145deg, #372a53, #494178, #6563a3);
}
.appearance-preview.dark > i {
  background: #292a33;
}
.appearance-preview.dark > b {
  background: #3e3e49;
}
.appearance-options > .selected .appearance-preview {
  border-color: var(--accent);
}
.wallpaper-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.wallpaper-options > button {
  text-align: left;
  border: 3px solid transparent;
  border-radius: 11px;
  position: relative;
  background: var(--surface);
  padding: 0 0 9px;
  overflow: hidden;
}
.wallpaper-options > button.selected {
  border-color: var(--accent);
}
.wallpaper-options img {
  height: 100px;
  width: 100%;
  object-fit: cover;
  display: block;
  margin-bottom: 8px;
}
.wallpaper-options span {
  font-size: 11px;
  padding-left: 10px;
}
.wallpaper-options svg {
  float: right;
  margin-right: 8px;
  color: var(--accent);
}
.settings-about {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 10px 0 25px;
}
.settings-about > img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 15px;
}
.settings-about h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.6px;
}
.settings-about p {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0;
}
.settings-about > .mac-button {
  margin-top: 15px;
  font-size: 11px;
}
/* Finder */
.finder-toolbar {
  gap: 9px;
}
.finder-folder-title {
  font-size: 13px;
  margin-left: 4px;
}
.finder-toolbar .search-field {
  width: 130px;
  margin-left: 0;
}
.finder-toolbar .segmented button {
  padding: 4px 7px;
}
.finder-sidebar {
  width: 185px;
  padding-top: 7px;
}
.finder-main {
  user-select: none;
}
.finder-items.grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 18px 10px;
  align-content: start;
}
.finder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 5px;
  border-radius: 8px;
  min-width: 0;
}
.finder-item > span:last-child {
  font-size: 11px;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 1px 4px;
  border-radius: 3px;
}
.finder-item > .app-icon {
  width: 63px;
  height: 63px;
}
.finder-folder-icon {
  color: #4aaee5;
  height: 66px;
}
.finder-folder-icon > svg {
  fill: #7ed1fa;
  stroke-width: 1;
  filter: drop-shadow(0 2px 1px #0002);
}
.finder-document-icon {
  width: 48px;
  height: 63px;
  background: linear-gradient(145deg, #f8f8f8, #fff);
  border: 1px solid #d4d7df;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #93a3b9;
  box-shadow: 0 2px 4px #0001;
}
.finder-photo-icon {
  height: 63px;
  width: 63px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 1px 5px #0003;
}
.finder-item.selected {
  background: var(--line);
}
.finder-item.selected > span:last-child {
  background: var(--accent);
  color: white;
}
.finder-items.list {
  padding: 0 8px;
}
.finder-list-heading {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.finder-list-heading > span:last-child {
  width: 130px;
}
.list > .finder-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 33px;
  text-align: left;
  padding: 4px 9px;
  gap: 8px;
  border-radius: 4px;
}
.list > .finder-item:nth-child(odd) {
  background: #80808009;
}
.list > .finder-item.selected {
  background: var(--accent);
  color: white;
}
.list
  > .finder-item
  > span:not(.finder-folder-icon):not(.finder-document-icon) {
  flex: 1;
  font-size: 11px;
}
.list > .finder-item > small {
  width: 130px;
  color: var(--muted);
  font-size: 10px;
}
.list > .finder-item.selected > small {
  color: #ffffffbb;
}
.list .finder-folder-icon,
.list .finder-document-icon,
.list .finder-photo-icon,
.list > .finder-item > .app-icon {
  width: 22px;
  height: 24px;
  flex-shrink: 0;
}
.list .finder-folder-icon svg,
.list .finder-document-icon svg {
  width: 20px;
  height: 20px;
}
.finder-path {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 15px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 10px;
  color: var(--muted);
}
.finder-preview-image {
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}
.finder-preview-text {
  white-space: pre-wrap;
  font: 12px/1.9 var(--font);
  user-select: text;
  max-height: 55vh;
  overflow: auto;
}
/* Notes */
.notes-toolbar {
  background: var(--surface-2);
}
.notes-toolbar .icon-button {
  color: #9a8550;
}
.notes-app {
  display: flex;
  flex: 1;
  min-height: 0;
}
.notes-folders {
  width: 170px;
  flex-shrink: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 15px 9px;
  display: flex;
  flex-direction: column;
}
.notes-folders h4 {
  font-size: 11px;
  color: var(--muted);
  padding-left: 10px;
  margin: 6px 0 12px;
}
.notes-folders > button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  width: 100%;
  text-align: left;
  font-size: 11px;
  border-radius: 6px;
  margin-bottom: 2px;
}
.notes-folders > button svg {
  color: #c49e3f;
}
.notes-folders > button.active {
  background: #c5a24e30;
}
.notes-folders > small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.9;
  margin: auto 7px 0;
}
.notes-list {
  width: 235px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 8px;
  overflow: auto;
}
.notes-list > button {
  display: flex;
  flex-direction: column;
  padding: 12px 13px;
  width: 100%;
  text-align: left;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
}
.notes-list > button.selected {
  background: #f3d46e5c;
}
.notes-list b {
  font-size: 12px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notes-list span {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notes-list small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.notes-list-empty {
  font-size: 11px;
  color: var(--muted);
  padding: 30px 10px;
  text-align: center;
}
.note-editor {
  flex: 1;
  min-width: 0;
  padding: 19px 30px;
  overflow: auto;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.note-meta {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  margin: 0 0 25px;
}
.note-editor h1 {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.public-note-body {
  font-size: 13px;
  line-height: 1.9;
  user-select: text;
  overflow-wrap: anywhere;
}
.note-related {
  display: flex;
  gap: 18px;
  margin-top: 27px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #b89533;
  flex-wrap: wrap;
}
.note-related > button {
  display: flex;
  align-items: center;
  gap: 5px;
}
.note-title-input {
  border: 0;
  background: none;
  font-size: 24px;
  font-weight: 600;
  outline: none;
  padding: 0;
  margin-bottom: 16px;
  flex-shrink: 0;
  width: 100%;
}
.note-body-input {
  resize: none;
  border: 0;
  background: none;
  outline: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.9;
  flex: 1;
  min-height: 260px;
}
/* Photos */
.photos-toolbar > b {
  font-size: 13px;
  margin-left: 8px;
}
.photos-sidebar {
  width: 175px;
}
.photos-main .content-heading {
  padding: 25px 30px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 17px;
  padding: 0 28px 25px;
}
.photo-grid > button {
  text-align: left;
  min-width: 0;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.photo-grid span {
  display: block;
  font-size: 10px;
  padding: 7px 2px;
  color: var(--muted);
}
.photo-grid button:hover img {
  box-shadow: 0 0 0 3px var(--accent);
}
.photo-viewer {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #191a1d;
  color: #ddd;
}
.photo-canvas {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.photo-canvas > img {
  max-width: 90%;
  max-height: 95%;
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.15s;
}
.photo-viewer > footer {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #27282c;
  padding: 12px 18px;
  flex-shrink: 0;
}
.photo-viewer > footer > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.photo-viewer b {
  font-size: 12px;
}
.photo-viewer span {
  font-size: 9px;
  color: #999;
}
.photo-viewer label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.photo-viewer input {
  width: 85px;
}
.photo-viewer .icon-button {
  color: #ccc;
}
/* Calendar */
.calendar-toolbar {
  height: 46px;
}
.calendar-toolbar .segmented button {
  padding: 4px 20px;
  font-size: 11px;
}
.calendar-toolbar .search-field {
  width: 155px;
  margin-left: 0;
}
.calendar-app {
  display: flex;
  flex: 1;
  min-height: 0;
}
.calendar-sidebar {
  width: 205px;
  flex-shrink: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 18px 15px;
  overflow: auto;
}
.calendar-mini > b {
  font-size: 12px;
  display: block;
  margin-bottom: 9px;
}
.calendar-mini > div {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  font-size: 10px;
  text-align: center;
}
.calendar-mini small {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 4px;
}
.calendar-mini button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  justify-self: center;
  font-size: 10px;
}
.calendar-mini .outside {
  color: var(--muted);
  opacity: 0.45;
}
.calendar-mini .selected {
  background: #8882;
}
.calendar-mini .today {
  background: #f4534b;
  color: white;
}
.calendar-sidebar h4 {
  font-size: 10px;
  color: var(--muted);
  margin: 25px 0 10px;
}
.calendar-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  margin: 10px 0;
}
.calendar-check.public input {
  accent-color: #e68534;
}
.calendar-check.local input {
  accent-color: #bd68c9;
}
.calendar-agenda-event {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid #bd68c9;
  padding: 4px 8px;
  width: 100%;
  text-align: left;
  margin: 8px 0;
}
.calendar-agenda-event.public {
  border-color: #e68534;
}
.calendar-agenda-event b {
  font-size: 11px;
  font-weight: 500;
}
.calendar-agenda-event span {
  font-size: 9px;
  color: var(--muted);
}
.calendar-agenda > p {
  font-size: 10px;
  color: var(--muted);
}
.calendar-local-note {
  font-size: 9px;
  color: var(--muted);
  margin-top: 30px;
}
.calendar-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.calendar-main > header {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 16px 22px 13px;
}
.calendar-main h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin: 0;
}
.calendar-main h1 > b {
  font-weight: 600;
}
.calendar-main h1 > span {
  font-weight: 200;
  color: var(--muted);
}
.calendar-main > header > .mac-button {
  font-size: 11px;
  padding: 3px 12px;
}
.calendar-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--line);
}
.calendar-weekdays > span {
  padding-right: 13px;
}
.calendar-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(65px, 1fr));
  flex: 1;
  overflow: auto;
}
.calendar-day {
  position: relative;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-width: 0;
  padding-top: 4px;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
}
.calendar-day.outside {
  background: #80808005;
}
.calendar-day.outside .calendar-day-number {
  opacity: 0.35;
}
.calendar-day.selected {
  box-shadow: inset 0 0 0 2px #80b8f755;
}
.calendar-day-number {
  position: relative;
  z-index: 2;
  margin: 0 7px 3px auto;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  font-size: 12px;
  border-radius: 50%;
}
.calendar-day-number.today {
  background: #f4534b;
  color: white;
}
.calendar-day-events {
  position: relative;
  z-index: 2;
  margin: 0 3px;
  pointer-events: none;
}
.calendar-event {
  display: block;
  width: 100%;
  padding: 2px 4px;
  margin-bottom: 2px;
  border-radius: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  background: #bf79ca30;
  color: #9959ab;
  font-size: 9px;
  border-left: 2px solid #ba71c7;
  pointer-events: auto;
}
.calendar-event.public {
  background: #e6a66528;
  border-color: #d79a48;
  color: #ad7931;
}
.calendar-cell-add {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.calendar-time-view {
  overflow: auto;
  flex: 1;
}
.calendar-time-head {
  display: grid;
  grid-template-columns: 48px repeat(var(--days), minmax(0, 1fr));
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 3;
  border-bottom: 1px solid var(--line);
}
.calendar-time-head > button {
  padding: 6px;
  font-size: 10px;
}
.calendar-time-head b {
  font-size: 17px;
  margin-left: 3px;
  font-weight: 400;
}
.calendar-time-head .today {
  color: #f4534b;
}
.calendar-hour-grid {
  display: grid;
  grid-template-columns: 48px repeat(var(--days), minmax(0, 1fr));
  grid-auto-rows: 42px;
}
.calendar-hour-label {
  font-size: 9px;
  color: var(--muted);
  padding: 4px;
  text-align: right;
}
.calendar-time-slot {
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  position: relative;
}
.calendar-time-slot > button:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.calendar-time-slot > .calendar-event {
  position: relative;
  z-index: 1;
  margin: 4px 2px;
  width: calc(100% - 4px);
}
.calendar-event-fields {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr;
  gap: 10px;
}
.calendar-event-fields input {
  width: 100%;
}
/* Weather */
.app-weather .windowbar {
  background: #233e60;
  color: white;
  border-color: #ffffff10;
}
.app-weather .window-title {
  color: #fffd;
}
.weather-app {
  display: flex;
  flex: 1;
  min-height: 0;
  background: linear-gradient(140deg, #244977, #6083a7);
  color: white;
}
.weather-app[data-sky="night"] {
  background: linear-gradient(150deg, #17283e, #3b4a68);
}
.weather-sidebar {
  width: 215px;
  flex-shrink: 0;
  background: #15243c45;
  border-right: 1px solid #ffffff14;
  padding: 15px 12px;
  display: flex;
  flex-direction: column;
}
.weather-search {
  display: flex;
  align-items: center;
  gap: 4px;
}
.weather-search > .search-field {
  background: #ffffff15;
  border: 1px solid #ffffff10;
  color: #d4e0ef;
  flex: 1;
}
.weather-search input {
  color: white;
}
.weather-search input::placeholder {
  color: #bfcede;
}
.weather-search > .icon-button {
  color: #d9e4f2;
  width: 23px;
}
.weather-cities {
  flex: 1;
  overflow: auto;
  margin-top: 13px;
}
.weather-city {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  text-align: left;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #ffffff0b;
}
.weather-city.selected {
  background: #ffffff1c;
}
.weather-city b {
  font-size: 17px;
  font-weight: 500;
}
.weather-city small {
  font-size: 10px;
  color: #becfe2;
}
.weather-sidebar-bottom {
  font-size: 9px;
  color: #9db1cb;
  padding: 12px 5px 0;
  line-height: 1.8;
}
.weather-sidebar-bottom a {
  color: #dce7f4;
}
.weather-search-results {
  max-height: 250px;
  overflow: auto;
  background: #20334e99;
  border-radius: 7px;
  margin-top: 4px;
}
.weather-search-results > button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  width: 100%;
  padding: 10px 9px;
  border-bottom: 1px solid #ffffff12;
}
.weather-search-results b {
  font-size: 12px;
  font-weight: 500;
}
.weather-search-results span,
.weather-search-results p {
  font-size: 9px;
  color: #b3c6dd;
}
.weather-search-results p {
  padding: 8px;
}
.weather-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  position: relative;
}
.weather-first {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100%;
  padding: 40px;
  text-align: center;
}
.weather-first > svg {
  color: #f8d593;
  stroke-width: 1;
  margin-bottom: 22px;
}
.weather-first h1 {
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.weather-first p {
  font-size: 12px;
  color: #c2d0e2;
  line-height: 1.9;
}
.weather-first > div {
  display: flex;
  gap: 10px;
  margin: 10px 0 20px;
}
.weather-first button {
  background: #ffffff15;
  border: 1px solid #ffffff20;
  border-radius: 15px;
  padding: 5px 14px;
  font-size: 11px;
}
.weather-first > small {
  font-size: 9px;
  color: #9fb4ce;
}
.weather-main > .empty-state {
  color: #bacde0;
  height: 70%;
}
.weather-main > .empty-state h2 {
  color: white;
}
.weather-retry {
  margin: 0 auto;
  display: block;
  background: #ffffff20;
  color: #fff;
  border-color: #ffffff30;
}
.weather-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 20px 25px;
  position: relative;
}
.weather-hero > .icon-button {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #c5d6e7;
}
.weather-hero h1 {
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 5px 0 0;
}
.weather-hero > strong {
  font-size: 78px;
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -4px;
  margin-left: 10px;
}
.weather-hero > span {
  font-size: 16px;
  color: #d8e3ee;
}
.weather-hero > p {
  font-size: 12px;
  margin: 4px 0 9px;
}
.weather-hero > small {
  font-size: 9px;
  color: #a5bbd4;
}
.weather-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px;
}
.weather-card {
  background: #1b36554d;
  border: 1px solid #ffffff15;
  border-radius: 14px;
  padding: 12px 14px;
}
.weather-card h3 {
  font-size: 10px;
  color: #b0c5dd;
  margin: 0 0 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.weather-hourly {
  grid-column: 1/-1;
}
.weather-hourly > div {
  display: flex;
  gap: 24px;
  overflow: auto;
  scrollbar-width: none;
  padding: 3px 0;
}
.weather-hourly > div > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 11px;
  min-width: 33px;
  font-size: 11px;
}
.weather-hourly svg {
  color: #f4d798;
}
.weather-hourly b {
  font-size: 17px;
  font-weight: 400;
}
.weather-daily {
  grid-column: 1/-1;
}
.weather-daily > div {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 6px 0;
  border-top: 1px solid #ffffff0c;
  font-size: 13px;
}
.weather-daily > div > b {
  width: 40px;
  font-weight: 400;
  font-size: 12px;
}
.weather-daily > div > svg {
  color: #f0d699;
  margin: 0 12px;
}
.weather-daily > div > span {
  color: #b2c8dc;
  width: 25px;
  text-align: right;
}
.weather-daily > div > i {
  height: 4px;
  background: linear-gradient(90deg, #6fcbd0, #eccc61);
  border-radius: 4px;
  flex: 1;
}
.weather-daily > div > strong {
  font-size: 13px;
  font-weight: 400;
}
.weather-metric > strong {
  font-size: 29px;
  font-weight: 300;
  line-height: 1.8;
}
.weather-metric > strong > small {
  font-size: 12px;
  color: #b6c8d9;
}
.weather-metric p {
  font-size: 9px;
  color: #b6c8d9;
  margin: 3px 0;
}
.weather-attribution {
  padding: 15px;
  text-align: center;
  font-size: 9px;
  color: #aac0d7;
}
.weather-attribution a {
  color: #c9d9e9;
}
